@brett_lamy/ui 5.16.0 → 6.0.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/README.md +167 -69
- package/dist/assets/layout-worker-MHKJBZ5g.js +26 -0
- package/dist/cloudflare.d.ts +15 -0
- package/dist/cloudflare.d.ts.map +1 -0
- package/dist/cloudflare.js +9 -0
- package/dist/components/adaptive-pane.d.ts +4983 -18
- package/dist/components/adaptive-pane.d.ts.map +1 -1
- package/dist/components/adaptive-pane.js +273 -121
- package/dist/components/animated-height.d.ts +6 -20
- package/dist/components/animated-height.d.ts.map +1 -1
- package/dist/components/animated-height.js +50 -71
- package/dist/components/artifact-chat-container.d.ts +108 -60
- package/dist/components/artifact-chat-container.d.ts.map +1 -1
- package/dist/components/artifact-chat-container.js +301 -160
- package/dist/components/avatar-group.d.ts +20 -0
- package/dist/components/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar-group.js +70 -0
- package/dist/components/avatar.d.ts +19 -34
- package/dist/components/avatar.d.ts.map +1 -1
- package/dist/components/avatar.js +66 -94
- package/dist/components/badge.d.ts +5 -4
- package/dist/components/badge.d.ts.map +1 -1
- package/dist/components/badge.js +30 -17
- package/dist/components/breadcrumb.d.ts +34 -42
- package/dist/components/breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb.js +214 -225
- package/dist/components/button.d.ts +8 -9
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +35 -37
- package/dist/components/calendar.d.ts +57 -20
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +181 -74
- package/dist/components/call-stack.d.ts +22 -16
- package/dist/components/call-stack.d.ts.map +1 -1
- package/dist/components/call-stack.js +191 -202
- package/dist/components/canvas.d.ts +71 -59
- package/dist/components/canvas.d.ts.map +1 -1
- package/dist/components/canvas.js +202 -310
- package/dist/components/card.d.ts +13 -8
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +45 -37
- package/dist/components/celebrate.d.ts +8 -5
- package/dist/components/celebrate.d.ts.map +1 -1
- package/dist/components/celebrate.js +48 -38
- package/dist/components/checkbox.d.ts +13 -8
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +45 -39
- package/dist/components/cloudflare-diagram.d.ts +112 -0
- package/dist/components/cloudflare-diagram.d.ts.map +1 -0
- package/dist/components/cloudflare-diagram.js +980 -0
- package/dist/components/code-editor.d.ts +51 -38
- package/dist/components/code-editor.d.ts.map +1 -1
- package/dist/components/code-editor.js +267 -272
- package/dist/components/color-picker.d.ts +78 -38
- package/dist/components/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker.js +261 -105
- package/dist/components/combobox.d.ts +79 -18
- package/dist/components/combobox.d.ts.map +1 -1
- package/dist/components/combobox.js +234 -51
- package/dist/components/command-menu.d.ts +145 -181
- package/dist/components/command-menu.d.ts.map +1 -1
- package/dist/components/command-menu.js +513 -802
- package/dist/components/composer/composer-cards.d.ts +15 -8
- package/dist/components/composer/composer-cards.d.ts.map +1 -1
- package/dist/components/composer/composer-cards.js +225 -203
- package/dist/components/composer/composer-context.d.ts +46 -0
- package/dist/components/composer/composer-context.d.ts.map +1 -0
- package/dist/components/composer/composer-context.js +28 -0
- package/dist/components/composer/composer-files.d.ts +13 -3
- package/dist/components/composer/composer-files.d.ts.map +1 -1
- package/dist/components/composer/composer-files.js +61 -22
- package/dist/components/composer/composer.d.ts +215 -222
- package/dist/components/composer/composer.d.ts.map +1 -1
- package/dist/components/composer/composer.js +895 -1216
- package/dist/components/composer/index.d.ts +5 -0
- package/dist/components/composer/index.d.ts.map +1 -0
- package/dist/components/conversation.d.ts +78 -75
- package/dist/components/conversation.d.ts.map +1 -1
- package/dist/components/conversation.js +244 -292
- package/dist/components/cron-editor.d.ts +19 -12
- package/dist/components/cron-editor.d.ts.map +1 -1
- package/dist/components/cron-editor.js +191 -197
- package/dist/components/data-table.d.ts +7150 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +399 -0
- package/dist/components/date-input.d.ts +26 -0
- package/dist/components/date-input.d.ts.map +1 -0
- package/dist/components/date-input.js +88 -0
- package/dist/components/date-picker.d.ts +43 -33
- package/dist/components/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker.js +148 -84
- package/dist/components/debug-toolbar.d.ts +36 -10
- package/dist/components/debug-toolbar.d.ts.map +1 -1
- package/dist/components/debug-toolbar.js +81 -55
- package/dist/components/diagram-frame.d.ts +127 -0
- package/dist/components/diagram-frame.d.ts.map +1 -0
- package/dist/components/diagram-frame.js +305 -0
- package/dist/components/diagram.d.ts +217 -0
- package/dist/components/diagram.d.ts.map +1 -0
- package/dist/components/diagram.js +1724 -0
- package/dist/components/dialog.d.ts +89 -32
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +244 -94
- package/dist/components/disclosure.d.ts +28 -18
- package/dist/components/disclosure.d.ts.map +1 -1
- package/dist/components/disclosure.js +86 -47
- package/dist/components/dropdown-menu.d.ts +106 -26
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +290 -90
- package/dist/components/empty-state.d.ts +27 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/empty-state.js +93 -0
- package/dist/components/field.d.ts +25 -0
- package/dist/components/field.d.ts.map +1 -0
- package/dist/components/field.js +60 -0
- package/dist/components/file-upload.d.ts +83 -71
- package/dist/components/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload.js +322 -355
- package/dist/components/filmstrip.d.ts +6 -2
- package/dist/components/filmstrip.d.ts.map +1 -1
- package/dist/components/filmstrip.js +35 -28
- package/dist/components/filter-input.d.ts +17 -8
- package/dist/components/filter-input.d.ts.map +1 -1
- package/dist/components/filter-input.js +82 -80
- package/dist/components/filter.d.ts +83 -59
- package/dist/components/filter.d.ts.map +1 -1
- package/dist/components/filter.js +684 -592
- package/dist/components/flame-chart.d.ts +78 -0
- package/dist/components/flame-chart.d.ts.map +1 -0
- package/dist/components/flame-chart.js +717 -0
- package/dist/components/floating-sheet.d.ts +120 -76
- package/dist/components/floating-sheet.d.ts.map +1 -1
- package/dist/components/floating-sheet.js +315 -229
- package/dist/components/font-picker.d.ts +81 -33
- package/dist/components/font-picker.d.ts.map +1 -1
- package/dist/components/font-picker.js +450 -306
- package/dist/components/hover-card.d.ts +23 -63
- package/dist/components/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card.js +59 -138
- package/dist/components/index-bar.d.ts +43 -30
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.js +140 -206
- package/dist/components/input.d.ts +27 -3
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +61 -20
- package/dist/components/kbd.d.ts +6 -3
- package/dist/components/kbd.d.ts.map +1 -1
- package/dist/components/kbd.js +33 -10
- package/dist/components/label.d.ts +5 -5
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/label.js +10 -10
- package/dist/components/list.d.ts +78 -61
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +434 -456
- package/dist/components/listbox.d.ts +30 -0
- package/dist/components/listbox.d.ts.map +1 -0
- package/dist/components/listbox.js +136 -0
- package/dist/components/log-list.d.ts +30 -35
- package/dist/components/log-list.d.ts.map +1 -1
- package/dist/components/log-list.js +212 -446
- package/dist/components/markdown-editor.d.ts +66 -32
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.js +381 -185
- package/dist/components/markdown-view.d.ts +27 -22
- package/dist/components/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view.js +22 -118
- package/dist/components/message-scroller.d.ts +23 -11
- package/dist/components/message-scroller.d.ts.map +1 -1
- package/dist/components/message-scroller.js +100 -235
- package/dist/components/morph.d.ts +20 -26
- package/dist/components/morph.d.ts.map +1 -1
- package/dist/components/morph.js +61 -55
- package/dist/components/natural-time-input.d.ts +49 -0
- package/dist/components/natural-time-input.d.ts.map +1 -0
- package/dist/components/natural-time-input.js +213 -0
- package/dist/components/navigation-stack.d.ts +24368 -73
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.js +364 -329
- package/dist/components/now-playing-bars.d.ts +7 -7
- package/dist/components/now-playing-bars.d.ts.map +1 -1
- package/dist/components/now-playing-bars.js +6 -5
- package/dist/components/number-morph.d.ts +6 -6
- package/dist/components/number-morph.d.ts.map +1 -1
- package/dist/components/number-morph.js +70 -64
- package/dist/components/object-tree.d.ts +29 -14
- package/dist/components/object-tree.d.ts.map +1 -1
- package/dist/components/object-tree.js +256 -295
- package/dist/components/object-value.d.ts +6 -3
- package/dist/components/object-value.d.ts.map +1 -1
- package/dist/components/object-value.js +24 -25
- package/dist/components/open-code.d.ts +25 -10
- package/dist/components/open-code.d.ts.map +1 -1
- package/dist/components/open-code.js +191 -155
- package/dist/components/pencilkit/annotator-engine.d.ts +6 -0
- package/dist/components/pencilkit/annotator-engine.d.ts.map +1 -0
- package/dist/components/pencilkit/annotator-engine.js +10 -0
- package/dist/components/pencilkit/constants.d.ts +38 -20
- package/dist/components/pencilkit/constants.d.ts.map +1 -1
- package/dist/components/pencilkit/constants.js +56 -29
- package/dist/components/pencilkit/image-annotator.d.ts +50 -0
- package/dist/components/pencilkit/image-annotator.d.ts.map +1 -0
- package/dist/components/pencilkit/image-annotator.js +171 -0
- package/dist/components/pencilkit/index.d.ts +13 -0
- package/dist/components/pencilkit/index.d.ts.map +1 -0
- package/dist/components/pencilkit/index.js +7 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts +27 -14
- package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-canvas.js +141 -84
- package/dist/components/pencilkit/pencil-toolbar.d.ts +62 -51
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.js +255 -149
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +5 -5
- package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.js +44 -31
- package/dist/components/pencilkit/stroke-path.d.ts +6 -6
- package/dist/components/pencilkit/stroke-path.d.ts.map +1 -1
- package/dist/components/pencilkit/stroke-path.js +14 -15
- package/dist/components/pencilkit/use-pencil-history.d.ts +7 -4
- package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -1
- package/dist/components/pencilkit/use-pencil-history.js +29 -16
- package/dist/components/popover.d.ts +28 -14
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +62 -27
- package/dist/components/progress-ring.d.ts +35 -42
- package/dist/components/progress-ring.d.ts.map +1 -1
- package/dist/components/progress-ring.js +77 -82
- package/dist/components/progress-stepper.d.ts +38 -17
- package/dist/components/progress-stepper.d.ts.map +1 -1
- package/dist/components/progress-stepper.js +123 -51
- package/dist/components/progress.d.ts +15 -6
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +48 -30
- package/dist/components/qr-code.d.ts +30 -0
- package/dist/components/qr-code.d.ts.map +1 -0
- package/dist/components/qr-code.js +90 -0
- package/dist/components/radio-group.d.ts +11 -7
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js +27 -23
- package/dist/components/replay-debugger/cache.d.ts +181 -0
- package/dist/components/replay-debugger/cache.d.ts.map +1 -0
- package/dist/components/replay-debugger/cache.js +348 -0
- package/dist/components/replay-debugger/code.d.ts +16 -0
- package/dist/components/replay-debugger/code.d.ts.map +1 -0
- package/dist/components/replay-debugger/code.js +171 -0
- package/dist/components/replay-debugger/console.d.ts +12 -0
- package/dist/components/replay-debugger/console.d.ts.map +1 -0
- package/dist/components/replay-debugger/console.js +144 -0
- package/dist/components/replay-debugger/debugger.d.ts +18 -0
- package/dist/components/replay-debugger/debugger.d.ts.map +1 -0
- package/dist/components/replay-debugger/debugger.js +254 -0
- package/dist/components/replay-debugger/full-stack.d.ts +11 -0
- package/dist/components/replay-debugger/full-stack.d.ts.map +1 -0
- package/dist/components/replay-debugger/full-stack.js +163 -0
- package/dist/components/replay-debugger/host.d.ts +298 -0
- package/dist/components/replay-debugger/host.d.ts.map +1 -0
- package/dist/components/replay-debugger/index.d.ts +22 -0
- package/dist/components/replay-debugger/index.d.ts.map +1 -0
- package/dist/components/replay-debugger/index.js +20 -0
- package/dist/components/replay-debugger/line-panels.d.ts +15 -0
- package/dist/components/replay-debugger/line-panels.d.ts.map +1 -0
- package/dist/components/replay-debugger/line-panels.js +199 -0
- package/dist/components/replay-debugger/model.d.ts +338 -0
- package/dist/components/replay-debugger/model.d.ts.map +1 -0
- package/dist/components/replay-debugger/model.js +741 -0
- package/dist/components/replay-debugger/replay-view.d.ts +19 -0
- package/dist/components/replay-debugger/replay-view.d.ts.map +1 -0
- package/dist/components/replay-debugger/replay-view.js +51 -0
- package/dist/components/replay-debugger/request-points.d.ts +20 -0
- package/dist/components/replay-debugger/request-points.d.ts.map +1 -0
- package/dist/components/replay-debugger/request-points.js +200 -0
- package/dist/components/replay-debugger/seed-stops.d.ts +9 -0
- package/dist/components/replay-debugger/seed-stops.d.ts.map +1 -0
- package/dist/components/replay-debugger/seed-stops.js +12 -0
- package/dist/components/replay-debugger/session-debugger.d.ts +20 -0
- package/dist/components/replay-debugger/session-debugger.d.ts.map +1 -0
- package/dist/components/replay-debugger/session-debugger.js +94 -0
- package/dist/components/replay-debugger/session-flame.d.ts +21 -0
- package/dist/components/replay-debugger/session-flame.d.ts.map +1 -0
- package/dist/components/replay-debugger/session-flame.js +90 -0
- package/dist/components/replay-debugger/session-timeline.d.ts +30 -0
- package/dist/components/replay-debugger/session-timeline.d.ts.map +1 -0
- package/dist/components/replay-debugger/session-timeline.js +102 -0
- package/dist/components/replay-debugger/session.d.ts +145 -0
- package/dist/components/replay-debugger/session.d.ts.map +1 -0
- package/dist/components/replay-debugger/session.js +147 -0
- package/dist/components/replay-debugger/source-tree.d.ts +15 -0
- package/dist/components/replay-debugger/source-tree.d.ts.map +1 -0
- package/dist/components/replay-debugger/source-tree.js +47 -0
- package/dist/components/replay-debugger/sources.d.ts +14 -0
- package/dist/components/replay-debugger/sources.d.ts.map +1 -0
- package/dist/components/replay-debugger/sources.js +92 -0
- package/dist/components/replay-debugger/stack.d.ts +25 -0
- package/dist/components/replay-debugger/stack.d.ts.map +1 -0
- package/dist/components/replay-debugger/stack.js +243 -0
- package/dist/components/replay-debugger/styles.d.ts +7 -0
- package/dist/components/replay-debugger/styles.d.ts.map +1 -0
- package/dist/components/replay-debugger/timeline.d.ts +8 -0
- package/dist/components/replay-debugger/timeline.d.ts.map +1 -0
- package/dist/components/replay-debugger/timeline.js +92 -0
- package/dist/components/replay-debugger/toolbar.d.ts +27 -0
- package/dist/components/replay-debugger/toolbar.d.ts.map +1 -0
- package/dist/components/replay-debugger/toolbar.js +177 -0
- package/dist/components/replay-debugger/use-model.d.ts +4 -0
- package/dist/components/replay-debugger/use-model.d.ts.map +1 -0
- package/dist/components/replay-debugger/use-model.js +8 -0
- package/dist/components/replay-debugger/values.d.ts +21 -0
- package/dist/components/replay-debugger/values.d.ts.map +1 -0
- package/dist/components/replay-debugger/values.js +189 -0
- package/dist/components/replay-preview.d.ts +2 -3
- package/dist/components/replay-preview.d.ts.map +1 -1
- package/dist/components/replay-preview.js +2 -3
- package/dist/components/request-table.d.ts +23 -70
- package/dist/components/request-table.d.ts.map +1 -1
- package/dist/components/request-table.js +197 -615
- package/dist/components/scroll-area.d.ts +28 -4
- package/dist/components/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area.js +59 -15
- package/dist/components/search-input.d.ts +29 -0
- package/dist/components/search-input.d.ts.map +1 -0
- package/dist/components/search-input.js +71 -0
- package/dist/components/segmented.d.ts +34 -19
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.js +54 -27
- package/dist/components/select.d.ts +41 -21
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +125 -64
- package/dist/components/separator.d.ts +4 -4
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +8 -14
- package/dist/components/sheet.d.ts +63 -23
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +222 -45
- package/dist/components/sidebar.d.ts +109 -67
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +304 -245
- package/dist/components/skeleton.d.ts +8 -9
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.js +24 -29
- package/dist/components/slider.d.ts +32 -23
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +87 -89
- package/dist/components/spinner.d.ts +36 -28
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/spinner.js +123 -139
- package/dist/components/split-view.d.ts +143 -180
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.js +577 -942
- package/dist/components/spreadsheet.d.ts +32 -37
- package/dist/components/spreadsheet.d.ts.map +1 -1
- package/dist/components/spreadsheet.js +273 -775
- package/dist/components/sql-console.d.ts +92 -15
- package/dist/components/sql-console.d.ts.map +1 -1
- package/dist/components/sql-console.js +788 -294
- package/dist/components/state-diagram.d.ts +59 -0
- package/dist/components/state-diagram.d.ts.map +1 -0
- package/dist/components/state-diagram.js +1001 -0
- package/dist/components/stl-viewer.d.ts +2 -2
- package/dist/components/stl-viewer.d.ts.map +1 -1
- package/dist/components/stl-viewer.js +2 -2
- package/dist/components/strudel-player.d.ts +2 -2
- package/dist/components/strudel-player.d.ts.map +1 -1
- package/dist/components/strudel-player.js +2 -2
- package/dist/components/swap.d.ts +20 -0
- package/dist/components/swap.d.ts.map +1 -0
- package/dist/components/swap.js +60 -0
- package/dist/components/switch.d.ts +13 -13
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +37 -22
- package/dist/components/tabs.d.ts +119 -21
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +399 -67
- package/dist/components/tailscale-controls.d.ts +116 -0
- package/dist/components/tailscale-controls.d.ts.map +1 -0
- package/dist/components/tailscale-controls.js +291 -0
- package/dist/components/terminal.d.ts +6 -2
- package/dist/components/terminal.d.ts.map +1 -1
- package/dist/components/terminal.js +105 -101
- package/dist/components/text-morph.d.ts +6 -5
- package/dist/components/text-morph.d.ts.map +1 -1
- package/dist/components/text-morph.js +108 -79
- package/dist/components/textarea.d.ts +4 -4
- package/dist/components/textarea.d.ts.map +1 -1
- package/dist/components/textarea.js +11 -17
- package/dist/components/toast.d.ts +70 -104
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/toast.js +181 -386
- package/dist/components/toggle.d.ts +28 -6
- package/dist/components/toggle.d.ts.map +1 -1
- package/dist/components/toggle.js +92 -23
- package/dist/components/toolbar.d.ts +65 -0
- package/dist/components/toolbar.d.ts.map +1 -0
- package/dist/components/toolbar.js +140 -0
- package/dist/components/tooltip.d.ts +15 -7
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip.js +48 -35
- package/dist/components/trace-timeline.d.ts +47 -32
- package/dist/components/trace-timeline.d.ts.map +1 -1
- package/dist/components/trace-timeline.js +658 -568
- package/dist/components/tree.d.ts +121 -52
- package/dist/components/tree.d.ts.map +1 -1
- package/dist/components/tree.js +539 -495
- package/dist/components/tui-preview.d.ts +2 -2
- package/dist/components/tui-preview.d.ts.map +1 -1
- package/dist/components/tui-preview.js +2 -2
- package/dist/components/vault-gate.d.ts +63 -14
- package/dist/components/vault-gate.d.ts.map +1 -1
- package/dist/components/vault-gate.js +445 -209
- package/dist/components/video-preview.d.ts +21 -25
- package/dist/components/video-preview.d.ts.map +1 -1
- package/dist/components/video-preview.js +92 -94
- package/dist/components/video-timeline.d.ts +29 -43
- package/dist/components/video-timeline.d.ts.map +1 -1
- package/dist/components/video-timeline.js +389 -391
- package/dist/components/waveform.d.ts +8 -5
- package/dist/components/waveform.d.ts.map +1 -1
- package/dist/components/waveform.js +77 -38
- package/dist/components/workspace.d.ts +4754 -10
- package/dist/components/workspace.d.ts.map +1 -1
- package/dist/components/workspace.js +387 -57
- package/dist/docstream/asset-resolver.d.ts +11 -0
- package/dist/docstream/asset-resolver.d.ts.map +1 -0
- package/dist/docstream/asset-resolver.js +41 -0
- package/dist/docstream/asset-resolver.js.map +1 -0
- package/dist/docstream/assets.d.ts +4 -0
- package/dist/docstream/assets.d.ts.map +1 -0
- package/dist/docstream/assets.js +21 -0
- package/dist/docstream/assets.js.map +1 -0
- package/dist/docstream/capnp/CapnpDiagram.d.ts +36 -0
- package/dist/docstream/capnp/CapnpDiagram.d.ts.map +1 -0
- package/dist/docstream/capnp/CapnpDiagram.js +88 -0
- package/dist/docstream/capnp/CapnpDiagram.js.map +1 -0
- package/dist/docstream/capnp/index.d.ts +3 -0
- package/dist/docstream/capnp/index.d.ts.map +1 -0
- package/dist/docstream/capnp/index.js +2 -0
- package/dist/docstream/capnp/index.js.map +1 -0
- package/dist/docstream/demo/DemoViewer.d.ts +82 -0
- package/dist/docstream/demo/DemoViewer.d.ts.map +1 -0
- package/dist/docstream/demo/DemoViewer.js +460 -0
- package/dist/docstream/demo/DemoViewer.js.map +1 -0
- package/dist/docstream/demo/PathBreadcrumb.d.ts +54 -0
- package/dist/docstream/demo/PathBreadcrumb.d.ts.map +1 -0
- package/dist/docstream/demo/PathBreadcrumb.js +156 -0
- package/dist/docstream/demo/PathBreadcrumb.js.map +1 -0
- package/dist/docstream/demo/clipboard.d.ts +70 -0
- package/dist/docstream/demo/clipboard.d.ts.map +1 -0
- package/dist/docstream/demo/clipboard.js +187 -0
- package/dist/docstream/demo/clipboard.js.map +1 -0
- package/dist/docstream/demo/context.d.ts +20 -0
- package/dist/docstream/demo/context.d.ts.map +1 -0
- package/dist/docstream/demo/context.js +31 -0
- package/dist/docstream/demo/context.js.map +1 -0
- package/dist/docstream/demo/copy-demo.d.ts +26 -0
- package/dist/docstream/demo/copy-demo.d.ts.map +1 -0
- package/dist/docstream/demo/copy-demo.js +94 -0
- package/dist/docstream/demo/copy-demo.js.map +1 -0
- package/dist/docstream/demo/glob.d.ts +60 -0
- package/dist/docstream/demo/glob.d.ts.map +1 -0
- package/dist/docstream/demo/glob.js +158 -0
- package/dist/docstream/demo/glob.js.map +1 -0
- package/dist/docstream/demo/index.d.ts +16 -0
- package/dist/docstream/demo/index.d.ts.map +1 -0
- package/dist/docstream/demo/index.js +9 -0
- package/dist/docstream/demo/index.js.map +1 -0
- package/dist/docstream/demo/markdown.d.ts +60 -0
- package/dist/docstream/demo/markdown.d.ts.map +1 -0
- package/dist/docstream/demo/markdown.js +181 -0
- package/dist/docstream/demo/markdown.js.map +1 -0
- package/dist/docstream/demo/surface.d.ts +11 -0
- package/dist/docstream/demo/surface.d.ts.map +1 -0
- package/dist/docstream/demo/surface.js +69 -0
- package/dist/docstream/demo/surface.js.map +1 -0
- package/dist/docstream/demo/types.d.ts +93 -0
- package/dist/docstream/demo/types.d.ts.map +1 -0
- package/dist/docstream/demo/types.js +2 -0
- package/dist/docstream/demo/types.js.map +1 -0
- package/dist/docstream/demo/vfs.d.ts +51 -0
- package/dist/docstream/demo/vfs.d.ts.map +1 -0
- package/dist/docstream/demo/vfs.js +156 -0
- package/dist/docstream/demo/vfs.js.map +1 -0
- package/dist/docstream/doc-env.d.ts +62 -0
- package/dist/docstream/doc-env.d.ts.map +1 -0
- package/dist/docstream/doc-env.js +124 -0
- package/dist/docstream/doc-env.js.map +1 -0
- package/dist/docstream/docs/CollapsibleCode.d.ts +14 -0
- package/dist/docstream/docs/CollapsibleCode.d.ts.map +1 -0
- package/dist/docstream/docs/CollapsibleCode.js +19 -0
- package/dist/docstream/docs/CollapsibleCode.js.map +1 -0
- package/dist/docstream/docs/DocsRenderer.d.ts +91 -0
- package/dist/docstream/docs/DocsRenderer.d.ts.map +1 -0
- package/dist/docstream/docs/DocsRenderer.js +442 -0
- package/dist/docstream/docs/DocsRenderer.js.map +1 -0
- package/dist/docstream/docs/DocumentProperties.d.ts +17 -0
- package/dist/docstream/docs/DocumentProperties.d.ts.map +1 -0
- package/dist/docstream/docs/DocumentProperties.js +71 -0
- package/dist/docstream/docs/DocumentProperties.js.map +1 -0
- package/dist/docstream/docs/HighlightedCode.d.ts +6 -0
- package/dist/docstream/docs/HighlightedCode.d.ts.map +1 -0
- package/dist/docstream/docs/HighlightedCode.js +74 -0
- package/dist/docstream/docs/HighlightedCode.js.map +1 -0
- package/dist/docstream/docs/ImageThumbnail.d.ts +18 -0
- package/dist/docstream/docs/ImageThumbnail.d.ts.map +1 -0
- package/dist/docstream/docs/ImageThumbnail.js +32 -0
- package/dist/docstream/docs/ImageThumbnail.js.map +1 -0
- package/dist/docstream/docs/Mermaid.d.ts +25 -0
- package/dist/docstream/docs/Mermaid.d.ts.map +1 -0
- package/dist/docstream/docs/Mermaid.js +61 -0
- package/dist/docstream/docs/Mermaid.js.map +1 -0
- package/dist/docstream/docs/PageActions.d.ts +33 -0
- package/dist/docstream/docs/PageActions.d.ts.map +1 -0
- package/dist/docstream/docs/PageActions.js +55 -0
- package/dist/docstream/docs/PageActions.js.map +1 -0
- package/dist/docstream/docs/SplitCard.d.ts +25 -0
- package/dist/docstream/docs/SplitCard.d.ts.map +1 -0
- package/dist/docstream/docs/SplitCard.js +23 -0
- package/dist/docstream/docs/SplitCard.js.map +1 -0
- package/dist/docstream/docs/TaskCheckbox.d.ts +32 -0
- package/dist/docstream/docs/TaskCheckbox.d.ts.map +1 -0
- package/dist/docstream/docs/TaskCheckbox.js +51 -0
- package/dist/docstream/docs/TaskCheckbox.js.map +1 -0
- package/dist/docstream/docs/code-render.d.ts +17 -0
- package/dist/docstream/docs/code-render.d.ts.map +1 -0
- package/dist/docstream/docs/code-render.js +4 -0
- package/dist/docstream/docs/code-render.js.map +1 -0
- package/dist/docstream/docs/controls.d.ts +23 -0
- package/dist/docstream/docs/controls.d.ts.map +1 -0
- package/dist/docstream/docs/controls.js +14 -0
- package/dist/docstream/docs/controls.js.map +1 -0
- package/dist/docstream/docs/copy.d.ts +25 -0
- package/dist/docstream/docs/copy.d.ts.map +1 -0
- package/dist/docstream/docs/copy.js +65 -0
- package/dist/docstream/docs/copy.js.map +1 -0
- package/dist/docstream/docs/math.d.ts +3 -0
- package/dist/docstream/docs/math.d.ts.map +1 -0
- package/dist/docstream/docs/math.js +12 -0
- package/dist/docstream/docs/math.js.map +1 -0
- package/dist/docstream/docs/properties.css +31 -0
- package/dist/docstream/docs/reference.d.ts +27 -0
- package/dist/docstream/docs/reference.d.ts.map +1 -0
- package/dist/docstream/docs/reference.js +74 -0
- package/dist/docstream/docs/reference.js.map +1 -0
- package/dist/docstream/docs/tabs-sync.d.ts +5 -0
- package/dist/docstream/docs/tabs-sync.d.ts.map +1 -0
- package/dist/docstream/docs/tabs-sync.js +58 -0
- package/dist/docstream/docs/tabs-sync.js.map +1 -0
- package/dist/docstream/docs/tasks.css +16 -0
- package/dist/docstream/env-keychain.d.ts +49 -0
- package/dist/docstream/env-keychain.d.ts.map +1 -0
- package/dist/docstream/env-keychain.js +201 -0
- package/dist/docstream/env-keychain.js.map +1 -0
- package/dist/docstream/gitbook/ast.d.ts +528 -0
- package/dist/docstream/gitbook/ast.d.ts.map +1 -0
- package/dist/docstream/gitbook/ast.js +8 -0
- package/dist/docstream/gitbook/ast.js.map +1 -0
- package/dist/docstream/gitbook/attrs.d.ts +14 -0
- package/dist/docstream/gitbook/attrs.d.ts.map +1 -0
- package/dist/docstream/gitbook/attrs.js +36 -0
- package/dist/docstream/gitbook/attrs.js.map +1 -0
- package/dist/docstream/gitbook/flatten.d.ts +14 -0
- package/dist/docstream/gitbook/flatten.d.ts.map +1 -0
- package/dist/docstream/gitbook/flatten.js +45 -0
- package/dist/docstream/gitbook/flatten.js.map +1 -0
- package/dist/docstream/gitbook/index.d.ts +14 -0
- package/dist/docstream/gitbook/index.d.ts.map +1 -0
- package/dist/docstream/gitbook/index.js +11 -0
- package/dist/docstream/gitbook/index.js.map +1 -0
- package/dist/docstream/gitbook/inline.d.ts +28 -0
- package/dist/docstream/gitbook/inline.d.ts.map +1 -0
- package/dist/docstream/gitbook/inline.js +956 -0
- package/dist/docstream/gitbook/inline.js.map +1 -0
- package/dist/docstream/gitbook/outline.d.ts +16 -0
- package/dist/docstream/gitbook/outline.d.ts.map +1 -0
- package/dist/docstream/gitbook/outline.js +44 -0
- package/dist/docstream/gitbook/outline.js.map +1 -0
- package/dist/docstream/gitbook/package-managers.d.ts +12 -0
- package/dist/docstream/gitbook/package-managers.d.ts.map +1 -0
- package/dist/docstream/gitbook/package-managers.js +93 -0
- package/dist/docstream/gitbook/package-managers.js.map +1 -0
- package/dist/docstream/gitbook/parse.d.ts +44 -0
- package/dist/docstream/gitbook/parse.d.ts.map +1 -0
- package/dist/docstream/gitbook/parse.js +1139 -0
- package/dist/docstream/gitbook/parse.js.map +1 -0
- package/dist/docstream/gitbook/properties.d.ts +15 -0
- package/dist/docstream/gitbook/properties.d.ts.map +1 -0
- package/dist/docstream/gitbook/properties.js +45 -0
- package/dist/docstream/gitbook/properties.js.map +1 -0
- package/dist/docstream/gitbook/serialize.d.ts +23 -0
- package/dist/docstream/gitbook/serialize.d.ts.map +1 -0
- package/dist/docstream/gitbook/serialize.js +507 -0
- package/dist/docstream/gitbook/serialize.js.map +1 -0
- package/dist/docstream/gitbook/tasks.d.ts +11 -0
- package/dist/docstream/gitbook/tasks.d.ts.map +1 -0
- package/dist/docstream/gitbook/tasks.js +21 -0
- package/dist/docstream/gitbook/tasks.js.map +1 -0
- package/dist/docstream/gitbook/thumbnail.d.ts +10 -0
- package/dist/docstream/gitbook/thumbnail.d.ts.map +1 -0
- package/dist/docstream/gitbook/thumbnail.js +18 -0
- package/dist/docstream/gitbook/thumbnail.js.map +1 -0
- package/dist/docstream/index.d.ts +69 -0
- package/dist/docstream/index.d.ts.map +1 -0
- package/dist/docstream/index.js +42 -0
- package/dist/docstream/index.js.map +1 -0
- package/dist/docstream/openapi/OpenApiOperation.d.ts +6 -0
- package/dist/docstream/openapi/OpenApiOperation.d.ts.map +1 -0
- package/dist/docstream/openapi/OpenApiOperation.js +122 -0
- package/dist/docstream/openapi/OpenApiOperation.js.map +1 -0
- package/dist/docstream/playground/InlineDemoPreview.d.ts +24 -0
- package/dist/docstream/playground/InlineDemoPreview.d.ts.map +1 -0
- package/dist/docstream/playground/InlineDemoPreview.js +48 -0
- package/dist/docstream/playground/InlineDemoPreview.js.map +1 -0
- package/dist/docstream/playground/PlaygroundStreamdown.d.ts +16 -0
- package/dist/docstream/playground/PlaygroundStreamdown.d.ts.map +1 -0
- package/dist/docstream/playground/PlaygroundStreamdown.js +28 -0
- package/dist/docstream/playground/PlaygroundStreamdown.js.map +1 -0
- package/dist/docstream/playground/ReactCodePreview.d.ts +64 -0
- package/dist/docstream/playground/ReactCodePreview.d.ts.map +1 -0
- package/dist/docstream/playground/ReactCodePreview.js +115 -0
- package/dist/docstream/playground/ReactCodePreview.js.map +1 -0
- package/dist/docstream/playground/filesystem.d.ts +27 -0
- package/dist/docstream/playground/filesystem.d.ts.map +1 -0
- package/dist/docstream/playground/filesystem.js +65 -0
- package/dist/docstream/playground/filesystem.js.map +1 -0
- package/dist/docstream/playground/index.d.ts +9 -0
- package/dist/docstream/playground/index.d.ts.map +1 -0
- package/dist/docstream/playground/index.js +7 -0
- package/dist/docstream/playground/index.js.map +1 -0
- package/dist/docstream/playground/project.d.ts +66 -0
- package/dist/docstream/playground/project.d.ts.map +1 -0
- package/dist/docstream/playground/project.js +155 -0
- package/dist/docstream/playground/project.js.map +1 -0
- package/dist/docstream/replay/ReplayDebugFile.d.ts +11 -0
- package/dist/docstream/replay/ReplayDebugFile.d.ts.map +1 -0
- package/dist/docstream/replay/ReplayDebugFile.js +46 -0
- package/dist/docstream/replay/ReplayDebugFile.js.map +1 -0
- package/dist/docstream/replay/ReplayDevtools.d.ts +47 -0
- package/dist/docstream/replay/ReplayDevtools.d.ts.map +1 -0
- package/dist/docstream/replay/ReplayDevtools.js +419 -0
- package/dist/docstream/replay/ReplayDevtools.js.map +1 -0
- package/dist/docstream/replay/ReplayFile.d.ts +29 -0
- package/dist/docstream/replay/ReplayFile.d.ts.map +1 -0
- package/dist/docstream/replay/ReplayFile.js +68 -0
- package/dist/docstream/replay/ReplayFile.js.map +1 -0
- package/dist/docstream/replay/ReplayPlayer.d.ts +130 -0
- package/dist/docstream/replay/ReplayPlayer.d.ts.map +1 -0
- package/dist/docstream/replay/ReplayPlayer.js +516 -0
- package/dist/docstream/replay/ReplayPlayer.js.map +1 -0
- package/dist/docstream/replay/ReplayPreview.d.ts +51 -0
- package/dist/docstream/replay/ReplayPreview.d.ts.map +1 -0
- package/dist/docstream/replay/ReplayPreview.js +97 -0
- package/dist/docstream/replay/ReplayPreview.js.map +1 -0
- package/dist/docstream/replay/ReplayStage.d.ts +10 -0
- package/dist/docstream/replay/ReplayStage.d.ts.map +1 -0
- package/dist/docstream/replay/ReplayStage.js +19 -0
- package/dist/docstream/replay/ReplayStage.js.map +1 -0
- package/dist/docstream/replay/ReplayStageImpl.d.ts +5 -0
- package/dist/docstream/replay/ReplayStageImpl.d.ts.map +1 -0
- package/dist/docstream/replay/ReplayStageImpl.js +253 -0
- package/dist/docstream/replay/ReplayStageImpl.js.map +1 -0
- package/dist/docstream/replay/captions.d.ts +10 -0
- package/dist/docstream/replay/captions.d.ts.map +1 -0
- package/dist/docstream/replay/captions.js +48 -0
- package/dist/docstream/replay/captions.js.map +1 -0
- package/dist/docstream/replay/demo/index.d.ts +3 -0
- package/dist/docstream/replay/demo/index.d.ts.map +1 -0
- package/dist/docstream/replay/demo/index.js +77 -0
- package/dist/docstream/replay/demo/index.js.map +1 -0
- package/dist/docstream/replay/devtools-parts.d.ts +2 -0
- package/dist/docstream/replay/devtools-parts.d.ts.map +1 -0
- package/dist/docstream/replay/devtools-parts.js +13 -0
- package/dist/docstream/replay/devtools-parts.js.map +1 -0
- package/dist/docstream/replay/devtools-primitives.d.ts +19 -0
- package/dist/docstream/replay/devtools-primitives.d.ts.map +1 -0
- package/dist/docstream/replay/devtools-primitives.js +173 -0
- package/dist/docstream/replay/devtools-primitives.js.map +1 -0
- package/dist/docstream/replay/devtools.d.ts +81 -0
- package/dist/docstream/replay/devtools.d.ts.map +1 -0
- package/dist/docstream/replay/devtools.js +251 -0
- package/dist/docstream/replay/devtools.js.map +1 -0
- package/dist/docstream/replay/evidence.d.ts +61 -0
- package/dist/docstream/replay/evidence.d.ts.map +1 -0
- package/dist/docstream/replay/evidence.js +84 -0
- package/dist/docstream/replay/evidence.js.map +1 -0
- package/dist/docstream/replay/index.d.ts +25 -0
- package/dist/docstream/replay/index.d.ts.map +1 -0
- package/dist/docstream/replay/index.js +14 -0
- package/dist/docstream/replay/index.js.map +1 -0
- package/dist/docstream/replay/inspections.d.ts +53 -0
- package/dist/docstream/replay/inspections.d.ts.map +1 -0
- package/dist/docstream/replay/inspections.js +80 -0
- package/dist/docstream/replay/inspections.js.map +1 -0
- package/dist/docstream/replay/markers.d.ts +59 -0
- package/dist/docstream/replay/markers.d.ts.map +1 -0
- package/dist/docstream/replay/markers.js +199 -0
- package/dist/docstream/replay/markers.js.map +1 -0
- package/dist/docstream/replay/sanitize.d.ts +4 -0
- package/dist/docstream/replay/sanitize.d.ts.map +1 -0
- package/dist/docstream/replay/sanitize.js +86 -0
- package/dist/docstream/replay/sanitize.js.map +1 -0
- package/dist/docstream/replay/sources.d.ts +11 -0
- package/dist/docstream/replay/sources.d.ts.map +1 -0
- package/dist/docstream/replay/sources.js +126 -0
- package/dist/docstream/replay/sources.js.map +1 -0
- package/dist/docstream/replay/stage-types.d.ts +106 -0
- package/dist/docstream/replay/stage-types.d.ts.map +1 -0
- package/dist/docstream/replay/stage-types.js +2 -0
- package/dist/docstream/replay/stage-types.js.map +1 -0
- package/dist/docstream/replay/types.d.ts +39 -0
- package/dist/docstream/replay/types.d.ts.map +1 -0
- package/dist/docstream/replay/types.js +36 -0
- package/dist/docstream/replay/types.js.map +1 -0
- package/dist/docstream/replay/url.d.ts +8 -0
- package/dist/docstream/replay/url.d.ts.map +1 -0
- package/dist/docstream/replay/url.js +41 -0
- package/dist/docstream/replay/url.js.map +1 -0
- package/dist/docstream/site/DocsSite.d.ts +148 -0
- package/dist/docstream/site/DocsSite.d.ts.map +1 -0
- package/dist/docstream/site/DocsSite.js +602 -0
- package/dist/docstream/site/DocsSite.js.map +1 -0
- package/dist/docstream/site/SiteNav.d.ts +13 -0
- package/dist/docstream/site/SiteNav.d.ts.map +1 -0
- package/dist/docstream/site/SiteNav.js +46 -0
- package/dist/docstream/site/SiteNav.js.map +1 -0
- package/dist/docstream/site/SiteSearch.d.ts +18 -0
- package/dist/docstream/site/SiteSearch.d.ts.map +1 -0
- package/dist/docstream/site/SiteSearch.js +42 -0
- package/dist/docstream/site/SiteSearch.js.map +1 -0
- package/dist/docstream/site/index.d.ts +7 -0
- package/dist/docstream/site/index.d.ts.map +1 -0
- package/dist/docstream/site/index.js +5 -0
- package/dist/docstream/site/index.js.map +1 -0
- package/dist/docstream/site/nav.d.ts +26 -0
- package/dist/docstream/site/nav.d.ts.map +1 -0
- package/dist/docstream/site/nav.js +70 -0
- package/dist/docstream/site/nav.js.map +1 -0
- package/dist/docstream/site/press.d.ts +4 -0
- package/dist/docstream/site/press.d.ts.map +1 -0
- package/dist/docstream/site/press.js +9 -0
- package/dist/docstream/site/press.js.map +1 -0
- package/dist/docstream/site/search.d.ts +28 -0
- package/dist/docstream/site/search.d.ts.map +1 -0
- package/dist/docstream/site/search.js +125 -0
- package/dist/docstream/site/search.js.map +1 -0
- package/dist/docstream/site/site.css +905 -0
- package/dist/docstream/site/tree.d.ts +105 -0
- package/dist/docstream/site/tree.d.ts.map +1 -0
- package/dist/docstream/site/tree.js +412 -0
- package/dist/docstream/site/tree.js.map +1 -0
- package/dist/docstream/source/SourcePreview.d.ts +13 -0
- package/dist/docstream/source/SourcePreview.d.ts.map +1 -0
- package/dist/docstream/source/SourcePreview.js +47 -0
- package/dist/docstream/source/SourcePreview.js.map +1 -0
- package/dist/docstream/source/client.d.ts +7 -0
- package/dist/docstream/source/client.d.ts.map +1 -0
- package/dist/docstream/source/client.js +52 -0
- package/dist/docstream/source/client.js.map +1 -0
- package/dist/docstream/source/index.d.ts +6 -0
- package/dist/docstream/source/index.d.ts.map +1 -0
- package/dist/docstream/source/index.js +3 -0
- package/dist/docstream/source/index.js.map +1 -0
- package/dist/docstream/source/types.d.ts +33 -0
- package/dist/docstream/source/types.d.ts.map +1 -0
- package/dist/docstream/source/types.js +2 -0
- package/dist/docstream/source/types.js.map +1 -0
- package/dist/docstream/stl/StlViewer.d.ts +27 -0
- package/dist/docstream/stl/StlViewer.d.ts.map +1 -0
- package/dist/docstream/stl/StlViewer.js +223 -0
- package/dist/docstream/stl/StlViewer.js.map +1 -0
- package/dist/docstream/stl/index.d.ts +5 -0
- package/dist/docstream/stl/index.d.ts.map +1 -0
- package/dist/docstream/stl/index.js +3 -0
- package/dist/docstream/stl/index.js.map +1 -0
- package/dist/docstream/stl/orbit-parts.d.ts +11 -0
- package/dist/docstream/stl/orbit-parts.d.ts.map +1 -0
- package/dist/docstream/stl/orbit-parts.js +12 -0
- package/dist/docstream/stl/orbit-parts.js.map +1 -0
- package/dist/docstream/stl/orbit.d.ts +19 -0
- package/dist/docstream/stl/orbit.d.ts.map +1 -0
- package/dist/docstream/stl/orbit.js +125 -0
- package/dist/docstream/stl/orbit.js.map +1 -0
- package/dist/docstream/stl/parse.d.ts +13 -0
- package/dist/docstream/stl/parse.d.ts.map +1 -0
- package/dist/docstream/stl/parse.js +73 -0
- package/dist/docstream/stl/parse.js.map +1 -0
- package/dist/docstream/streamdown.d.ts +20 -0
- package/dist/docstream/streamdown.d.ts.map +1 -0
- package/dist/docstream/streamdown.js +15 -0
- package/dist/docstream/streamdown.js.map +1 -0
- package/dist/docstream/strudel/RackGrid.d.ts +23 -0
- package/dist/docstream/strudel/RackGrid.d.ts.map +1 -0
- package/dist/docstream/strudel/RackGrid.js +79 -0
- package/dist/docstream/strudel/RackGrid.js.map +1 -0
- package/dist/docstream/strudel/StepGrid.d.ts +11 -0
- package/dist/docstream/strudel/StepGrid.d.ts.map +1 -0
- package/dist/docstream/strudel/StepGrid.js +77 -0
- package/dist/docstream/strudel/StepGrid.js.map +1 -0
- package/dist/docstream/strudel/StrudelPlayer.d.ts +50 -0
- package/dist/docstream/strudel/StrudelPlayer.d.ts.map +1 -0
- package/dist/docstream/strudel/StrudelPlayer.js +223 -0
- package/dist/docstream/strudel/StrudelPlayer.js.map +1 -0
- package/dist/docstream/strudel/StrudelRack.d.ts +33 -0
- package/dist/docstream/strudel/StrudelRack.d.ts.map +1 -0
- package/dist/docstream/strudel/StrudelRack.js +184 -0
- package/dist/docstream/strudel/StrudelRack.js.map +1 -0
- package/dist/docstream/strudel/ast/edit.d.ts +41 -0
- package/dist/docstream/strudel/ast/edit.d.ts.map +1 -0
- package/dist/docstream/strudel/ast/edit.js +78 -0
- package/dist/docstream/strudel/ast/edit.js.map +1 -0
- package/dist/docstream/strudel/ast/index.d.ts +7 -0
- package/dist/docstream/strudel/ast/index.d.ts.map +1 -0
- package/dist/docstream/strudel/ast/index.js +4 -0
- package/dist/docstream/strudel/ast/index.js.map +1 -0
- package/dist/docstream/strudel/ast/mini.d.ts +86 -0
- package/dist/docstream/strudel/ast/mini.d.ts.map +1 -0
- package/dist/docstream/strudel/ast/mini.js +272 -0
- package/dist/docstream/strudel/ast/mini.js.map +1 -0
- package/dist/docstream/strudel/ast/program.d.ts +93 -0
- package/dist/docstream/strudel/ast/program.d.ts.map +1 -0
- package/dist/docstream/strudel/ast/program.js +288 -0
- package/dist/docstream/strudel/ast/program.js.map +1 -0
- package/dist/docstream/strudel/controls.d.ts +24 -0
- package/dist/docstream/strudel/controls.d.ts.map +1 -0
- package/dist/docstream/strudel/controls.js +63 -0
- package/dist/docstream/strudel/controls.js.map +1 -0
- package/dist/docstream/strudel/engine.d.ts +43 -0
- package/dist/docstream/strudel/engine.d.ts.map +1 -0
- package/dist/docstream/strudel/engine.js +79 -0
- package/dist/docstream/strudel/engine.js.map +1 -0
- package/dist/docstream/strudel/index.d.ts +7 -0
- package/dist/docstream/strudel/index.d.ts.map +1 -0
- package/dist/docstream/strudel/index.js +6 -0
- package/dist/docstream/strudel/index.js.map +1 -0
- package/dist/docstream/strudel/knob-parts.d.ts +2 -0
- package/dist/docstream/strudel/knob-parts.d.ts.map +1 -0
- package/dist/docstream/strudel/knob-parts.js +6 -0
- package/dist/docstream/strudel/knob-parts.js.map +1 -0
- package/dist/docstream/strudel/knob.d.ts +24 -0
- package/dist/docstream/strudel/knob.d.ts.map +1 -0
- package/dist/docstream/strudel/knob.js +157 -0
- package/dist/docstream/strudel/knob.js.map +1 -0
- package/dist/docstream/strudel/panel.d.ts +13 -0
- package/dist/docstream/strudel/panel.d.ts.map +1 -0
- package/dist/docstream/strudel/panel.js +14 -0
- package/dist/docstream/strudel/panel.js.map +1 -0
- package/dist/docstream/strudel/rack-grid-parts.d.ts +2 -0
- package/dist/docstream/strudel/rack-grid-parts.d.ts.map +1 -0
- package/dist/docstream/strudel/rack-grid-parts.js +6 -0
- package/dist/docstream/strudel/rack-grid-parts.js.map +1 -0
- package/dist/docstream/strudel/rack-grid.d.ts +27 -0
- package/dist/docstream/strudel/rack-grid.d.ts.map +1 -0
- package/dist/docstream/strudel/rack-grid.js +204 -0
- package/dist/docstream/strudel/rack-grid.js.map +1 -0
- package/dist/docstream/strudel/rack-types.d.ts +26 -0
- package/dist/docstream/strudel/rack-types.d.ts.map +1 -0
- package/dist/docstream/strudel/rack-types.js +4 -0
- package/dist/docstream/strudel/rack-types.js.map +1 -0
- package/dist/docstream/strudel/rack.d.ts +10 -0
- package/dist/docstream/strudel/rack.d.ts.map +1 -0
- package/dist/docstream/strudel/rack.js +9 -0
- package/dist/docstream/strudel/rack.js.map +1 -0
- package/dist/docstream/strudel/step-grid-parts.d.ts +2 -0
- package/dist/docstream/strudel/step-grid-parts.d.ts.map +1 -0
- package/dist/docstream/strudel/step-grid-parts.js +10 -0
- package/dist/docstream/strudel/step-grid-parts.js.map +1 -0
- package/dist/docstream/strudel/step-grid.d.ts +13 -0
- package/dist/docstream/strudel/step-grid.d.ts.map +1 -0
- package/dist/docstream/strudel/step-grid.js +124 -0
- package/dist/docstream/strudel/step-grid.js.map +1 -0
- package/dist/docstream/strudel/url.d.ts +5 -0
- package/dist/docstream/strudel/url.d.ts.map +1 -0
- package/dist/docstream/strudel/url.js +9 -0
- package/dist/docstream/strudel/url.js.map +1 -0
- package/dist/docstream/styles.css +6423 -0
- package/dist/docstream/tokens.css +33 -0
- package/dist/docstream/tscircuit/TsCircuit.d.ts +12 -0
- package/dist/docstream/tscircuit/TsCircuit.d.ts.map +1 -0
- package/dist/docstream/tscircuit/TsCircuit.js +85 -0
- package/dist/docstream/tscircuit/TsCircuit.js.map +1 -0
- package/dist/docstream/tscircuit/index.d.ts +3 -0
- package/dist/docstream/tscircuit/index.d.ts.map +1 -0
- package/dist/docstream/tscircuit/index.js +2 -0
- package/dist/docstream/tscircuit/index.js.map +1 -0
- package/dist/docstream/tscircuit/worker.d.ts +2 -0
- package/dist/docstream/tscircuit/worker.d.ts.map +1 -0
- package/dist/docstream/tscircuit/worker.js +43 -0
- package/dist/docstream/tscircuit/worker.js.map +1 -0
- package/dist/docstream/tui/TuiPreview.d.ts +47 -0
- package/dist/docstream/tui/TuiPreview.d.ts.map +1 -0
- package/dist/docstream/tui/TuiPreview.js +160 -0
- package/dist/docstream/tui/TuiPreview.js.map +1 -0
- package/dist/docstream/tui/context.d.ts +6 -0
- package/dist/docstream/tui/context.d.ts.map +1 -0
- package/dist/docstream/tui/context.js +3 -0
- package/dist/docstream/tui/context.js.map +1 -0
- package/dist/docstream/tui/fence.d.ts +4 -0
- package/dist/docstream/tui/fence.d.ts.map +1 -0
- package/dist/docstream/tui/fence.js +9 -0
- package/dist/docstream/tui/fence.js.map +1 -0
- package/dist/docstream/tui/index.d.ts +4 -0
- package/dist/docstream/tui/index.d.ts.map +1 -0
- package/dist/docstream/tui/index.js +3 -0
- package/dist/docstream/tui/index.js.map +1 -0
- package/dist/docstream/ui/details-collapsible.d.ts +13 -0
- package/dist/docstream/ui/details-collapsible.d.ts.map +1 -0
- package/dist/docstream/ui/details-collapsible.js +31 -0
- package/dist/docstream/ui/details-collapsible.js.map +1 -0
- package/dist/docstream/ui/glyph.d.ts +3 -0
- package/dist/docstream/ui/glyph.d.ts.map +1 -0
- package/dist/docstream/ui/glyph.js +10 -0
- package/dist/docstream/ui/glyph.js.map +1 -0
- package/dist/docstream/ui/menu-current.d.ts +9 -0
- package/dist/docstream/ui/menu-current.d.ts.map +1 -0
- package/dist/docstream/ui/menu-current.js +38 -0
- package/dist/docstream/ui/menu-current.js.map +1 -0
- package/dist/docstream/ui/use-color-scheme.d.ts +10 -0
- package/dist/docstream/ui/use-color-scheme.d.ts.map +1 -0
- package/dist/docstream/ui/use-color-scheme.js +54 -0
- package/dist/docstream/ui/use-color-scheme.js.map +1 -0
- package/dist/docstream/video/VideoEmbed.d.ts +17 -0
- package/dist/docstream/video/VideoEmbed.d.ts.map +1 -0
- package/dist/docstream/video/VideoEmbed.js +12 -0
- package/dist/docstream/video/VideoEmbed.js.map +1 -0
- package/dist/docstream/video/index.d.ts +3 -0
- package/dist/docstream/video/index.d.ts.map +1 -0
- package/dist/docstream/video/index.js +2 -0
- package/dist/docstream/video/index.js.map +1 -0
- package/dist/docstream/vite/index.d.ts +29 -0
- package/dist/docstream/vite/index.d.ts.map +1 -0
- package/dist/docstream/vite/index.js +155 -0
- package/dist/docstream/vite/index.js.map +1 -0
- package/dist/docstream/viz/VizEmbed.d.ts +18 -0
- package/dist/docstream/viz/VizEmbed.d.ts.map +1 -0
- package/dist/docstream/viz/VizEmbed.js +12 -0
- package/dist/docstream/viz/VizEmbed.js.map +1 -0
- package/dist/docstream/viz/index.d.ts +4 -0
- package/dist/docstream/viz/index.d.ts.map +1 -0
- package/dist/docstream/viz/index.js +3 -0
- package/dist/docstream/viz/index.js.map +1 -0
- package/dist/docstream/xstate/XStateDiagram.d.ts +16 -0
- package/dist/docstream/xstate/XStateDiagram.d.ts.map +1 -0
- package/dist/docstream/xstate/XStateDiagram.js +62 -0
- package/dist/docstream/xstate/XStateDiagram.js.map +1 -0
- package/dist/docstream/xstate/index.d.ts +3 -0
- package/dist/docstream/xstate/index.d.ts.map +1 -0
- package/dist/docstream/xstate/index.js +2 -0
- package/dist/docstream/xstate/index.js.map +1 -0
- package/dist/docstream/xstate/machine.d.ts +5 -0
- package/dist/docstream/xstate/machine.d.ts.map +1 -0
- package/dist/docstream/xstate/machine.js +64 -0
- package/dist/docstream/xstate/machine.js.map +1 -0
- package/dist/docstream-editor/editor/Editor.d.ts +167 -0
- package/dist/docstream-editor/editor/Editor.d.ts.map +1 -0
- package/dist/docstream-editor/editor/Editor.js +438 -0
- package/dist/docstream-editor/editor/Editor.js.map +1 -0
- package/dist/docstream-editor/editor/ReactDemoEditor.d.ts +29 -0
- package/dist/docstream-editor/editor/ReactDemoEditor.d.ts.map +1 -0
- package/dist/docstream-editor/editor/ReactDemoEditor.js +49 -0
- package/dist/docstream-editor/editor/ReactDemoEditor.js.map +1 -0
- package/dist/docstream-editor/editor/SourceFileEditor.d.ts +15 -0
- package/dist/docstream-editor/editor/SourceFileEditor.d.ts.map +1 -0
- package/dist/docstream-editor/editor/SourceFileEditor.js +79 -0
- package/dist/docstream-editor/editor/SourceFileEditor.js.map +1 -0
- package/dist/docstream-editor/editor/attachments.d.ts +54 -0
- package/dist/docstream-editor/editor/attachments.d.ts.map +1 -0
- package/dist/docstream-editor/editor/attachments.js +185 -0
- package/dist/docstream-editor/editor/attachments.js.map +1 -0
- package/dist/docstream-editor/editor/controls.d.ts +52 -0
- package/dist/docstream-editor/editor/controls.d.ts.map +1 -0
- package/dist/docstream-editor/editor/controls.js +75 -0
- package/dist/docstream-editor/editor/controls.js.map +1 -0
- package/dist/docstream-editor/editor/convert.d.ts +35 -0
- package/dist/docstream-editor/editor/convert.d.ts.map +1 -0
- package/dist/docstream-editor/editor/convert.js +869 -0
- package/dist/docstream-editor/editor/convert.js.map +1 -0
- package/dist/docstream-editor/editor/demo-clipboard.d.ts +56 -0
- package/dist/docstream-editor/editor/demo-clipboard.d.ts.map +1 -0
- package/dist/docstream-editor/editor/demo-clipboard.js +146 -0
- package/dist/docstream-editor/editor/demo-clipboard.js.map +1 -0
- package/dist/docstream-editor/editor/document-properties.d.ts +29 -0
- package/dist/docstream-editor/editor/document-properties.d.ts.map +1 -0
- package/dist/docstream-editor/editor/document-properties.js +45 -0
- package/dist/docstream-editor/editor/document-properties.js.map +1 -0
- package/dist/docstream-editor/editor/extensions.d.ts +83 -0
- package/dist/docstream-editor/editor/extensions.d.ts.map +1 -0
- package/dist/docstream-editor/editor/extensions.js +227 -0
- package/dist/docstream-editor/editor/extensions.js.map +1 -0
- package/dist/docstream-editor/editor/glyph.d.ts +3 -0
- package/dist/docstream-editor/editor/glyph.d.ts.map +1 -0
- package/dist/docstream-editor/editor/glyph.js +8 -0
- package/dist/docstream-editor/editor/glyph.js.map +1 -0
- package/dist/docstream-editor/editor/gpu-highlight.d.ts +3 -0
- package/dist/docstream-editor/editor/gpu-highlight.d.ts.map +1 -0
- package/dist/docstream-editor/editor/gpu-highlight.js +98 -0
- package/dist/docstream-editor/editor/gpu-highlight.js.map +1 -0
- package/dist/docstream-editor/editor/nodes.d.ts +41 -0
- package/dist/docstream-editor/editor/nodes.d.ts.map +1 -0
- package/dist/docstream-editor/editor/nodes.js +1014 -0
- package/dist/docstream-editor/editor/nodes.js.map +1 -0
- package/dist/docstream-editor/editor/reference-menu.d.ts +33 -0
- package/dist/docstream-editor/editor/reference-menu.d.ts.map +1 -0
- package/dist/docstream-editor/editor/reference-menu.js +94 -0
- package/dist/docstream-editor/editor/reference-menu.js.map +1 -0
- package/dist/docstream-editor/editor/runtime.d.ts +42 -0
- package/dist/docstream-editor/editor/runtime.d.ts.map +1 -0
- package/dist/docstream-editor/editor/runtime.js +10 -0
- package/dist/docstream-editor/editor/runtime.js.map +1 -0
- package/dist/docstream-editor/editor/slash-menu.d.ts +21 -0
- package/dist/docstream-editor/editor/slash-menu.d.ts.map +1 -0
- package/dist/docstream-editor/editor/slash-menu.js +267 -0
- package/dist/docstream-editor/editor/slash-menu.js.map +1 -0
- package/dist/docstream-editor/editor/task-item.d.ts +12 -0
- package/dist/docstream-editor/editor/task-item.d.ts.map +1 -0
- package/dist/docstream-editor/editor/task-item.js +94 -0
- package/dist/docstream-editor/editor/task-item.js.map +1 -0
- package/dist/docstream-editor/editor/trigger-adapter.d.ts +20 -0
- package/dist/docstream-editor/editor/trigger-adapter.d.ts.map +1 -0
- package/dist/docstream-editor/editor/trigger-adapter.js +224 -0
- package/dist/docstream-editor/editor/trigger-adapter.js.map +1 -0
- package/dist/docstream-editor/editor/trigger-menu.d.ts +45 -0
- package/dist/docstream-editor/editor/trigger-menu.d.ts.map +1 -0
- package/dist/docstream-editor/editor/trigger-menu.js +143 -0
- package/dist/docstream-editor/editor/trigger-menu.js.map +1 -0
- package/dist/docstream-editor/index.d.ts +30 -0
- package/dist/docstream-editor/index.d.ts.map +1 -0
- package/dist/docstream-editor/index.js +21 -0
- package/dist/docstream-editor/index.js.map +1 -0
- package/dist/docstream-editor/styles.css +1457 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +140 -307
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +104 -192
- package/dist/lib/adaptive-pane-primitive.d.ts +1920 -0
- package/dist/lib/adaptive-pane-primitive.d.ts.map +1 -0
- package/dist/lib/adaptive-pane-primitive.js +312 -0
- package/dist/lib/back.d.ts +13 -0
- package/dist/lib/back.d.ts.map +1 -0
- package/dist/lib/back.js +77 -0
- package/dist/lib/breadcrumb-primitive.d.ts +348 -0
- package/dist/lib/breadcrumb-primitive.d.ts.map +1 -0
- package/dist/lib/breadcrumb-primitive.js +119 -0
- package/dist/lib/calendar-months.d.ts +2 -0
- package/dist/lib/calendar-months.d.ts.map +1 -0
- package/dist/lib/calendar-months.js +6 -0
- package/dist/lib/canvas-math.d.ts +11 -20
- package/dist/lib/canvas-math.d.ts.map +1 -1
- package/dist/lib/canvas-math.js +64 -86
- package/dist/lib/canvas-primitive.d.ts +2409 -0
- package/dist/lib/canvas-primitive.d.ts.map +1 -0
- package/dist/lib/canvas-primitive.js +349 -0
- package/dist/lib/change-details.d.ts +12 -0
- package/dist/lib/change-details.d.ts.map +1 -0
- package/dist/lib/change-details.js +18 -0
- package/dist/lib/cloudflare-board.d.ts +125 -0
- package/dist/lib/cloudflare-board.d.ts.map +1 -0
- package/dist/lib/cloudflare-board.js +496 -0
- package/dist/lib/cloudflare-catalog.d.ts +193 -0
- package/dist/lib/cloudflare-catalog.d.ts.map +1 -0
- package/dist/lib/cloudflare-catalog.generated.d.ts +3 -0
- package/dist/lib/cloudflare-catalog.generated.d.ts.map +1 -0
- package/dist/lib/cloudflare-catalog.generated.js +7046 -0
- package/dist/lib/cloudflare-services.d.ts +181 -0
- package/dist/lib/cloudflare-services.d.ts.map +1 -0
- package/dist/lib/cloudflare-services.js +245 -0
- package/dist/lib/cloudflare-system.d.ts +97 -0
- package/dist/lib/cloudflare-system.d.ts.map +1 -0
- package/dist/lib/cloudflare-system.js +715 -0
- package/dist/lib/cloudflare-workerd.d.ts +66 -0
- package/dist/lib/cloudflare-workerd.d.ts.map +1 -0
- package/dist/lib/cloudflare-workerd.js +410 -0
- package/dist/lib/cloudflare-wrangler.d.ts +107 -0
- package/dist/lib/cloudflare-wrangler.d.ts.map +1 -0
- package/dist/lib/cloudflare-wrangler.js +989 -0
- package/dist/lib/code-document.d.ts +8 -8
- package/dist/lib/code-document.d.ts.map +1 -1
- package/dist/lib/code-document.js +48 -48
- package/dist/lib/code-editor-gpu.d.ts.map +1 -1
- package/dist/lib/code-editor-model.d.ts +2 -2
- package/dist/lib/code-editor-model.d.ts.map +1 -1
- package/dist/lib/code-editor-model.js +262 -261
- package/dist/lib/code-editor-primitive.d.ts +640 -0
- package/dist/lib/code-editor-primitive.d.ts.map +1 -0
- package/dist/lib/code-editor-primitive.js +134 -0
- package/dist/lib/code-editor-window.d.ts +217 -0
- package/dist/lib/code-editor-window.d.ts.map +1 -0
- package/dist/lib/code-editor-window.js +1609 -0
- package/dist/lib/container.d.ts +29 -10
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/container.js +62 -30
- package/dist/lib/controllable-state.d.ts +11 -3
- package/dist/lib/controllable-state.d.ts.map +1 -1
- package/dist/lib/controllable-state.js +13 -7
- package/dist/lib/data-table-model.d.ts +43 -0
- package/dist/lib/data-table-model.d.ts.map +1 -0
- package/dist/lib/data-table-model.js +54 -0
- package/dist/lib/data-table-primitive.d.ts +7417 -0
- package/dist/lib/data-table-primitive.d.ts.map +1 -0
- package/dist/lib/data-table-primitive.js +676 -0
- package/dist/lib/diagram-chrome.d.ts +36 -0
- package/dist/lib/diagram-chrome.d.ts.map +1 -0
- package/dist/lib/diagram-chrome.js +90 -0
- package/dist/lib/diagram-drawing.d.ts +92 -0
- package/dist/lib/diagram-drawing.d.ts.map +1 -0
- package/dist/lib/diagram-drawing.js +253 -0
- package/dist/lib/diagram-gesture.d.ts +164 -0
- package/dist/lib/diagram-gesture.d.ts.map +1 -0
- package/dist/lib/diagram-gesture.js +290 -0
- package/dist/lib/diagram-history.d.ts +28 -0
- package/dist/lib/diagram-history.d.ts.map +1 -0
- package/dist/lib/diagram-history.js +47 -0
- package/dist/lib/diagram-keyboard.d.ts +104 -0
- package/dist/lib/diagram-keyboard.d.ts.map +1 -0
- package/dist/lib/diagram-keyboard.js +266 -0
- package/dist/lib/diagram-layout/index.d.ts +205 -0
- package/dist/lib/diagram-layout/index.d.ts.map +1 -0
- package/dist/lib/diagram-layout/index.js +3640 -0
- package/dist/lib/diagram-layout/react.d.ts +26 -0
- package/dist/lib/diagram-layout/react.d.ts.map +1 -0
- package/dist/lib/diagram-layout/react.js +223 -0
- package/dist/lib/diagram-model.d.ts +513 -0
- package/dist/lib/diagram-model.d.ts.map +1 -0
- package/dist/lib/diagram-model.js +2068 -0
- package/dist/lib/diagram-primitive.d.ts +282 -0
- package/dist/lib/diagram-primitive.d.ts.map +1 -0
- package/dist/lib/diagram-primitive.js +174 -0
- package/dist/lib/diagram-text.d.ts +36 -0
- package/dist/lib/diagram-text.d.ts.map +1 -0
- package/dist/lib/diagram-text.js +154 -0
- package/dist/lib/durable-streams.d.ts +1 -1
- package/dist/lib/durable-streams.d.ts.map +1 -1
- package/dist/lib/durable-streams.js +1 -1
- package/dist/lib/edge-swipe.d.ts +37 -34
- package/dist/lib/edge-swipe.d.ts.map +1 -1
- package/dist/lib/edge-swipe.js +51 -68
- package/dist/lib/ffmpeg/react.d.ts +1 -1
- package/dist/lib/ffmpeg/react.d.ts.map +1 -1
- package/dist/lib/file-icons.d.ts +21 -0
- package/dist/lib/file-icons.d.ts.map +1 -0
- package/dist/lib/file-icons.js +284 -0
- package/dist/lib/file-size.d.ts +5 -0
- package/dist/lib/file-size.d.ts.map +1 -0
- package/dist/lib/file-size.js +7 -0
- package/dist/lib/file-upload-model.d.ts +19 -109
- package/dist/lib/file-upload-model.d.ts.map +1 -1
- package/dist/lib/file-upload-model.js +30 -290
- package/dist/lib/file-upload-primitive.d.ts +379 -0
- package/dist/lib/file-upload-primitive.d.ts.map +1 -0
- package/dist/lib/file-upload-primitive.js +319 -0
- package/dist/lib/filter-query.d.ts +5 -3
- package/dist/lib/filter-query.d.ts.map +1 -1
- package/dist/lib/filter-query.js +8 -8
- package/dist/lib/flame-chart-draw.d.ts +112 -0
- package/dist/lib/flame-chart-draw.d.ts.map +1 -0
- package/dist/lib/flame-chart-draw.js +273 -0
- package/dist/lib/flame-chart-model.d.ts +184 -0
- package/dist/lib/flame-chart-model.d.ts.map +1 -0
- package/dist/lib/flame-chart-model.js +357 -0
- package/dist/lib/flame-chart-primitive.d.ts +501 -0
- package/dist/lib/flame-chart-primitive.d.ts.map +1 -0
- package/dist/lib/flame-chart-primitive.js +248 -0
- package/dist/lib/font-stack-primitive.d.ts +1265 -0
- package/dist/lib/font-stack-primitive.d.ts.map +1 -0
- package/dist/lib/font-stack-primitive.js +124 -0
- package/dist/lib/google-fonts.d.ts.map +1 -1
- package/dist/lib/google-fonts.js +9 -1
- package/dist/lib/gpu-cron.js +5 -2
- package/dist/lib/gpu-query/index.d.ts +1 -1
- package/dist/lib/gpu-query/index.d.ts.map +1 -1
- package/dist/lib/gpu-query/index.js +123 -41
- package/dist/lib/gpu-query/kernel.wgsl.js +189 -0
- package/dist/lib/gpu-query/webgpu.js +135 -0
- package/dist/lib/gpu-time.js +42 -38
- package/dist/lib/grid-behaviors.d.ts +191 -0
- package/dist/lib/grid-behaviors.d.ts.map +1 -0
- package/dist/lib/grid-behaviors.js +329 -0
- package/dist/lib/icon-shapes/chat.d.ts.map +1 -1
- package/dist/lib/icon-shapes/docs.d.ts +205 -0
- package/dist/lib/icon-shapes/docs.d.ts.map +1 -0
- package/dist/lib/icon-shapes/docs.js +235 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -1
- package/dist/lib/icon-shapes/workbench.d.ts.map +1 -1
- package/dist/lib/icon.d.ts +244 -6
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.js +271 -180
- package/dist/lib/index-bar-primitive.d.ts +626 -0
- package/dist/lib/index-bar-primitive.d.ts.map +1 -0
- package/dist/lib/index-bar-primitive.js +187 -0
- package/dist/lib/inline-edit-primitive.d.ts +386 -0
- package/dist/lib/inline-edit-primitive.d.ts.map +1 -0
- package/dist/lib/inline-edit-primitive.js +110 -0
- package/dist/lib/kept-children.d.ts +15 -0
- package/dist/lib/kept-children.d.ts.map +1 -0
- package/dist/lib/kept-children.js +21 -0
- package/dist/lib/list-primitive.d.ts +2049 -0
- package/dist/lib/list-primitive.d.ts.map +1 -0
- package/dist/lib/list-primitive.js +285 -0
- package/dist/lib/log-list-model.d.ts +0 -48
- package/dist/lib/log-list-model.d.ts.map +1 -1
- package/dist/lib/log-list-model.js +5 -118
- package/dist/lib/log-list-primitive.d.ts +4026 -0
- package/dist/lib/log-list-primitive.d.ts.map +1 -0
- package/dist/lib/log-list-primitive.js +487 -0
- package/dist/lib/message-scroller-context.d.ts +9 -0
- package/dist/lib/message-scroller-context.d.ts.map +1 -0
- package/dist/lib/message-scroller-context.js +9 -0
- package/dist/lib/message-scroller-primitive.d.ts +362 -0
- package/dist/lib/message-scroller-primitive.d.ts.map +1 -0
- package/dist/lib/message-scroller-primitive.js +185 -0
- package/dist/lib/motion-engine.d.ts +2 -0
- package/dist/lib/motion-engine.d.ts.map +1 -0
- package/dist/lib/motion-engine.js +3 -0
- package/dist/lib/motion-lazy.d.ts +16 -0
- package/dist/lib/motion-lazy.d.ts.map +1 -0
- package/dist/lib/motion-lazy.js +35 -0
- package/dist/lib/motion.d.ts +13 -10
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +44 -32
- package/dist/lib/nav-bar.d.ts +35 -0
- package/dist/lib/nav-bar.d.ts.map +1 -0
- package/dist/lib/nav-bar.js +70 -0
- package/dist/lib/navigation-stack-primitive.d.ts +3308 -0
- package/dist/lib/navigation-stack-primitive.d.ts.map +1 -0
- package/dist/lib/navigation-stack-primitive.js +254 -0
- package/dist/lib/object-tree-model.d.ts +4 -2
- package/dist/lib/object-tree-model.d.ts.map +1 -1
- package/dist/lib/object-tree-model.js +51 -48
- package/dist/lib/object-tree-value.d.ts +3 -3
- package/dist/lib/object-tree-value.d.ts.map +1 -1
- package/dist/lib/object-tree-value.js +100 -99
- package/dist/lib/option-row.d.ts +76 -0
- package/dist/lib/option-row.d.ts.map +1 -0
- package/dist/lib/option-row.js +108 -0
- package/dist/lib/option-search-primitive.d.ts +760 -0
- package/dist/lib/option-search-primitive.d.ts.map +1 -0
- package/dist/lib/option-search-primitive.js +126 -0
- package/dist/lib/pglite-schema.d.ts +28 -1
- package/dist/lib/pglite-schema.d.ts.map +1 -1
- package/dist/lib/pglite-schema.js +42 -2
- package/dist/lib/pglite.d.ts +3 -3
- package/dist/lib/pglite.d.ts.map +1 -1
- package/dist/lib/pglite.js +5 -5
- package/dist/lib/presence.d.ts +43 -0
- package/dist/lib/presence.d.ts.map +1 -0
- package/dist/lib/presence.js +89 -0
- package/dist/lib/primitives.d.ts +81 -8
- package/dist/lib/primitives.d.ts.map +1 -1
- package/dist/lib/primitives.js +34 -6
- package/dist/lib/pull-to-refresh.d.ts +26 -21
- package/dist/lib/pull-to-refresh.d.ts.map +1 -1
- package/dist/lib/pull-to-refresh.js +50 -67
- package/dist/lib/qr.d.ts +2 -2
- package/dist/lib/qr.d.ts.map +1 -1
- package/dist/lib/reduced-motion.d.ts +4 -0
- package/dist/lib/reduced-motion.d.ts.map +1 -0
- package/dist/lib/reduced-motion.js +6 -0
- package/dist/lib/request-table-model.d.ts +11 -41
- package/dist/lib/request-table-model.d.ts.map +1 -1
- package/dist/lib/request-table-model.js +9 -53
- package/dist/lib/sandbox/command-line.d.ts +27 -0
- package/dist/lib/sandbox/command-line.d.ts.map +1 -0
- package/dist/lib/sandbox/command-line.js +68 -0
- package/dist/lib/sandbox/disk.d.ts +25 -0
- package/dist/lib/sandbox/disk.d.ts.map +1 -0
- package/dist/lib/sandbox/disk.js +158 -0
- package/dist/lib/sandbox/error.d.ts +12 -0
- package/dist/lib/sandbox/error.d.ts.map +1 -0
- package/dist/lib/sandbox/error.js +9 -0
- package/dist/lib/sandbox/host-fetch.d.ts +4 -0
- package/dist/lib/sandbox/host-fetch.d.ts.map +1 -0
- package/dist/lib/sandbox/host-fetch.js +35 -0
- package/dist/lib/sandbox/host.d.ts +83 -0
- package/dist/lib/sandbox/host.d.ts.map +1 -0
- package/dist/lib/sandbox/host.js +385 -0
- package/dist/lib/sandbox/index.d.ts +75 -0
- package/dist/lib/sandbox/index.d.ts.map +1 -0
- package/dist/lib/sandbox/index.js +165 -0
- package/dist/lib/sandbox/model.d.ts +117 -0
- package/dist/lib/sandbox/model.d.ts.map +1 -0
- package/dist/lib/sandbox/protocol.d.ts +133 -0
- package/dist/lib/sandbox/protocol.d.ts.map +1 -0
- package/dist/lib/sandbox/react.d.ts +18 -0
- package/dist/lib/sandbox/react.d.ts.map +1 -0
- package/dist/lib/sandbox/react.js +46 -0
- package/dist/lib/sandbox/serve.d.ts +32 -0
- package/dist/lib/sandbox/serve.d.ts.map +1 -0
- package/dist/lib/sandbox/serve.js +411 -0
- package/dist/lib/sandbox/spawn.d.ts +26 -0
- package/dist/lib/sandbox/spawn.d.ts.map +1 -0
- package/dist/lib/sandbox/spawn.js +75 -0
- package/dist/lib/sandbox/worker.d.ts +8 -0
- package/dist/lib/sandbox/worker.d.ts.map +1 -0
- package/dist/lib/sandbox/worker.js +8 -0
- package/dist/lib/schedule-preview.d.ts +37 -0
- package/dist/lib/schedule-preview.d.ts.map +1 -0
- package/dist/lib/schedule-preview.js +76 -0
- package/dist/lib/scroll-edge.d.ts +16 -0
- package/dist/lib/scroll-edge.d.ts.map +1 -0
- package/dist/lib/scroll-edge.js +35 -0
- package/dist/lib/search-input-primitive.d.ts +152 -0
- package/dist/lib/search-input-primitive.d.ts.map +1 -0
- package/dist/lib/search-input-primitive.js +42 -0
- package/dist/lib/selection-indicator-primitive.d.ts +83 -0
- package/dist/lib/selection-indicator-primitive.d.ts.map +1 -0
- package/dist/lib/selection-indicator-primitive.js +75 -0
- package/dist/lib/session-recorder.d.ts.map +1 -1
- package/dist/lib/session-recorder.js +1 -1
- package/dist/lib/shortcut-text.d.ts +10 -0
- package/dist/lib/shortcut-text.d.ts.map +1 -0
- package/dist/lib/shortcut-text.js +19 -0
- package/dist/lib/sidebar-primitive.d.ts +228 -0
- package/dist/lib/sidebar-primitive.d.ts.map +1 -0
- package/dist/lib/sidebar-primitive.js +101 -0
- package/dist/lib/size-class.d.ts +28 -0
- package/dist/lib/size-class.d.ts.map +1 -0
- package/dist/lib/size-class.js +17 -0
- package/dist/lib/spinner-shapes.d.ts +299 -0
- package/dist/lib/spinner-shapes.d.ts.map +1 -0
- package/dist/lib/spinner-shapes.js +876 -0
- package/dist/lib/split-view-primitive.d.ts +6137 -0
- package/dist/lib/split-view-primitive.d.ts.map +1 -0
- package/dist/lib/split-view-primitive.js +726 -0
- package/dist/lib/spreadsheet-primitive.d.ts +7518 -0
- package/dist/lib/spreadsheet-primitive.d.ts.map +1 -0
- package/dist/lib/spreadsheet-primitive.js +830 -0
- package/dist/lib/stack-parent.d.ts +29 -0
- package/dist/lib/stack-parent.d.ts.map +1 -0
- package/dist/lib/stack-parent.js +26 -0
- package/dist/lib/stack.d.ts +92 -0
- package/dist/lib/stack.d.ts.map +1 -0
- package/dist/lib/stack.js +217 -0
- package/dist/lib/state-diagram-edit.d.ts +93 -0
- package/dist/lib/state-diagram-edit.d.ts.map +1 -0
- package/dist/lib/state-diagram-edit.js +461 -0
- package/dist/lib/state-diagram-model.d.ts +251 -0
- package/dist/lib/state-diagram-model.d.ts.map +1 -0
- package/dist/lib/state-diagram-model.js +462 -0
- package/dist/lib/state-diagram-simulation.d.ts +115 -0
- package/dist/lib/state-diagram-simulation.d.ts.map +1 -0
- package/dist/lib/state-diagram-simulation.js +265 -0
- package/dist/lib/state-diagram-source.d.ts +4 -0
- package/dist/lib/state-diagram-source.d.ts.map +1 -0
- package/dist/lib/state-diagram-source.js +316 -0
- package/dist/lib/surface-flow.d.ts +28 -0
- package/dist/lib/surface-flow.d.ts.map +1 -0
- package/dist/lib/surface-flow.js +66 -0
- package/dist/lib/surface.d.ts +34 -0
- package/dist/lib/surface.d.ts.map +1 -0
- package/dist/lib/surface.js +43 -0
- package/dist/lib/syntax-lexer.d.ts +23 -0
- package/dist/lib/syntax-lexer.d.ts.map +1 -0
- package/dist/lib/syntax-lexer.js +400 -0
- package/dist/lib/syntax.d.ts +8 -21
- package/dist/lib/syntax.d.ts.map +1 -1
- package/dist/lib/syntax.js +51 -78
- package/dist/lib/tailscale-policy.js +32 -19
- package/dist/lib/tailscale-react.d.ts +1 -1
- package/dist/lib/tailscale-react.d.ts.map +1 -1
- package/dist/lib/theme-context.d.ts +14 -0
- package/dist/lib/theme-context.d.ts.map +1 -0
- package/dist/lib/theme-context.js +12 -0
- package/dist/lib/theme.d.ts +47 -25
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/theme.js +128 -62
- package/dist/lib/title-flight.d.ts +30 -10
- package/dist/lib/title-flight.d.ts.map +1 -1
- package/dist/lib/title-flight.js +73 -53
- package/dist/lib/tokens.generated.d.ts +5 -5
- package/dist/lib/tokens.generated.d.ts.map +1 -1
- package/dist/lib/tokens.generated.js +15 -4
- package/dist/lib/trace-timeline-draw.d.ts +3 -2
- package/dist/lib/trace-timeline-draw.d.ts.map +1 -1
- package/dist/lib/trace-timeline-draw.js +96 -89
- package/dist/lib/trace-timeline-model.d.ts +17 -15
- package/dist/lib/trace-timeline-model.d.ts.map +1 -1
- package/dist/lib/trace-timeline-model.js +130 -130
- package/dist/lib/trace-timeline-primitive.d.ts +502 -0
- package/dist/lib/trace-timeline-primitive.d.ts.map +1 -0
- package/dist/lib/trace-timeline-primitive.js +264 -0
- package/dist/lib/trigger-palette.d.ts +22 -0
- package/dist/lib/trigger-palette.d.ts.map +1 -0
- package/dist/lib/trigger-palette.js +35 -0
- package/dist/lib/use-copy.d.ts +16 -0
- package/dist/lib/use-copy.d.ts.map +1 -0
- package/dist/lib/use-copy.js +32 -0
- package/dist/lib/use-file-upload.d.ts +61 -0
- package/dist/lib/use-file-upload.d.ts.map +1 -0
- package/dist/lib/use-file-upload.js +65 -0
- package/dist/lib/use-font-version.d.ts +7 -0
- package/dist/lib/use-font-version.d.ts.map +1 -0
- package/dist/lib/use-font-version.js +22 -0
- package/dist/lib/use-paced.d.ts +2 -0
- package/dist/lib/use-paced.d.ts.map +1 -0
- package/dist/lib/use-paced.js +30 -0
- package/dist/lib/use-virtual-rows.d.ts +30 -0
- package/dist/lib/use-virtual-rows.d.ts.map +1 -0
- package/dist/lib/use-virtual-rows.js +40 -0
- package/dist/lib/utils.d.ts +5 -9
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +4 -2
- package/dist/lib/vault-react.d.ts +1 -1
- package/dist/lib/vault-react.d.ts.map +1 -1
- package/dist/lib/vault.js +64 -64
- package/dist/lib/video-render.js +24 -24
- package/dist/lib/video-timeline-model.d.ts +13 -2
- package/dist/lib/video-timeline-model.d.ts.map +1 -1
- package/dist/lib/video-timeline-primitive.d.ts +2066 -0
- package/dist/lib/video-timeline-primitive.d.ts.map +1 -0
- package/dist/lib/video-timeline-primitive.js +464 -0
- package/dist/lib/wave-rail.d.ts +35 -0
- package/dist/lib/wave-rail.d.ts.map +1 -0
- package/dist/lib/wave-rail.js +49 -0
- package/dist/lib/workspace-model.d.ts +126 -0
- package/dist/lib/workspace-model.d.ts.map +1 -0
- package/dist/lib/workspace-model.js +278 -0
- package/dist/lib/workspace-primitive.d.ts +2762 -0
- package/dist/lib/workspace-primitive.d.ts.map +1 -0
- package/dist/lib/workspace-primitive.js +567 -0
- package/dist/libraries/audio.d.ts +5 -0
- package/dist/libraries/audio.d.ts.map +1 -0
- package/dist/libraries/audio.js +5 -0
- package/dist/libraries/canvas.d.ts +4 -0
- package/dist/libraries/canvas.d.ts.map +1 -0
- package/dist/libraries/canvas.js +10 -0
- package/dist/libraries/composer.d.ts +5 -0
- package/dist/libraries/composer.d.ts.map +1 -0
- package/dist/libraries/composer.js +6 -0
- package/dist/libraries/diagram.d.ts +11 -0
- package/dist/libraries/diagram.d.ts.map +1 -0
- package/dist/libraries/diagram.js +13 -0
- package/dist/libraries/filter.d.ts +6 -0
- package/dist/libraries/filter.d.ts.map +1 -0
- package/dist/libraries/filter.js +7 -0
- package/dist/libraries/icons.d.ts +3 -0
- package/dist/libraries/icons.d.ts.map +1 -0
- package/dist/libraries/icons.js +3 -0
- package/dist/libraries/markdown.d.ts +5 -0
- package/dist/libraries/markdown.d.ts.map +1 -0
- package/dist/libraries/markdown.js +5 -0
- package/dist/libraries/motion.d.ts +11 -0
- package/dist/libraries/motion.d.ts.map +1 -0
- package/dist/libraries/motion.js +12 -0
- package/dist/libraries/pglite.d.ts +8 -0
- package/dist/libraries/pglite.d.ts.map +1 -0
- package/dist/libraries/pglite.js +8 -0
- package/dist/libraries/replay.d.ts +4 -0
- package/dist/libraries/replay.d.ts.map +1 -0
- package/dist/libraries/replay.js +22 -0
- package/dist/libraries/sandbox.d.ts +4 -0
- package/dist/libraries/sandbox.d.ts.map +1 -0
- package/dist/libraries/sandbox.js +5 -0
- package/dist/libraries/sql.d.ts +2 -0
- package/dist/libraries/sql.d.ts.map +1 -0
- package/dist/libraries/sql.js +2 -0
- package/dist/libraries/sync.d.ts +4 -0
- package/dist/libraries/sync.d.ts.map +1 -0
- package/dist/libraries/sync.js +4 -0
- package/dist/libraries/tailscale.d.ts +10 -0
- package/dist/libraries/tailscale.d.ts.map +1 -0
- package/dist/libraries/tailscale.js +10 -0
- package/dist/libraries/time.d.ts +9 -0
- package/dist/libraries/time.d.ts.map +1 -0
- package/dist/libraries/time.js +9 -0
- package/dist/libraries/tokens.d.ts +8 -0
- package/dist/libraries/tokens.d.ts.map +1 -0
- package/dist/libraries/tokens.js +10 -0
- package/dist/libraries/vault.d.ts +6 -0
- package/dist/libraries/vault.d.ts.map +1 -0
- package/dist/libraries/vault.js +6 -0
- package/dist/libraries/video.d.ts +9 -0
- package/dist/libraries/video.d.ts.map +1 -0
- package/dist/libraries/video.js +10 -0
- package/dist/opencode.d.ts +1 -2
- package/dist/opencode.d.ts.map +1 -1
- package/dist/opencode.js +3 -3
- package/dist/sdk/core/accordion.d.ts +2 -0
- package/dist/sdk/core/accordion.d.ts.map +1 -0
- package/dist/sdk/core/accordion.js +1 -0
- package/dist/sdk/core/agent.d.ts +2 -0
- package/dist/sdk/core/agent.d.ts.map +1 -0
- package/dist/sdk/core/agent.js +1 -0
- package/dist/sdk/core/alert-dialog.d.ts +2 -0
- package/dist/sdk/core/alert-dialog.d.ts.map +1 -0
- package/dist/sdk/core/alert-dialog.js +1 -0
- package/dist/sdk/core/async-options.d.ts +2 -0
- package/dist/sdk/core/async-options.d.ts.map +1 -0
- package/dist/sdk/core/async-options.js +1 -0
- package/dist/sdk/core/autocomplete.d.ts +2 -0
- package/dist/sdk/core/autocomplete.d.ts.map +1 -0
- package/dist/sdk/core/autocomplete.js +1 -0
- package/dist/sdk/core/avatar.d.ts +2 -0
- package/dist/sdk/core/avatar.d.ts.map +1 -0
- package/dist/sdk/core/avatar.js +1 -0
- package/dist/sdk/core/button.d.ts +2 -0
- package/dist/sdk/core/button.d.ts.map +1 -0
- package/dist/sdk/core/button.js +1 -0
- package/dist/sdk/core/calendar.d.ts +2 -0
- package/dist/sdk/core/calendar.d.ts.map +1 -0
- package/dist/sdk/core/calendar.js +1 -0
- package/dist/sdk/core/carousel.d.ts +2 -0
- package/dist/sdk/core/carousel.d.ts.map +1 -0
- package/dist/sdk/core/carousel.js +1 -0
- package/dist/sdk/core/checkbox.d.ts +2 -0
- package/dist/sdk/core/checkbox.d.ts.map +1 -0
- package/dist/sdk/core/checkbox.js +1 -0
- package/dist/sdk/core/collapsible.d.ts +2 -0
- package/dist/sdk/core/collapsible.d.ts.map +1 -0
- package/dist/sdk/core/collapsible.js +1 -0
- package/dist/sdk/core/color-picker.d.ts +2 -0
- package/dist/sdk/core/color-picker.d.ts.map +1 -0
- package/dist/sdk/core/color-picker.js +1 -0
- package/dist/sdk/core/color.d.ts +2 -0
- package/dist/sdk/core/color.d.ts.map +1 -0
- package/dist/sdk/core/color.js +1 -0
- package/dist/sdk/core/combobox.d.ts +2 -0
- package/dist/sdk/core/combobox.d.ts.map +1 -0
- package/dist/sdk/core/combobox.js +1 -0
- package/dist/sdk/core/command.d.ts +2 -0
- package/dist/sdk/core/command.d.ts.map +1 -0
- package/dist/sdk/core/command.js +1 -0
- package/dist/sdk/core/date-input.d.ts +2 -0
- package/dist/sdk/core/date-input.d.ts.map +1 -0
- package/dist/sdk/core/date-input.js +1 -0
- package/dist/sdk/core/date-picker.d.ts +2 -0
- package/dist/sdk/core/date-picker.d.ts.map +1 -0
- package/dist/sdk/core/date-picker.js +1 -0
- package/dist/sdk/core/date.d.ts +2 -0
- package/dist/sdk/core/date.d.ts.map +1 -0
- package/dist/sdk/core/date.js +1 -0
- package/dist/sdk/core/dialog.d.ts +2 -0
- package/dist/sdk/core/dialog.d.ts.map +1 -0
- package/dist/sdk/core/dialog.js +1 -0
- package/dist/sdk/core/drawer.d.ts +2 -0
- package/dist/sdk/core/drawer.d.ts.map +1 -0
- package/dist/sdk/core/drawer.js +1 -0
- package/dist/sdk/core/field.d.ts +2 -0
- package/dist/sdk/core/field.d.ts.map +1 -0
- package/dist/sdk/core/field.js +1 -0
- package/dist/sdk/core/file-input.d.ts +2 -0
- package/dist/sdk/core/file-input.d.ts.map +1 -0
- package/dist/sdk/core/file-input.js +1 -0
- package/dist/sdk/core/gesture.d.ts +2 -0
- package/dist/sdk/core/gesture.d.ts.map +1 -0
- package/dist/sdk/core/gesture.js +1 -0
- package/dist/sdk/core/history.d.ts +2 -0
- package/dist/sdk/core/history.d.ts.map +1 -0
- package/dist/sdk/core/history.js +1 -0
- package/dist/sdk/core/hover-card.d.ts +2 -0
- package/dist/sdk/core/hover-card.d.ts.map +1 -0
- package/dist/sdk/core/hover-card.js +1 -0
- package/dist/sdk/core/image-cropper.d.ts +2 -0
- package/dist/sdk/core/image-cropper.d.ts.map +1 -0
- package/dist/sdk/core/image-cropper.js +1 -0
- package/dist/sdk/core/image.d.ts +2 -0
- package/dist/sdk/core/image.d.ts.map +1 -0
- package/dist/sdk/core/image.js +1 -0
- package/dist/sdk/core/index.d.ts +2 -0
- package/dist/sdk/core/index.d.ts.map +1 -0
- package/dist/sdk/core/index.js +1 -0
- package/dist/sdk/core/input.d.ts +2 -0
- package/dist/sdk/core/input.d.ts.map +1 -0
- package/dist/sdk/core/input.js +1 -0
- package/dist/sdk/core/label.d.ts +2 -0
- package/dist/sdk/core/label.d.ts.map +1 -0
- package/dist/sdk/core/label.js +1 -0
- package/dist/sdk/core/listbox.d.ts +2 -0
- package/dist/sdk/core/listbox.d.ts.map +1 -0
- package/dist/sdk/core/listbox.js +1 -0
- package/dist/sdk/core/menu.d.ts +2 -0
- package/dist/sdk/core/menu.d.ts.map +1 -0
- package/dist/sdk/core/menu.js +1 -0
- package/dist/sdk/core/menubar.d.ts +2 -0
- package/dist/sdk/core/menubar.d.ts.map +1 -0
- package/dist/sdk/core/menubar.js +1 -0
- package/dist/sdk/core/meter.d.ts +2 -0
- package/dist/sdk/core/meter.d.ts.map +1 -0
- package/dist/sdk/core/meter.js +1 -0
- package/dist/sdk/core/navigation-menu.d.ts +2 -0
- package/dist/sdk/core/navigation-menu.d.ts.map +1 -0
- package/dist/sdk/core/navigation-menu.js +1 -0
- package/dist/sdk/core/number-input.d.ts +2 -0
- package/dist/sdk/core/number-input.d.ts.map +1 -0
- package/dist/sdk/core/number-input.js +1 -0
- package/dist/sdk/core/number.d.ts +2 -0
- package/dist/sdk/core/number.d.ts.map +1 -0
- package/dist/sdk/core/number.js +1 -0
- package/dist/sdk/core/observe.d.ts +2 -0
- package/dist/sdk/core/observe.d.ts.map +1 -0
- package/dist/sdk/core/observe.js +1 -0
- package/dist/sdk/core/otp-input.d.ts +2 -0
- package/dist/sdk/core/otp-input.d.ts.map +1 -0
- package/dist/sdk/core/otp-input.js +1 -0
- package/dist/sdk/core/overlays.d.ts +2 -0
- package/dist/sdk/core/overlays.d.ts.map +1 -0
- package/dist/sdk/core/overlays.js +1 -0
- package/dist/sdk/core/pagination.d.ts +2 -0
- package/dist/sdk/core/pagination.d.ts.map +1 -0
- package/dist/sdk/core/pagination.js +1 -0
- package/dist/sdk/core/password-input.d.ts +2 -0
- package/dist/sdk/core/password-input.d.ts.map +1 -0
- package/dist/sdk/core/password-input.js +1 -0
- package/dist/sdk/core/popover.d.ts +2 -0
- package/dist/sdk/core/popover.d.ts.map +1 -0
- package/dist/sdk/core/popover.js +1 -0
- package/dist/sdk/core/progress.d.ts +2 -0
- package/dist/sdk/core/progress.d.ts.map +1 -0
- package/dist/sdk/core/progress.js +1 -0
- package/dist/sdk/core/radio.d.ts +2 -0
- package/dist/sdk/core/radio.d.ts.map +1 -0
- package/dist/sdk/core/radio.js +1 -0
- package/dist/sdk/core/rating.d.ts +2 -0
- package/dist/sdk/core/rating.d.ts.map +1 -0
- package/dist/sdk/core/rating.js +1 -0
- package/dist/sdk/core/renderer.d.ts +2 -0
- package/dist/sdk/core/renderer.d.ts.map +1 -0
- package/dist/sdk/core/renderer.js +1 -0
- package/dist/sdk/core/resizable.d.ts +2 -0
- package/dist/sdk/core/resizable.d.ts.map +1 -0
- package/dist/sdk/core/resizable.js +1 -0
- package/dist/sdk/core/scroll-area.d.ts +2 -0
- package/dist/sdk/core/scroll-area.d.ts.map +1 -0
- package/dist/sdk/core/scroll-area.js +1 -0
- package/dist/sdk/core/segmented-control.d.ts +2 -0
- package/dist/sdk/core/segmented-control.d.ts.map +1 -0
- package/dist/sdk/core/segmented-control.js +1 -0
- package/dist/sdk/core/select.d.ts +2 -0
- package/dist/sdk/core/select.d.ts.map +1 -0
- package/dist/sdk/core/select.js +1 -0
- package/dist/sdk/core/separator.d.ts +2 -0
- package/dist/sdk/core/separator.d.ts.map +1 -0
- package/dist/sdk/core/separator.js +1 -0
- package/dist/sdk/core/shortcuts.d.ts +2 -0
- package/dist/sdk/core/shortcuts.d.ts.map +1 -0
- package/dist/sdk/core/shortcuts.js +1 -0
- package/dist/sdk/core/slider.d.ts +2 -0
- package/dist/sdk/core/slider.d.ts.map +1 -0
- package/dist/sdk/core/slider.js +1 -0
- package/dist/sdk/core/switch.d.ts +2 -0
- package/dist/sdk/core/switch.d.ts.map +1 -0
- package/dist/sdk/core/switch.js +1 -0
- package/dist/sdk/core/tabs.d.ts +2 -0
- package/dist/sdk/core/tabs.d.ts.map +1 -0
- package/dist/sdk/core/tabs.js +1 -0
- package/dist/sdk/core/testing.d.ts +2 -0
- package/dist/sdk/core/testing.d.ts.map +1 -0
- package/dist/sdk/core/testing.js +1 -0
- package/dist/sdk/core/text-match.d.ts +2 -0
- package/dist/sdk/core/text-match.d.ts.map +1 -0
- package/dist/sdk/core/text-match.js +1 -0
- package/dist/sdk/core/time-input.d.ts +2 -0
- package/dist/sdk/core/time-input.d.ts.map +1 -0
- package/dist/sdk/core/time-input.js +1 -0
- package/dist/sdk/core/timeline.d.ts +2 -0
- package/dist/sdk/core/timeline.d.ts.map +1 -0
- package/dist/sdk/core/timeline.js +1 -0
- package/dist/sdk/core/toast.d.ts +2 -0
- package/dist/sdk/core/toast.d.ts.map +1 -0
- package/dist/sdk/core/toast.js +1 -0
- package/dist/sdk/core/toggle.d.ts +2 -0
- package/dist/sdk/core/toggle.d.ts.map +1 -0
- package/dist/sdk/core/toggle.js +1 -0
- package/dist/sdk/core/token-input.d.ts +2 -0
- package/dist/sdk/core/token-input.d.ts.map +1 -0
- package/dist/sdk/core/token-input.js +1 -0
- package/dist/sdk/core/toolbar.d.ts +2 -0
- package/dist/sdk/core/toolbar.d.ts.map +1 -0
- package/dist/sdk/core/toolbar.js +1 -0
- package/dist/sdk/core/tooltip.d.ts +2 -0
- package/dist/sdk/core/tooltip.d.ts.map +1 -0
- package/dist/sdk/core/tooltip.js +1 -0
- package/dist/sdk/core/tree.d.ts +2 -0
- package/dist/sdk/core/tree.d.ts.map +1 -0
- package/dist/sdk/core/tree.js +1 -0
- package/dist/sdk/core/trigger-menu.d.ts +2 -0
- package/dist/sdk/core/trigger-menu.d.ts.map +1 -0
- package/dist/sdk/core/trigger-menu.js +1 -0
- package/dist/sdk/core/waterfall.d.ts +2 -0
- package/dist/sdk/core/waterfall.d.ts.map +1 -0
- package/dist/sdk/core/waterfall.js +1 -0
- package/dist/sdk/react/accordion.d.ts +2 -0
- package/dist/sdk/react/accordion.d.ts.map +1 -0
- package/dist/sdk/react/accordion.js +1 -0
- package/dist/sdk/react/agent.d.ts +2 -0
- package/dist/sdk/react/agent.d.ts.map +1 -0
- package/dist/sdk/react/agent.js +1 -0
- package/dist/sdk/react/alert-dialog.d.ts +2 -0
- package/dist/sdk/react/alert-dialog.d.ts.map +1 -0
- package/dist/sdk/react/alert-dialog.js +1 -0
- package/dist/sdk/react/async-options.d.ts +2 -0
- package/dist/sdk/react/async-options.d.ts.map +1 -0
- package/dist/sdk/react/async-options.js +1 -0
- package/dist/sdk/react/autocomplete.d.ts +2 -0
- package/dist/sdk/react/autocomplete.d.ts.map +1 -0
- package/dist/sdk/react/autocomplete.js +1 -0
- package/dist/sdk/react/avatar.d.ts +2 -0
- package/dist/sdk/react/avatar.d.ts.map +1 -0
- package/dist/sdk/react/avatar.js +1 -0
- package/dist/sdk/react/button.d.ts +2 -0
- package/dist/sdk/react/button.d.ts.map +1 -0
- package/dist/sdk/react/button.js +1 -0
- package/dist/sdk/react/calendar.d.ts +2 -0
- package/dist/sdk/react/calendar.d.ts.map +1 -0
- package/dist/sdk/react/calendar.js +1 -0
- package/dist/sdk/react/carousel.d.ts +2 -0
- package/dist/sdk/react/carousel.d.ts.map +1 -0
- package/dist/sdk/react/carousel.js +1 -0
- package/dist/sdk/react/checkbox.d.ts +2 -0
- package/dist/sdk/react/checkbox.d.ts.map +1 -0
- package/dist/sdk/react/checkbox.js +1 -0
- package/dist/sdk/react/collapsible.d.ts +2 -0
- package/dist/sdk/react/collapsible.d.ts.map +1 -0
- package/dist/sdk/react/collapsible.js +1 -0
- package/dist/sdk/react/color-picker.d.ts +2 -0
- package/dist/sdk/react/color-picker.d.ts.map +1 -0
- package/dist/sdk/react/color-picker.js +1 -0
- package/dist/sdk/react/color.d.ts +2 -0
- package/dist/sdk/react/color.d.ts.map +1 -0
- package/dist/sdk/react/color.js +1 -0
- package/dist/sdk/react/combobox.d.ts +2 -0
- package/dist/sdk/react/combobox.d.ts.map +1 -0
- package/dist/sdk/react/combobox.js +1 -0
- package/dist/sdk/react/command.d.ts +2 -0
- package/dist/sdk/react/command.d.ts.map +1 -0
- package/dist/sdk/react/command.js +1 -0
- package/dist/sdk/react/date-input.d.ts +2 -0
- package/dist/sdk/react/date-input.d.ts.map +1 -0
- package/dist/sdk/react/date-input.js +1 -0
- package/dist/sdk/react/date-picker.d.ts +2 -0
- package/dist/sdk/react/date-picker.d.ts.map +1 -0
- package/dist/sdk/react/date-picker.js +1 -0
- package/dist/sdk/react/date.d.ts +2 -0
- package/dist/sdk/react/date.d.ts.map +1 -0
- package/dist/sdk/react/date.js +1 -0
- package/dist/sdk/react/dialog.d.ts +2 -0
- package/dist/sdk/react/dialog.d.ts.map +1 -0
- package/dist/sdk/react/dialog.js +1 -0
- package/dist/sdk/react/drawer.d.ts +2 -0
- package/dist/sdk/react/drawer.d.ts.map +1 -0
- package/dist/sdk/react/drawer.js +1 -0
- package/dist/sdk/react/field.d.ts +2 -0
- package/dist/sdk/react/field.d.ts.map +1 -0
- package/dist/sdk/react/field.js +1 -0
- package/dist/sdk/react/file-input.d.ts +2 -0
- package/dist/sdk/react/file-input.d.ts.map +1 -0
- package/dist/sdk/react/file-input.js +1 -0
- package/dist/sdk/react/gesture.d.ts +2 -0
- package/dist/sdk/react/gesture.d.ts.map +1 -0
- package/dist/sdk/react/gesture.js +1 -0
- package/dist/sdk/react/history.d.ts +2 -0
- package/dist/sdk/react/history.d.ts.map +1 -0
- package/dist/sdk/react/history.js +1 -0
- package/dist/sdk/react/hover-card.d.ts +2 -0
- package/dist/sdk/react/hover-card.d.ts.map +1 -0
- package/dist/sdk/react/hover-card.js +1 -0
- package/dist/sdk/react/image-cropper.d.ts +2 -0
- package/dist/sdk/react/image-cropper.d.ts.map +1 -0
- package/dist/sdk/react/image-cropper.js +1 -0
- package/dist/sdk/react/image.d.ts +2 -0
- package/dist/sdk/react/image.d.ts.map +1 -0
- package/dist/sdk/react/image.js +1 -0
- package/dist/sdk/react/input.d.ts +2 -0
- package/dist/sdk/react/input.d.ts.map +1 -0
- package/dist/sdk/react/input.js +1 -0
- package/dist/sdk/react/label.d.ts +2 -0
- package/dist/sdk/react/label.d.ts.map +1 -0
- package/dist/sdk/react/label.js +1 -0
- package/dist/sdk/react/listbox.d.ts +2 -0
- package/dist/sdk/react/listbox.d.ts.map +1 -0
- package/dist/sdk/react/listbox.js +1 -0
- package/dist/sdk/react/menu.d.ts +2 -0
- package/dist/sdk/react/menu.d.ts.map +1 -0
- package/dist/sdk/react/menu.js +1 -0
- package/dist/sdk/react/menubar.d.ts +2 -0
- package/dist/sdk/react/menubar.d.ts.map +1 -0
- package/dist/sdk/react/menubar.js +1 -0
- package/dist/sdk/react/meter.d.ts +2 -0
- package/dist/sdk/react/meter.d.ts.map +1 -0
- package/dist/sdk/react/meter.js +1 -0
- package/dist/sdk/react/navigation-menu.d.ts +2 -0
- package/dist/sdk/react/navigation-menu.d.ts.map +1 -0
- package/dist/sdk/react/navigation-menu.js +1 -0
- package/dist/sdk/react/number-input.d.ts +2 -0
- package/dist/sdk/react/number-input.d.ts.map +1 -0
- package/dist/sdk/react/number-input.js +1 -0
- package/dist/sdk/react/number.d.ts +2 -0
- package/dist/sdk/react/number.d.ts.map +1 -0
- package/dist/sdk/react/number.js +1 -0
- package/dist/sdk/react/observe.d.ts +2 -0
- package/dist/sdk/react/observe.d.ts.map +1 -0
- package/dist/sdk/react/observe.js +1 -0
- package/dist/sdk/react/otp-input.d.ts +2 -0
- package/dist/sdk/react/otp-input.d.ts.map +1 -0
- package/dist/sdk/react/otp-input.js +1 -0
- package/dist/sdk/react/overlays.d.ts +2 -0
- package/dist/sdk/react/overlays.d.ts.map +1 -0
- package/dist/sdk/react/overlays.js +1 -0
- package/dist/sdk/react/pagination.d.ts +2 -0
- package/dist/sdk/react/pagination.d.ts.map +1 -0
- package/dist/sdk/react/pagination.js +1 -0
- package/dist/sdk/react/password-input.d.ts +2 -0
- package/dist/sdk/react/password-input.d.ts.map +1 -0
- package/dist/sdk/react/password-input.js +1 -0
- package/dist/sdk/react/popover.d.ts +2 -0
- package/dist/sdk/react/popover.d.ts.map +1 -0
- package/dist/sdk/react/popover.js +1 -0
- package/dist/sdk/react/preferences.d.ts +2 -0
- package/dist/sdk/react/preferences.d.ts.map +1 -0
- package/dist/sdk/react/preferences.js +1 -0
- package/dist/sdk/react/primitive.d.ts +2 -0
- package/dist/sdk/react/primitive.d.ts.map +1 -0
- package/dist/sdk/react/primitive.js +1 -0
- package/dist/sdk/react/progress.d.ts +2 -0
- package/dist/sdk/react/progress.d.ts.map +1 -0
- package/dist/sdk/react/progress.js +1 -0
- package/dist/sdk/react/radio.d.ts +2 -0
- package/dist/sdk/react/radio.d.ts.map +1 -0
- package/dist/sdk/react/radio.js +1 -0
- package/dist/sdk/react/rating.d.ts +2 -0
- package/dist/sdk/react/rating.d.ts.map +1 -0
- package/dist/sdk/react/rating.js +1 -0
- package/dist/sdk/react/resizable.d.ts +2 -0
- package/dist/sdk/react/resizable.d.ts.map +1 -0
- package/dist/sdk/react/resizable.js +1 -0
- package/dist/sdk/react/scroll-area.d.ts +2 -0
- package/dist/sdk/react/scroll-area.d.ts.map +1 -0
- package/dist/sdk/react/scroll-area.js +1 -0
- package/dist/sdk/react/segmented-control.d.ts +2 -0
- package/dist/sdk/react/segmented-control.d.ts.map +1 -0
- package/dist/sdk/react/segmented-control.js +1 -0
- package/dist/sdk/react/select.d.ts +2 -0
- package/dist/sdk/react/select.d.ts.map +1 -0
- package/dist/sdk/react/select.js +1 -0
- package/dist/sdk/react/separator.d.ts +2 -0
- package/dist/sdk/react/separator.d.ts.map +1 -0
- package/dist/sdk/react/separator.js +1 -0
- package/dist/sdk/react/shortcuts.d.ts +2 -0
- package/dist/sdk/react/shortcuts.d.ts.map +1 -0
- package/dist/sdk/react/shortcuts.js +1 -0
- package/dist/sdk/react/slider.d.ts +2 -0
- package/dist/sdk/react/slider.d.ts.map +1 -0
- package/dist/sdk/react/slider.js +1 -0
- package/dist/sdk/react/switch.d.ts +2 -0
- package/dist/sdk/react/switch.d.ts.map +1 -0
- package/dist/sdk/react/switch.js +1 -0
- package/dist/sdk/react/tabs.d.ts +2 -0
- package/dist/sdk/react/tabs.d.ts.map +1 -0
- package/dist/sdk/react/tabs.js +1 -0
- package/dist/sdk/react/text-match.d.ts +2 -0
- package/dist/sdk/react/text-match.d.ts.map +1 -0
- package/dist/sdk/react/text-match.js +1 -0
- package/dist/sdk/react/textarea.d.ts +2 -0
- package/dist/sdk/react/textarea.d.ts.map +1 -0
- package/dist/sdk/react/textarea.js +1 -0
- package/dist/sdk/react/time-input.d.ts +2 -0
- package/dist/sdk/react/time-input.d.ts.map +1 -0
- package/dist/sdk/react/time-input.js +1 -0
- package/dist/sdk/react/timeline.d.ts +2 -0
- package/dist/sdk/react/timeline.d.ts.map +1 -0
- package/dist/sdk/react/timeline.js +1 -0
- package/dist/sdk/react/toast.d.ts +2 -0
- package/dist/sdk/react/toast.d.ts.map +1 -0
- package/dist/sdk/react/toast.js +1 -0
- package/dist/sdk/react/toggle.d.ts +2 -0
- package/dist/sdk/react/toggle.d.ts.map +1 -0
- package/dist/sdk/react/toggle.js +1 -0
- package/dist/sdk/react/token-input.d.ts +2 -0
- package/dist/sdk/react/token-input.d.ts.map +1 -0
- package/dist/sdk/react/token-input.js +1 -0
- package/dist/sdk/react/toolbar.d.ts +2 -0
- package/dist/sdk/react/toolbar.d.ts.map +1 -0
- package/dist/sdk/react/toolbar.js +1 -0
- package/dist/sdk/react/tooltip.d.ts +2 -0
- package/dist/sdk/react/tooltip.d.ts.map +1 -0
- package/dist/sdk/react/tooltip.js +1 -0
- package/dist/sdk/react/tree.d.ts +2 -0
- package/dist/sdk/react/tree.d.ts.map +1 -0
- package/dist/sdk/react/tree.js +1 -0
- package/dist/sdk/react/trigger-menu.d.ts +2 -0
- package/dist/sdk/react/trigger-menu.d.ts.map +1 -0
- package/dist/sdk/react/trigger-menu.js +1 -0
- package/dist/sdk/react/waterfall.d.ts +2 -0
- package/dist/sdk/react/waterfall.d.ts.map +1 -0
- package/dist/sdk/react/waterfall.js +1 -0
- package/dist/theme.css +23 -4
- package/dist/vendor/ui-sdk/LICENSE +202 -0
- package/dist/vendor/ui-sdk/NOTICE.md +14 -0
- package/dist/vendor/ui-sdk/core/components/accordion/accordion-generic.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/components/accordion/accordion-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/accordion/accordion.d.ts +597 -0
- package/dist/vendor/ui-sdk/core/components/accordion/accordion.js +446 -0
- package/dist/vendor/ui-sdk/core/components/autocomplete/autocomplete-api.d.ts +183 -0
- package/dist/vendor/ui-sdk/core/components/autocomplete/autocomplete-api.js +445 -0
- package/dist/vendor/ui-sdk/core/components/autocomplete/autocomplete-parts.d.ts +40 -0
- package/dist/vendor/ui-sdk/core/components/autocomplete/autocomplete-parts.js +254 -0
- package/dist/vendor/ui-sdk/core/components/autocomplete/autocomplete.d.ts +1011 -0
- package/dist/vendor/ui-sdk/core/components/autocomplete/autocomplete.js +71 -0
- package/dist/vendor/ui-sdk/core/components/avatar/avatar.d.ts +268 -0
- package/dist/vendor/ui-sdk/core/components/avatar/avatar.js +146 -0
- package/dist/vendor/ui-sdk/core/components/avatar/image-status.d.ts +2 -0
- package/dist/vendor/ui-sdk/core/components/avatar/image-status.js +13 -0
- package/dist/vendor/ui-sdk/core/components/button/button.d.ts +275 -0
- package/dist/vendor/ui-sdk/core/components/button/button.js +116 -0
- package/dist/vendor/ui-sdk/core/components/calendar/calendar-api.d.ts +158 -0
- package/dist/vendor/ui-sdk/core/components/calendar/calendar-api.js +686 -0
- package/dist/vendor/ui-sdk/core/components/calendar/calendar-model.d.ts +125 -0
- package/dist/vendor/ui-sdk/core/components/calendar/calendar-model.js +161 -0
- package/dist/vendor/ui-sdk/core/components/calendar/calendar.d.ts +877 -0
- package/dist/vendor/ui-sdk/core/components/calendar/calendar.js +85 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-api.d.ts +82 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-api.js +500 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-autoplay.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-autoplay.js +74 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-dom.d.ts +46 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-dom.js +113 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-indicators.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-indicators.js +91 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-keyboard.d.ts +5 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-keyboard.js +47 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-layout.d.ts +123 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-layout.js +193 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-loop.d.ts +46 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-loop.js +132 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-motion.d.ts +60 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel-motion.js +443 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel.d.ts +661 -0
- package/dist/vendor/ui-sdk/core/components/carousel/carousel.js +265 -0
- package/dist/vendor/ui-sdk/core/components/checkbox/checkbox-group.d.ts +371 -0
- package/dist/vendor/ui-sdk/core/components/checkbox/checkbox-group.js +253 -0
- package/dist/vendor/ui-sdk/core/components/checkbox/checkbox.d.ts +208 -0
- package/dist/vendor/ui-sdk/core/components/checkbox/checkbox.js +257 -0
- package/dist/vendor/ui-sdk/core/components/collapsible/collapsible.d.ts +651 -0
- package/dist/vendor/ui-sdk/core/components/collapsible/collapsible.js +177 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker-api.d.ts +135 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker-api.js +413 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker-channels.d.ts +54 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker-channels.js +154 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker-parts.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker-parts.js +553 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker.d.ts +516 -0
- package/dist/vendor/ui-sdk/core/components/color-picker/color-picker.js +37 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-api.d.ts +267 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-api.js +830 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-chips.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-chips.js +110 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-generic.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-keyboard.d.ts +36 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-keyboard.js +165 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-parts.d.ts +200 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox-parts.js +540 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox.d.ts +1278 -0
- package/dist/vendor/ui-sdk/core/components/combobox/combobox.js +81 -0
- package/dist/vendor/ui-sdk/core/components/command/command-api.d.ts +142 -0
- package/dist/vendor/ui-sdk/core/components/command/command-api.js +328 -0
- package/dist/vendor/ui-sdk/core/components/command/command-data.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/components/command/command-data.js +65 -0
- package/dist/vendor/ui-sdk/core/components/command/command-parts.d.ts +36 -0
- package/dist/vendor/ui-sdk/core/components/command/command-parts.js +215 -0
- package/dist/vendor/ui-sdk/core/components/command/command.d.ts +846 -0
- package/dist/vendor/ui-sdk/core/components/command/command.js +57 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input-api.d.ts +136 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input-api.js +462 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input-model.d.ts +141 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input-model.js +386 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input-parts.d.ts +45 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input-parts.js +289 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input.d.ts +331 -0
- package/dist/vendor/ui-sdk/core/components/date-input/date-input.js +27 -0
- package/dist/vendor/ui-sdk/core/components/date-input/time-input.d.ts +320 -0
- package/dist/vendor/ui-sdk/core/components/date-input/time-input.js +28 -0
- package/dist/vendor/ui-sdk/core/components/date-picker/date-picker-api.d.ts +170 -0
- package/dist/vendor/ui-sdk/core/components/date-picker/date-picker-api.js +356 -0
- package/dist/vendor/ui-sdk/core/components/date-picker/date-picker-parts.d.ts +25 -0
- package/dist/vendor/ui-sdk/core/components/date-picker/date-picker-parts.js +320 -0
- package/dist/vendor/ui-sdk/core/components/date-picker/date-picker.d.ts +678 -0
- package/dist/vendor/ui-sdk/core/components/date-picker/date-picker.js +78 -0
- package/dist/vendor/ui-sdk/core/components/dialog/alert-dialog.d.ts +244 -0
- package/dist/vendor/ui-sdk/core/components/dialog/alert-dialog.js +71 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog-api.d.ts +168 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog-api.js +253 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog-parts.d.ts +27 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog-parts.js +168 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog-primitive.d.ts +143 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog-primitive.js +60 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog.d.ts +855 -0
- package/dist/vendor/ui-sdk/core/components/dialog/dialog.js +53 -0
- package/dist/vendor/ui-sdk/core/components/drawer/drawer-api.d.ts +167 -0
- package/dist/vendor/ui-sdk/core/components/drawer/drawer-api.js +331 -0
- package/dist/vendor/ui-sdk/core/components/drawer/drawer.d.ts +689 -0
- package/dist/vendor/ui-sdk/core/components/drawer/drawer.js +306 -0
- package/dist/vendor/ui-sdk/core/components/field/field-attrs.d.ts +60 -0
- package/dist/vendor/ui-sdk/core/components/field/field-attrs.js +176 -0
- package/dist/vendor/ui-sdk/core/components/field/field-control.d.ts +20 -0
- package/dist/vendor/ui-sdk/core/components/field/field-control.js +43 -0
- package/dist/vendor/ui-sdk/core/components/field/field-outside.d.ts +14 -0
- package/dist/vendor/ui-sdk/core/components/field/field-outside.js +77 -0
- package/dist/vendor/ui-sdk/core/components/field/field-set.d.ts +208 -0
- package/dist/vendor/ui-sdk/core/components/field/field-set.js +115 -0
- package/dist/vendor/ui-sdk/core/components/field/field.d.ts +224 -0
- package/dist/vendor/ui-sdk/core/components/field/field.js +413 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-drop.d.ts +52 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-drop.js +189 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-input-api.d.ts +82 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-input-api.js +370 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-input-dropzone.d.ts +14 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-input-dropzone.js +140 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-input.d.ts +484 -0
- package/dist/vendor/ui-sdk/core/components/file-input/file-input.js +224 -0
- package/dist/vendor/ui-sdk/core/components/hover-card/hover-card.d.ts +464 -0
- package/dist/vendor/ui-sdk/core/components/hover-card/hover-card.js +76 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper-api.d.ts +87 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper-api.js +581 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper-geometry.d.ts +132 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper-geometry.js +224 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper-parts.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper-parts.js +335 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper.d.ts +527 -0
- package/dist/vendor/ui-sdk/core/components/image-cropper/image-cropper.js +39 -0
- package/dist/vendor/ui-sdk/core/components/input/input.d.ts +770 -0
- package/dist/vendor/ui-sdk/core/components/input/input.js +281 -0
- package/dist/vendor/ui-sdk/core/components/label/label.d.ts +62 -0
- package/dist/vendor/ui-sdk/core/components/label/label.js +159 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-api.d.ts +161 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-api.js +325 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-generic.d.ts +14 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-keyboard.d.ts +25 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-keyboard.js +150 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-parts.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root-parts.js +184 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root.d.ts +654 -0
- package/dist/vendor/ui-sdk/core/components/listbox/listbox-root.js +50 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu-api.d.ts +384 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu-api.js +754 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu-generic.d.ts +12 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu-parts.d.ts +46 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu-parts.js +750 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu.d.ts +802 -0
- package/dist/vendor/ui-sdk/core/components/menu/menu.js +86 -0
- package/dist/vendor/ui-sdk/core/components/menubar/menubar.d.ts +338 -0
- package/dist/vendor/ui-sdk/core/components/menubar/menubar.js +274 -0
- package/dist/vendor/ui-sdk/core/components/meter/meter.d.ts +246 -0
- package/dist/vendor/ui-sdk/core/components/meter/meter.js +86 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-api.d.ts +135 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-api.js +646 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-dom.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-dom.js +181 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-focus.d.ts +24 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-focus.js +125 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-generic.d.ts +12 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-keyboard.d.ts +22 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu-keyboard.js +73 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu.d.ts +732 -0
- package/dist/vendor/ui-sdk/core/components/navigation-menu/navigation-menu.js +240 -0
- package/dist/vendor/ui-sdk/core/components/number-input/number-input-api.d.ts +96 -0
- package/dist/vendor/ui-sdk/core/components/number-input/number-input-api.js +440 -0
- package/dist/vendor/ui-sdk/core/components/number-input/number-input.d.ts +569 -0
- package/dist/vendor/ui-sdk/core/components/number-input/number-input.js +259 -0
- package/dist/vendor/ui-sdk/core/components/otp-input/otp-input-api.d.ts +132 -0
- package/dist/vendor/ui-sdk/core/components/otp-input/otp-input-api.js +395 -0
- package/dist/vendor/ui-sdk/core/components/otp-input/otp-input-model.d.ts +76 -0
- package/dist/vendor/ui-sdk/core/components/otp-input/otp-input-model.js +135 -0
- package/dist/vendor/ui-sdk/core/components/otp-input/otp-input.d.ts +749 -0
- package/dist/vendor/ui-sdk/core/components/otp-input/otp-input.js +229 -0
- package/dist/vendor/ui-sdk/core/components/pagination/pagination-range.d.ts +41 -0
- package/dist/vendor/ui-sdk/core/components/pagination/pagination-range.js +50 -0
- package/dist/vendor/ui-sdk/core/components/pagination/pagination.d.ts +1026 -0
- package/dist/vendor/ui-sdk/core/components/pagination/pagination.js +218 -0
- package/dist/vendor/ui-sdk/core/components/password-input/password-input.d.ts +634 -0
- package/dist/vendor/ui-sdk/core/components/password-input/password-input.js +317 -0
- package/dist/vendor/ui-sdk/core/components/popover/popover.d.ts +648 -0
- package/dist/vendor/ui-sdk/core/components/popover/popover.js +153 -0
- package/dist/vendor/ui-sdk/core/components/progress/progress.d.ts +248 -0
- package/dist/vendor/ui-sdk/core/components/progress/progress.js +118 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio-api.d.ts +110 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio-api.js +206 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio-generic.d.ts +7 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio-parts.d.ts +28 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio-parts.js +171 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio.d.ts +366 -0
- package/dist/vendor/ui-sdk/core/components/radio/radio.js +104 -0
- package/dist/vendor/ui-sdk/core/components/rating/rating.d.ts +493 -0
- package/dist/vendor/ui-sdk/core/components/rating/rating.js +208 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-api.d.ts +68 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-api.js +480 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-dom.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-dom.js +220 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-handles.d.ts +16 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-handles.js +190 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-layout.d.ts +119 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-layout.js +276 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-storage.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable-storage.js +42 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable.d.ts +411 -0
- package/dist/vendor/ui-sdk/core/components/resizable/resizable.js +234 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area-model.d.ts +85 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area-model.js +126 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area-pointer.d.ts +21 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area-pointer.js +201 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area-view.d.ts +47 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area-view.js +614 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area.d.ts +826 -0
- package/dist/vendor/ui-sdk/core/components/scroll-area/scroll-area.js +301 -0
- package/dist/vendor/ui-sdk/core/components/segmented-control/segmented-control-generic.d.ts +7 -0
- package/dist/vendor/ui-sdk/core/components/segmented-control/segmented-control-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/segmented-control/segmented-control.d.ts +432 -0
- package/dist/vendor/ui-sdk/core/components/segmented-control/segmented-control.js +107 -0
- package/dist/vendor/ui-sdk/core/components/select/select-api.d.ts +270 -0
- package/dist/vendor/ui-sdk/core/components/select/select-api.js +499 -0
- package/dist/vendor/ui-sdk/core/components/select/select-generic.d.ts +14 -0
- package/dist/vendor/ui-sdk/core/components/select/select-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/select/select-keyboard.d.ts +29 -0
- package/dist/vendor/ui-sdk/core/components/select/select-keyboard.js +230 -0
- package/dist/vendor/ui-sdk/core/components/select/select-parts.d.ts +180 -0
- package/dist/vendor/ui-sdk/core/components/select/select-parts.js +420 -0
- package/dist/vendor/ui-sdk/core/components/select/select.d.ts +1128 -0
- package/dist/vendor/ui-sdk/core/components/select/select.js +77 -0
- package/dist/vendor/ui-sdk/core/components/separator/separator.d.ts +189 -0
- package/dist/vendor/ui-sdk/core/components/separator/separator.js +32 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider-api.d.ts +85 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider-api.js +377 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider-generic.d.ts +7 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider-values.d.ts +61 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider-values.js +118 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider.d.ts +631 -0
- package/dist/vendor/ui-sdk/core/components/slider/slider.js +338 -0
- package/dist/vendor/ui-sdk/core/components/switch/switch.d.ts +347 -0
- package/dist/vendor/ui-sdk/core/components/switch/switch.js +48 -0
- package/dist/vendor/ui-sdk/core/components/tabs/tabs-direction.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/components/tabs/tabs-direction.js +17 -0
- package/dist/vendor/ui-sdk/core/components/tabs/tabs-generic.d.ts +11 -0
- package/dist/vendor/ui-sdk/core/components/tabs/tabs-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/tabs/tabs.d.ts +525 -0
- package/dist/vendor/ui-sdk/core/components/tabs/tabs.js +501 -0
- package/dist/vendor/ui-sdk/core/components/timeline/timeline.d.ts +384 -0
- package/dist/vendor/ui-sdk/core/components/timeline/timeline.js +291 -0
- package/dist/vendor/ui-sdk/core/components/toast/swipe.d.ts +43 -0
- package/dist/vendor/ui-sdk/core/components/toast/swipe.js +99 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-api.d.ts +63 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-api.js +677 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-dom.d.ts +54 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-dom.js +147 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-parts.d.ts +100 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-parts.js +150 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-timers.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast-timers.js +111 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast.d.ts +854 -0
- package/dist/vendor/ui-sdk/core/components/toast/toast.js +42 -0
- package/dist/vendor/ui-sdk/core/components/toast/toaster.d.ts +182 -0
- package/dist/vendor/ui-sdk/core/components/toast/toaster.js +180 -0
- package/dist/vendor/ui-sdk/core/components/toggle/toggle-group.d.ts +472 -0
- package/dist/vendor/ui-sdk/core/components/toggle/toggle-group.js +204 -0
- package/dist/vendor/ui-sdk/core/components/toggle/toggle.d.ts +458 -0
- package/dist/vendor/ui-sdk/core/components/toggle/toggle.js +257 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-api.d.ts +143 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-api.js +405 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-editing.d.ts +4 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-editing.js +440 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-model.d.ts +73 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-model.js +219 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-parts.d.ts +11 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-parts.js +194 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-view.d.ts +38 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input-view.js +341 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input.d.ts +640 -0
- package/dist/vendor/ui-sdk/core/components/token-input/token-input.js +53 -0
- package/dist/vendor/ui-sdk/core/components/toolbar/toolbar-fields.d.ts +3 -0
- package/dist/vendor/ui-sdk/core/components/toolbar/toolbar-fields.js +26 -0
- package/dist/vendor/ui-sdk/core/components/toolbar/toolbar.d.ts +344 -0
- package/dist/vendor/ui-sdk/core/components/toolbar/toolbar.js +345 -0
- package/dist/vendor/ui-sdk/core/components/tooltip/tooltip.d.ts +5178 -0
- package/dist/vendor/ui-sdk/core/components/tooltip/tooltip.js +286 -0
- package/dist/vendor/ui-sdk/core/components/tree/tree-api.d.ts +103 -0
- package/dist/vendor/ui-sdk/core/components/tree/tree-api.js +899 -0
- package/dist/vendor/ui-sdk/core/components/tree/tree-generic.d.ts +10 -0
- package/dist/vendor/ui-sdk/core/components/tree/tree-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/tree/tree.d.ts +928 -0
- package/dist/vendor/ui-sdk/core/components/tree/tree.js +359 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-match.d.ts +80 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-match.js +143 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-api.d.ts +170 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-api.js +586 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-generic.d.ts +14 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-generic.js +0 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-keyboard.d.ts +23 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-keyboard.js +78 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-levels.d.ts +42 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-levels.js +190 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-parts.d.ts +35 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-parts.js +354 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-select.d.ts +34 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu-select.js +246 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu.d.ts +785 -0
- package/dist/vendor/ui-sdk/core/components/trigger-menu/trigger-menu.js +54 -0
- package/dist/vendor/ui-sdk/core/components/waterfall/waterfall-api.d.ts +114 -0
- package/dist/vendor/ui-sdk/core/components/waterfall/waterfall-api.js +410 -0
- package/dist/vendor/ui-sdk/core/components/waterfall/waterfall-time.d.ts +30 -0
- package/dist/vendor/ui-sdk/core/components/waterfall/waterfall-time.js +87 -0
- package/dist/vendor/ui-sdk/core/components/waterfall/waterfall.d.ts +571 -0
- package/dist/vendor/ui-sdk/core/components/waterfall/waterfall.js +260 -0
- package/dist/vendor/ui-sdk/core/foundation/canvas/connect.d.ts +112 -0
- package/dist/vendor/ui-sdk/core/foundation/canvas/connect.js +211 -0
- package/dist/vendor/ui-sdk/core/foundation/canvas/viewport.d.ts +160 -0
- package/dist/vendor/ui-sdk/core/foundation/canvas/viewport.js +369 -0
- package/dist/vendor/ui-sdk/core/foundation/color/color.d.ts +6 -0
- package/dist/vendor/ui-sdk/core/foundation/color/color.js +21 -0
- package/dist/vendor/ui-sdk/core/foundation/color/compare.d.ts +16 -0
- package/dist/vendor/ui-sdk/core/foundation/color/compare.js +22 -0
- package/dist/vendor/ui-sdk/core/foundation/color/convert.d.ts +29 -0
- package/dist/vendor/ui-sdk/core/foundation/color/convert.js +239 -0
- package/dist/vendor/ui-sdk/core/foundation/color/format.d.ts +28 -0
- package/dist/vendor/ui-sdk/core/foundation/color/format.js +86 -0
- package/dist/vendor/ui-sdk/core/foundation/color/gamut.d.ts +20 -0
- package/dist/vendor/ui-sdk/core/foundation/color/gamut.js +66 -0
- package/dist/vendor/ui-sdk/core/foundation/color/index.d.ts +6 -0
- package/dist/vendor/ui-sdk/core/foundation/color/index.js +21 -0
- package/dist/vendor/ui-sdk/core/foundation/color/mix.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/foundation/color/mix.js +62 -0
- package/dist/vendor/ui-sdk/core/foundation/color/names.d.ts +2 -0
- package/dist/vendor/ui-sdk/core/foundation/color/names.js +5 -0
- package/dist/vendor/ui-sdk/core/foundation/color/parse.d.ts +10 -0
- package/dist/vendor/ui-sdk/core/foundation/color/parse.js +177 -0
- package/dist/vendor/ui-sdk/core/foundation/date/date.d.ts +4 -0
- package/dist/vendor/ui-sdk/core/foundation/date/date.js +63 -0
- package/dist/vendor/ui-sdk/core/foundation/date/format.d.ts +43 -0
- package/dist/vendor/ui-sdk/core/foundation/date/format.js +99 -0
- package/dist/vendor/ui-sdk/core/foundation/date/index.d.ts +4 -0
- package/dist/vendor/ui-sdk/core/foundation/date/index.js +48 -0
- package/dist/vendor/ui-sdk/core/foundation/date/parse.d.ts +39 -0
- package/dist/vendor/ui-sdk/core/foundation/date/parse.js +229 -0
- package/dist/vendor/ui-sdk/core/foundation/date/plain-date.d.ts +112 -0
- package/dist/vendor/ui-sdk/core/foundation/date/plain-date.js +168 -0
- package/dist/vendor/ui-sdk/core/foundation/date/week.d.ts +9 -0
- package/dist/vendor/ui-sdk/core/foundation/date/week.js +54 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/area.d.ts +110 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/area.js +155 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/hold.d.ts +91 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/hold.js +173 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/index.d.ts +4 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/index.js +15 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/move.d.ts +124 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/move.js +132 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/preview.d.ts +75 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/preview.js +106 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/repeat.d.ts +73 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/repeat.js +132 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/resize.d.ts +198 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/resize.js +245 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/spans.d.ts +202 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/spans.js +485 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/swipe-actions.d.ts +125 -0
- package/dist/vendor/ui-sdk/core/foundation/direct-manipulation/swipe-actions.js +243 -0
- package/dist/vendor/ui-sdk/core/foundation/disclosure/disclosure.d.ts +10 -0
- package/dist/vendor/ui-sdk/core/foundation/disclosure/disclosure.js +64 -0
- package/dist/vendor/ui-sdk/core/foundation/disclosure/index.d.ts +1 -0
- package/dist/vendor/ui-sdk/core/foundation/disclosure/index.js +23 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/auto-scroll.d.ts +33 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/auto-scroll.js +89 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/draft-move.d.ts +27 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/draft-move.js +79 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/drag-preview.d.ts +30 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/drag-preview.js +83 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/index.d.ts +2 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/index.js +19 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/pointer.d.ts +109 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/pointer.js +308 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/reorder.d.ts +174 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/reorder.js +390 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/transfer.d.ts +145 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/transfer.js +337 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/tree-reorder.d.ts +187 -0
- package/dist/vendor/ui-sdk/core/foundation/drag-and-drop/tree-reorder.js +416 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/collection.d.ts +32 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/collection.js +93 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/focus-recovery.d.ts +45 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/focus-recovery.js +58 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/grid-focus.d.ts +113 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/grid-focus.js +177 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/index.d.ts +9 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/index.js +58 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/keep-focus.d.ts +10 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/keep-focus.js +15 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/press-keeps-focus.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/press-keeps-focus.js +14 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/roving-focus.d.ts +147 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/roving-focus.js +281 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/roving-scope.d.ts +30 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/roving-scope.js +33 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/spatial.d.ts +39 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/spatial.js +52 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/tabbable.d.ts +22 -0
- package/dist/vendor/ui-sdk/core/foundation/focus/tabbable.js +148 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/control.d.ts +9 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/control.js +34 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/files.d.ts +104 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/files.js +147 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/form-internals.d.ts +22 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/form-internals.js +105 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/form.d.ts +57 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/form.js +360 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/index.d.ts +6 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/index.js +102 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/input-hints.d.ts +39 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/input-hints.js +57 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/text-field.d.ts +57 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/text-field.js +140 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/toggle-control.d.ts +131 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/toggle-control.js +206 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/value.d.ts +23 -0
- package/dist/vendor/ui-sdk/core/foundation/forms/value.js +104 -0
- package/dist/vendor/ui-sdk/core/foundation/gauge/gauge.d.ts +92 -0
- package/dist/vendor/ui-sdk/core/foundation/gauge/gauge.js +98 -0
- package/dist/vendor/ui-sdk/core/foundation/gauge/index.d.ts +1 -0
- package/dist/vendor/ui-sdk/core/foundation/gauge/index.js +23 -0
- package/dist/vendor/ui-sdk/core/foundation/image/crop.d.ts +80 -0
- package/dist/vendor/ui-sdk/core/foundation/image/crop.js +111 -0
- package/dist/vendor/ui-sdk/core/foundation/image/image.d.ts +1 -0
- package/dist/vendor/ui-sdk/core/foundation/image/image.js +7 -0
- package/dist/vendor/ui-sdk/core/foundation/image/index.d.ts +1 -0
- package/dist/vendor/ui-sdk/core/foundation/image/index.js +7 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/action.d.ts +32 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/action.js +78 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/attrs.d.ts +26 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/attrs.js +22 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/bound-keys.d.ts +20 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/bound-keys.js +61 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/change.d.ts +24 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/change.js +160 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/controlled-lists.d.ts +23 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/controlled-lists.js +94 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/controller.d.ts +22 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/controller.js +108 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/derive.d.ts +37 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/derive.js +61 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/details.d.ts +260 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/details.js +69 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/dev-stub.d.ts +57 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/dev-stub.js +57 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/dev.d.ts +158 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/dev.js +447 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/draft.d.ts +13 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/draft.js +16 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/elements.d.ts +14 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/elements.js +15 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/events.d.ts +22 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/events.js +15 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/index.d.ts +25 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/index.js +131 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/inline-style.d.ts +6 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/inline-style.js +14 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/input-source.d.ts +67 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/input-source.js +73 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/keep.d.ts +38 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/keep.js +112 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/live.d.ts +63 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/live.js +223 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/modality.d.ts +27 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/modality.js +185 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/option-names.d.ts +5 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/option-names.js +8 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/order.d.ts +28 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/order.js +133 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/part.d.ts +155 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/part.js +493 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/primitive-types.d.ts +524 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/primitive-types.js +0 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/primitive.d.ts +132 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/primitive.js +335 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/roles.d.ts +102 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/roles.js +382 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/selects.d.ts +64 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/selects.js +157 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/store.d.ts +66 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/store.js +235 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/trusted.d.ts +3 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/trusted.js +9 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/undo-stack.d.ts +58 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/undo-stack.js +67 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/watchers.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/foundation/kernel/watchers.js +50 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/async-options.d.ts +81 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/async-options.js +101 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/autocomplete-core.d.ts +257 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/autocomplete-core.js +263 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/findable-rows.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/findable-rows.js +350 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/index.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/index.js +150 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/inline-edit.d.ts +74 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/inline-edit.js +135 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/item-icon.d.ts +158 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/item-icon.js +185 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-behavior.d.ts +102 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-behavior.js +147 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-engine.d.ts +169 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-engine.js +569 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-keyboard.d.ts +11 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-keyboard.js +57 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-keys.d.ts +9 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-keys.js +17 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-listing.d.ts +12 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-listing.js +44 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-parts.d.ts +321 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-parts.js +318 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-popup.d.ts +140 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-popup.js +108 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-search.d.ts +85 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-search.js +168 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-select-all.d.ts +115 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-select-all.js +106 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-value.d.ts +49 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox-value.js +251 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox.d.ts +70 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/listbox.js +150 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/scroll-picker.d.ts +58 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/scroll-picker.js +399 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/stick-to-bottom.d.ts +68 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/stick-to-bottom.js +167 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/tree-checked.d.ts +32 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/tree-checked.js +101 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/tree-collection.d.ts +120 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/tree-collection.js +165 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/virtualizer.d.ts +121 -0
- package/dist/vendor/ui-sdk/core/foundation/lists/virtualizer.js +398 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/content-scroll.d.ts +63 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/content-scroll.js +95 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/curves.d.ts +4 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/curves.js +27 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/gesture.d.ts +5 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/gesture.js +13 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/handoff.d.ts +11 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/handoff.js +10 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/index.d.ts +12 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/index.js +54 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/machine.d.ts +167 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/machine.js +363 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/panel.d.ts +70 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/panel.js +135 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/physics.d.ts +38 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/physics.js +21 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/presence.d.ts +25 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/presence.js +138 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/projection.d.ts +21 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/projection.js +46 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/rubber-band.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/rubber-band.js +27 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/sector.d.ts +17 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/sector.js +11 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/snap-points.d.ts +45 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/snap-points.js +68 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/spring.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/spring.js +76 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/velocity.d.ts +24 -0
- package/dist/vendor/ui-sdk/core/foundation/motion/velocity.js +113 -0
- package/dist/vendor/ui-sdk/core/foundation/number/format.d.ts +50 -0
- package/dist/vendor/ui-sdk/core/foundation/number/format.js +71 -0
- package/dist/vendor/ui-sdk/core/foundation/number/index.d.ts +5 -0
- package/dist/vendor/ui-sdk/core/foundation/number/index.js +48 -0
- package/dist/vendor/ui-sdk/core/foundation/number/keys.d.ts +42 -0
- package/dist/vendor/ui-sdk/core/foundation/number/keys.js +37 -0
- package/dist/vendor/ui-sdk/core/foundation/number/number.d.ts +5 -0
- package/dist/vendor/ui-sdk/core/foundation/number/number.js +39 -0
- package/dist/vendor/ui-sdk/core/foundation/number/parse.d.ts +18 -0
- package/dist/vendor/ui-sdk/core/foundation/number/parse.js +107 -0
- package/dist/vendor/ui-sdk/core/foundation/number/scale.d.ts +30 -0
- package/dist/vendor/ui-sdk/core/foundation/number/scale.js +26 -0
- package/dist/vendor/ui-sdk/core/foundation/number/steps.d.ts +125 -0
- package/dist/vendor/ui-sdk/core/foundation/number/steps.js +145 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/announce.d.ts +26 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/announce.js +61 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/bind-layer.d.ts +40 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/bind-layer.js +53 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/button.d.ts +26 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/button.js +72 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/env.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/env.js +13 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/index.d.ts +11 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/index.js +110 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/keyboard.d.ts +29 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/keyboard.js +150 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/layers.d.ts +44 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/layers.js +399 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/layout.d.ts +17 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/layout.js +91 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/moves.d.ts +18 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/moves.js +127 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/platform.d.ts +45 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/platform.js +188 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/position.d.ts +201 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/position.js +553 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/scrollbar.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/scrollbar.js +43 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/sides.d.ts +9 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/sides.js +13 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/style.d.ts +31 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/style.js +146 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/viewport.d.ts +49 -0
- package/dist/vendor/ui-sdk/core/foundation/platform/viewport.js +215 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/bridge.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/bridge.js +41 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/create-popup.d.ts +238 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/create-popup.js +227 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/dismissal.d.ts +44 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/dismissal.js +31 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/hover.d.ts +13 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/hover.js +77 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/index.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/index.js +118 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/modal-attribute.d.ts +13 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/modal-attribute.js +29 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/modal.d.ts +38 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/modal.js +269 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-behavior.d.ts +100 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-behavior.js +66 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-elements.d.ts +5 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-elements.js +36 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-features.d.ts +96 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-features.js +349 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-hover-presets.d.ts +55 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-hover-presets.js +37 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-payload.d.ts +24 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-payload.js +33 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-presets.d.ts +182 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-presets.js +109 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-slots.d.ts +183 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-slots.js +217 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-steps.d.ts +122 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup-steps.js +181 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup.d.ts +227 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/popup.js +977 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/presentation.d.ts +61 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/presentation.js +94 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/safe-area.d.ts +13 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/safe-area.js +68 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-axis.d.ts +35 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-axis.js +85 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-driver.d.ts +71 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-driver.js +27 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-effects.d.ts +52 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-effects.js +288 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-pointer.d.ts +12 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-pointer.js +557 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-presentation.d.ts +5 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-presentation.js +135 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-scroll-snap.d.ts +13 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet-scroll-snap.js +382 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet.d.ts +92 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/sheet.js +440 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/theme-color.d.ts +10 -0
- package/dist/vendor/ui-sdk/core/foundation/popups/theme-color.js +44 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/color-scheme.d.ts +141 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/color-scheme.js +151 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/index.d.ts +2 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/index.js +15 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/pointer-kind.d.ts +87 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/pointer-kind.js +132 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/preference.d.ts +152 -0
- package/dist/vendor/ui-sdk/core/foundation/preferences/preference.js +174 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/cell-range.d.ts +176 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/cell-range.js +384 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/index.d.ts +3 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/index.js +10 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/indicator.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/indicator.js +40 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/lasso.d.ts +60 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/lasso.js +78 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/listbox-range.d.ts +36 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/listbox-range.js +39 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/selection-model.d.ts +90 -0
- package/dist/vendor/ui-sdk/core/foundation/selection/selection-model.js +136 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/create-shortcuts.d.ts +83 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/create-shortcuts.js +154 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/index.d.ts +3 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/index.js +20 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/shortcut-order.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/shortcut-order.js +48 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/shortcut-slot.d.ts +21 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/shortcut-slot.js +73 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/shortcuts.d.ts +19 -0
- package/dist/vendor/ui-sdk/core/foundation/shortcuts/shortcuts.js +14 -0
- package/dist/vendor/ui-sdk/core/foundation/storage/index.d.ts +1 -0
- package/dist/vendor/ui-sdk/core/foundation/storage/index.js +15 -0
- package/dist/vendor/ui-sdk/core/foundation/storage/storage.d.ts +177 -0
- package/dist/vendor/ui-sdk/core/foundation/storage/storage.js +256 -0
- package/dist/vendor/ui-sdk/core/foundation/text/accessible-name.d.ts +12 -0
- package/dist/vendor/ui-sdk/core/foundation/text/accessible-name.js +121 -0
- package/dist/vendor/ui-sdk/core/foundation/text/caret.d.ts +43 -0
- package/dist/vendor/ui-sdk/core/foundation/text/caret.js +272 -0
- package/dist/vendor/ui-sdk/core/foundation/text/fuzzy.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/foundation/text/fuzzy.js +69 -0
- package/dist/vendor/ui-sdk/core/foundation/text/index.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/foundation/text/index.js +48 -0
- package/dist/vendor/ui-sdk/core/foundation/text/input-history.d.ts +41 -0
- package/dist/vendor/ui-sdk/core/foundation/text/input-history.js +83 -0
- package/dist/vendor/ui-sdk/core/foundation/text/locale.d.ts +22 -0
- package/dist/vendor/ui-sdk/core/foundation/text/locale.js +38 -0
- package/dist/vendor/ui-sdk/core/foundation/text/match.d.ts +51 -0
- package/dist/vendor/ui-sdk/core/foundation/text/match.js +170 -0
- package/dist/vendor/ui-sdk/core/foundation/text/name-check-stub.d.ts +6 -0
- package/dist/vendor/ui-sdk/core/foundation/text/name-check-stub.js +11 -0
- package/dist/vendor/ui-sdk/core/foundation/text/name-check.d.ts +18 -0
- package/dist/vendor/ui-sdk/core/foundation/text/name-check.js +26 -0
- package/dist/vendor/ui-sdk/core/foundation/text/text-editor.d.ts +93 -0
- package/dist/vendor/ui-sdk/core/foundation/text/text-editor.js +0 -0
- package/dist/vendor/ui-sdk/core/foundation/text/text-match.d.ts +2 -0
- package/dist/vendor/ui-sdk/core/foundation/text/text-match.js +11 -0
- package/dist/vendor/ui-sdk/core/foundation/text/typeahead.d.ts +43 -0
- package/dist/vendor/ui-sdk/core/foundation/text/typeahead.js +72 -0
- package/dist/vendor/ui-sdk/core/index.d.ts +73 -0
- package/dist/vendor/ui-sdk/core/index.js +322 -0
- package/dist/vendor/ui-sdk/core/page/agent/agent.d.ts +252 -0
- package/dist/vendor/ui-sdk/core/page/agent/agent.js +1326 -0
- package/dist/vendor/ui-sdk/core/page/agent/guard.d.ts +3 -0
- package/dist/vendor/ui-sdk/core/page/agent/guard.js +5 -0
- package/dist/vendor/ui-sdk/core/page/history/history.d.ts +93 -0
- package/dist/vendor/ui-sdk/core/page/history/history.js +233 -0
- package/dist/vendor/ui-sdk/core/page/history/stage.d.ts +42 -0
- package/dist/vendor/ui-sdk/core/page/history/stage.js +58 -0
- package/dist/vendor/ui-sdk/core/page/observe/marks.d.ts +6 -0
- package/dist/vendor/ui-sdk/core/page/observe/marks.js +38 -0
- package/dist/vendor/ui-sdk/core/page/observe/observe.d.ts +35 -0
- package/dist/vendor/ui-sdk/core/page/observe/observe.js +26 -0
- package/dist/vendor/ui-sdk/core/page/observe/registry.d.ts +72 -0
- package/dist/vendor/ui-sdk/core/page/observe/registry.js +265 -0
- package/dist/vendor/ui-sdk/core/page/overlays/overlays.d.ts +50 -0
- package/dist/vendor/ui-sdk/core/page/overlays/overlays.js +69 -0
- package/dist/vendor/ui-sdk/core/page/shortcuts/shortcuts.d.ts +2 -0
- package/dist/vendor/ui-sdk/core/page/shortcuts/shortcuts.js +17 -0
- package/dist/vendor/ui-sdk/core/renderer.d.ts +58 -0
- package/dist/vendor/ui-sdk/core/renderer.js +155 -0
- package/dist/vendor/ui-sdk/core/testing/aria.d.ts +34 -0
- package/dist/vendor/ui-sdk/core/testing/aria.js +138 -0
- package/dist/vendor/ui-sdk/core/testing/check-direction.d.ts +15 -0
- package/dist/vendor/ui-sdk/core/testing/check-direction.js +80 -0
- package/dist/vendor/ui-sdk/core/testing/check-pattern.d.ts +33 -0
- package/dist/vendor/ui-sdk/core/testing/check-pattern.js +64 -0
- package/dist/vendor/ui-sdk/core/testing/check-server.d.ts +16 -0
- package/dist/vendor/ui-sdk/core/testing/check-server.js +164 -0
- package/dist/vendor/ui-sdk/core/testing/composite.d.ts +46 -0
- package/dist/vendor/ui-sdk/core/testing/composite.js +200 -0
- package/dist/vendor/ui-sdk/core/testing/input.d.ts +28 -0
- package/dist/vendor/ui-sdk/core/testing/input.js +235 -0
- package/dist/vendor/ui-sdk/core/testing/markup.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/testing/markup.js +67 -0
- package/dist/vendor/ui-sdk/core/testing/mount.d.ts +55 -0
- package/dist/vendor/ui-sdk/core/testing/mount.js +312 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-context.d.ts +37 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-context.js +186 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-controls.d.ts +12 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-controls.js +317 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-lists.d.ts +17 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-lists.js +535 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-popups.d.ts +8 -0
- package/dist/vendor/ui-sdk/core/testing/pattern-popups.js +383 -0
- package/dist/vendor/ui-sdk/core/testing/schema.d.ts +20 -0
- package/dist/vendor/ui-sdk/core/testing/schema.js +80 -0
- package/dist/vendor/ui-sdk/core/testing.d.ts +14 -0
- package/dist/vendor/ui-sdk/core/testing.js +21 -0
- package/dist/vendor/ui-sdk/core/web.css +3378 -0
- package/dist/vendor/ui-sdk/react/accordion.d.ts +331 -0
- package/dist/vendor/ui-sdk/react/accordion.js +25 -0
- package/dist/vendor/ui-sdk/react/agent.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/agent.js +8 -0
- package/dist/vendor/ui-sdk/react/alert-dialog.d.ts +56 -0
- package/dist/vendor/ui-sdk/react/alert-dialog.js +45 -0
- package/dist/vendor/ui-sdk/react/async-options.d.ts +22 -0
- package/dist/vendor/ui-sdk/react/async-options.js +56 -0
- package/dist/vendor/ui-sdk/react/autocomplete.d.ts +102 -0
- package/dist/vendor/ui-sdk/react/autocomplete.js +195 -0
- package/dist/vendor/ui-sdk/react/avatar.d.ts +301 -0
- package/dist/vendor/ui-sdk/react/avatar.js +17 -0
- package/dist/vendor/ui-sdk/react/button.d.ts +21 -0
- package/dist/vendor/ui-sdk/react/button.js +50 -0
- package/dist/vendor/ui-sdk/react/calendar-context.d.ts +10 -0
- package/dist/vendor/ui-sdk/react/calendar-context.js +9 -0
- package/dist/vendor/ui-sdk/react/calendar.d.ts +80 -0
- package/dist/vendor/ui-sdk/react/calendar.js +257 -0
- package/dist/vendor/ui-sdk/react/carousel.d.ts +52 -0
- package/dist/vendor/ui-sdk/react/carousel.js +151 -0
- package/dist/vendor/ui-sdk/react/checkbox.d.ts +24 -0
- package/dist/vendor/ui-sdk/react/checkbox.js +98 -0
- package/dist/vendor/ui-sdk/react/children.d.ts +38 -0
- package/dist/vendor/ui-sdk/react/children.js +63 -0
- package/dist/vendor/ui-sdk/react/collapsible.d.ts +302 -0
- package/dist/vendor/ui-sdk/react/collapsible.js +19 -0
- package/dist/vendor/ui-sdk/react/color-picker.d.ts +72 -0
- package/dist/vendor/ui-sdk/react/color-picker.js +133 -0
- package/dist/vendor/ui-sdk/react/color.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/color.js +22 -0
- package/dist/vendor/ui-sdk/react/combobox.d.ts +152 -0
- package/dist/vendor/ui-sdk/react/combobox.js +338 -0
- package/dist/vendor/ui-sdk/react/command.d.ts +88 -0
- package/dist/vendor/ui-sdk/react/command.js +233 -0
- package/dist/vendor/ui-sdk/react/controller-target.d.ts +3 -0
- package/dist/vendor/ui-sdk/react/controller-target.js +59 -0
- package/dist/vendor/ui-sdk/react/date-input.d.ts +19 -0
- package/dist/vendor/ui-sdk/react/date-input.js +58 -0
- package/dist/vendor/ui-sdk/react/date-picker.d.ts +47 -0
- package/dist/vendor/ui-sdk/react/date-picker.js +310 -0
- package/dist/vendor/ui-sdk/react/date.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/date.js +60 -0
- package/dist/vendor/ui-sdk/react/dialog-parts.d.ts +23 -0
- package/dist/vendor/ui-sdk/react/dialog-parts.js +142 -0
- package/dist/vendor/ui-sdk/react/dialog.d.ts +57 -0
- package/dist/vendor/ui-sdk/react/dialog.js +32 -0
- package/dist/vendor/ui-sdk/react/drawer.d.ts +70 -0
- package/dist/vendor/ui-sdk/react/drawer.js +158 -0
- package/dist/vendor/ui-sdk/react/editor-context.d.ts +4 -0
- package/dist/vendor/ui-sdk/react/editor-context.js +9 -0
- package/dist/vendor/ui-sdk/react/field-context.d.ts +47 -0
- package/dist/vendor/ui-sdk/react/field-context.js +87 -0
- package/dist/vendor/ui-sdk/react/field.d.ts +49 -0
- package/dist/vendor/ui-sdk/react/field.js +169 -0
- package/dist/vendor/ui-sdk/react/file-input.d.ts +46 -0
- package/dist/vendor/ui-sdk/react/file-input.js +170 -0
- package/dist/vendor/ui-sdk/react/form-inputs.d.ts +5 -0
- package/dist/vendor/ui-sdk/react/form-inputs.js +22 -0
- package/dist/vendor/ui-sdk/react/gesture.d.ts +1 -0
- package/dist/vendor/ui-sdk/react/gesture.js +16 -0
- package/dist/vendor/ui-sdk/react/history.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/history.js +12 -0
- package/dist/vendor/ui-sdk/react/hover-card.d.ts +33 -0
- package/dist/vendor/ui-sdk/react/hover-card.js +84 -0
- package/dist/vendor/ui-sdk/react/image-cropper.d.ts +333 -0
- package/dist/vendor/ui-sdk/react/image-cropper.js +37 -0
- package/dist/vendor/ui-sdk/react/image.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/image.js +6 -0
- package/dist/vendor/ui-sdk/react/input.d.ts +22 -0
- package/dist/vendor/ui-sdk/react/input.js +51 -0
- package/dist/vendor/ui-sdk/react/label.d.ts +294 -0
- package/dist/vendor/ui-sdk/react/label.js +9 -0
- package/dist/vendor/ui-sdk/react/list-items.d.ts +15 -0
- package/dist/vendor/ui-sdk/react/list-items.js +39 -0
- package/dist/vendor/ui-sdk/react/list-text.d.ts +4 -0
- package/dist/vendor/ui-sdk/react/list-text.js +15 -0
- package/dist/vendor/ui-sdk/react/listbox.d.ts +56 -0
- package/dist/vendor/ui-sdk/react/listbox.js +122 -0
- package/dist/vendor/ui-sdk/react/menu.d.ts +116 -0
- package/dist/vendor/ui-sdk/react/menu.js +426 -0
- package/dist/vendor/ui-sdk/react/menubar-context.d.ts +4 -0
- package/dist/vendor/ui-sdk/react/menubar-context.js +7 -0
- package/dist/vendor/ui-sdk/react/menubar.d.ts +11 -0
- package/dist/vendor/ui-sdk/react/menubar.js +32 -0
- package/dist/vendor/ui-sdk/react/meter.d.ts +312 -0
- package/dist/vendor/ui-sdk/react/meter.js +30 -0
- package/dist/vendor/ui-sdk/react/navigation-menu.d.ts +61 -0
- package/dist/vendor/ui-sdk/react/navigation-menu.js +169 -0
- package/dist/vendor/ui-sdk/react/number-input.d.ts +44 -0
- package/dist/vendor/ui-sdk/react/number-input.js +185 -0
- package/dist/vendor/ui-sdk/react/number.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/number.js +40 -0
- package/dist/vendor/ui-sdk/react/observe.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/observe.js +8 -0
- package/dist/vendor/ui-sdk/react/otp-input.d.ts +29 -0
- package/dist/vendor/ui-sdk/react/otp-input.js +94 -0
- package/dist/vendor/ui-sdk/react/overlays.d.ts +26 -0
- package/dist/vendor/ui-sdk/react/overlays.js +82 -0
- package/dist/vendor/ui-sdk/react/pagination.d.ts +336 -0
- package/dist/vendor/ui-sdk/react/pagination.js +71 -0
- package/dist/vendor/ui-sdk/react/password-input.d.ts +23 -0
- package/dist/vendor/ui-sdk/react/password-input.js +65 -0
- package/dist/vendor/ui-sdk/react/popover.d.ts +54 -0
- package/dist/vendor/ui-sdk/react/popover.js +151 -0
- package/dist/vendor/ui-sdk/react/popup.d.ts +41 -0
- package/dist/vendor/ui-sdk/react/popup.js +180 -0
- package/dist/vendor/ui-sdk/react/preferences.d.ts +35 -0
- package/dist/vendor/ui-sdk/react/preferences.js +93 -0
- package/dist/vendor/ui-sdk/react/primitive.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/primitive.js +14 -0
- package/dist/vendor/ui-sdk/react/progress.d.ts +312 -0
- package/dist/vendor/ui-sdk/react/progress.js +30 -0
- package/dist/vendor/ui-sdk/react/radio.d.ts +22 -0
- package/dist/vendor/ui-sdk/react/radio.js +86 -0
- package/dist/vendor/ui-sdk/react/rating.d.ts +20 -0
- package/dist/vendor/ui-sdk/react/rating.js +94 -0
- package/dist/vendor/ui-sdk/react/render-element.d.ts +35 -0
- package/dist/vendor/ui-sdk/react/render-element.js +103 -0
- package/dist/vendor/ui-sdk/react/resizable.d.ts +302 -0
- package/dist/vendor/ui-sdk/react/resizable.js +23 -0
- package/dist/vendor/ui-sdk/react/scroll-area.d.ts +324 -0
- package/dist/vendor/ui-sdk/react/scroll-area.js +49 -0
- package/dist/vendor/ui-sdk/react/segmented-control.d.ts +24 -0
- package/dist/vendor/ui-sdk/react/segmented-control.js +78 -0
- package/dist/vendor/ui-sdk/react/segmented-input.d.ts +15 -0
- package/dist/vendor/ui-sdk/react/segmented-input.js +48 -0
- package/dist/vendor/ui-sdk/react/select.d.ts +125 -0
- package/dist/vendor/ui-sdk/react/select.js +344 -0
- package/dist/vendor/ui-sdk/react/separator.d.ts +290 -0
- package/dist/vendor/ui-sdk/react/separator.js +9 -0
- package/dist/vendor/ui-sdk/react/shortcuts.d.ts +32 -0
- package/dist/vendor/ui-sdk/react/shortcuts.js +61 -0
- package/dist/vendor/ui-sdk/react/slider.d.ts +38 -0
- package/dist/vendor/ui-sdk/react/slider.js +163 -0
- package/dist/vendor/ui-sdk/react/switch.d.ts +15 -0
- package/dist/vendor/ui-sdk/react/switch.js +39 -0
- package/dist/vendor/ui-sdk/react/tabs.d.ts +331 -0
- package/dist/vendor/ui-sdk/react/tabs.js +28 -0
- package/dist/vendor/ui-sdk/react/text-control.d.ts +22 -0
- package/dist/vendor/ui-sdk/react/text-control.js +24 -0
- package/dist/vendor/ui-sdk/react/text-match.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/text-match.js +8 -0
- package/dist/vendor/ui-sdk/react/textarea.d.ts +10 -0
- package/dist/vendor/ui-sdk/react/textarea.js +48 -0
- package/dist/vendor/ui-sdk/react/time-input.d.ts +19 -0
- package/dist/vendor/ui-sdk/react/time-input.js +63 -0
- package/dist/vendor/ui-sdk/react/timeline.d.ts +327 -0
- package/dist/vendor/ui-sdk/react/timeline.js +31 -0
- package/dist/vendor/ui-sdk/react/toast-parts.d.ts +63 -0
- package/dist/vendor/ui-sdk/react/toast-parts.js +144 -0
- package/dist/vendor/ui-sdk/react/toast.d.ts +2 -0
- package/dist/vendor/ui-sdk/react/toast.js +22 -0
- package/dist/vendor/ui-sdk/react/toggle.d.ts +23 -0
- package/dist/vendor/ui-sdk/react/toggle.js +76 -0
- package/dist/vendor/ui-sdk/react/token-input.d.ts +35 -0
- package/dist/vendor/ui-sdk/react/token-input.js +100 -0
- package/dist/vendor/ui-sdk/react/toolbar-context.d.ts +6 -0
- package/dist/vendor/ui-sdk/react/toolbar-context.js +16 -0
- package/dist/vendor/ui-sdk/react/toolbar.d.ts +38 -0
- package/dist/vendor/ui-sdk/react/toolbar.js +63 -0
- package/dist/vendor/ui-sdk/react/tooltip.d.ts +39 -0
- package/dist/vendor/ui-sdk/react/tooltip.js +108 -0
- package/dist/vendor/ui-sdk/react/tree.d.ts +51 -0
- package/dist/vendor/ui-sdk/react/tree.js +150 -0
- package/dist/vendor/ui-sdk/react/trigger-menu.d.ts +83 -0
- package/dist/vendor/ui-sdk/react/trigger-menu.js +167 -0
- package/dist/vendor/ui-sdk/react/use-primitive.d.ts +178 -0
- package/dist/vendor/ui-sdk/react/use-primitive.js +674 -0
- package/dist/vendor/ui-sdk/react/waterfall.d.ts +80 -0
- package/dist/vendor/ui-sdk/react/waterfall.js +108 -0
- package/package.json +2016 -23
- package/dist/components/chat-column.d.ts +0 -8
- package/dist/components/chat-column.d.ts.map +0 -1
- package/dist/components/chat-column.js +0 -26
- package/dist/components/code-editor-window.d.ts +0 -191
- package/dist/components/code-editor-window.d.ts.map +0 -1
- package/dist/components/code-editor-window.js +0 -1474
- package/dist/components/color-field.d.ts +0 -22
- package/dist/components/color-field.d.ts.map +0 -1
- package/dist/components/color-field.js +0 -60
- package/dist/components/composer/annotator.d.ts +0 -22
- package/dist/components/composer/annotator.d.ts.map +0 -1
- package/dist/components/composer/annotator.js +0 -17
- package/dist/components/composer/composer-popover.d.ts +0 -9
- package/dist/components/composer/composer-popover.d.ts.map +0 -1
- package/dist/components/composer/composer-popover.js +0 -29
- package/dist/components/context-menu.d.ts +0 -25
- package/dist/components/context-menu.d.ts.map +0 -1
- package/dist/components/context-menu.js +0 -127
- package/dist/components/credenza.d.ts +0 -24
- package/dist/components/credenza.d.ts.map +0 -1
- package/dist/components/credenza.js +0 -256
- package/dist/components/date-field.d.ts +0 -19
- package/dist/components/date-field.d.ts.map +0 -1
- package/dist/components/date-field.js +0 -79
- package/dist/components/edge-drawer.d.ts +0 -34
- package/dist/components/edge-drawer.d.ts.map +0 -1
- package/dist/components/edge-drawer.js +0 -77
- package/dist/components/edit-bar.d.ts +0 -11
- package/dist/components/edit-bar.d.ts.map +0 -1
- package/dist/components/edit-bar.js +0 -33
- package/dist/components/floating-chat.d.ts +0 -94
- package/dist/components/floating-chat.d.ts.map +0 -1
- package/dist/components/floating-chat.js +0 -271
- package/dist/components/form.d.ts +0 -9
- package/dist/components/form.d.ts.map +0 -1
- package/dist/components/form.js +0 -32
- package/dist/components/icon-swap.d.ts +0 -27
- package/dist/components/icon-swap.d.ts.map +0 -1
- package/dist/components/icon-swap.js +0 -80
- package/dist/components/list-box.d.ts +0 -28
- package/dist/components/list-box.d.ts.map +0 -1
- package/dist/components/list-box.js +0 -104
- package/dist/components/passkey-enroll-dialog.d.ts +0 -36
- package/dist/components/passkey-enroll-dialog.d.ts.map +0 -1
- package/dist/components/passkey-enroll-dialog.js +0 -234
- package/dist/components/plain-button.d.ts +0 -10
- package/dist/components/plain-button.d.ts.map +0 -1
- package/dist/components/plain-button.js +0 -23
- package/dist/components/qr-svg.d.ts +0 -37
- package/dist/components/qr-svg.d.ts.map +0 -1
- package/dist/components/qr-svg.js +0 -74
- package/dist/components/result-table.d.ts +0 -38
- package/dist/components/result-table.d.ts.map +0 -1
- package/dist/components/result-table.js +0 -161
- package/dist/components/schema-tree.d.ts +0 -19
- package/dist/components/schema-tree.d.ts.map +0 -1
- package/dist/components/schema-tree.js +0 -103
- package/dist/components/search-field.d.ts +0 -20
- package/dist/components/search-field.d.ts.map +0 -1
- package/dist/components/search-field.js +0 -44
- package/dist/components/side-drawer.d.ts +0 -27
- package/dist/components/side-drawer.d.ts.map +0 -1
- package/dist/components/side-drawer.js +0 -221
- package/dist/components/spinner-shapes.d.ts +0 -299
- package/dist/components/spinner-shapes.d.ts.map +0 -1
- package/dist/components/spinner-shapes.js +0 -876
- package/dist/components/sql-editor.d.ts +0 -47
- package/dist/components/sql-editor.d.ts.map +0 -1
- package/dist/components/sql-editor.js +0 -170
- package/dist/components/strudel-rack.d.ts +0 -3
- package/dist/components/strudel-rack.d.ts.map +0 -1
- package/dist/components/strudel-rack.js +0 -2
- package/dist/components/strudel-syntax.d.ts +0 -3
- package/dist/components/strudel-syntax.d.ts.map +0 -1
- package/dist/components/strudel-syntax.js +0 -2
- package/dist/components/syntax-highlighting.d.ts +0 -70
- package/dist/components/syntax-highlighting.d.ts.map +0 -1
- package/dist/components/syntax-highlighting.js +0 -54
- package/dist/components/tab-bar.d.ts +0 -18
- package/dist/components/tab-bar.d.ts.map +0 -1
- package/dist/components/tab-bar.js +0 -28
- package/dist/components/tab-view.d.ts +0 -94
- package/dist/components/tab-view.d.ts.map +0 -1
- package/dist/components/tab-view.js +0 -321
- package/dist/components/tailscale-login-button.d.ts +0 -53
- package/dist/components/tailscale-login-button.d.ts.map +0 -1
- package/dist/components/tailscale-login-button.js +0 -197
- package/dist/components/tailscale-menu.d.ts +0 -69
- package/dist/components/tailscale-menu.d.ts.map +0 -1
- package/dist/components/tailscale-menu.js +0 -202
- package/dist/components/text-field.d.ts +0 -9
- package/dist/components/text-field.d.ts.map +0 -1
- package/dist/components/text-field.js +0 -29
- package/dist/components/time-input.d.ts +0 -46
- package/dist/components/time-input.d.ts.map +0 -1
- package/dist/components/time-input.js +0 -258
- package/dist/components/toggle-group.d.ts +0 -15
- package/dist/components/toggle-group.d.ts.map +0 -1
- package/dist/components/toggle-group.js +0 -48
- package/dist/components/workbench-theme.d.ts +0 -15
- package/dist/components/workbench-theme.d.ts.map +0 -1
- package/dist/components/workbench-theme.js +0 -34
- package/dist/lib/back-history.d.ts +0 -5
- package/dist/lib/back-history.d.ts.map +0 -1
- package/dist/lib/back-history.js +0 -44
- package/dist/lib/drawer-swipe.d.ts +0 -31
- package/dist/lib/drawer-swipe.d.ts.map +0 -1
- package/dist/lib/drawer-swipe.js +0 -68
- package/dist/lib/format-bytes.d.ts +0 -3
- package/dist/lib/format-bytes.d.ts.map +0 -1
- package/dist/lib/format-bytes.js +0 -16
- package/dist/lib/log-list-window.d.ts +0 -121
- package/dist/lib/log-list-window.d.ts.map +0 -1
- package/dist/lib/log-list-window.js +0 -245
- package/dist/lib/persistent-host.d.ts +0 -29
- package/dist/lib/persistent-host.d.ts.map +0 -1
- package/dist/lib/persistent-host.js +0 -41
- package/dist/lib/scroll-hidden.d.ts +0 -6
- package/dist/lib/scroll-hidden.d.ts.map +0 -1
- package/dist/lib/scroll-hidden.js +0 -21
- package/dist/lib/sheet-drag.d.ts +0 -61
- package/dist/lib/sheet-drag.d.ts.map +0 -1
- package/dist/lib/sheet-drag.js +0 -131
|
@@ -0,0 +1,3640 @@
|
|
|
1
|
+
import { unionRect as e } from "../canvas-math.js";
|
|
2
|
+
import { CONTAINER_PADDING as t, DIAGRAM_LEGIBLE_ZOOM as n, ancestorsOf as r, descendantsOf as i, diagramBounds as a, edgeLabelSize as o, facePorts as s, hasEdgeLabel as c, holdsNodes as l, indexDiagram as u, isInside as d, itemKey as f, laneRoutes as p, nodeAnatomy as m, placeItemPorts as h, portPoint as g, regionDividers as _, rerouteOrthogonal as v, sectionKey as y, sideLoopRoute as b, simplifyRoute as x } from "../diagram-model.js";
|
|
3
|
+
import { estimateText as S } from "../diagram-text.js";
|
|
4
|
+
//#region src/lib/diagram-layout/index.ts
|
|
5
|
+
var C = class extends Error {
|
|
6
|
+
code;
|
|
7
|
+
constructor(e, t, n) {
|
|
8
|
+
super(t, n), this.name = "DiagramLayoutError", this.code = e;
|
|
9
|
+
}
|
|
10
|
+
}, w = {
|
|
11
|
+
"elk.edgeLabels.inline": "true",
|
|
12
|
+
"elk.edgeLabels.placement": "CENTER"
|
|
13
|
+
}, T = "__root", E = "diagram.airTop", D = "diagram.portRows", O = {
|
|
14
|
+
side: 12,
|
|
15
|
+
bottom: 12,
|
|
16
|
+
top: 8
|
|
17
|
+
}, k = {
|
|
18
|
+
side: 8,
|
|
19
|
+
bottom: 8,
|
|
20
|
+
top: 8
|
|
21
|
+
}, A = {
|
|
22
|
+
top: "NORTH",
|
|
23
|
+
right: "EAST",
|
|
24
|
+
bottom: "SOUTH",
|
|
25
|
+
left: "WEST"
|
|
26
|
+
}, j = "[OUTSIDE, H_LEFT, V_CENTER]", M = "[OUTSIDE, H_RIGHT, V_CENTER]", N = 32, P = 20, F = 16, I = 120, L = {
|
|
27
|
+
compact: {
|
|
28
|
+
layers: 36,
|
|
29
|
+
nodes: 24,
|
|
30
|
+
edges: 8,
|
|
31
|
+
edgeNode: 12
|
|
32
|
+
},
|
|
33
|
+
default: {
|
|
34
|
+
layers: 28,
|
|
35
|
+
nodes: 64,
|
|
36
|
+
edges: 32,
|
|
37
|
+
edgeNode: 24
|
|
38
|
+
},
|
|
39
|
+
comfortable: {
|
|
40
|
+
layers: 48,
|
|
41
|
+
nodes: 80,
|
|
42
|
+
edges: 28,
|
|
43
|
+
edgeNode: 32
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
function R(e = "default") {
|
|
47
|
+
let t = L[e];
|
|
48
|
+
return {
|
|
49
|
+
"elk.algorithm": "layered",
|
|
50
|
+
"elk.direction": "DOWN",
|
|
51
|
+
"elk.hierarchyHandling": "INCLUDE_CHILDREN",
|
|
52
|
+
"elk.edgeRouting": "ORTHOGONAL",
|
|
53
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": String(t.layers),
|
|
54
|
+
"elk.spacing.nodeNode": String(t.nodes),
|
|
55
|
+
"elk.spacing.edgeEdge": String(t.edges),
|
|
56
|
+
"elk.layered.spacing.edgeEdgeBetweenLayers": String(t.edges),
|
|
57
|
+
"elk.spacing.edgeNode": String(t.edgeNode),
|
|
58
|
+
"elk.layered.spacing.edgeNodeBetweenLayers": String(t.edgeNode),
|
|
59
|
+
"elk.edgeLabels.inline": "true",
|
|
60
|
+
"elk.edgeLabels.placement": "CENTER",
|
|
61
|
+
"elk.spacing.edgeLabel": "0",
|
|
62
|
+
"elk.layered.mergeEdges": "false",
|
|
63
|
+
"elk.layered.selfLoopDistribution": "EQUALLY",
|
|
64
|
+
"elk.spacing.portPort": "16",
|
|
65
|
+
"elk.spacing.labelNode": String(N),
|
|
66
|
+
"elk.spacing.labelLabel": "12",
|
|
67
|
+
"elk.layered.feedbackEdges": "true"
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
var z = R("default"), B = (e) => `[top=${e.top},left=${e.side},bottom=${e.bottom},right=${e.side}]`, V = (e, t) => `${e}\0${t}`, H = (e) => `\0loop\0${e}`, U = {
|
|
71
|
+
w: 16,
|
|
72
|
+
h: 8
|
|
73
|
+
}, W = 30;
|
|
74
|
+
function ee(e, n = {}) {
|
|
75
|
+
let i = n.text ?? S, a = G(e.nodes).map((e) => ({
|
|
76
|
+
...e,
|
|
77
|
+
x: e.x ?? 0,
|
|
78
|
+
y: e.y ?? 0,
|
|
79
|
+
w: e.w ?? 0,
|
|
80
|
+
h: e.h ?? 0
|
|
81
|
+
})), s = u(a), c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
82
|
+
for (let t of e.edges ?? []) t.from === t.to && s.byId.has(t.from) && d.set(t.from, [...d.get(t.from) ?? [], t]);
|
|
83
|
+
let p = /* @__PURE__ */ new Map(), g = (e) => {
|
|
84
|
+
let t = p.get(e.id);
|
|
85
|
+
return t || (t = m(e, i), p.set(e.id, t)), t;
|
|
86
|
+
}, _ = /* @__PURE__ */ new Set();
|
|
87
|
+
for (let t of e.edges ?? []) {
|
|
88
|
+
if (t.from === t.to || !s.byId.has(t.from) || !s.byId.has(t.to)) continue;
|
|
89
|
+
let e = r(s, t.from), n = r(s, t.to);
|
|
90
|
+
for (let r of [...e.filter((e) => !n.includes(e) && e !== t.to), ...n.filter((n) => !e.includes(n) && n !== t.from)]) _.add(r);
|
|
91
|
+
}
|
|
92
|
+
let v = (e) => {
|
|
93
|
+
let n = e.kind === "region" ? O : s.children.get(e.id)?.some((e) => e.kind === "region") ? k : t;
|
|
94
|
+
if (!_.has(e.id) || e.kind !== "group") return n;
|
|
95
|
+
let r = s.children.get(e.id)?.some((e) => e.entry) ? 18 : 0;
|
|
96
|
+
return {
|
|
97
|
+
top: Math.max(n.top, W + r),
|
|
98
|
+
side: Math.max(n.side, W),
|
|
99
|
+
bottom: Math.max(n.bottom, W)
|
|
100
|
+
};
|
|
101
|
+
}, b = /* @__PURE__ */ new Map(), x = (e) => Math.max(0, ...(s.children.get(e) ?? []).map((e) => C(e))), C = (e) => {
|
|
102
|
+
let t = b.get(e.id);
|
|
103
|
+
if (t === void 0) {
|
|
104
|
+
b.set(e.id, 0);
|
|
105
|
+
let n = e.w || g(e).w;
|
|
106
|
+
t = s.children.get(e.id)?.length ? Math.max(n, x(e.id) + v(e).side * 2) : n, b.set(e.id, t);
|
|
107
|
+
}
|
|
108
|
+
return t;
|
|
109
|
+
}, N = /* @__PURE__ */ new Map();
|
|
110
|
+
for (let t of e.edges ?? []) t.from !== t.to && (N.set(`${t.from}\0out`, (N.get(`${t.from}\0out`) ?? 0) + 1), N.set(`${t.to}\0in`, (N.get(`${t.to}\0in`) ?? 0) + 1));
|
|
111
|
+
let L = new Set((e.edges ?? []).flatMap((e) => [...e.fromPort ? [V(e.from, e.fromPort)] : [], ...e.toPort ? [V(e.to, e.toPort)] : []]));
|
|
112
|
+
for (let e of a) {
|
|
113
|
+
let t = { id: e.id }, n = !!s.children.get(e.id)?.length, r = g(e), a = n || l(e), u = a ? e : h(e, r, e.h || r.h);
|
|
114
|
+
if (a) {
|
|
115
|
+
t.children = [];
|
|
116
|
+
let e = v(u), n = u.w || r.w, i = e.side + Math.max(0, Math.ceil((n - x(u.id) - e.side * 2) / 2)), a = {};
|
|
117
|
+
u.sections?.forEach((e, t) => e.items.forEach((n) => {
|
|
118
|
+
if (n.port) {
|
|
119
|
+
let i = r.rows.get(`${y(e, t)}\0${f(n)}`);
|
|
120
|
+
i !== void 0 && (a[n.port] = Math.round(i * 100) / 100);
|
|
121
|
+
}
|
|
122
|
+
}));
|
|
123
|
+
for (let e of u.ports ?? []) e.offset !== void 0 && (e.side === "left" || e.side === "right") && (a[e.id] = e.offset);
|
|
124
|
+
t.layoutOptions = {
|
|
125
|
+
"elk.padding": B({
|
|
126
|
+
...e,
|
|
127
|
+
side: i,
|
|
128
|
+
top: Math.ceil(r.top) + e.top
|
|
129
|
+
}),
|
|
130
|
+
[E]: String(e.top),
|
|
131
|
+
...Object.keys(a).length ? { [D]: JSON.stringify(a) } : null,
|
|
132
|
+
"elk.nodeSize.constraints": "MINIMUM_SIZE",
|
|
133
|
+
"elk.nodeSize.minimum": `(${u.w || r.w}, ${u.h || r.h})`
|
|
134
|
+
};
|
|
135
|
+
} else t.width = u.w || (u.kind === "marker" ? r.w : Math.max(r.w, (Math.max(N.get(`${u.id}\0out`) ?? 0, N.get(`${u.id}\0in`) ?? 0) + 1) * F)), t.height = u.h || r.h;
|
|
136
|
+
let p = a ? [] : d.get(u.id) ?? [];
|
|
137
|
+
p.length && (t.labels = p.map((e, t) => {
|
|
138
|
+
let n = o(e, i) ?? U, r = u.entry ? t % 2 == 0 : t % 2 == 1;
|
|
139
|
+
return {
|
|
140
|
+
id: H(e.id),
|
|
141
|
+
text: e.title ?? "",
|
|
142
|
+
width: n.w,
|
|
143
|
+
height: n.h + P,
|
|
144
|
+
layoutOptions: { "elk.nodeLabels.placement": r ? M : j }
|
|
145
|
+
};
|
|
146
|
+
})), u.entry && (t.layoutOptions = {
|
|
147
|
+
...t.layoutOptions,
|
|
148
|
+
"elk.layered.layering.layerConstraint": "FIRST"
|
|
149
|
+
});
|
|
150
|
+
let m = u.ports?.filter((e) => L.has(V(u.id, e.id)));
|
|
151
|
+
if (m?.length) {
|
|
152
|
+
let e = t.width !== void 0 && t.height !== void 0;
|
|
153
|
+
t.layoutOptions = {
|
|
154
|
+
...t.layoutOptions,
|
|
155
|
+
"elk.portConstraints": e ? "FIXED_POS" : "FIXED_SIDE"
|
|
156
|
+
}, t.ports = m.map((n) => {
|
|
157
|
+
let r = n.side === "left" || n.side === "right" ? t.height ?? 0 : t.width ?? 0, i = n.offset === void 0 ? n.at ?? .5 : Math.min(1, n.offset / (r || 1)), a = e ? n.side === "left" ? {
|
|
158
|
+
x: 0,
|
|
159
|
+
y: i * t.height
|
|
160
|
+
} : n.side === "right" ? {
|
|
161
|
+
x: t.width,
|
|
162
|
+
y: i * t.height
|
|
163
|
+
} : n.side === "top" ? {
|
|
164
|
+
x: i * t.width,
|
|
165
|
+
y: 0
|
|
166
|
+
} : {
|
|
167
|
+
x: i * t.width,
|
|
168
|
+
y: t.height
|
|
169
|
+
} : null;
|
|
170
|
+
return {
|
|
171
|
+
id: V(u.id, n.id),
|
|
172
|
+
width: 0,
|
|
173
|
+
height: 0,
|
|
174
|
+
...a,
|
|
175
|
+
layoutOptions: { "elk.port.side": A[n.side] }
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
c.set(u.id, t);
|
|
180
|
+
}
|
|
181
|
+
let z = a.length <= I ? { "elk.layered.nodePlacement.strategy": "NETWORK_SIMPLEX" } : null, ee = {
|
|
182
|
+
...R(n.density),
|
|
183
|
+
...z,
|
|
184
|
+
...n.direction ? { "elk.direction": n.direction.toUpperCase() } : null,
|
|
185
|
+
...n.elk
|
|
186
|
+
}, K = {
|
|
187
|
+
id: T,
|
|
188
|
+
layoutOptions: {
|
|
189
|
+
...ee,
|
|
190
|
+
...a.some((e) => s.parent.get(e.id)) ? null : { "elk.hierarchyHandling": "SEPARATE_CHILDREN" },
|
|
191
|
+
...n.elk
|
|
192
|
+
},
|
|
193
|
+
children: [],
|
|
194
|
+
edges: []
|
|
195
|
+
}, { "elk.hierarchyHandling": te, "elk.algorithm": ne, ...re } = ee;
|
|
196
|
+
for (let e of c.values()) e.children && (e.layoutOptions = {
|
|
197
|
+
...re,
|
|
198
|
+
...e.layoutOptions
|
|
199
|
+
});
|
|
200
|
+
for (let e of a) {
|
|
201
|
+
let t = s.parent.get(e.id);
|
|
202
|
+
(t ? c.get(t) : K).children.push(c.get(e.id));
|
|
203
|
+
}
|
|
204
|
+
for (let t of e.edges ?? []) {
|
|
205
|
+
if (t.from !== t.to || !s.byId.has(t.from) || !c.get(t.from)?.children) continue;
|
|
206
|
+
let e = o(t, i) ?? U, n = s.parent.get(t.from), r = (n ? c.get(n) : K).children, a = r.findIndex((e) => e.id === t.from);
|
|
207
|
+
r.splice(a + 1, 0, {
|
|
208
|
+
id: H(t.id),
|
|
209
|
+
width: e.w,
|
|
210
|
+
height: e.h
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
let ie = (e, t) => !!t && !!e?.ports?.some((e) => e.id === t);
|
|
214
|
+
for (let t of e.edges ?? []) {
|
|
215
|
+
let e = s.byId.get(t.from), n = s.byId.get(t.to);
|
|
216
|
+
if (!e || !n) continue;
|
|
217
|
+
let r = t.from === t.to;
|
|
218
|
+
if (r && !c.get(t.from)?.children) continue;
|
|
219
|
+
let a = {
|
|
220
|
+
id: t.id,
|
|
221
|
+
sources: [ie(e, t.fromPort) ? V(t.from, t.fromPort) : t.from],
|
|
222
|
+
targets: [r ? H(t.id) : ie(n, t.toPort) ? V(t.to, t.toPort) : t.to]
|
|
223
|
+
}, l = r ? null : o(t, i);
|
|
224
|
+
l && (a.labels = [{
|
|
225
|
+
text: t.title ?? "",
|
|
226
|
+
width: l.w,
|
|
227
|
+
height: l.h,
|
|
228
|
+
layoutOptions: w
|
|
229
|
+
}]), K.edges.push(a);
|
|
230
|
+
}
|
|
231
|
+
return K;
|
|
232
|
+
}
|
|
233
|
+
function G(e) {
|
|
234
|
+
let t = /* @__PURE__ */ new Map();
|
|
235
|
+
for (let n of e) t.set(n.id, n);
|
|
236
|
+
return [...t.values()];
|
|
237
|
+
}
|
|
238
|
+
var K = (e) => Math.round(e * 100) / 100;
|
|
239
|
+
function te(e, t) {
|
|
240
|
+
let n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map([[T, {
|
|
241
|
+
x: 0,
|
|
242
|
+
y: 0
|
|
243
|
+
}]]), s = (e, t, r) => {
|
|
244
|
+
for (let a of e.children ?? []) {
|
|
245
|
+
let e = t + (a.x ?? 0), c = r + (a.y ?? 0);
|
|
246
|
+
o.set(a.id, {
|
|
247
|
+
x: e,
|
|
248
|
+
y: c
|
|
249
|
+
}), i.set(a.id, a), n.set(a.id, {
|
|
250
|
+
x: K(e),
|
|
251
|
+
y: K(c),
|
|
252
|
+
w: K(a.width ?? 0),
|
|
253
|
+
h: K(a.height ?? 0)
|
|
254
|
+
}), s(a, e, c);
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
s(t, 0, 0);
|
|
258
|
+
let f = [], h = /* @__PURE__ */ new Map();
|
|
259
|
+
for (let t of G(e.nodes)) {
|
|
260
|
+
let e = n.get(t.id);
|
|
261
|
+
if (!e) continue;
|
|
262
|
+
let r = JSON.parse(i.get(t.id)?.layoutOptions?.[D] ?? "{}"), a = t.ports?.map((n) => {
|
|
263
|
+
let a = i.get(t.id)?.ports?.find((e) => e.id === V(t.id, n.id)), o = n.side === "left" || n.side === "right", s = o ? r[n.id] : void 0;
|
|
264
|
+
return s === void 0 ? n.at !== void 0 || n.offset !== void 0 || a?.x === void 0 || a.y === void 0 ? n : {
|
|
265
|
+
...n,
|
|
266
|
+
at: K(o ? a.y / (e.h || 1) : a.x / (e.w || 1))
|
|
267
|
+
} : (a?.y !== void 0 && h.set(`${t.id}\0${n.id}`, {
|
|
268
|
+
x: 0,
|
|
269
|
+
y: s - a.y
|
|
270
|
+
}), {
|
|
271
|
+
...n,
|
|
272
|
+
at: K(s / (e.h || 1))
|
|
273
|
+
});
|
|
274
|
+
});
|
|
275
|
+
f.push({
|
|
276
|
+
...t,
|
|
277
|
+
...e,
|
|
278
|
+
...a ? { ports: a } : null
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
ie(f);
|
|
282
|
+
let g = /* @__PURE__ */ new Map(), _ = (e) => {
|
|
283
|
+
for (let t of e.edges ?? []) g.set(t.id, t);
|
|
284
|
+
for (let t of e.children ?? []) _(t);
|
|
285
|
+
};
|
|
286
|
+
_(t);
|
|
287
|
+
let y = [], C = t.layoutOptions?.["elk.direction"] ?? "DOWN";
|
|
288
|
+
for (let t of e.edges ?? []) {
|
|
289
|
+
let e = t.from === t.to ? i.get(t.from)?.labels?.find((e) => e.id === H(t.id)) : void 0, r = e ? n.get(t.from) : void 0;
|
|
290
|
+
if (e && r && e.x != null && e.y != null) {
|
|
291
|
+
let n = {
|
|
292
|
+
x: K(r.x + e.x),
|
|
293
|
+
y: K(r.y + e.y),
|
|
294
|
+
w: e.width ?? 0,
|
|
295
|
+
h: Math.max(0, (e.height ?? 0) - P)
|
|
296
|
+
}, { labelBox: i, ...a } = t;
|
|
297
|
+
y.push({
|
|
298
|
+
...a,
|
|
299
|
+
points: b(r, n, C),
|
|
300
|
+
...c(t) ? { labelBox: n } : null
|
|
301
|
+
});
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
let a = g.get(t.id);
|
|
305
|
+
if (!a) {
|
|
306
|
+
if (t.from !== t.to && n.has(t.from) && n.has(t.to)) {
|
|
307
|
+
let { labelBox: e, points: n, ...r } = t;
|
|
308
|
+
y.push(r);
|
|
309
|
+
}
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
let s = t.from === t.to ? n.get(H(t.id)) : void 0, l = s ? n.get(t.from) : void 0, u = o.get(a.container ?? T) ?? {
|
|
313
|
+
x: 0,
|
|
314
|
+
y: 0
|
|
315
|
+
}, d = (e) => ({
|
|
316
|
+
x: K(e.x + u.x),
|
|
317
|
+
y: K(e.y + u.y)
|
|
318
|
+
}), f = [];
|
|
319
|
+
for (let e of a.sections ?? []) {
|
|
320
|
+
f.push(d(e.startPoint));
|
|
321
|
+
for (let t of e.bendPoints ?? []) f.push(d(t));
|
|
322
|
+
f.push(d(e.endPoint));
|
|
323
|
+
}
|
|
324
|
+
let { labelBox: p, ...m } = t;
|
|
325
|
+
if (s && l && f.length) {
|
|
326
|
+
y.push({
|
|
327
|
+
...m,
|
|
328
|
+
points: re(l, s, C),
|
|
329
|
+
...c(t) ? { labelBox: s } : null
|
|
330
|
+
});
|
|
331
|
+
continue;
|
|
332
|
+
}
|
|
333
|
+
let _ = a.labels?.[0], x = t.fromPort ? h.get(`${t.from}\0${t.fromPort}`) : void 0, S = t.toPort ? h.get(`${t.to}\0${t.toPort}`) : void 0;
|
|
334
|
+
y.push({
|
|
335
|
+
...m,
|
|
336
|
+
points: x || S ? v(f, x ?? {
|
|
337
|
+
x: 0,
|
|
338
|
+
y: 0
|
|
339
|
+
}, S ?? {
|
|
340
|
+
x: 0,
|
|
341
|
+
y: 0
|
|
342
|
+
}) : f,
|
|
343
|
+
..._ && _.x != null && _.y != null ? { labelBox: {
|
|
344
|
+
x: K(_.x + u.x),
|
|
345
|
+
y: K(_.y + u.y),
|
|
346
|
+
w: _.width ?? 0,
|
|
347
|
+
h: _.height ?? 0
|
|
348
|
+
} } : null
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
if (C === "DOWN" || C === "UP") {
|
|
352
|
+
let e = u(f);
|
|
353
|
+
for (let t = 0; t < y.length; t++) {
|
|
354
|
+
let n = y[t];
|
|
355
|
+
if (n.from === n.to || !n.points || n.points.length < 2) continue;
|
|
356
|
+
let r = d(e, n.to, n.from) ? n.from : d(e, n.from, n.to) ? n.to : null, a = r ? e.byId.get(r) : void 0, o = a ? ne(i.get(a.id), a) : null;
|
|
357
|
+
if (!a || o === null) continue;
|
|
358
|
+
let s = r === n.from ? n.points : [...n.points].reverse(), c = s.findIndex((e) => e.y >= o);
|
|
359
|
+
if (c <= 0) continue;
|
|
360
|
+
let l = s[c - 1], u = s[c], f = [{
|
|
361
|
+
x: K(u.y === l.y ? u.x : l.x + (u.x - l.x) * (o - l.y) / (u.y - l.y)),
|
|
362
|
+
y: K(o)
|
|
363
|
+
}, ...s.slice(c)];
|
|
364
|
+
y[t] = {
|
|
365
|
+
...n,
|
|
366
|
+
points: r === n.from ? f : f.reverse()
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
let t = f.flatMap((e) => {
|
|
370
|
+
if (!l(e) || e.kind === "root") return [];
|
|
371
|
+
let t = ne(i.get(e.id), e);
|
|
372
|
+
return t === null || t <= e.y ? [] : [{
|
|
373
|
+
n: e,
|
|
374
|
+
top: t,
|
|
375
|
+
air: Number(i.get(e.id)?.layoutOptions?.[E] ?? 12)
|
|
376
|
+
}];
|
|
377
|
+
}), n = /* @__PURE__ */ new Map(), a = (e, t, r, i) => {
|
|
378
|
+
let a = [e[0]];
|
|
379
|
+
for (let o = 1; o < e.length; o++) {
|
|
380
|
+
let s = a[a.length - 1], c = e[o];
|
|
381
|
+
if (!(Math.abs(s.x - c.x) < .5 && c.y > s.y && s.x > t.x && s.x < t.x + t.w && s.y < r && c.y > t.y)) {
|
|
382
|
+
a.push(c);
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
let l = K(r + Math.min(6, i / 2)), u = a[a.length - 2];
|
|
386
|
+
if (u && Math.abs(u.y - s.y) < .5 && (u.x <= t.x || u.x >= t.x + t.w) && s.y <= t.y) {
|
|
387
|
+
a[a.length - 2] = {
|
|
388
|
+
x: u.x,
|
|
389
|
+
y: l
|
|
390
|
+
}, a[a.length - 1] = {
|
|
391
|
+
x: s.x,
|
|
392
|
+
y: l
|
|
393
|
+
}, a.push(c);
|
|
394
|
+
continue;
|
|
395
|
+
}
|
|
396
|
+
let d = s.x - t.x <= t.x + t.w - s.x && !t.entry, f = `${t.id}\0${d}`, p = (n.get(f) ?? 0) + 1;
|
|
397
|
+
n.set(f, p);
|
|
398
|
+
let m = K(d ? t.x - 12 * p : t.x + t.w + 12 * p), h = K(Math.min(s.y, t.y - 12));
|
|
399
|
+
a.push({
|
|
400
|
+
x: s.x,
|
|
401
|
+
y: h
|
|
402
|
+
}, {
|
|
403
|
+
x: m,
|
|
404
|
+
y: h
|
|
405
|
+
}, {
|
|
406
|
+
x: m,
|
|
407
|
+
y: l
|
|
408
|
+
}, {
|
|
409
|
+
x: s.x,
|
|
410
|
+
y: l
|
|
411
|
+
}, c);
|
|
412
|
+
}
|
|
413
|
+
return x(a);
|
|
414
|
+
}, o = new Map(t.map((e) => [e.n.id, e])), s = /* @__PURE__ */ new Map();
|
|
415
|
+
for (let n = 0; n < y.length && t.length; n++) {
|
|
416
|
+
let t = y[n];
|
|
417
|
+
if (t.from === t.to || !t.points || t.points.length < 2) continue;
|
|
418
|
+
let i = (t) => new Set(r(e, t)), c = i(t.from), l = i(t.to), u = [...c].filter((e) => !l.has(e) && e !== t.to).concat([...l].filter((e) => !c.has(e) && e !== t.from)), d = t.points;
|
|
419
|
+
for (let e of u) {
|
|
420
|
+
let t = o.get(e);
|
|
421
|
+
t && (d = a([...a(d, t.n, t.top, t.air)].reverse(), t.n, t.top, t.air).reverse());
|
|
422
|
+
}
|
|
423
|
+
d !== t.points && (s.set(t.id, t.points), y[n] = {
|
|
424
|
+
...t,
|
|
425
|
+
points: d
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
let c = (e) => {
|
|
429
|
+
let t = e.labelBox, n = e.points ?? [];
|
|
430
|
+
if (!t) return !1;
|
|
431
|
+
let r = {
|
|
432
|
+
x: t.x + t.w / 2,
|
|
433
|
+
y: t.y + t.h / 2
|
|
434
|
+
};
|
|
435
|
+
return !n.some((e, t) => t > 0 && Ne(n[t - 1], e, r));
|
|
436
|
+
}, h = new Set(y.filter((e) => s.has(e.id) && c(e)).map((e) => e.id));
|
|
437
|
+
for (let e = 0; e < y.length; e++) {
|
|
438
|
+
let t = y[e];
|
|
439
|
+
s.has(t.id) && t.labelBox && (!h.has(t.id) || h.size > Ce || f.length + y.length > we) && (y[e] = {
|
|
440
|
+
...t,
|
|
441
|
+
labelBox: Me(t.points, t.labelBox)
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
if (h.size && h.size <= Ce && f.length + y.length <= we) {
|
|
445
|
+
let n = y.filter((e) => h.has(e.id)), r = y.filter((e) => !h.has(e.id)), a = new Map(n.map((e) => {
|
|
446
|
+
let t = s.get(e.id), n = t.length;
|
|
447
|
+
return [e.id, {
|
|
448
|
+
from: {
|
|
449
|
+
p: t[0],
|
|
450
|
+
n: Oe(t[0], t[1])
|
|
451
|
+
},
|
|
452
|
+
to: {
|
|
453
|
+
p: t[n - 1],
|
|
454
|
+
n: Oe(t[n - 1], t[n - 2])
|
|
455
|
+
}
|
|
456
|
+
}];
|
|
457
|
+
})), o = p(e, n, {
|
|
458
|
+
headOf: (e) => Math.max(0, (ne(i.get(e.id), e) ?? e.y) - e.y),
|
|
459
|
+
captionOf: (e) => m(e, S).w,
|
|
460
|
+
around: r.map((e) => e.points ?? []),
|
|
461
|
+
labels: r.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
462
|
+
labelSize: (e) => e.labelBox ? {
|
|
463
|
+
w: e.labelBox.w,
|
|
464
|
+
h: e.labelBox.h
|
|
465
|
+
} : null
|
|
466
|
+
}, a), c = t.map((e) => ({
|
|
467
|
+
x: e.n.x,
|
|
468
|
+
y: e.n.y,
|
|
469
|
+
w: e.n.kind === "region" ? Math.min(e.n.w, m(e.n, S).w) : e.n.w,
|
|
470
|
+
h: e.top - e.n.y
|
|
471
|
+
}));
|
|
472
|
+
for (let e = 0; e < y.length; e++) {
|
|
473
|
+
let t = y[e];
|
|
474
|
+
if (!h.has(t.id)) continue;
|
|
475
|
+
let n = o.get(t.id), r = !n || n.pts.some((e, t) => t > 0 && c.some((r) => Y(n.pts[t - 1], e, r))), { labelBox: i, ...a } = t;
|
|
476
|
+
if (!r) {
|
|
477
|
+
y[e] = {
|
|
478
|
+
...a,
|
|
479
|
+
points: n.pts,
|
|
480
|
+
...n.label ? { labelBox: n.label } : null
|
|
481
|
+
};
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
y[e] = {
|
|
485
|
+
...a,
|
|
486
|
+
points: t.points,
|
|
487
|
+
...i ? { labelBox: Me(t.points, i) } : null
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return {
|
|
493
|
+
nodes: f,
|
|
494
|
+
edges: y,
|
|
495
|
+
bounds: a(f, y.map((e) => ({ pts: e.points ?? [] })), y.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? {
|
|
496
|
+
x: 0,
|
|
497
|
+
y: 0,
|
|
498
|
+
w: 0,
|
|
499
|
+
h: 0
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
function ne(e, t) {
|
|
504
|
+
let n = /top=([\d.]+)/.exec(e?.layoutOptions?.["elk.padding"] ?? ""), r = Number(e?.layoutOptions?.[E] ?? NaN);
|
|
505
|
+
return n && Number.isFinite(r) ? t.y + Number(n[1]) - r : null;
|
|
506
|
+
}
|
|
507
|
+
function re(e, t, n) {
|
|
508
|
+
let r = (e) => n === "DOWN" ? e : n === "UP" ? {
|
|
509
|
+
x: e.x,
|
|
510
|
+
y: -e.y
|
|
511
|
+
} : n === "RIGHT" ? {
|
|
512
|
+
x: e.y,
|
|
513
|
+
y: e.x
|
|
514
|
+
} : {
|
|
515
|
+
x: e.y,
|
|
516
|
+
y: -e.x
|
|
517
|
+
}, i = (e) => n === "DOWN" ? e : n === "UP" ? {
|
|
518
|
+
x: e.x,
|
|
519
|
+
y: -e.y
|
|
520
|
+
} : n === "RIGHT" ? {
|
|
521
|
+
x: e.y,
|
|
522
|
+
y: e.x
|
|
523
|
+
} : {
|
|
524
|
+
x: -e.y,
|
|
525
|
+
y: e.x
|
|
526
|
+
}, a = (e) => {
|
|
527
|
+
let t = r({
|
|
528
|
+
x: e.x,
|
|
529
|
+
y: e.y
|
|
530
|
+
}), n = r({
|
|
531
|
+
x: e.x + e.w,
|
|
532
|
+
y: e.y + e.h
|
|
533
|
+
});
|
|
534
|
+
return {
|
|
535
|
+
x: Math.min(t.x, n.x),
|
|
536
|
+
y: Math.min(t.y, n.y),
|
|
537
|
+
w: Math.abs(n.x - t.x),
|
|
538
|
+
h: Math.abs(n.y - t.y)
|
|
539
|
+
};
|
|
540
|
+
}, o = a(e), s = a(t), c = o.y + o.h, l = s.y + s.h / 2, u = o.y + o.h - Math.min(10, o.h / 3), d = s.x + s.w / 2, f = Math.min(14, o.w / 4), p = d > o.x + o.w / 2, m = (e) => p ? o.x + o.w - (e - o.x) : e, h = p ? {
|
|
541
|
+
...s,
|
|
542
|
+
x: o.x + o.w - (s.x + s.w - o.x)
|
|
543
|
+
} : s, g = h.x + h.w / 2, _ = g < o.x - 6 ? [
|
|
544
|
+
{
|
|
545
|
+
x: o.x,
|
|
546
|
+
y: u
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
x: g,
|
|
550
|
+
y: u
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
x: g,
|
|
554
|
+
y: h.y
|
|
555
|
+
}
|
|
556
|
+
] : (() => {
|
|
557
|
+
let e = Math.min(Math.max(h.x + 12, o.x + f), o.x + o.w / 2 - 6);
|
|
558
|
+
return [{
|
|
559
|
+
x: e,
|
|
560
|
+
y: c
|
|
561
|
+
}, {
|
|
562
|
+
x: e,
|
|
563
|
+
y: h.y
|
|
564
|
+
}];
|
|
565
|
+
})(), v = _[_.length - 1].x, y = Math.max(h.x + h.w + 14, o.x + f, v + 12), b = y <= o.x + o.w - f ? [
|
|
566
|
+
{
|
|
567
|
+
x: h.x + h.w,
|
|
568
|
+
y: l
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
x: y,
|
|
572
|
+
y: l
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
x: y,
|
|
576
|
+
y: c
|
|
577
|
+
}
|
|
578
|
+
] : [
|
|
579
|
+
{
|
|
580
|
+
x: h.x + h.w,
|
|
581
|
+
y: l
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
x: Math.max(y, o.x + o.w + 14),
|
|
585
|
+
y: l
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
x: Math.max(y, o.x + o.w + 14),
|
|
589
|
+
y: o.y + o.h / 2
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
x: o.x + o.w,
|
|
593
|
+
y: o.y + o.h / 2
|
|
594
|
+
}
|
|
595
|
+
];
|
|
596
|
+
return [..._, ...b].map((e) => {
|
|
597
|
+
let t = i({
|
|
598
|
+
x: m(e.x),
|
|
599
|
+
y: e.y
|
|
600
|
+
});
|
|
601
|
+
return {
|
|
602
|
+
x: K(t.x),
|
|
603
|
+
y: K(t.y)
|
|
604
|
+
};
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
function ie(e) {
|
|
608
|
+
let t = new Map(e.map((e, t) => [e.id, t])), n = /* @__PURE__ */ new Map();
|
|
609
|
+
for (let t = 0; t < e.length; t++) {
|
|
610
|
+
let r = e[t];
|
|
611
|
+
if (r.kind !== "region" || r.parent == null) continue;
|
|
612
|
+
let i = n.get(r.parent);
|
|
613
|
+
i ? i.push(t) : n.set(r.parent, [t]);
|
|
614
|
+
}
|
|
615
|
+
for (let [r, i] of n) {
|
|
616
|
+
let n = t.get(r);
|
|
617
|
+
if (n === void 0) continue;
|
|
618
|
+
let a = e[n], o = 0, s = 0;
|
|
619
|
+
for (let t = 0; t < i.length; t++) for (let n = t + 1; n < i.length; n++) {
|
|
620
|
+
let r = e[i[t]], a = e[i[n]];
|
|
621
|
+
o += Math.max(0, Math.min(r.x + r.w, a.x + a.w) - Math.max(r.x, a.x)), s += Math.max(0, Math.min(r.y + r.h, a.y + a.h) - Math.max(r.y, a.y));
|
|
622
|
+
}
|
|
623
|
+
let c = Math.min(...i.map((t) => e[t].y));
|
|
624
|
+
for (let t of i) {
|
|
625
|
+
let n = e[t];
|
|
626
|
+
e[t] = o >= s ? {
|
|
627
|
+
...n,
|
|
628
|
+
x: K(a.x + 8),
|
|
629
|
+
w: K(a.w - 16)
|
|
630
|
+
} : {
|
|
631
|
+
...n,
|
|
632
|
+
y: K(c),
|
|
633
|
+
h: K(a.y + a.h - 8 - c)
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
var ae = {
|
|
639
|
+
across: 48,
|
|
640
|
+
along: 128
|
|
641
|
+
}, oe = 4, se = 3, ce = 300, le = 48, q = 12, ue = (e, t, n) => Math.min(e, t) <= n && n < Math.max(e, t);
|
|
642
|
+
function de(e, r, o = "down", s = !1) {
|
|
643
|
+
if (o !== "down" && o !== "right" || e.nodes.length > ce) return e;
|
|
644
|
+
let c = o === "right", d = (e) => c ? {
|
|
645
|
+
x: e.y,
|
|
646
|
+
y: e.x
|
|
647
|
+
} : e, f = (e) => c ? {
|
|
648
|
+
x: e.y,
|
|
649
|
+
y: e.x,
|
|
650
|
+
w: e.h,
|
|
651
|
+
h: e.w
|
|
652
|
+
} : e, p = c ? {
|
|
653
|
+
w: r.height - ae.along,
|
|
654
|
+
h: r.width - ae.across
|
|
655
|
+
} : {
|
|
656
|
+
w: r.width - ae.across,
|
|
657
|
+
h: r.height - ae.along
|
|
658
|
+
};
|
|
659
|
+
if (p.w <= 0 || p.h <= 0) return e;
|
|
660
|
+
let m = u(e.nodes), h = e.nodes.filter((e) => !m.parent.get(e.id)), g = h.length === 1 && l(h[0]) ? h[0] : null, _ = g ? (m.children.get(g.id) ?? []).map((e) => e.id) : h.map((e) => e.id);
|
|
661
|
+
if (_.length < 2) return e;
|
|
662
|
+
let v = /* @__PURE__ */ new Map();
|
|
663
|
+
for (let e of _) {
|
|
664
|
+
v.set(e, e);
|
|
665
|
+
for (let t of i(m, e)) v.set(t, e);
|
|
666
|
+
}
|
|
667
|
+
let y = /* @__PURE__ */ new Map(), b = (e, t) => {
|
|
668
|
+
let n = y.get(e);
|
|
669
|
+
y.set(e, n ? {
|
|
670
|
+
x: Math.min(n.x, t.x),
|
|
671
|
+
y: Math.min(n.y, t.y),
|
|
672
|
+
w: Math.max(n.x + n.w, t.x + t.w) - Math.min(n.x, t.x),
|
|
673
|
+
h: Math.max(n.y + n.h, t.y + t.h) - Math.min(n.y, t.y)
|
|
674
|
+
} : t);
|
|
675
|
+
}, S = /* @__PURE__ */ new Map();
|
|
676
|
+
for (let e of _) {
|
|
677
|
+
let t = m.byId.get(e);
|
|
678
|
+
b(e, f(t)), S.set(e, f(t));
|
|
679
|
+
for (let t of [e, ...i(m, e)]) if (m.byId.get(t)?.entry) {
|
|
680
|
+
let n = m.byId.get(t);
|
|
681
|
+
b(e, f({
|
|
682
|
+
x: n.x - 22,
|
|
683
|
+
y: n.y - 16,
|
|
684
|
+
w: 22,
|
|
685
|
+
h: 16
|
|
686
|
+
}));
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
let C = [];
|
|
690
|
+
for (let t of e.edges) {
|
|
691
|
+
let n = v.get(t.from), r = v.get(t.to);
|
|
692
|
+
if (!n || !r) {
|
|
693
|
+
if (n || r) return e;
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
if (n === r) {
|
|
697
|
+
t.labelBox && b(n, f(t.labelBox));
|
|
698
|
+
continue;
|
|
699
|
+
}
|
|
700
|
+
t.labelBox && C.push({
|
|
701
|
+
edge: t.id,
|
|
702
|
+
r: f(t.labelBox)
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
let w = fe(e.edges, _, v);
|
|
706
|
+
if (w.length > 1 && !s) {
|
|
707
|
+
let t = w.reduce((e, t) => t.length > e.length ? t : e);
|
|
708
|
+
return de(t.length >= 3 ? pe(e, g, t, v, r, o) : e, r, o, !0);
|
|
709
|
+
}
|
|
710
|
+
let T = xe(e, {
|
|
711
|
+
holder: g,
|
|
712
|
+
runIds: _,
|
|
713
|
+
blockOf: v,
|
|
714
|
+
box: y,
|
|
715
|
+
labelBlocks: C,
|
|
716
|
+
room: p,
|
|
717
|
+
tr: f,
|
|
718
|
+
tp: d
|
|
719
|
+
});
|
|
720
|
+
if (T) return T;
|
|
721
|
+
if (_.length < 3 || w.length > 1) return e;
|
|
722
|
+
let E = [...y.values(), ...C.map((e) => e.r)].sort((e, t) => e.y - t.y), D = [];
|
|
723
|
+
for (let e of E) {
|
|
724
|
+
let t = D[D.length - 1];
|
|
725
|
+
t && e.y < t.bottom ? t.bottom = Math.max(t.bottom, e.y + e.h) : D.push({
|
|
726
|
+
top: e.y,
|
|
727
|
+
bottom: e.y + e.h
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
if (D.length < 2) return e;
|
|
731
|
+
let O = e.edges.map((e) => ({
|
|
732
|
+
e,
|
|
733
|
+
pts: (e.points ?? []).map(d)
|
|
734
|
+
})), k = D.slice(1).map((e, t) => {
|
|
735
|
+
let n = (D[t].bottom + e.top) / 2;
|
|
736
|
+
for (; O.some(({ pts: e }) => e.some((t, r) => r > 0 && Math.abs(t.y - n) < .5 && Math.abs(e[r - 1].y - n) < .5));) n += 1;
|
|
737
|
+
let r = O.filter(({ pts: e }) => e.some((t, r) => r > 0 && ue(e[r - 1].y, t.y, n))), i = Math.max(le + r.length * q, ...r.map(({ e }) => e.labelBox ? f(e.labelBox).w + he : 0));
|
|
738
|
+
return {
|
|
739
|
+
y: n,
|
|
740
|
+
crossing: r.length,
|
|
741
|
+
gap: i
|
|
742
|
+
};
|
|
743
|
+
}), A = (e, t) => {
|
|
744
|
+
let n = Infinity, r = -Infinity;
|
|
745
|
+
for (let i of E) i.y >= e && i.y + i.h <= t && (n = Math.min(n, i.x), r = Math.max(r, i.x + i.w));
|
|
746
|
+
for (let { pts: i } of O) for (let a of i) a.y > e && a.y < t && (n = Math.min(n, a.x), r = Math.max(r, a.x));
|
|
747
|
+
return r > n ? {
|
|
748
|
+
x0: n,
|
|
749
|
+
x1: r
|
|
750
|
+
} : {
|
|
751
|
+
x0: 0,
|
|
752
|
+
x1: 0
|
|
753
|
+
};
|
|
754
|
+
}, j = D[0].top, M = D[D.length - 1].bottom, N = A(j - 1, M + 1), P = f(e.bounds), F = {
|
|
755
|
+
w: Math.max(0, P.w - (N.x1 - N.x0)),
|
|
756
|
+
h: Math.max(0, j - P.y) + Math.max(0, P.y + P.h - M)
|
|
757
|
+
}, I = (e, t) => Math.min(1, p.w / (e + F.w), p.h / (t + F.h)), L = (e) => (e + F.w) * n <= p.w, R = (e) => {
|
|
758
|
+
let t = D.length, n = Array.from({ length: e + 1 }, () => Array(t + 1).fill(null)), r = Array.from({ length: e + 1 }, () => Array(t + 1).fill(-1));
|
|
759
|
+
n[0][0] = 0;
|
|
760
|
+
for (let i = 1; i <= e; i++) for (let e = 1; e <= t; e++) for (let t = i - 1; t < e; t++) {
|
|
761
|
+
let a = n[i - 1][t];
|
|
762
|
+
if (a === null || t > 0 && k[t - 1].crossing > se) continue;
|
|
763
|
+
let o = Math.max(a, D[e - 1].bottom - D[t].top);
|
|
764
|
+
(n[i][e] === null || o < n[i][e]) && (n[i][e] = o, r[i][e] = t);
|
|
765
|
+
}
|
|
766
|
+
if (n[e][t] === null) return null;
|
|
767
|
+
let i = [];
|
|
768
|
+
for (let n = e, a = t; n > 1; n--) a = r[n][a], i.unshift(a);
|
|
769
|
+
return i;
|
|
770
|
+
}, z = {
|
|
771
|
+
cuts: [],
|
|
772
|
+
zoom: I(N.x1 - N.x0, M - j),
|
|
773
|
+
h: M - j
|
|
774
|
+
}, B = null;
|
|
775
|
+
for (let e = 2; e <= Math.min(oe, D.length); e++) {
|
|
776
|
+
let t = R(e);
|
|
777
|
+
if (!t) continue;
|
|
778
|
+
let n = [
|
|
779
|
+
j - 1,
|
|
780
|
+
...t.map((e) => k[e - 1].y),
|
|
781
|
+
M + 1
|
|
782
|
+
], r = 0, i = 0;
|
|
783
|
+
for (let a = 0; a < e; a++) {
|
|
784
|
+
let o = A(n[a], n[a + 1]);
|
|
785
|
+
r += o.x1 - o.x0, i = Math.max(i, D[(a === e - 1 ? D.length : t[a]) - 1].bottom - D[a === 0 ? 0 : t[a - 1]].top);
|
|
786
|
+
}
|
|
787
|
+
r += t.reduce((e, t) => e + k[t - 1].gap, 0), i += 2 * (Math.max(...t.map((e) => k[e - 1].crossing)) * q + q);
|
|
788
|
+
let a = I(r, i);
|
|
789
|
+
a >= .875 && a > z.zoom * 1.12 && (z = {
|
|
790
|
+
cuts: t,
|
|
791
|
+
zoom: a,
|
|
792
|
+
h: i
|
|
793
|
+
}), L(r) && (!B || i < B.h * .88) && (B = {
|
|
794
|
+
cuts: t,
|
|
795
|
+
h: i
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
if (z.zoom < .875 && B && L(N.x1 - N.x0) && (z = {
|
|
799
|
+
...B,
|
|
800
|
+
zoom: 0
|
|
801
|
+
}), !z.cuts.length) return e;
|
|
802
|
+
let V = z.cuts.map((e) => k[e - 1].y), H = (e) => {
|
|
803
|
+
let t = 0;
|
|
804
|
+
for (; t < V.length && e > V[t];) t++;
|
|
805
|
+
return t;
|
|
806
|
+
}, U = V.length + 1, W = V.map((e) => {
|
|
807
|
+
let t = [];
|
|
808
|
+
for (let { e: n, pts: r } of O) for (let i = 1; i < r.length; i++) {
|
|
809
|
+
let a = r[i - 1], o = r[i];
|
|
810
|
+
ue(a.y, o.y, e) && t.push({
|
|
811
|
+
edge: n.id,
|
|
812
|
+
x: a.x + (o.x - a.x) * (e - a.y) / (o.y - a.y)
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
return t.sort((e, t) => t.x - e.x);
|
|
816
|
+
}), ee = (e) => {
|
|
817
|
+
let t = y.get(e);
|
|
818
|
+
return H(t.y + t.h / 2);
|
|
819
|
+
}, G = Array.from({ length: U }, (e, t) => A(t === 0 ? j - 1 : V[t - 1], t === U - 1 ? M + 1 : V[t])), te = (t) => Math.max(0, ...W[t].map((t) => {
|
|
820
|
+
let n = e.edges.find((e) => e.id === t.edge)?.labelBox;
|
|
821
|
+
return n ? f(n).w : 0;
|
|
822
|
+
})), ne = (e) => e < W.length ? Math.max(le + W[e].length * q, te(e) + he) : 0, re = new Set(W.flatMap((e) => e.map((e) => e.edge))), ie = (e) => {
|
|
823
|
+
let t = e ? V[e - 1] : -Infinity, n = e < V.length ? V[e] : Infinity, r = [...y.entries()].filter(([, e]) => e.y + e.h / 2 > t && e.y + e.h / 2 <= n).map(([e]) => S.get(e).y).concat(C.filter((e) => !re.has(e.edge) && e.r.y + e.r.h / 2 > t && e.r.y + e.r.h / 2 <= n).map((e) => e.r.y));
|
|
824
|
+
return r.length ? Math.min(...r) : t;
|
|
825
|
+
}, _e = ie(0), ve = (t) => {
|
|
826
|
+
let n = ie(t), r = 0;
|
|
827
|
+
for (let i of [t - 1, t]) for (let { edge: a } of W[i] ?? []) {
|
|
828
|
+
let i = e.edges.find((e) => e.id === a), o = i ? [v.get(i.from), v.get(i.to)] : [];
|
|
829
|
+
i?.labelBox && o.some((e) => e && ee(e) === t && Math.abs(S.get(e).y - n) < 1) && (r = Math.max(r, f(i.labelBox).h + 24));
|
|
830
|
+
}
|
|
831
|
+
return (t ? q * (W[t - 1].length + 1) : 0) + r;
|
|
832
|
+
}, ye = (n) => {
|
|
833
|
+
let r = [], i = G[0].x0;
|
|
834
|
+
for (let e = 0; e < U; e++) r.push({
|
|
835
|
+
x: i - G[e].x0,
|
|
836
|
+
y: _e - ie(e) + (n ? ve(e) : 0)
|
|
837
|
+
}), i += G[e].x1 - G[e].x0 + ne(e);
|
|
838
|
+
let o = (e, t) => ({
|
|
839
|
+
x: K(e.x + r[t].x),
|
|
840
|
+
y: K(e.y + r[t].y)
|
|
841
|
+
}), s = (e, t) => ({
|
|
842
|
+
...e,
|
|
843
|
+
...o(e, t)
|
|
844
|
+
}), c = /* @__PURE__ */ new Map();
|
|
845
|
+
for (let [e, t] of y) c.set(e, H(t.y + t.h / 2));
|
|
846
|
+
let l = e.nodes.map((e) => {
|
|
847
|
+
let t = v.get(e.id);
|
|
848
|
+
return t === void 0 ? e : {
|
|
849
|
+
...e,
|
|
850
|
+
...f(s(f(e), c.get(t)))
|
|
851
|
+
};
|
|
852
|
+
}), u = ge(l, e.edges.map((e) => {
|
|
853
|
+
let t = (e.points ?? []).map(d);
|
|
854
|
+
if (!t.length || !v.has(e.from)) return e;
|
|
855
|
+
let n = [];
|
|
856
|
+
for (let i = 0; i < t.length; i++) {
|
|
857
|
+
let a = t[i];
|
|
858
|
+
if (i > 0) {
|
|
859
|
+
let s = t[i - 1], c = a.y > s.y, l = V.map((e, t) => ({
|
|
860
|
+
y: e,
|
|
861
|
+
c: t
|
|
862
|
+
})).filter(({ y: e }) => ue(s.y, a.y, e)).sort((e, t) => c ? e.y - t.y : t.y - e.y);
|
|
863
|
+
for (let { y: t, c: i } of l) {
|
|
864
|
+
let l = s.x + (a.x - s.x) * (t - s.y) / (a.y - s.y), u = W[i].filter((t) => t.edge === e.id).sort((e, t) => Math.abs(e.x - l) - Math.abs(t.x - l))[0], d = W[i].indexOf(u), f = u.x, p = o({
|
|
865
|
+
x: f,
|
|
866
|
+
y: t
|
|
867
|
+
}, i), m = o({
|
|
868
|
+
x: f,
|
|
869
|
+
y: t
|
|
870
|
+
}, i + 1), h = K(p.y + q * d), g = K(G[i].x1 + r[i].x + le / 2 + q * d), _ = K(m.y - q * (W[i].length - d)), v = [
|
|
871
|
+
p,
|
|
872
|
+
{
|
|
873
|
+
x: p.x,
|
|
874
|
+
y: h
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
x: g,
|
|
878
|
+
y: h
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
x: g,
|
|
882
|
+
y: _
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
x: m.x,
|
|
886
|
+
y: _
|
|
887
|
+
},
|
|
888
|
+
m
|
|
889
|
+
];
|
|
890
|
+
n.push(...c ? v : v.reverse());
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
n.push(o(a, H(a.y)));
|
|
894
|
+
}
|
|
895
|
+
let i = e.labelBox ? f(e.labelBox) : null, a = i ? f(s(i, H(i.y + i.h / 2))) : void 0;
|
|
896
|
+
return {
|
|
897
|
+
...e,
|
|
898
|
+
points: x(n.map(d)),
|
|
899
|
+
...a ? { labelBox: a } : null
|
|
900
|
+
};
|
|
901
|
+
}), new Set(W.flatMap((e) => e.map((e) => e.edge))), f, d), p = l;
|
|
902
|
+
if (g) {
|
|
903
|
+
let e = p.filter((e) => v.has(e.id)).map(f), n = u.filter((e) => v.has(e.from)).flatMap((e) => (e.points ?? []).map(d)), r = f(g), i = Math.max(...e.map((e) => e.x + e.w), ...n.map((e) => e.x)) + t.side, a = Math.max(...e.map((e) => e.y + e.h), ...n.map((e) => e.y)) + t.bottom, o = Math.min(r.x, ...e.map((e) => e.x - t.side)), s = f({
|
|
904
|
+
x: o,
|
|
905
|
+
y: r.y,
|
|
906
|
+
w: Math.max(r.x + r.w, i) - o,
|
|
907
|
+
h: a - r.y
|
|
908
|
+
});
|
|
909
|
+
p = p.map((e) => e.id === g.id ? {
|
|
910
|
+
...e,
|
|
911
|
+
...s
|
|
912
|
+
} : e);
|
|
913
|
+
}
|
|
914
|
+
let m = a(p, u.map((e) => ({ pts: e.points ?? [] })), u.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
915
|
+
return {
|
|
916
|
+
nodes: p,
|
|
917
|
+
edges: u,
|
|
918
|
+
bounds: m
|
|
919
|
+
};
|
|
920
|
+
}, be = ye(!1);
|
|
921
|
+
return me(be, re) ? ye(!0) : be;
|
|
922
|
+
}
|
|
923
|
+
function fe(e, t, n) {
|
|
924
|
+
let r = new Map(t.map((e) => [e, e])), i = (e) => {
|
|
925
|
+
let t = e;
|
|
926
|
+
for (; r.get(t) !== t;) t = r.get(t);
|
|
927
|
+
return t;
|
|
928
|
+
};
|
|
929
|
+
for (let t of e) {
|
|
930
|
+
let e = n.get(t.from), a = n.get(t.to);
|
|
931
|
+
e && a && e !== a && r.set(i(e), i(a));
|
|
932
|
+
}
|
|
933
|
+
let a = /* @__PURE__ */ new Map();
|
|
934
|
+
for (let e of t) a.set(i(e), [...a.get(i(e)) ?? [], e]);
|
|
935
|
+
return [...a.values()];
|
|
936
|
+
}
|
|
937
|
+
function pe(e, n, r, i, o, s) {
|
|
938
|
+
let c = new Set(r), l = (e) => c.has(i.get(e) ?? ""), u = e.nodes.filter((e) => l(e.id)), d = e.edges.filter((e) => l(e.from) && l(e.to));
|
|
939
|
+
if (n) {
|
|
940
|
+
let e = Math.max(...u.map((e) => e.x + e.w), ...d.flatMap((e) => (e.points ?? []).map((e) => e.x))) + t.side, r = Math.max(...u.map((e) => e.y + e.h), ...d.flatMap((e) => (e.points ?? []).map((e) => e.y))) + t.bottom, i = Math.ceil(m(n, S).w);
|
|
941
|
+
u.unshift({
|
|
942
|
+
...n,
|
|
943
|
+
w: Math.max(i, e - n.x),
|
|
944
|
+
h: r - n.y
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
let f = de({
|
|
948
|
+
nodes: u,
|
|
949
|
+
edges: d,
|
|
950
|
+
bounds: a(u, d.map((e) => ({ pts: e.points ?? [] })), d.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds
|
|
951
|
+
}, o, s, !0);
|
|
952
|
+
if (f.nodes === u) return e;
|
|
953
|
+
let p = new Map(f.nodes.map((e) => [e.id, e])), h = new Map(f.edges.map((e) => [e.id, e])), g = e.nodes.map((e) => {
|
|
954
|
+
let t = p.get(e.id);
|
|
955
|
+
return t ? e.id === n?.id ? {
|
|
956
|
+
...e,
|
|
957
|
+
x: t.x,
|
|
958
|
+
y: t.y,
|
|
959
|
+
w: Math.max(t.w, e.w),
|
|
960
|
+
h: Math.max(t.h, e.h)
|
|
961
|
+
} : t : e;
|
|
962
|
+
}), _ = e.edges.map((e) => h.get(e.id) ?? e);
|
|
963
|
+
return {
|
|
964
|
+
nodes: g,
|
|
965
|
+
edges: _,
|
|
966
|
+
bounds: a(g, _.map((e) => ({ pts: e.points ?? [] })), _.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds
|
|
967
|
+
};
|
|
968
|
+
}
|
|
969
|
+
function me(e, t) {
|
|
970
|
+
let n = e.nodes.filter((e) => l(e) && e.kind !== "region").map((e) => ({
|
|
971
|
+
x: e.x,
|
|
972
|
+
y: e.y,
|
|
973
|
+
w: e.w,
|
|
974
|
+
h: Math.min(e.h, m(e, S).top + 10)
|
|
975
|
+
})), r = (e, t) => e.x < t.x + t.w - 1 && t.x < e.x + e.w - 1 && e.y < t.y + t.h - 1 && t.y < e.y + e.h - 1;
|
|
976
|
+
return e.edges.some((e) => t.has(e.id) && n.some((t) => e.labelBox && r(e.labelBox, t) || (e.points ?? []).some((e, n, r) => n > 0 && Y(r[n - 1], e, {
|
|
977
|
+
x: t.x + 1,
|
|
978
|
+
y: t.y + 1,
|
|
979
|
+
w: t.w - 2,
|
|
980
|
+
h: t.h - 2
|
|
981
|
+
}))));
|
|
982
|
+
}
|
|
983
|
+
var he = 40;
|
|
984
|
+
function ge(e, t, n, r, i) {
|
|
985
|
+
if (!n.size || e.length + t.length > we) return t;
|
|
986
|
+
let a = u(e), o = t.filter((e) => n.has(e.id) && e.from !== e.to && a.byId.has(e.from) && a.byId.has(e.to));
|
|
987
|
+
if (!o.length) return t;
|
|
988
|
+
let s = t.filter((e) => !o.includes(e)), c = /* @__PURE__ */ new Map(), l = {
|
|
989
|
+
headOf: (e) => {
|
|
990
|
+
let t = c.get(e.id);
|
|
991
|
+
return t === void 0 && (t = m(e, S).top, c.set(e.id, t)), t;
|
|
992
|
+
},
|
|
993
|
+
captionOf: (e) => m(e, S).w,
|
|
994
|
+
around: s.map((e) => e.points ?? []),
|
|
995
|
+
labels: s.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
996
|
+
labelSize: (e) => e.labelBox ? {
|
|
997
|
+
w: e.labelBox.w,
|
|
998
|
+
h: e.labelBox.h
|
|
999
|
+
} : null
|
|
1000
|
+
}, d = /* @__PURE__ */ new Map();
|
|
1001
|
+
for (let e of o) {
|
|
1002
|
+
let t = r(a.byId.get(e.from)), n = r(a.byId.get(e.to)), o = (e, t) => ({
|
|
1003
|
+
p: i({
|
|
1004
|
+
x: K(e.x),
|
|
1005
|
+
y: K(e.y)
|
|
1006
|
+
}),
|
|
1007
|
+
n: i(t)
|
|
1008
|
+
}), s = n.x + n.w / 2 >= t.x + t.w / 2, c = Math.min(t.y + t.h, n.y + n.h) - Math.max(t.y, n.y), u = (e, t, n) => o({
|
|
1009
|
+
x: s === t ? e.x + e.w : e.x,
|
|
1010
|
+
y: n
|
|
1011
|
+
}, {
|
|
1012
|
+
x: s === t ? 1 : -1,
|
|
1013
|
+
y: 0
|
|
1014
|
+
}), f = (e) => o({
|
|
1015
|
+
x: e.x + e.w / 2,
|
|
1016
|
+
y: e.y + e.h
|
|
1017
|
+
}, {
|
|
1018
|
+
x: 0,
|
|
1019
|
+
y: 1
|
|
1020
|
+
}), p = (e) => o({
|
|
1021
|
+
x: e.x + e.w / 2,
|
|
1022
|
+
y: e.y
|
|
1023
|
+
}, {
|
|
1024
|
+
x: 0,
|
|
1025
|
+
y: -1
|
|
1026
|
+
}), m = (e) => e.y + Math.min(e.h / 2, 24), h = [];
|
|
1027
|
+
if (n.y >= t.y + t.h + 24 && h.push({
|
|
1028
|
+
from: f(t),
|
|
1029
|
+
to: p(n)
|
|
1030
|
+
}, {
|
|
1031
|
+
from: f(t),
|
|
1032
|
+
to: u(n, !1, m(n))
|
|
1033
|
+
}), c >= 24) {
|
|
1034
|
+
let e = Math.max(t.y, n.y) + c / 2;
|
|
1035
|
+
h.push({
|
|
1036
|
+
from: u(t, !0, e),
|
|
1037
|
+
to: u(n, !1, e)
|
|
1038
|
+
});
|
|
1039
|
+
}
|
|
1040
|
+
n.y + n.h + 24 <= t.y + t.h && h.push({
|
|
1041
|
+
from: u(t, !0, m(t)),
|
|
1042
|
+
to: f(n)
|
|
1043
|
+
}), h.push({
|
|
1044
|
+
from: u(t, !0, m(t)),
|
|
1045
|
+
to: u(n, !1, m(n))
|
|
1046
|
+
}), d.set(e.id, _e(a, e, h, l));
|
|
1047
|
+
}
|
|
1048
|
+
let f = p(a, o, l, d);
|
|
1049
|
+
return t.map((e) => {
|
|
1050
|
+
let t = f.get(e.id);
|
|
1051
|
+
if (!t) return e;
|
|
1052
|
+
let { labelBox: n, ...r } = e;
|
|
1053
|
+
return {
|
|
1054
|
+
...r,
|
|
1055
|
+
points: t.pts,
|
|
1056
|
+
...t.label ? { labelBox: t.label } : null
|
|
1057
|
+
};
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
function _e(e, t, n, r) {
|
|
1061
|
+
return n.length < 2 ? n[0] : ve(e, t, n, r)[0]?.way ?? n[0];
|
|
1062
|
+
}
|
|
1063
|
+
function ve(e, t, n, r) {
|
|
1064
|
+
let i = [];
|
|
1065
|
+
for (let a of n) {
|
|
1066
|
+
let n = p(e, [t], r, /* @__PURE__ */ new Map([[t.id, a]])).get(t.id);
|
|
1067
|
+
if (!n) continue;
|
|
1068
|
+
let o = 0;
|
|
1069
|
+
for (let e = 1; e < n.pts.length; e++) o += Math.abs(n.pts[e].x - n.pts[e - 1].x) + Math.abs(n.pts[e].y - n.pts[e - 1].y);
|
|
1070
|
+
o += 40 * Math.max(0, n.pts.length - 2) + ((t.labelBox || r.labelSize?.(t)) && !n.clear ? 400 : 0) + ye(e, n.pts), o += 30 * (r.around ?? []).reduce((e, t) => e + je(n.pts, t), 0), i.push({
|
|
1071
|
+
way: a,
|
|
1072
|
+
r: n,
|
|
1073
|
+
cost: o
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
return i.sort((e, t) => e.cost - t.cost);
|
|
1077
|
+
}
|
|
1078
|
+
function ye(e, t) {
|
|
1079
|
+
let n = 0;
|
|
1080
|
+
for (let r of e.nodes) if (!(!l(r) || r.kind === "region")) for (let e = 1; e < t.length; e++) {
|
|
1081
|
+
let i = t[e - 1], a = t[e], o = Math.abs(i.y - a.y) < .5 ? Math.abs(i.y - r.y) < 8 || Math.abs(i.y - r.y - r.h) < 8 ? Math.min(Math.max(i.x, a.x), r.x + r.w) - Math.max(Math.min(i.x, a.x), r.x) : 0 : Math.abs(i.x - r.x) < 8 || Math.abs(i.x - r.x - r.w) < 8 ? Math.min(Math.max(i.y, a.y), r.y + r.h) - Math.max(Math.min(i.y, a.y), r.y) : 0;
|
|
1082
|
+
o > .5 && (n += 5e3 + o * 20);
|
|
1083
|
+
}
|
|
1084
|
+
return n;
|
|
1085
|
+
}
|
|
1086
|
+
var be = 48;
|
|
1087
|
+
function xe(e, { holder: n, runIds: r, blockOf: i, box: o, labelBlocks: s, room: c, tr: l, tp: u }) {
|
|
1088
|
+
let d = fe(e.edges, r, i);
|
|
1089
|
+
if (d.length < 2) return null;
|
|
1090
|
+
let f = (e) => {
|
|
1091
|
+
let t = Math.min(...e.map((e) => e.x)), n = Math.min(...e.map((e) => e.y));
|
|
1092
|
+
return {
|
|
1093
|
+
x: t,
|
|
1094
|
+
y: n,
|
|
1095
|
+
w: Math.max(...e.map((e) => e.x + e.w)) - t,
|
|
1096
|
+
h: Math.max(...e.map((e) => e.y + e.h)) - n
|
|
1097
|
+
};
|
|
1098
|
+
}, p = d.map((t) => {
|
|
1099
|
+
let n = new Set(t), r = t.map((e) => o.get(e));
|
|
1100
|
+
for (let t of e.edges) {
|
|
1101
|
+
if (!n.has(i.get(t.from) ?? "")) continue;
|
|
1102
|
+
for (let e of t.points ?? []) {
|
|
1103
|
+
let t = u(e);
|
|
1104
|
+
r.push({
|
|
1105
|
+
x: t.x,
|
|
1106
|
+
y: t.y,
|
|
1107
|
+
w: 0,
|
|
1108
|
+
h: 0
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
let e = s.find((e) => e.edge === t.id);
|
|
1112
|
+
e && r.push(e.r);
|
|
1113
|
+
}
|
|
1114
|
+
let a = f(r), c = Math.min(...t.map((t) => l(e.nodes.find((e) => e.id === t)).y));
|
|
1115
|
+
return {
|
|
1116
|
+
ids: n,
|
|
1117
|
+
r: a,
|
|
1118
|
+
lift: Math.max(0, c - a.y)
|
|
1119
|
+
};
|
|
1120
|
+
}).sort((e, t) => t.r.w * t.r.h - e.r.w * e.r.h || e.r.x - t.r.x), h = l(e.bounds), g = f(p.map((e) => e.r)), _ = {
|
|
1121
|
+
w: Math.max(0, h.w - g.w),
|
|
1122
|
+
h: Math.max(0, h.h - g.h)
|
|
1123
|
+
}, v = (e, t) => Math.min(1, c.w / (e + _.w), c.h / (t + _.h)), y = (e) => {
|
|
1124
|
+
let t = Math.ceil(p.length / e), n = [], r = g.y, i = 0;
|
|
1125
|
+
for (let e = 0; e * t < p.length; e++) {
|
|
1126
|
+
let a = p.slice(e * t, (e + 1) * t), o = Math.max(...a.map((e) => e.lift)), s = g.x;
|
|
1127
|
+
for (let e of a) n.push({
|
|
1128
|
+
x: s,
|
|
1129
|
+
y: r + o - e.lift
|
|
1130
|
+
}), s += e.r.w + be;
|
|
1131
|
+
i = Math.max(i, s - be - g.x), r += Math.max(...a.map((e) => e.r.h + o - e.lift)) + be;
|
|
1132
|
+
}
|
|
1133
|
+
return {
|
|
1134
|
+
at: n,
|
|
1135
|
+
w: i,
|
|
1136
|
+
h: r - be - g.y
|
|
1137
|
+
};
|
|
1138
|
+
}, b = p.map((e, t) => ({
|
|
1139
|
+
rows: t + 1,
|
|
1140
|
+
...y(t + 1)
|
|
1141
|
+
})), x = b[0], C = v(x.w, x.h);
|
|
1142
|
+
for (let e of b.slice(1)) {
|
|
1143
|
+
let t = v(e.w, e.h);
|
|
1144
|
+
t > C * 1.05 && (x = e, C = t);
|
|
1145
|
+
}
|
|
1146
|
+
C < .875 && (x = b.filter((e) => (e.w + _.w) * .875 <= c.w).sort((e, t) => e.h - t.h)[0] ?? [...b].sort((e, t) => e.w - t.w)[0]);
|
|
1147
|
+
let w = /* @__PURE__ */ new Map();
|
|
1148
|
+
if (p.forEach((e, t) => {
|
|
1149
|
+
let n = x.at[t];
|
|
1150
|
+
for (let t of e.ids) w.set(t, {
|
|
1151
|
+
x: n.x - e.r.x,
|
|
1152
|
+
y: n.y - e.r.y
|
|
1153
|
+
});
|
|
1154
|
+
}), [...w.values()].every((e) => Math.abs(e.x) < .5 && Math.abs(e.y) < .5)) return null;
|
|
1155
|
+
let T = (e) => w.get(i.get(e) ?? "") ?? null, E = (e, t) => u({ ...(() => {
|
|
1156
|
+
let n = u(e);
|
|
1157
|
+
return {
|
|
1158
|
+
x: K(n.x + t.x),
|
|
1159
|
+
y: K(n.y + t.y)
|
|
1160
|
+
};
|
|
1161
|
+
})() }), D = e.nodes.map((e) => {
|
|
1162
|
+
let t = T(e.id);
|
|
1163
|
+
if (!t) return e;
|
|
1164
|
+
let n = E(e, t);
|
|
1165
|
+
return {
|
|
1166
|
+
...e,
|
|
1167
|
+
x: n.x,
|
|
1168
|
+
y: n.y
|
|
1169
|
+
};
|
|
1170
|
+
}), O = e.edges.map((e) => {
|
|
1171
|
+
let t = T(e.from);
|
|
1172
|
+
return t ? {
|
|
1173
|
+
...e,
|
|
1174
|
+
points: e.points?.map((e) => E(e, t)),
|
|
1175
|
+
...e.labelBox ? { labelBox: {
|
|
1176
|
+
...e.labelBox,
|
|
1177
|
+
...E(e.labelBox, t)
|
|
1178
|
+
} } : null
|
|
1179
|
+
} : e;
|
|
1180
|
+
}), k = D;
|
|
1181
|
+
if (n) {
|
|
1182
|
+
let e = k.filter((e) => i.has(e.id)).map(l), r = l(n), a = Math.max(...e.map((e) => e.x + e.w)) + t.side, o = Math.max(...e.map((e) => e.y + e.h)) + t.bottom, s = Math.min(r.w, Math.ceil(m(n, S).w * 1.08)), c = l({
|
|
1183
|
+
x: r.x,
|
|
1184
|
+
y: r.y,
|
|
1185
|
+
w: Math.max(a - r.x, s),
|
|
1186
|
+
h: o - r.y
|
|
1187
|
+
});
|
|
1188
|
+
k = k.map((e) => e.id === n.id ? {
|
|
1189
|
+
...e,
|
|
1190
|
+
...c
|
|
1191
|
+
} : e);
|
|
1192
|
+
}
|
|
1193
|
+
let A = a(k, O.map((e) => ({ pts: e.points ?? [] })), O.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
1194
|
+
return {
|
|
1195
|
+
nodes: k,
|
|
1196
|
+
edges: O,
|
|
1197
|
+
bounds: A
|
|
1198
|
+
};
|
|
1199
|
+
}
|
|
1200
|
+
function Se(e, t = S) {
|
|
1201
|
+
let n = (e) => (!!e.fromPort || !!e.toPort) && e.from !== e.to, r = u(e.nodes), i = /* @__PURE__ */ new Map(), c = (e) => {
|
|
1202
|
+
let n = i.get(e.id);
|
|
1203
|
+
if (!n) {
|
|
1204
|
+
let r = m(e, t);
|
|
1205
|
+
n = {
|
|
1206
|
+
header: r.header,
|
|
1207
|
+
top: r.top
|
|
1208
|
+
}, i.set(e.id, n);
|
|
1209
|
+
}
|
|
1210
|
+
return n;
|
|
1211
|
+
}, f = (e) => {
|
|
1212
|
+
let t = r.byId.get(e.from);
|
|
1213
|
+
return !t || e.fromPort || e.from === e.to || !l(t) || t.kind === "root" || t.kind === "region" || !(e.points?.length ?? 0) || !t.description && !t.sections?.some((e) => e.items.length) || d(r, e.to, e.from) ? !1 : e.points[0].y > t.y + c(t).top + 1;
|
|
1214
|
+
};
|
|
1215
|
+
if (e.nodes.length + e.edges.length > Ee || !e.edges.some((e) => n(e) || f(e))) return e;
|
|
1216
|
+
let h = s(e.nodes, e.edges), g = u(h), _ = h.filter((e) => !l(e) && e.kind !== "marker"), v = /* @__PURE__ */ new Map();
|
|
1217
|
+
for (let t of e.edges) {
|
|
1218
|
+
if (!f(t)) continue;
|
|
1219
|
+
let e = g.byId.get(t.from), n = c(e), r = t.points, i = K(e.y + (n.header + n.top) / 2);
|
|
1220
|
+
for (let n = 1; n < r.length; n++) {
|
|
1221
|
+
let a = r[n - 1], o = r[n], s = a.x >= e.x + e.w + 4 ? e.x + e.w : a.x <= e.x - 4 ? e.x : null;
|
|
1222
|
+
if (s === null || Math.abs(a.x - o.x) > .5 || i < Math.min(a.y, o.y) || i > Math.max(a.y, o.y)) continue;
|
|
1223
|
+
let c = {
|
|
1224
|
+
x: s,
|
|
1225
|
+
y: i
|
|
1226
|
+
}, l = {
|
|
1227
|
+
x: a.x,
|
|
1228
|
+
y: i
|
|
1229
|
+
};
|
|
1230
|
+
if (_.some((e) => e.id !== t.to && Y(c, l, e))) break;
|
|
1231
|
+
let u = x([
|
|
1232
|
+
c,
|
|
1233
|
+
l,
|
|
1234
|
+
...r.slice(n)
|
|
1235
|
+
]), d = t.labelBox, f = d ? {
|
|
1236
|
+
x: d.x + d.w / 2,
|
|
1237
|
+
y: d.y + d.h / 2
|
|
1238
|
+
} : null, p = f && u.some((e, t) => t > 0 && Ne(u[t - 1], e, f));
|
|
1239
|
+
v.set(t.id, {
|
|
1240
|
+
points: u,
|
|
1241
|
+
...p ? { labelBox: d } : null
|
|
1242
|
+
});
|
|
1243
|
+
break;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
let y = e.edges.filter((e) => (n(e) || f(e) && !v.get(e.id)?.labelBox) && g.byId.has(e.from) && g.byId.has(e.to) && (e.points?.length ?? 0) >= 2), b = new Set(y.map((e) => e.id)), C = e.edges.filter((e) => !b.has(e.id)), w = Oe, T = {
|
|
1247
|
+
headOf: (e) => c(e).top,
|
|
1248
|
+
captionOf: (e) => m(e, t).w,
|
|
1249
|
+
around: C.map((e) => e.points ?? []),
|
|
1250
|
+
labels: C.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
1251
|
+
labelSize: (e) => o(e, t)
|
|
1252
|
+
}, E = new Map(y.map((e) => {
|
|
1253
|
+
let t = e.points, n = t.length, r = {
|
|
1254
|
+
p: t[n - 1],
|
|
1255
|
+
n: w(t[n - 1], t[n - 2])
|
|
1256
|
+
};
|
|
1257
|
+
if (!f(e)) return [e.id, {
|
|
1258
|
+
from: {
|
|
1259
|
+
p: t[0],
|
|
1260
|
+
n: w(t[0], t[1])
|
|
1261
|
+
},
|
|
1262
|
+
to: r
|
|
1263
|
+
}];
|
|
1264
|
+
let i = g.byId.get(e.from), a = c(i), o = K(i.y + (a.header + a.top) / 2), s = [r.p.x >= i.x + i.w / 2, r.p.x < i.x + i.w / 2].map((e) => ({
|
|
1265
|
+
from: {
|
|
1266
|
+
p: {
|
|
1267
|
+
x: e ? i.x + i.w : i.x,
|
|
1268
|
+
y: o
|
|
1269
|
+
},
|
|
1270
|
+
n: {
|
|
1271
|
+
x: e ? 1 : -1,
|
|
1272
|
+
y: 0
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
to: r
|
|
1276
|
+
}));
|
|
1277
|
+
return [e.id, _e(g, e, s, T)];
|
|
1278
|
+
})), D = p(g, y, T, E), O = e.edges.map((e) => {
|
|
1279
|
+
let t = D.get(e.id), n = v.get(e.id);
|
|
1280
|
+
if (!t && n) return {
|
|
1281
|
+
...e,
|
|
1282
|
+
points: n.points,
|
|
1283
|
+
labelBox: n.labelBox
|
|
1284
|
+
};
|
|
1285
|
+
if (!t) return e;
|
|
1286
|
+
let { labelBox: r, ...i } = e;
|
|
1287
|
+
return {
|
|
1288
|
+
...i,
|
|
1289
|
+
points: t.pts,
|
|
1290
|
+
...t.label ? { labelBox: t.label } : null
|
|
1291
|
+
};
|
|
1292
|
+
});
|
|
1293
|
+
return {
|
|
1294
|
+
nodes: h,
|
|
1295
|
+
edges: O,
|
|
1296
|
+
bounds: a(h, O.map((e) => ({ pts: e.points ?? [] })), O.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds
|
|
1297
|
+
};
|
|
1298
|
+
}
|
|
1299
|
+
var Ce = 4, we = 120, Te = 80, Ee = 300, De = 48, J = (e) => {
|
|
1300
|
+
if (e.length < 4) return !1;
|
|
1301
|
+
let t = (e, t, n, r) => {
|
|
1302
|
+
let i = Oe(n, r), a = Oe(e, t);
|
|
1303
|
+
return i.x === -a.x && i.y === -a.y && Math.abs(r.x - n.x) + Math.abs(r.y - n.y) <= De;
|
|
1304
|
+
}, n = e.length;
|
|
1305
|
+
return t(e[n - 4], e[n - 3], e[n - 2], e[n - 1]);
|
|
1306
|
+
}, Oe = (e, t) => Math.abs(t.x - e.x) >= Math.abs(t.y - e.y) ? {
|
|
1307
|
+
x: Math.sign(t.x - e.x) || 1,
|
|
1308
|
+
y: 0
|
|
1309
|
+
} : {
|
|
1310
|
+
x: 0,
|
|
1311
|
+
y: Math.sign(t.y - e.y) || 1
|
|
1312
|
+
};
|
|
1313
|
+
function ke(e, t = S) {
|
|
1314
|
+
let n = e.edges.filter((e) => e.forkOf && e.from !== e.to && (e.points?.length ?? 0) >= 2);
|
|
1315
|
+
if (!n.length || e.nodes.length + e.edges.length > Ee) return e;
|
|
1316
|
+
let r = new Map(e.edges.map((e) => [e.id, e])), i = u(e.nodes), o = /* @__PURE__ */ new Map(), s = (e) => {
|
|
1317
|
+
let n = o.get(e.id);
|
|
1318
|
+
return n === void 0 && (n = m(e, t).top, o.set(e.id, n)), n;
|
|
1319
|
+
}, c = [];
|
|
1320
|
+
for (let n of e.nodes) n.kind !== "marker" && n.kind !== "root" && (l(n) ? n.kind === "region" ? n.title && c.push({
|
|
1321
|
+
id: n.id,
|
|
1322
|
+
r: {
|
|
1323
|
+
x: n.x,
|
|
1324
|
+
y: n.y,
|
|
1325
|
+
w: Math.min(n.w, m(n, t).w),
|
|
1326
|
+
h: Math.min(n.h, s(n))
|
|
1327
|
+
}
|
|
1328
|
+
}) : c.push({
|
|
1329
|
+
id: n.id,
|
|
1330
|
+
r: {
|
|
1331
|
+
x: n.x,
|
|
1332
|
+
y: n.y,
|
|
1333
|
+
w: n.w,
|
|
1334
|
+
h: Math.min(n.h, s(n))
|
|
1335
|
+
}
|
|
1336
|
+
}) : c.push({
|
|
1337
|
+
id: n.id,
|
|
1338
|
+
r: n
|
|
1339
|
+
}));
|
|
1340
|
+
for (let t of e.edges) t.labelBox && c.push({
|
|
1341
|
+
id: `\0label:${t.id}`,
|
|
1342
|
+
r: t.labelBox
|
|
1343
|
+
});
|
|
1344
|
+
let d = e.nodes.filter((e) => l(e) && e.kind !== "region").flatMap((e) => [
|
|
1345
|
+
[{
|
|
1346
|
+
x: e.x,
|
|
1347
|
+
y: e.y
|
|
1348
|
+
}, {
|
|
1349
|
+
x: e.x + e.w,
|
|
1350
|
+
y: e.y
|
|
1351
|
+
}],
|
|
1352
|
+
[{
|
|
1353
|
+
x: e.x,
|
|
1354
|
+
y: e.y + e.h
|
|
1355
|
+
}, {
|
|
1356
|
+
x: e.x + e.w,
|
|
1357
|
+
y: e.y + e.h
|
|
1358
|
+
}],
|
|
1359
|
+
[{
|
|
1360
|
+
x: e.x,
|
|
1361
|
+
y: e.y
|
|
1362
|
+
}, {
|
|
1363
|
+
x: e.x,
|
|
1364
|
+
y: e.y + e.h
|
|
1365
|
+
}],
|
|
1366
|
+
[{
|
|
1367
|
+
x: e.x + e.w,
|
|
1368
|
+
y: e.y
|
|
1369
|
+
}, {
|
|
1370
|
+
x: e.x + e.w,
|
|
1371
|
+
y: e.y + e.h
|
|
1372
|
+
}]
|
|
1373
|
+
]), f = e.nodes.filter((e) => l(e) && e.kind !== "root"), h = (t, n, a, o) => d.every((e) => !Ae(t, n, e)) && c.every(({ id: e, r }) => e === a || !Y(t, n, {
|
|
1374
|
+
x: r.x - 4,
|
|
1375
|
+
y: r.y - 4,
|
|
1376
|
+
w: r.w + 8,
|
|
1377
|
+
h: r.h + 8
|
|
1378
|
+
})) && f.every((e) => $e(i, e.id, r.get(o)) || !Y(t, n, {
|
|
1379
|
+
x: e.x - 4,
|
|
1380
|
+
y: e.y - 4,
|
|
1381
|
+
w: e.w + 8,
|
|
1382
|
+
h: e.h + 8
|
|
1383
|
+
})) && e.edges.every((e) => e.id === o || e.forkOf === r.get(o)?.forkOf || e.id === r.get(o)?.forkOf || !Ae(t, n, e.points ?? [])), g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map();
|
|
1384
|
+
for (let t of n) {
|
|
1385
|
+
let n = r.get(t.forkOf), a = n?.labelBox, o = n?.points;
|
|
1386
|
+
if (!a || !o || o.length < 2) continue;
|
|
1387
|
+
let s = -1, c = null;
|
|
1388
|
+
for (let e = 1; e < o.length && s < 0; e++) {
|
|
1389
|
+
let t = o[e - 1], n = o[e];
|
|
1390
|
+
Math.max(t.x, n.x) >= a.x && Math.min(t.x, n.x) <= a.x + a.w && Math.max(t.y, n.y) >= a.y && Math.min(t.y, n.y) <= a.y + a.h && (Math.abs(t.x - n.x) > .5 || Math.abs(t.y - n.y) > .5) && (s = e, c = Oe(t, n));
|
|
1391
|
+
}
|
|
1392
|
+
if (!c) continue;
|
|
1393
|
+
let u = c.x ? {
|
|
1394
|
+
x: c.x > 0 ? a.x + a.w : a.x,
|
|
1395
|
+
y: o[s].y
|
|
1396
|
+
} : {
|
|
1397
|
+
x: o[s].x,
|
|
1398
|
+
y: c.y > 0 ? a.y + a.h : a.y
|
|
1399
|
+
}, d = t.points, f = d[d.length - 1], p = Oe(d[d.length - 2], f), m = [u, ...o.slice(s, -1)], v = i.byId.get(t.to), y = [{
|
|
1400
|
+
end: f,
|
|
1401
|
+
into: p
|
|
1402
|
+
}];
|
|
1403
|
+
if (v && !l(v)) {
|
|
1404
|
+
let e = K(v.y + Math.min(v.h / 2, 24));
|
|
1405
|
+
y.push({
|
|
1406
|
+
end: {
|
|
1407
|
+
x: v.x,
|
|
1408
|
+
y: e
|
|
1409
|
+
},
|
|
1410
|
+
into: {
|
|
1411
|
+
x: 1,
|
|
1412
|
+
y: 0
|
|
1413
|
+
}
|
|
1414
|
+
}, {
|
|
1415
|
+
end: {
|
|
1416
|
+
x: v.x + v.w,
|
|
1417
|
+
y: e
|
|
1418
|
+
},
|
|
1419
|
+
into: {
|
|
1420
|
+
x: -1,
|
|
1421
|
+
y: 0
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
let b = null, S = 0;
|
|
1426
|
+
for (let n = 0; n < m.length; n++) {
|
|
1427
|
+
n && (S += Math.abs(m[n].x - m[n - 1].x) + Math.abs(m[n].y - m[n - 1].y));
|
|
1428
|
+
let r = m[n];
|
|
1429
|
+
for (let { end: i, into: a } of y) {
|
|
1430
|
+
let o = a.y ? {
|
|
1431
|
+
x: i.x,
|
|
1432
|
+
y: r.y
|
|
1433
|
+
} : {
|
|
1434
|
+
x: r.x,
|
|
1435
|
+
y: i.y
|
|
1436
|
+
};
|
|
1437
|
+
if (a.y && Math.sign(i.y - r.y) !== a.y || a.x && Math.sign(i.x - r.x) !== a.x || !h(r, o, t.to, t.id) || !h(o, i, t.to, t.id)) continue;
|
|
1438
|
+
let s = x([
|
|
1439
|
+
...m.slice(0, n + 1),
|
|
1440
|
+
o,
|
|
1441
|
+
i
|
|
1442
|
+
]);
|
|
1443
|
+
if (J(s)) continue;
|
|
1444
|
+
let c = S + Math.abs(o.x - r.x) + Math.abs(o.y - r.y) + Math.abs(i.x - o.x) + Math.abs(i.y - o.y) + 30 * e.edges.reduce((e, n) => e + (n.id === t.id || n.id === t.forkOf ? 0 : je([
|
|
1445
|
+
r,
|
|
1446
|
+
o,
|
|
1447
|
+
i
|
|
1448
|
+
], n.points ?? [])), 0);
|
|
1449
|
+
(!b || c < b.len) && (b = {
|
|
1450
|
+
pts: s,
|
|
1451
|
+
len: c
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
let C = f, w = p;
|
|
1456
|
+
b ? g.set(t.id, b.pts) : _.set(t.id, {
|
|
1457
|
+
from: {
|
|
1458
|
+
p: u,
|
|
1459
|
+
n: c
|
|
1460
|
+
},
|
|
1461
|
+
to: {
|
|
1462
|
+
p: C,
|
|
1463
|
+
n: {
|
|
1464
|
+
x: -w.x,
|
|
1465
|
+
y: -w.y
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
if (_.size && e.nodes.length + e.edges.length <= we) {
|
|
1471
|
+
let r = e.edges.filter((e) => !_.has(e.id) && !g.has(e.id)), a = {
|
|
1472
|
+
headOf: s,
|
|
1473
|
+
captionOf: (e) => m(e, t).w,
|
|
1474
|
+
around: [...r.map((e) => e.points ?? []), ...g.values()],
|
|
1475
|
+
labels: r.flatMap((e) => e.labelBox ? [e.labelBox] : [])
|
|
1476
|
+
};
|
|
1477
|
+
for (let e of n.filter((e) => _.has(e.id))) {
|
|
1478
|
+
let t = i.byId.get(e.to), n = _.get(e.id);
|
|
1479
|
+
if (!t) continue;
|
|
1480
|
+
let r = K(t.y + Math.min(t.h / 2, 24)), o = [
|
|
1481
|
+
n,
|
|
1482
|
+
{
|
|
1483
|
+
from: n.from,
|
|
1484
|
+
to: {
|
|
1485
|
+
p: {
|
|
1486
|
+
x: t.x,
|
|
1487
|
+
y: r
|
|
1488
|
+
},
|
|
1489
|
+
n: {
|
|
1490
|
+
x: -1,
|
|
1491
|
+
y: 0
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
from: n.from,
|
|
1497
|
+
to: {
|
|
1498
|
+
p: {
|
|
1499
|
+
x: t.x + t.w,
|
|
1500
|
+
y: r
|
|
1501
|
+
},
|
|
1502
|
+
n: {
|
|
1503
|
+
x: 1,
|
|
1504
|
+
y: 0
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
], s = n, c = Infinity;
|
|
1509
|
+
for (let t of o) {
|
|
1510
|
+
let n = p(i, [e], a, /* @__PURE__ */ new Map([[e.id, t]])).get(e.id);
|
|
1511
|
+
if (!n) continue;
|
|
1512
|
+
let r = J(n.pts), o = n.pts.reduce((e, t, r) => e + (r ? Math.abs(t.x - n.pts[r - 1].x) + Math.abs(t.y - n.pts[r - 1].y) : 0), 0) + (r ? 1e5 : 0);
|
|
1513
|
+
o < c && (c = o, s = t);
|
|
1514
|
+
}
|
|
1515
|
+
_.set(e.id, s);
|
|
1516
|
+
}
|
|
1517
|
+
let o = p(i, n.filter((e) => _.has(e.id)), a, _);
|
|
1518
|
+
for (let [e, t] of o) g.set(e, t.pts);
|
|
1519
|
+
}
|
|
1520
|
+
if (!g.size) return e;
|
|
1521
|
+
let v = e.edges.map((e) => {
|
|
1522
|
+
let t = g.get(e.id);
|
|
1523
|
+
if (!t) return e;
|
|
1524
|
+
let { labelBox: n, ...r } = e;
|
|
1525
|
+
return {
|
|
1526
|
+
...r,
|
|
1527
|
+
points: t
|
|
1528
|
+
};
|
|
1529
|
+
}), y = a(e.nodes, v.map((e) => ({ pts: e.points ?? [] })), v.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
1530
|
+
return {
|
|
1531
|
+
nodes: e.nodes,
|
|
1532
|
+
edges: v,
|
|
1533
|
+
bounds: y
|
|
1534
|
+
};
|
|
1535
|
+
}
|
|
1536
|
+
function Ae(e, t, n) {
|
|
1537
|
+
let r = Math.abs(e.y - t.y) < .5;
|
|
1538
|
+
for (let i = 1; i < n.length; i++) {
|
|
1539
|
+
let a = n[i - 1], o = n[i];
|
|
1540
|
+
if (r && Math.abs(a.y - o.y) < .5 && Math.abs(a.y - e.y) < 12 && Math.min(Math.max(e.x, t.x), Math.max(a.x, o.x)) - Math.max(Math.min(e.x, t.x), Math.min(a.x, o.x)) > 12 || !r && Math.abs(a.x - o.x) < .5 && Math.abs(a.x - e.x) < 12 && Math.min(Math.max(e.y, t.y), Math.max(a.y, o.y)) - Math.max(Math.min(e.y, t.y), Math.min(a.y, o.y)) > 12) return !0;
|
|
1541
|
+
}
|
|
1542
|
+
return !1;
|
|
1543
|
+
}
|
|
1544
|
+
function je(e, t) {
|
|
1545
|
+
let n = 0;
|
|
1546
|
+
for (let r = 1; r < e.length; r++) for (let i = 1; i < t.length; i++) {
|
|
1547
|
+
let a = e[r - 1], o = e[r], s = t[i - 1], c = t[i], l = Math.abs(a.y - o.y) < .5;
|
|
1548
|
+
if (l === Math.abs(s.y - c.y) < .5) continue;
|
|
1549
|
+
let [u, d, f, p] = l ? [
|
|
1550
|
+
a,
|
|
1551
|
+
o,
|
|
1552
|
+
s,
|
|
1553
|
+
c
|
|
1554
|
+
] : [
|
|
1555
|
+
s,
|
|
1556
|
+
c,
|
|
1557
|
+
a,
|
|
1558
|
+
o
|
|
1559
|
+
];
|
|
1560
|
+
f.x > Math.min(u.x, d.x) + .5 && f.x < Math.max(u.x, d.x) - .5 && u.y > Math.min(f.y, p.y) + .5 && u.y < Math.max(f.y, p.y) - .5 && n++;
|
|
1561
|
+
}
|
|
1562
|
+
return n;
|
|
1563
|
+
}
|
|
1564
|
+
function Me(e, t) {
|
|
1565
|
+
let n = {
|
|
1566
|
+
x: t.x + t.w / 2,
|
|
1567
|
+
y: t.y + t.h / 2
|
|
1568
|
+
};
|
|
1569
|
+
if (e.some((t, r) => r > 0 && Ne(e[r - 1], t, n))) return t;
|
|
1570
|
+
let r = 1, i = -1;
|
|
1571
|
+
for (let t = 1; t < e.length; t++) {
|
|
1572
|
+
let n = Math.abs(e[t].x - e[t - 1].x) + Math.abs(e[t].y - e[t - 1].y);
|
|
1573
|
+
n > i && (i = n, r = t);
|
|
1574
|
+
}
|
|
1575
|
+
let a = e[r - 1], o = e[r];
|
|
1576
|
+
return {
|
|
1577
|
+
...t,
|
|
1578
|
+
x: K((a.x + o.x) / 2 - t.w / 2),
|
|
1579
|
+
y: K((a.y + o.y) / 2 - t.h / 2)
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
var Y = (e, t, n) => Math.max(e.x, t.x) > n.x + .5 && Math.min(e.x, t.x) < n.x + n.w - .5 && Math.max(e.y, t.y) > n.y + .5 && Math.min(e.y, t.y) < n.y + n.h - .5, Ne = (e, t, n) => Math.abs(e.x - t.x) < .5 ? Math.abs(n.x - e.x) < 2 && n.y >= Math.min(e.y, t.y) - 1 && n.y <= Math.max(e.y, t.y) + 1 : Math.abs(n.y - e.y) < 2 && n.x >= Math.min(e.x, t.x) - 1 && n.x <= Math.max(e.x, t.x) + 1, Pe = "Laying out a diagram needs elkjs, an optional peer of @brett_lamy/ui: npm install elkjs", Fe = null;
|
|
1583
|
+
async function Ie() {
|
|
1584
|
+
return Fe ||= import("elkjs/lib/elk.bundled.js").then((e) => new e.default()).catch((e) => {
|
|
1585
|
+
throw Fe = null, new C("peer", Pe, { cause: e });
|
|
1586
|
+
}), Fe;
|
|
1587
|
+
}
|
|
1588
|
+
var Le = () => new Worker(new URL(
|
|
1589
|
+
/* @vite-ignore */
|
|
1590
|
+
"/assets/layout-worker-MHKJBZ5g.js",
|
|
1591
|
+
"" + import.meta.url
|
|
1592
|
+
), { type: "module" });
|
|
1593
|
+
function Re(e = {}) {
|
|
1594
|
+
let t = null, n = 0, r = !1, i = !1, a = () => {
|
|
1595
|
+
t?.terminate(), t = null;
|
|
1596
|
+
}, o = (r, i) => new Promise((o, s) => {
|
|
1597
|
+
let c = t ??= (e.worker ?? Le)(), l = ++n, u = () => {
|
|
1598
|
+
c.removeEventListener("message", d), c.removeEventListener("error", f), c.removeEventListener("messageerror", f), i?.removeEventListener("abort", p);
|
|
1599
|
+
}, d = (e) => {
|
|
1600
|
+
e.data?.id === l && (u(), e.data.error ? s(new C("elk", String(e.data.error))) : o(e.data.graph));
|
|
1601
|
+
}, f = (e) => {
|
|
1602
|
+
u(), a(), s(new C("worker", `The diagram layout worker couldn't start: ${e.message ?? "it failed to load"}`));
|
|
1603
|
+
}, p = () => {
|
|
1604
|
+
u(), a(), s(new C("aborted", "The layout was stopped."));
|
|
1605
|
+
};
|
|
1606
|
+
c.addEventListener("message", d), c.addEventListener("error", f), c.addEventListener("messageerror", f), i?.addEventListener("abort", p), c.postMessage({
|
|
1607
|
+
id: l,
|
|
1608
|
+
graph: r
|
|
1609
|
+
});
|
|
1610
|
+
});
|
|
1611
|
+
return {
|
|
1612
|
+
async run(t, n) {
|
|
1613
|
+
if (n?.aborted) throw new C("aborted", "The layout was stopped.");
|
|
1614
|
+
if (typeof Worker < "u" && !r) try {
|
|
1615
|
+
return {
|
|
1616
|
+
graph: await o(t, n),
|
|
1617
|
+
engine: "worker"
|
|
1618
|
+
};
|
|
1619
|
+
} catch (t) {
|
|
1620
|
+
if (!(t instanceof C) || t.code !== "worker" || e.worker) throw t;
|
|
1621
|
+
r = !0, i = !0;
|
|
1622
|
+
}
|
|
1623
|
+
let a = await Ie();
|
|
1624
|
+
i && (i = !1, console.warn("Diagram layout is running on the main thread, which stops the page while it works: its worker script could not be loaded. Pass `worker` to start it yourself."));
|
|
1625
|
+
let s;
|
|
1626
|
+
try {
|
|
1627
|
+
s = await a.layout(t);
|
|
1628
|
+
} catch (e) {
|
|
1629
|
+
throw new C("elk", String(e), { cause: e });
|
|
1630
|
+
}
|
|
1631
|
+
return {
|
|
1632
|
+
graph: s,
|
|
1633
|
+
engine: typeof document > "u" ? "server" : "main-thread"
|
|
1634
|
+
};
|
|
1635
|
+
},
|
|
1636
|
+
dispose: a
|
|
1637
|
+
};
|
|
1638
|
+
}
|
|
1639
|
+
async function ze(e, t = {}) {
|
|
1640
|
+
let n = Re(t);
|
|
1641
|
+
try {
|
|
1642
|
+
return await ct(e, t, n);
|
|
1643
|
+
} finally {
|
|
1644
|
+
n.dispose();
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
var Be = "NETWORK_SIMPLEX";
|
|
1648
|
+
function Ve(e) {
|
|
1649
|
+
let t = (e) => {
|
|
1650
|
+
let { "elk.layered.nodePlacement.strategy": n, ...r } = e.layoutOptions ?? {};
|
|
1651
|
+
return {
|
|
1652
|
+
...e,
|
|
1653
|
+
...e.layoutOptions ? { layoutOptions: n === Be ? r : e.layoutOptions } : null,
|
|
1654
|
+
...e.children ? { children: e.children.map(t) } : null
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
return t(e);
|
|
1658
|
+
}
|
|
1659
|
+
function He(e, { board: t, direction: n, text: r = S } = {}) {
|
|
1660
|
+
let i = Ge(t ? de(e, t, n) : e, r);
|
|
1661
|
+
i = Se(i, r), i = Ke(i, r), i = We(i, r), i = ke(i, r), i = Ue(i, r);
|
|
1662
|
+
for (let e = 0; e < 3; e++) {
|
|
1663
|
+
let e = i;
|
|
1664
|
+
if (i = We(i, r), i = Ye(i, r), i = Ue(i, r), i === e) break;
|
|
1665
|
+
}
|
|
1666
|
+
return i = Ze(i), i = Xe(i), i = st(i), dt(i);
|
|
1667
|
+
}
|
|
1668
|
+
function Ue(e, t) {
|
|
1669
|
+
if (e.nodes.length + e.edges.length > Te) return e;
|
|
1670
|
+
let n = u(e.nodes), r = new Set(e.edges.flatMap((e) => e.forkOf ? [e.forkOf, e.id] : [])), i = e.edges.filter((e) => {
|
|
1671
|
+
let t = e.points ?? [], i = n.byId.get(e.from), a = n.byId.get(e.to);
|
|
1672
|
+
return t.length < 2 || e.from === e.to || r.has(e.id) || !i || !a || i.kind === "marker" || d(n, i.id, a.id) || d(n, a.id, i.id) ? !1 : at(i, a, t);
|
|
1673
|
+
}), s = (e) => e.reduce((t, n, r) => t + (r ? Math.abs(n.x - e[r - 1].x) + Math.abs(n.y - e[r - 1].y) : 0), 0);
|
|
1674
|
+
if (i.sort((e, t) => s(t.points) - s(e.points)).splice(Ce), !i.length) return e;
|
|
1675
|
+
let c = /* @__PURE__ */ new Map(), l = (e) => {
|
|
1676
|
+
let n = c.get(e.id);
|
|
1677
|
+
return n === void 0 && (n = m(e, t).top, c.set(e.id, n)), n;
|
|
1678
|
+
}, f = e.edges;
|
|
1679
|
+
for (let r of i) {
|
|
1680
|
+
let i = n.byId.get(r.from), a = n.byId.get(r.to), c = f.filter((e) => e.id !== r.id), u = {
|
|
1681
|
+
headOf: l,
|
|
1682
|
+
captionOf: (e) => m(e, t).w,
|
|
1683
|
+
around: c.map((e) => e.points ?? []),
|
|
1684
|
+
labels: c.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
1685
|
+
labelSize: (e) => e.labelBox ? {
|
|
1686
|
+
w: e.labelBox.w,
|
|
1687
|
+
h: e.labelBox.h
|
|
1688
|
+
} : o(e, t)
|
|
1689
|
+
}, d = (e) => Math.abs(e.from.p.x - e.to.p.x) + Math.abs(e.from.p.y - e.to.p.y), h = Qe(e.nodes, f, r, t), g = (e) => !!e && !at(i, a, e.pts, h) && !J(e.pts) && !(u.labelSize(r) && !e.clear) && (e.pts.length < (r.points?.length ?? 0) || s(e.pts) < s(r.points ?? [])) && !Je(e.pts, r, f), _ = it(i, a, h.rects, h.runs, h.label), v = [..._ ? [_] : [], ...ot(i, a, n).sort((e, t) => d(e) - d(t)).slice(0, 4)], y;
|
|
1690
|
+
if (v.length && (y = p(n, [r], u, /* @__PURE__ */ new Map([[r.id, _e(n, r, v, u)]])).get(r.id)), g(y) || (y = ve(n, r, ot(i, a, n, { every: !0 }), u).map((e) => e.r).slice(0, 4).find(g)), !g(y)) continue;
|
|
1691
|
+
let { labelBox: b, ...x } = r;
|
|
1692
|
+
f = f.map((e) => e.id === r.id ? {
|
|
1693
|
+
...x,
|
|
1694
|
+
points: y.pts,
|
|
1695
|
+
...y.label ? { labelBox: y.label } : null
|
|
1696
|
+
} : e);
|
|
1697
|
+
}
|
|
1698
|
+
if (f === e.edges) return e;
|
|
1699
|
+
let h = a(e.nodes, f.map((e) => ({ pts: e.points ?? [] })), f.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
1700
|
+
return {
|
|
1701
|
+
nodes: e.nodes,
|
|
1702
|
+
edges: f,
|
|
1703
|
+
bounds: h
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
function We(e, t) {
|
|
1707
|
+
if (e.nodes.length + e.edges.length > Te) return e;
|
|
1708
|
+
let n = u(e.nodes), r = /* @__PURE__ */ new Map(), i = (e) => {
|
|
1709
|
+
let n = r.get(e.id);
|
|
1710
|
+
return n === void 0 && (n = m(e, t).top, r.set(e.id, n)), n;
|
|
1711
|
+
}, s = (e, t, n) => {
|
|
1712
|
+
let r = et(e, t), i = {
|
|
1713
|
+
x: n.x - t.x,
|
|
1714
|
+
y: n.y - t.y
|
|
1715
|
+
};
|
|
1716
|
+
return i.x * r.x + i.y * r.y > .5 && Math.abs(i.x * r.y) + Math.abs(i.y * r.x) <= .5;
|
|
1717
|
+
}, c = _(n), f = (e, t) => {
|
|
1718
|
+
let r = n.byId.get(e.from), a = n.byId.get(e.to);
|
|
1719
|
+
if (J(t)) return "turns back";
|
|
1720
|
+
if (t.length > 2 && ht(t) > 2 * gt(n, e, t, i) + _t) return "detour";
|
|
1721
|
+
for (let n of h) {
|
|
1722
|
+
if (n.id === e.id || n.forkOf === e.id || e.forkOf === n.id || n.forkOf && n.forkOf === e.forkOf) continue;
|
|
1723
|
+
let r = n.points ?? [];
|
|
1724
|
+
for (let e = 1; e < t.length; e++) for (let n = 1; n < r.length; n++) {
|
|
1725
|
+
let i = t[e - 1], a = t[e], o = r[n - 1], s = r[n];
|
|
1726
|
+
if ((Math.abs(i.y - a.y) < .5 ? Math.abs(o.y - s.y) < .5 && Math.abs(o.y - i.y) < 10 ? Math.min(Math.max(i.x, a.x), Math.max(o.x, s.x)) - Math.max(Math.min(i.x, a.x), Math.min(o.x, s.x)) : 0 : Math.abs(o.x - s.x) < .5 && Math.abs(o.x - i.x) < 10 ? Math.min(Math.max(i.y, a.y), Math.max(o.y, s.y)) - Math.max(Math.min(i.y, a.y), Math.min(o.y, s.y)) : 0) > 20) return "in a lane";
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
if (r && a && t.length >= 2 && e.route !== "straight" && e.route !== "curve" && (!s(r, t[0], t[1]) || !s(a, t[t.length - 1], t[t.length - 2]))) return "not square";
|
|
1730
|
+
for (let e of [t[0], t[t.length - 1]]) for (let t of c) {
|
|
1731
|
+
let n = Math.abs(t.x1 - t.x2) < .5;
|
|
1732
|
+
if ([{
|
|
1733
|
+
x: t.x1,
|
|
1734
|
+
y: t.y1
|
|
1735
|
+
}, {
|
|
1736
|
+
x: t.x2,
|
|
1737
|
+
y: t.y2
|
|
1738
|
+
}].some((t) => Math.hypot(t.x - e.x, t.y - e.y) < 8) || n && Math.abs(t.x1 - e.x) < 14 && (Math.abs(Math.min(t.y1, t.y2) - e.y) < 40 || Math.abs(Math.max(t.y1, t.y2) - e.y) < 40)) return "on a divider";
|
|
1739
|
+
}
|
|
1740
|
+
for (let r of n.nodes) {
|
|
1741
|
+
if (r.kind === "marker" || r.kind === "region" && $e(n, r.id, e)) continue;
|
|
1742
|
+
let a = r.id === e.from || r.id === e.to ? null : l(r) && $e(n, r.id, e) ? {
|
|
1743
|
+
x: r.x,
|
|
1744
|
+
y: r.y,
|
|
1745
|
+
w: r.w,
|
|
1746
|
+
h: Math.min(r.h, i(r))
|
|
1747
|
+
} : r;
|
|
1748
|
+
if (a && t.some((e, n) => n > 0 && Y(t[n - 1], e, {
|
|
1749
|
+
x: a.x + 1.5,
|
|
1750
|
+
y: a.y + 1.5,
|
|
1751
|
+
w: a.w - 3,
|
|
1752
|
+
h: a.h - 3
|
|
1753
|
+
}))) return `through ${r.id}`;
|
|
1754
|
+
if (l(r)) {
|
|
1755
|
+
let e = r.y + Math.min(r.h, i(r));
|
|
1756
|
+
for (let n = 1; n < t.length; n++) {
|
|
1757
|
+
let i = t[n - 1], a = t[n];
|
|
1758
|
+
if ((Math.abs(i.y - a.y) < .5 ? Math.abs(i.y - r.y) < 10 || Math.abs(i.y - r.y - r.h) < 10 || Math.abs(i.y - e) < 6 ? Math.min(Math.max(i.x, a.x), r.x + r.w) - Math.max(Math.min(i.x, a.x), r.x) : 0 : Math.abs(i.x - r.x) < 10 || Math.abs(i.x - r.x - r.w) < 10 ? Math.min(Math.max(i.y, a.y), r.y + r.h) - Math.max(Math.min(i.y, a.y), r.y) : 0) > 10) return `along ${r.id}`;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
return null;
|
|
1763
|
+
}, p = (e, t) => f(e, t) !== null, h = e.edges, g = (e, t) => e.forkOf === t.id || t.forkOf === e.id || !!e.forkOf && e.forkOf === t.forkOf, v = (t) => {
|
|
1764
|
+
let n = t.labelBox;
|
|
1765
|
+
if (!n || t.forkOf || h.some((e) => e.forkOf === t.id)) return !1;
|
|
1766
|
+
let r = {
|
|
1767
|
+
x: n.x + 1,
|
|
1768
|
+
y: n.y + 1,
|
|
1769
|
+
w: n.w - 2,
|
|
1770
|
+
h: n.h - 2
|
|
1771
|
+
};
|
|
1772
|
+
return h.some((e) => e.id !== t.id && !g(e, t) && (e.labelBox && X(r, e.labelBox) || (e.points ?? []).some((e, t, n) => t > 0 && Y(n[t - 1], e, r)))) || e.nodes.some((e) => !l(e) && e.kind !== "marker" && X(r, e));
|
|
1773
|
+
};
|
|
1774
|
+
for (let r of e.edges) {
|
|
1775
|
+
let a = r.points ?? [], s = n.byId.get(r.from), c = n.byId.get(r.to);
|
|
1776
|
+
if (a.length < 2 || r.from === r.to || r.forkOf || r.fromPort || r.toPort || !s || !c || s.kind === "marker" || d(n, s.id, c.id) || d(n, c.id, s.id) || !p(r, a) && !v(h.find((e) => e.id === r.id))) continue;
|
|
1777
|
+
let l = h.filter((e) => e.id !== r.id), u = {
|
|
1778
|
+
headOf: i,
|
|
1779
|
+
captionOf: (e) => m(e, t).w,
|
|
1780
|
+
around: l.map((e) => e.points ?? []),
|
|
1781
|
+
labels: l.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
1782
|
+
labelSize: (e) => e.labelBox ? {
|
|
1783
|
+
w: e.labelBox.w,
|
|
1784
|
+
h: e.labelBox.h
|
|
1785
|
+
} : o(e, t)
|
|
1786
|
+
}, f, g = Qe(e.nodes, h, r, t), _ = it(s, c, g.rects, g.runs, g.label);
|
|
1787
|
+
for (let e of [!1, !0]) {
|
|
1788
|
+
let t = [..._ && !e ? [_] : [], ...ot(s, c, n, { every: e })];
|
|
1789
|
+
if (t.length && (f = ve(n, r, t, u).map((e) => e.r).find((e) => e && !p(r, e.pts) && !at(s, c, e.pts, g) && !Je(e.pts, r, h)), f)) break;
|
|
1790
|
+
}
|
|
1791
|
+
if (!f) continue;
|
|
1792
|
+
let { labelBox: y, ...b } = r;
|
|
1793
|
+
h = h.map((e) => e.id === r.id ? {
|
|
1794
|
+
...b,
|
|
1795
|
+
points: f.pts,
|
|
1796
|
+
...f.label ? { labelBox: f.label } : null
|
|
1797
|
+
} : e);
|
|
1798
|
+
}
|
|
1799
|
+
if (h === e.edges) return e;
|
|
1800
|
+
let y = a(e.nodes, h.map((e) => ({ pts: e.points ?? [] })), h.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
1801
|
+
return {
|
|
1802
|
+
nodes: e.nodes,
|
|
1803
|
+
edges: h,
|
|
1804
|
+
bounds: y
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
function Ge(e, t) {
|
|
1808
|
+
let n = u(e.nodes), r = e.edges.filter((e) => (!e.points || e.points.length < 2) && e.from !== e.to && !e.forkOf && !e.fromPort && !e.toPort && n.byId.has(e.from) && n.byId.has(e.to) && !d(n, e.from, e.to) && !d(n, e.to, e.from));
|
|
1809
|
+
if (!r.length) return e;
|
|
1810
|
+
let i = /* @__PURE__ */ new Map(), s = (e) => {
|
|
1811
|
+
let n = i.get(e.id);
|
|
1812
|
+
return n === void 0 && (n = m(e, t).top, i.set(e.id, n)), n;
|
|
1813
|
+
}, c = e.edges;
|
|
1814
|
+
for (let i of r) {
|
|
1815
|
+
let r = n.byId.get(i.from), a = n.byId.get(i.to), l = c.filter((e) => e.id !== i.id && (e.points?.length ?? 0) >= 2), u = {
|
|
1816
|
+
headOf: s,
|
|
1817
|
+
captionOf: (e) => m(e, t).w,
|
|
1818
|
+
around: l.map((e) => e.points ?? []),
|
|
1819
|
+
labels: l.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
1820
|
+
labelSize: (e) => o(e, t)
|
|
1821
|
+
}, d = [...ve(n, i, ot(r, a, n), u), ...ve(n, i, ot(r, a, n, { every: !0 }), u)], f = d.find((n) => !J(n.r.pts) && !at(r, a, n.r.pts, Qe(e.nodes, c, i, t)))?.r ?? d[0]?.r;
|
|
1822
|
+
if (!f) continue;
|
|
1823
|
+
let { labelBox: p, ...h } = i;
|
|
1824
|
+
c = c.map((e) => e.id === i.id ? {
|
|
1825
|
+
...h,
|
|
1826
|
+
points: f.pts,
|
|
1827
|
+
...f.label ? { labelBox: f.label } : null
|
|
1828
|
+
} : e);
|
|
1829
|
+
}
|
|
1830
|
+
let l = a(e.nodes, c.map((e) => ({ pts: e.points ?? [] })), c.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
1831
|
+
return {
|
|
1832
|
+
nodes: e.nodes,
|
|
1833
|
+
edges: c,
|
|
1834
|
+
bounds: l
|
|
1835
|
+
};
|
|
1836
|
+
}
|
|
1837
|
+
function Ke(e, t) {
|
|
1838
|
+
if (e.nodes.length + e.edges.length > Te) return e;
|
|
1839
|
+
let n = u(e.nodes), r = /* @__PURE__ */ new Map(), i = (e) => {
|
|
1840
|
+
let n = r.get(e.id);
|
|
1841
|
+
return n === void 0 && (n = m(e, t).top, r.set(e.id, n)), n;
|
|
1842
|
+
}, s = e.edges;
|
|
1843
|
+
for (let r of e.edges) {
|
|
1844
|
+
let e = r.points;
|
|
1845
|
+
if (r.from === r.to || r.forkOf || r.fromPort || r.toPort) continue;
|
|
1846
|
+
let a = d(n, r.to, r.from) ? r.from : d(n, r.from, r.to) ? r.to : null;
|
|
1847
|
+
if (!a) continue;
|
|
1848
|
+
let c = n.byId.get(a), l = n.byId.get(a === r.from ? r.to : r.from), u = c.y + Math.min(c.h, i(c));
|
|
1849
|
+
if (e && e.length >= 2) {
|
|
1850
|
+
let t = a === r.from ? e[0] : e[e.length - 1], n = a === r.from ? e[1] : e[e.length - 2];
|
|
1851
|
+
if (Math.abs(t.y - u) < 1.5 && t.x > c.x + 6 && t.x < c.x + c.w - 6 && n.y >= t.y - .5) continue;
|
|
1852
|
+
}
|
|
1853
|
+
let f = s.filter((e) => e.id !== r.id), h = {
|
|
1854
|
+
headOf: i,
|
|
1855
|
+
captionOf: (e) => m(e, t).w,
|
|
1856
|
+
around: f.map((e) => e.points ?? []),
|
|
1857
|
+
labels: f.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
1858
|
+
labelSize: (e) => o(e, t)
|
|
1859
|
+
}, g = c.x + 24, _ = c.x + c.w - 24, v = l.x + l.w / 2, y = [
|
|
1860
|
+
0,
|
|
1861
|
+
1,
|
|
1862
|
+
-1,
|
|
1863
|
+
2,
|
|
1864
|
+
-2,
|
|
1865
|
+
3,
|
|
1866
|
+
-3,
|
|
1867
|
+
4,
|
|
1868
|
+
-4
|
|
1869
|
+
].map((e) => K(v + e * 48)).filter((e) => e >= g && e <= _), b = [
|
|
1870
|
+
{
|
|
1871
|
+
p: {
|
|
1872
|
+
x: K(v),
|
|
1873
|
+
y: l.y
|
|
1874
|
+
},
|
|
1875
|
+
n: {
|
|
1876
|
+
x: 0,
|
|
1877
|
+
y: -1
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
p: {
|
|
1882
|
+
x: l.x,
|
|
1883
|
+
y: K(l.y + Math.min(l.h / 2, 24))
|
|
1884
|
+
},
|
|
1885
|
+
n: {
|
|
1886
|
+
x: -1,
|
|
1887
|
+
y: 0
|
|
1888
|
+
}
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
p: {
|
|
1892
|
+
x: l.x + l.w,
|
|
1893
|
+
y: K(l.y + Math.min(l.h / 2, 24))
|
|
1894
|
+
},
|
|
1895
|
+
n: {
|
|
1896
|
+
x: 1,
|
|
1897
|
+
y: 0
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
], x = null;
|
|
1901
|
+
for (let e of y) for (let t of b) {
|
|
1902
|
+
if (t.n.y < 0 && l.y - u < 2 * xt) continue;
|
|
1903
|
+
let i = {
|
|
1904
|
+
p: {
|
|
1905
|
+
x: e,
|
|
1906
|
+
y: K(u)
|
|
1907
|
+
},
|
|
1908
|
+
n: {
|
|
1909
|
+
x: 0,
|
|
1910
|
+
y: 1
|
|
1911
|
+
}
|
|
1912
|
+
}, o = a === r.from ? {
|
|
1913
|
+
from: i,
|
|
1914
|
+
to: t
|
|
1915
|
+
} : {
|
|
1916
|
+
from: t,
|
|
1917
|
+
to: i
|
|
1918
|
+
}, s = p(n, [r], h, /* @__PURE__ */ new Map([[r.id, o]])).get(r.id);
|
|
1919
|
+
if (!s || h.labelSize(r) && !s.clear || J(s.pts)) continue;
|
|
1920
|
+
let c = ht(s.pts) + 40 * (s.pts.length - 2);
|
|
1921
|
+
(!x || c < x.cost) && (x = {
|
|
1922
|
+
pts: s.pts,
|
|
1923
|
+
label: s.label,
|
|
1924
|
+
cost: c
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
if (!x) continue;
|
|
1928
|
+
let { labelBox: S, ...C } = r, w = x;
|
|
1929
|
+
s = s.map((e) => e.id === r.id ? {
|
|
1930
|
+
...C,
|
|
1931
|
+
points: w.pts,
|
|
1932
|
+
...w.label ? { labelBox: w.label } : null
|
|
1933
|
+
} : e);
|
|
1934
|
+
}
|
|
1935
|
+
if (s === e.edges) return e;
|
|
1936
|
+
let c = a(e.nodes, s.map((e) => ({ pts: e.points ?? [] })), s.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
1937
|
+
return {
|
|
1938
|
+
nodes: e.nodes,
|
|
1939
|
+
edges: s,
|
|
1940
|
+
bounds: c
|
|
1941
|
+
};
|
|
1942
|
+
}
|
|
1943
|
+
var qe = 2;
|
|
1944
|
+
function Je(e, t, n) {
|
|
1945
|
+
let r = (e, t) => e.forkOf === t.id || t.forkOf === e.id || !!e.forkOf && e.forkOf === t.forkOf;
|
|
1946
|
+
for (let i of n) {
|
|
1947
|
+
if (i.id === t.id || r(i, t) || !i.points || i.from === i.to) continue;
|
|
1948
|
+
let a = je(i.points, e);
|
|
1949
|
+
if (!a) continue;
|
|
1950
|
+
let o = n.reduce((e, n) => e + (n.id === i.id || n.id === t.id || r(n, i) ? 0 : je(i.points, n.points ?? [])), 0);
|
|
1951
|
+
if (o + a > qe && o <= qe) return !0;
|
|
1952
|
+
}
|
|
1953
|
+
return !1;
|
|
1954
|
+
}
|
|
1955
|
+
function Ye(e, t) {
|
|
1956
|
+
if (e.nodes.length + e.edges.length > Te) return e;
|
|
1957
|
+
let n = u(e.nodes), r = /* @__PURE__ */ new Map(), i = (e) => {
|
|
1958
|
+
let n = r.get(e.id);
|
|
1959
|
+
return n === void 0 && (n = m(e, t).top, r.set(e.id, n)), n;
|
|
1960
|
+
}, s = (e, t) => e.forkOf === t.id || t.forkOf === e.id || !!e.forkOf && e.forkOf === t.forkOf, c = e.edges;
|
|
1961
|
+
for (let r of e.edges) {
|
|
1962
|
+
let a = c.find((e) => e.id === r.id), l = a.points, u = n.byId.get(a.from), f = n.byId.get(a.to);
|
|
1963
|
+
if (!l || l.length < 2 || a.from === a.to || a.forkOf || a.fromPort || a.toPort || !u || !f || u.kind === "marker" || d(n, u.id, f.id) || d(n, f.id, u.id) || c.some((e) => e.forkOf === a.id)) continue;
|
|
1964
|
+
let p = c.filter((e) => e.id !== a.id && !s(e, a)), h = p.reduce((e, t) => e + je(l, t.points ?? []), 0);
|
|
1965
|
+
if (h <= qe) continue;
|
|
1966
|
+
let g = {
|
|
1967
|
+
headOf: i,
|
|
1968
|
+
captionOf: (e) => m(e, t).w,
|
|
1969
|
+
around: p.map((e) => e.points ?? []),
|
|
1970
|
+
labels: p.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
1971
|
+
labelSize: (e) => e.labelBox ? {
|
|
1972
|
+
w: e.labelBox.w,
|
|
1973
|
+
h: e.labelBox.h
|
|
1974
|
+
} : o(e, t)
|
|
1975
|
+
}, _ = Qe(e.nodes, c, a, t), v = ht(l), y = it(u, f, _.rects, _.runs, _.label), b = [...ve(n, a, [...y ? [y] : [], ...ot(u, f, n)], g), ...ve(n, a, ot(u, f, n, { every: !0 }), g)].sort((e, t) => e.cost - t.cost).find(({ r: e }) => (!g.labelSize(a) || e.clear) && !J(e.pts) && !at(u, f, e.pts, _) && ht(e.pts) <= v * 1.5 + 40 && p.reduce((t, n) => t + je(e.pts, n.points ?? []), 0) <= h - 2);
|
|
1976
|
+
if (!b) continue;
|
|
1977
|
+
let { labelBox: x, ...S } = a;
|
|
1978
|
+
c = c.map((e) => e.id === a.id ? {
|
|
1979
|
+
...S,
|
|
1980
|
+
points: b.r.pts,
|
|
1981
|
+
...b.r.label ? { labelBox: b.r.label } : null
|
|
1982
|
+
} : e);
|
|
1983
|
+
}
|
|
1984
|
+
if (c === e.edges) return e;
|
|
1985
|
+
let l = a(e.nodes, c.map((e) => ({ pts: e.points ?? [] })), c.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
1986
|
+
return {
|
|
1987
|
+
nodes: e.nodes,
|
|
1988
|
+
edges: c,
|
|
1989
|
+
bounds: l
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
function Xe(e) {
|
|
1993
|
+
let t = e.nodes.filter((e) => !l(e) && e.kind !== "marker"), n = e.edges;
|
|
1994
|
+
for (let r of e.edges) {
|
|
1995
|
+
let e = n.find((e) => e.id === r.id), i = e.labelBox, a = e.points;
|
|
1996
|
+
if (!i || !a || a.length < 2 || e.from === e.to || e.forkOf || n.some((t) => t.forkOf === e.id)) continue;
|
|
1997
|
+
let o = {
|
|
1998
|
+
x: i.x + i.w / 2,
|
|
1999
|
+
y: i.y + i.h / 2
|
|
2000
|
+
};
|
|
2001
|
+
for (let r = 1; r < a.length; r++) {
|
|
2002
|
+
let s = a[r - 1], c = a[r], l = Math.abs(s.y - c.y) < .5 ? "x" : "y", u = l === "x" ? "y" : "x", d = l === "x" ? "w" : "h";
|
|
2003
|
+
if (Math.abs(s[u] - o[u]) > 3 || o[l] < Math.min(s[l], c[l]) || o[l] > Math.max(s[l], c[l])) continue;
|
|
2004
|
+
let f = c[l] >= s[l], p = r === a.length - 1, m = f ? i[l] - s[l] : s[l] - (i[l] + i[d]), h = f ? c[l] - (i[l] + i[d]) : i[l] - c[l], g = yt, _ = p ? bt : yt;
|
|
2005
|
+
if (m >= g - .5 && h >= _ - .5 || Math.abs(c[l] - s[l]) < i[d] + g + _) break;
|
|
2006
|
+
let v = h < _ ? -(_ - h) * (f ? 1 : -1) : (g - m) * (f ? 1 : -1), y = {
|
|
2007
|
+
...i,
|
|
2008
|
+
[l]: K(i[l] + v)
|
|
2009
|
+
}, b = {
|
|
2010
|
+
x: y.x + 1,
|
|
2011
|
+
y: y.y + 1,
|
|
2012
|
+
w: y.w - 2,
|
|
2013
|
+
h: y.h - 2
|
|
2014
|
+
};
|
|
2015
|
+
t.some((e) => X(b, e)) || n.some((t) => t.id !== e.id && (t.labelBox && X(b, t.labelBox) || (t.points ?? []).some((e, t, n) => t > 0 && Y(n[t - 1], e, b)))) || (n = n.map((t) => t.id === e.id ? {
|
|
2016
|
+
...t,
|
|
2017
|
+
labelBox: y
|
|
2018
|
+
} : t));
|
|
2019
|
+
break;
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
return n === e.edges ? e : {
|
|
2023
|
+
...e,
|
|
2024
|
+
edges: n
|
|
2025
|
+
};
|
|
2026
|
+
}
|
|
2027
|
+
function Ze(e) {
|
|
2028
|
+
let t = _(u(e.nodes));
|
|
2029
|
+
if (!t.length) return e;
|
|
2030
|
+
let n = e.edges;
|
|
2031
|
+
for (let r of e.edges) {
|
|
2032
|
+
let e = r.labelBox, i = r.points;
|
|
2033
|
+
if (!e || !i || i.length < 2) continue;
|
|
2034
|
+
let a = (e) => t.some((t) => Y({
|
|
2035
|
+
x: t.x1,
|
|
2036
|
+
y: t.y1
|
|
2037
|
+
}, {
|
|
2038
|
+
x: t.x2,
|
|
2039
|
+
y: t.y2
|
|
2040
|
+
}, {
|
|
2041
|
+
x: e.x - 6,
|
|
2042
|
+
y: e.y - 6,
|
|
2043
|
+
w: e.w + 12,
|
|
2044
|
+
h: e.h + 12
|
|
2045
|
+
}) || Math.abs(t.x1 - t.x2) < .5 && t.x1 >= e.x - 6 && t.x1 <= e.x + e.w + 6 && Math.max(t.y1, t.y2) >= e.y && Math.min(t.y1, t.y2) <= e.y + e.h || Math.abs(t.y1 - t.y2) < .5 && t.y1 >= e.y - 6 && t.y1 <= e.y + e.h + 6 && Math.max(t.x1, t.x2) >= e.x && Math.min(t.x1, t.x2) <= e.x + e.w);
|
|
2046
|
+
if (!a(e)) continue;
|
|
2047
|
+
let o = {
|
|
2048
|
+
x: e.x + e.w / 2,
|
|
2049
|
+
y: e.y + e.h / 2
|
|
2050
|
+
};
|
|
2051
|
+
for (let t = 1; t < i.length; t++) {
|
|
2052
|
+
let s = i[t - 1], c = i[t], l = Math.abs(s.y - c.y) < .5;
|
|
2053
|
+
if (l ? Math.abs(s.y - o.y) > 3 || o.x < Math.min(s.x, c.x) || o.x > Math.max(s.x, c.x) : Math.abs(s.x - o.x) > 3 || o.y < Math.min(s.y, c.y) || o.y > Math.max(s.y, c.y)) continue;
|
|
2054
|
+
let u = (l ? Math.min(s.x, c.x) : Math.min(s.y, c.y)) + 8, d = (l ? Math.max(s.x, c.x) : Math.max(s.y, c.y)) - 16, f = l ? e.w : e.h, p = l ? e.x : e.y, m = null;
|
|
2055
|
+
for (let t = 4; t <= 400 && !m; t += 4) for (let n of [1, -1]) {
|
|
2056
|
+
let r = p + n * t;
|
|
2057
|
+
if (r < u || r + f > d) continue;
|
|
2058
|
+
let i = l ? {
|
|
2059
|
+
...e,
|
|
2060
|
+
x: K(r)
|
|
2061
|
+
} : {
|
|
2062
|
+
...e,
|
|
2063
|
+
y: K(r)
|
|
2064
|
+
};
|
|
2065
|
+
if (!a(i)) {
|
|
2066
|
+
m = i;
|
|
2067
|
+
break;
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
m && (n = n.map((e) => e.id === r.id ? {
|
|
2071
|
+
...e,
|
|
2072
|
+
labelBox: m
|
|
2073
|
+
} : e));
|
|
2074
|
+
break;
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
return n === e.edges ? e : {
|
|
2078
|
+
...e,
|
|
2079
|
+
edges: n
|
|
2080
|
+
};
|
|
2081
|
+
}
|
|
2082
|
+
var Qe = (e, t, n, r = S) => {
|
|
2083
|
+
let i = [...t].filter((e) => e.id !== n.id);
|
|
2084
|
+
return {
|
|
2085
|
+
rects: [...[...e].filter((e) => !l(e) && e.kind !== "marker" && e.id !== n.from && e.id !== n.to), ...i.flatMap((e) => e.labelBox ? [e.labelBox] : [])],
|
|
2086
|
+
runs: i.map((e) => e.points ?? []),
|
|
2087
|
+
label: n.labelBox ? {
|
|
2088
|
+
w: n.labelBox.w,
|
|
2089
|
+
h: n.labelBox.h
|
|
2090
|
+
} : o(n, r)
|
|
2091
|
+
};
|
|
2092
|
+
}, $e = (e, t, n) => [n.from, n.to].some((n) => n === t || d(e, n, t)), et = (e, t) => {
|
|
2093
|
+
let n = [
|
|
2094
|
+
Math.abs(t.y - e.y),
|
|
2095
|
+
Math.abs(t.x - (e.x + e.w)),
|
|
2096
|
+
Math.abs(t.y - (e.y + e.h)),
|
|
2097
|
+
Math.abs(t.x - e.x)
|
|
2098
|
+
];
|
|
2099
|
+
return [
|
|
2100
|
+
{
|
|
2101
|
+
x: 0,
|
|
2102
|
+
y: -1
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
x: 1,
|
|
2106
|
+
y: 0
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
x: 0,
|
|
2110
|
+
y: 1
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
x: -1,
|
|
2114
|
+
y: 0
|
|
2115
|
+
}
|
|
2116
|
+
][n.indexOf(Math.min(...n))];
|
|
2117
|
+
}, tt = (e, t, n) => {
|
|
2118
|
+
let r = t.x + t.w / 2, i = t.y + t.h / 2;
|
|
2119
|
+
return n.x > 0 ? r > e.x + e.w : n.x < 0 ? r < e.x : n.y > 0 ? i > e.y + e.h : i < e.y;
|
|
2120
|
+
};
|
|
2121
|
+
function nt(e, t, n = [], r = [], i) {
|
|
2122
|
+
return rt(e, t) ? it(e, t, n, r, i) ? 0 : 2 : 1;
|
|
2123
|
+
}
|
|
2124
|
+
var rt = (e, t) => Math.min(e.x + e.w, t.x + t.w) - Math.max(e.x, t.x) > 16 ? "x" : Math.min(e.y + e.h, t.y + t.h) - Math.max(e.y, t.y) > 16 ? "y" : null;
|
|
2125
|
+
function it(e, t, n = [], r = [], i) {
|
|
2126
|
+
let a = rt(e, t);
|
|
2127
|
+
if (!a) return null;
|
|
2128
|
+
let o = a === "x" ? "w" : "h", s = a === "x" ? "y" : "x", c = a === "x" ? "h" : "w", l = Math.max(e[a], t[a]), u = Math.min(e[a] + e[o], t[a] + t[o]), [d, f] = e[s] <= t[s] ? [e, t] : [t, e], p = d[s] + d[c], m = f[s];
|
|
2129
|
+
if (m - p < 2 * xt) return null;
|
|
2130
|
+
let h = [];
|
|
2131
|
+
for (let e of r) for (let t = 1; t < e.length; t++) {
|
|
2132
|
+
let n = e[t - 1], r = e[t];
|
|
2133
|
+
Math.abs(n[a] - r[a]) > .5 || Math.min(Math.max(n[s], r[s]), m) - Math.max(Math.min(n[s], r[s]), p) > 20 && h.push({
|
|
2134
|
+
[a]: n[a] - 6,
|
|
2135
|
+
[o]: 12,
|
|
2136
|
+
[s]: p,
|
|
2137
|
+
[c]: m - p
|
|
2138
|
+
});
|
|
2139
|
+
}
|
|
2140
|
+
let g = [...n, ...h].filter((e) => e[s] < m && e[s] + e[c] > p && e[a] < u && e[a] + e[o] > l).map((e) => [e[a] - 6, e[a] + e[o] + 6]).sort((e, t) => e[0] - t[0]), _ = [], v = l + ut;
|
|
2141
|
+
for (let [e, t] of g) {
|
|
2142
|
+
for (let t = v; t < Math.min(e, u - ut); t += 2) _.push(t);
|
|
2143
|
+
v = Math.max(v, t);
|
|
2144
|
+
}
|
|
2145
|
+
for (let e = v; e <= u - ut; e += 2) _.push(e);
|
|
2146
|
+
let y = (l + u) / 2;
|
|
2147
|
+
_.sort((e, t) => Math.abs(e - y) - Math.abs(t - y));
|
|
2148
|
+
let b = i ? a === "x" ? i.w : i.h : 0, x = i ? a === "x" ? i.h : i.w : 0, S = [...n];
|
|
2149
|
+
if (i) for (let e of r) for (let t = 1; t < e.length; t++) S.push({
|
|
2150
|
+
x: Math.min(e[t - 1].x, e[t].x),
|
|
2151
|
+
y: Math.min(e[t - 1].y, e[t].y),
|
|
2152
|
+
w: Math.abs(e[t - 1].x - e[t].x),
|
|
2153
|
+
h: Math.abs(e[t - 1].y - e[t].y)
|
|
2154
|
+
});
|
|
2155
|
+
let [C, w] = e[s] <= t[s] ? [xt + yt, xt + bt] : [xt + bt, xt + yt], T = _.find((e) => {
|
|
2156
|
+
if (!i) return !0;
|
|
2157
|
+
for (let t = p + C; t + x <= m - w; t += 4) {
|
|
2158
|
+
let n = {
|
|
2159
|
+
[a]: e - b / 2 - 6,
|
|
2160
|
+
[o]: b + 12,
|
|
2161
|
+
[s]: t - 6,
|
|
2162
|
+
[c]: x + 12
|
|
2163
|
+
};
|
|
2164
|
+
if (!S.some((e) => e.x < n.x + n.w && n.x < e.x + e.w && e.y < n.y + n.h && n.y < e.y + e.h)) return !0;
|
|
2165
|
+
}
|
|
2166
|
+
return !1;
|
|
2167
|
+
});
|
|
2168
|
+
if (T === void 0) return null;
|
|
2169
|
+
let E = a === "x" ? {
|
|
2170
|
+
x: 0,
|
|
2171
|
+
y: t.y > e.y ? 1 : -1
|
|
2172
|
+
} : {
|
|
2173
|
+
x: t.x > e.x ? 1 : -1,
|
|
2174
|
+
y: 0
|
|
2175
|
+
}, D = (e, t) => a === "x" ? {
|
|
2176
|
+
x: K(T),
|
|
2177
|
+
y: t.y > 0 ? e.y + e.h : e.y
|
|
2178
|
+
} : {
|
|
2179
|
+
x: t.x > 0 ? e.x + e.w : e.x,
|
|
2180
|
+
y: K(T)
|
|
2181
|
+
}, O = {
|
|
2182
|
+
x: -E.x,
|
|
2183
|
+
y: -E.y
|
|
2184
|
+
};
|
|
2185
|
+
return {
|
|
2186
|
+
from: {
|
|
2187
|
+
p: D(e, E),
|
|
2188
|
+
n: E
|
|
2189
|
+
},
|
|
2190
|
+
to: {
|
|
2191
|
+
p: D(t, O),
|
|
2192
|
+
n: O
|
|
2193
|
+
}
|
|
2194
|
+
};
|
|
2195
|
+
}
|
|
2196
|
+
function at(e, t, n, r = {
|
|
2197
|
+
rects: [],
|
|
2198
|
+
runs: []
|
|
2199
|
+
}) {
|
|
2200
|
+
let i = nt(e, t, r.rects, r.runs, r.label);
|
|
2201
|
+
return (!tt(e, t, et(e, n[0])) || !tt(t, e, et(t, n[n.length - 1]))) && n.length - 2 >= i + 3;
|
|
2202
|
+
}
|
|
2203
|
+
function ot(e, t, n, { every: r = !1, all: i = !1 } = {}) {
|
|
2204
|
+
let a = _(n), o = (e) => {
|
|
2205
|
+
let t = e.x + e.w / 2, r = (n.children.get(e.id) ?? []).filter((t) => t.kind === "region" && t.h > e.h / 3);
|
|
2206
|
+
if (!a.some((n) => Math.abs(n.x1 - n.x2) < .5 && n.x1 > e.x && n.x1 < e.x + e.w && Math.abs(n.x1 - t) < 16)) return K(t);
|
|
2207
|
+
let i = [...r].sort((e, n) => Math.abs(e.x + e.w / 2 - t) - Math.abs(n.x + n.w / 2 - t))[0];
|
|
2208
|
+
return K(i ? i.x + i.w / 2 : t + 24);
|
|
2209
|
+
}, s = [
|
|
2210
|
+
{
|
|
2211
|
+
n: {
|
|
2212
|
+
x: 0,
|
|
2213
|
+
y: -1
|
|
2214
|
+
},
|
|
2215
|
+
at: (e) => ({
|
|
2216
|
+
x: o(e),
|
|
2217
|
+
y: e.y
|
|
2218
|
+
})
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
n: {
|
|
2222
|
+
x: 1,
|
|
2223
|
+
y: 0
|
|
2224
|
+
},
|
|
2225
|
+
at: (e) => ({
|
|
2226
|
+
x: e.x + e.w,
|
|
2227
|
+
y: K(e.y + Math.min(e.h / 2, 24))
|
|
2228
|
+
})
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
n: {
|
|
2232
|
+
x: 0,
|
|
2233
|
+
y: 1
|
|
2234
|
+
},
|
|
2235
|
+
at: (e) => ({
|
|
2236
|
+
x: o(e),
|
|
2237
|
+
y: e.y + e.h
|
|
2238
|
+
})
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
n: {
|
|
2242
|
+
x: -1,
|
|
2243
|
+
y: 0
|
|
2244
|
+
},
|
|
2245
|
+
at: (e) => ({
|
|
2246
|
+
x: e.x,
|
|
2247
|
+
y: K(e.y + Math.min(e.h / 2, 24))
|
|
2248
|
+
})
|
|
2249
|
+
}
|
|
2250
|
+
], c = [], l = (e, t, n) => n.x > 0 ? t.x + t.w > e.x + e.w + 16 : n.x < 0 ? t.x < e.x - 16 : n.y > 0 ? t.y + t.h > e.y + e.h + 16 : t.y < e.y - 16, u = (e, t, n) => tt(e, t, {
|
|
2251
|
+
x: -n.x,
|
|
2252
|
+
y: -n.y
|
|
2253
|
+
}) && !l(e, t, n);
|
|
2254
|
+
for (let n of s) for (let a of s) {
|
|
2255
|
+
let o = tt(e, t, n.n) && tt(t, e, a.n);
|
|
2256
|
+
(i ? !o : r ? !o && !u(e, t, n.n) && !u(t, e, a.n) : o) && c.push({
|
|
2257
|
+
from: {
|
|
2258
|
+
p: n.at(e),
|
|
2259
|
+
n: n.n
|
|
2260
|
+
},
|
|
2261
|
+
to: {
|
|
2262
|
+
p: a.at(t),
|
|
2263
|
+
n: a.n
|
|
2264
|
+
}
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
if (!r) {
|
|
2268
|
+
let n = (e, t, n) => a.filter((e) => n === "x" ? Math.abs(e.x1 - e.x2) < .5 && e.x1 > t.x && e.x1 < t.x + t.w : Math.abs(e.y1 - e.y2) < .5 && e.y1 > t.y && e.y1 < t.y + t.h).map((e) => n === "x" ? e.x1 : e.y1).some((t) => Math.abs(t - e) < 16) ? null : e;
|
|
2269
|
+
for (let r of ["x", "y"]) {
|
|
2270
|
+
let i = r === "x" ? "w" : "h", a = Math.max(e[r], t[r]) + 12, o = Math.min(e[r] + e[i], t[r] + t[i]) - 12;
|
|
2271
|
+
if (o - a < 0) continue;
|
|
2272
|
+
let s = r === "x" ? {
|
|
2273
|
+
x: 0,
|
|
2274
|
+
y: t.y > e.y ? 1 : -1
|
|
2275
|
+
} : {
|
|
2276
|
+
x: t.x > e.x ? 1 : -1,
|
|
2277
|
+
y: 0
|
|
2278
|
+
};
|
|
2279
|
+
if (!tt(e, t, s) || !tt(t, e, {
|
|
2280
|
+
x: -s.x,
|
|
2281
|
+
y: -s.y
|
|
2282
|
+
})) continue;
|
|
2283
|
+
let l = K((a + o) / 2);
|
|
2284
|
+
for (let i of [
|
|
2285
|
+
0,
|
|
2286
|
+
24,
|
|
2287
|
+
-24,
|
|
2288
|
+
48,
|
|
2289
|
+
-48
|
|
2290
|
+
].map((e) => l + e).filter((i) => i >= a && i <= o && n(i, e, r) !== null && n(i, t, r) !== null).slice(0, 3)) {
|
|
2291
|
+
let n = (e, t) => r === "x" ? {
|
|
2292
|
+
x: i,
|
|
2293
|
+
y: t.y > 0 ? e.y + e.h : e.y
|
|
2294
|
+
} : {
|
|
2295
|
+
x: t.x > 0 ? e.x + e.w : e.x,
|
|
2296
|
+
y: i
|
|
2297
|
+
};
|
|
2298
|
+
c.push({
|
|
2299
|
+
from: {
|
|
2300
|
+
p: n(e, s),
|
|
2301
|
+
n: s
|
|
2302
|
+
},
|
|
2303
|
+
to: {
|
|
2304
|
+
p: n(t, {
|
|
2305
|
+
x: -s.x,
|
|
2306
|
+
y: -s.y
|
|
2307
|
+
}),
|
|
2308
|
+
n: {
|
|
2309
|
+
x: -s.x,
|
|
2310
|
+
y: -s.y
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
});
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
return c;
|
|
2318
|
+
}
|
|
2319
|
+
function st(e) {
|
|
2320
|
+
let n = u(e.nodes), r = e.nodes.filter((e) => l(e) && !n.parent.get(e.id));
|
|
2321
|
+
if (!r.length || e.nodes.length > ce) return e;
|
|
2322
|
+
let o = t.side, s = e.nodes;
|
|
2323
|
+
for (let t of r) {
|
|
2324
|
+
let a = new Set(i(n, t.id)), c = t.x, u = t.x + t.w, d = t.y + t.h;
|
|
2325
|
+
for (let e of a) {
|
|
2326
|
+
let t = n.byId.get(e);
|
|
2327
|
+
if (!t || t.kind === "marker") continue;
|
|
2328
|
+
let r = l(t) ? 0 : o - 8;
|
|
2329
|
+
c = Math.min(c, t.x - o + r), u = Math.max(u, t.x + t.w + o - r), d = Math.max(d, t.y + t.h + o - r);
|
|
2330
|
+
}
|
|
2331
|
+
for (let t of e.edges) {
|
|
2332
|
+
if (!a.has(t.from) || !a.has(t.to)) continue;
|
|
2333
|
+
for (let e of t.points ?? []) c = Math.min(c, e.x - o), u = Math.max(u, e.x + o), d = Math.max(d, e.y + o);
|
|
2334
|
+
let e = t.labelBox;
|
|
2335
|
+
e && (c = Math.min(c, e.x - o), u = Math.max(u, e.x + e.w + o), d = Math.max(d, e.y + e.h + o));
|
|
2336
|
+
}
|
|
2337
|
+
if (c === t.x && u === t.x + t.w && d === t.y + t.h) continue;
|
|
2338
|
+
let f = {
|
|
2339
|
+
x: K(c),
|
|
2340
|
+
y: t.y,
|
|
2341
|
+
w: K(u - c),
|
|
2342
|
+
h: K(d - t.y)
|
|
2343
|
+
};
|
|
2344
|
+
r.some((e) => e !== t && f.x < e.x + e.w && e.x < f.x + f.w && f.y < e.y + e.h && e.y < f.y + f.h) || (s = s.map((e) => e.id === t.id ? {
|
|
2345
|
+
...e,
|
|
2346
|
+
...f
|
|
2347
|
+
} : e));
|
|
2348
|
+
}
|
|
2349
|
+
if (s === e.nodes) return e;
|
|
2350
|
+
let c = a(s, e.edges.map((e) => ({ pts: e.points ?? [] })), e.edges.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
2351
|
+
return {
|
|
2352
|
+
nodes: s,
|
|
2353
|
+
edges: e.edges,
|
|
2354
|
+
bounds: c
|
|
2355
|
+
};
|
|
2356
|
+
}
|
|
2357
|
+
async function ct(e, t, n, r = ee(e, t), i = !0) {
|
|
2358
|
+
let a = typeof performance < "u" ? performance.now() : Date.now(), o;
|
|
2359
|
+
try {
|
|
2360
|
+
o = await n.run(r, t.signal);
|
|
2361
|
+
} catch (e) {
|
|
2362
|
+
if (!(e instanceof C) || e.code !== "elk") throw e;
|
|
2363
|
+
let i = async (e) => {
|
|
2364
|
+
try {
|
|
2365
|
+
return await n.run(e, t.signal);
|
|
2366
|
+
} catch (e) {
|
|
2367
|
+
if (!(e instanceof C) || e.code !== "elk") throw e;
|
|
2368
|
+
return null;
|
|
2369
|
+
}
|
|
2370
|
+
}, a = JSON.stringify(r).includes(Be) ? Ve(r) : r, s = a === r ? null : await i(a);
|
|
2371
|
+
if (!s) {
|
|
2372
|
+
let t = [];
|
|
2373
|
+
if (s = await i({
|
|
2374
|
+
...a,
|
|
2375
|
+
edges: []
|
|
2376
|
+
}), !s) throw e;
|
|
2377
|
+
for (let e of a.edges ?? []) {
|
|
2378
|
+
let n = await i({
|
|
2379
|
+
...a,
|
|
2380
|
+
edges: [...t, e]
|
|
2381
|
+
});
|
|
2382
|
+
n && (t.push(e), s = n);
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
o = s;
|
|
2386
|
+
}
|
|
2387
|
+
let { graph: s, engine: c } = o, l = (typeof performance < "u" ? performance.now() : Date.now()) - a, u = te(e, s);
|
|
2388
|
+
return {
|
|
2389
|
+
...i ? He(u, t) : t.board ? de(u, t.board, t.direction) : u,
|
|
2390
|
+
engine: c,
|
|
2391
|
+
ms: l
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
var lt = 12, ut = 7;
|
|
2395
|
+
function dt(e) {
|
|
2396
|
+
if (e.nodes.length > ce) return e;
|
|
2397
|
+
let t = u(e.nodes), n = e.nodes.filter((e) => !l(e) && e.kind !== "marker"), r = /* @__PURE__ */ new Map();
|
|
2398
|
+
e.edges.forEach((e, n) => {
|
|
2399
|
+
let i = e.points;
|
|
2400
|
+
if (!(!i || i.length < 2 || e.from === e.to || e.route === "curve" || e.route === "straight")) for (let a of [!0, !1]) {
|
|
2401
|
+
if (a && (e.forkOf || e.fromPort) || !a && e.toPort) continue;
|
|
2402
|
+
let o = t.byId.get(a ? e.from : e.to), s = t.byId.get(a ? e.to : e.from);
|
|
2403
|
+
if (!o || o.kind === "marker" || !s || l(o) && d(t, s.id, o.id)) continue;
|
|
2404
|
+
let c = a ? i[0] : i[i.length - 1], u = Math.abs(c.y - o.y) < 1.5 ? "top" : Math.abs(c.y - o.y - o.h) < 1.5 ? "foot" : Math.abs(c.x - o.x) < 1.5 ? "start" : Math.abs(c.x - o.x - o.w) < 1.5 ? "end" : null;
|
|
2405
|
+
if (!u) continue;
|
|
2406
|
+
let f = `${o.id}\0${u}`;
|
|
2407
|
+
r.set(f, [...r.get(f) ?? [], {
|
|
2408
|
+
edge: n,
|
|
2409
|
+
start: a,
|
|
2410
|
+
p: c,
|
|
2411
|
+
along: u === "top" || u === "foot" ? "x" : "y",
|
|
2412
|
+
node: o
|
|
2413
|
+
}]);
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
let i = e.edges, o = (e, r) => {
|
|
2417
|
+
let a = i[e.edge], o = (a.points ?? []).map((e) => ({ ...e })), s = e.along, c = o.length === 2 || e.start ? [0, 1] : [o.length - 1, o.length - 2], l = o[c[0]], u = o[c[1]];
|
|
2418
|
+
if (Math.abs(l[s] - u[s]) > .5) return !1;
|
|
2419
|
+
for (let e of c) o[e] = {
|
|
2420
|
+
...o[e],
|
|
2421
|
+
[s]: o[e][s] + r
|
|
2422
|
+
};
|
|
2423
|
+
let d = e.node, f = s === "x" ? d.x : d.y, p = s === "x" ? d.x + d.w : d.y + d.h;
|
|
2424
|
+
if (o[c[0]][s] < f + ut || o[c[0]][s] > p - ut) return !1;
|
|
2425
|
+
if (o.length === 2) {
|
|
2426
|
+
let n = t.byId.get(e.start ? a.to : a.from), r = s === "x" ? n.x : n.y, i = s === "x" ? n.x + n.w : n.y + n.h;
|
|
2427
|
+
if (o[c[1]][s] < r + ut || o[c[1]][s] > i - ut) return !1;
|
|
2428
|
+
}
|
|
2429
|
+
let m = /* @__PURE__ */ new Set([a.from, a.to]);
|
|
2430
|
+
for (let e = 1; e < o.length; e++) if (n.some((t) => !m.has(t.id) && Y(o[e - 1], o[e], t))) return !1;
|
|
2431
|
+
for (let t = 1; t < o.length; t++) {
|
|
2432
|
+
let n = o[t - 1], r = o[t], a = Math.abs(n.y - r.y) < .5;
|
|
2433
|
+
for (let [t, o] of i.entries()) {
|
|
2434
|
+
if (t === e.edge) continue;
|
|
2435
|
+
let i = o.points ?? [];
|
|
2436
|
+
for (let e = 1; e < i.length; e++) {
|
|
2437
|
+
let t = i[e - 1], o = i[e], s = a ? Math.abs(t.y - o.y) < .5 && Math.abs(t.y - n.y) < 10 && Math.min(Math.max(n.x, r.x), Math.max(t.x, o.x)) - Math.max(Math.min(n.x, r.x), Math.min(t.x, o.x)) : Math.abs(t.x - o.x) < .5 && Math.abs(t.x - n.x) < 10 && Math.min(Math.max(n.y, r.y), Math.max(t.y, o.y)) - Math.max(Math.min(n.y, r.y), Math.min(t.y, o.y));
|
|
2438
|
+
if (typeof s == "number" && s > 20) return !1;
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
let h = e.start ? [o[0], o[1]] : [o[o.length - 2], o[o.length - 1]], g = a.labelBox, _ = g && (s === "x" ? Math.abs(g.x + g.w / 2 - (h[0].x - r)) < 2 : Math.abs(g.y + g.h / 2 - (h[0].y - r)) < 2), v = _ ? {
|
|
2443
|
+
...g,
|
|
2444
|
+
[s]: g[s] + r
|
|
2445
|
+
} : g, y = (e) => e.forkOf === a.id || a.forkOf === e.id || !!e.forkOf && e.forkOf === a.forkOf;
|
|
2446
|
+
for (let [t, n] of i.entries()) {
|
|
2447
|
+
if (t === e.edge || y(n) || !n.labelBox) continue;
|
|
2448
|
+
let r = {
|
|
2449
|
+
x: n.labelBox.x + 1,
|
|
2450
|
+
y: n.labelBox.y + 1,
|
|
2451
|
+
w: n.labelBox.w - 2,
|
|
2452
|
+
h: n.labelBox.h - 2
|
|
2453
|
+
};
|
|
2454
|
+
if (_ && X(v, r) || o.some((e, t) => t > 0 && Y(o[t - 1], e, r))) return !1;
|
|
2455
|
+
}
|
|
2456
|
+
if (_ && n.some((e) => X({
|
|
2457
|
+
x: v.x + 1,
|
|
2458
|
+
y: v.y + 1,
|
|
2459
|
+
w: v.w - 2,
|
|
2460
|
+
h: v.h - 2
|
|
2461
|
+
}, e))) return !1;
|
|
2462
|
+
if (g && !_) {
|
|
2463
|
+
let e = {
|
|
2464
|
+
x: g.x + g.w / 2,
|
|
2465
|
+
y: g.y + g.h / 2
|
|
2466
|
+
}, t = (t) => t.some((n, r) => {
|
|
2467
|
+
if (!r) return !1;
|
|
2468
|
+
let i = t[r - 1], a = Math.abs(i.y - n.y) < .5 ? "x" : "y", o = a === "x" ? "y" : "x", s = a === "x" ? "w" : "h";
|
|
2469
|
+
if (Math.abs(i[o] - e[o]) > 3 || e[a] < Math.min(i[a], n[a]) || e[a] > Math.max(i[a], n[a])) return !1;
|
|
2470
|
+
let c = n[a] >= i[a], l = c ? g[a] - i[a] : i[a] - (g[a] + g[s]), u = c ? n[a] - (g[a] + g[s]) : g[a] - n[a];
|
|
2471
|
+
return l >= 7.5 && u >= (r === t.length - 1 ? 16 : 8) - .5;
|
|
2472
|
+
});
|
|
2473
|
+
if (t(a.points ?? []) && !t(o)) return !1;
|
|
2474
|
+
}
|
|
2475
|
+
return i = i.map((t, n) => n === e.edge ? {
|
|
2476
|
+
...t,
|
|
2477
|
+
points: o,
|
|
2478
|
+
...v ? { labelBox: v } : null
|
|
2479
|
+
} : t), e.p = o[c[0]], !0;
|
|
2480
|
+
};
|
|
2481
|
+
for (let e of r.values()) {
|
|
2482
|
+
if (e.length < 2) continue;
|
|
2483
|
+
let t = e[0].along;
|
|
2484
|
+
e.sort((e, n) => e.p[t] - n.p[t]);
|
|
2485
|
+
for (let n = 1; n < e.length; n++) {
|
|
2486
|
+
let r = e[n - 1], a = e[n];
|
|
2487
|
+
if (r.edge === a.edge) continue;
|
|
2488
|
+
let s = a.p[t] - r.p[t];
|
|
2489
|
+
if (s >= lt) continue;
|
|
2490
|
+
let c = lt - s;
|
|
2491
|
+
if (o(a, c) || o(r, -c)) continue;
|
|
2492
|
+
let l = {
|
|
2493
|
+
edges: i,
|
|
2494
|
+
u: r.p,
|
|
2495
|
+
v: a.p
|
|
2496
|
+
};
|
|
2497
|
+
for (let e of [1, -1]) {
|
|
2498
|
+
if (o(a, e * c / 2) && o(r, -e * c / 2)) break;
|
|
2499
|
+
i = l.edges, r.p = l.u, a.p = l.v;
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
if (i === e.edges) return e;
|
|
2504
|
+
let s = a(e.nodes, i.map((e) => ({ pts: e.points ?? [] })), i.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? e.bounds;
|
|
2505
|
+
return {
|
|
2506
|
+
nodes: e.nodes,
|
|
2507
|
+
edges: i,
|
|
2508
|
+
bounds: s
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
var ft = (e) => JSON.stringify([
|
|
2512
|
+
e.kind ?? null,
|
|
2513
|
+
e.variant ?? null,
|
|
2514
|
+
e.title ?? null,
|
|
2515
|
+
e.icon ?? null,
|
|
2516
|
+
e.trailing ?? null,
|
|
2517
|
+
e.description ?? null,
|
|
2518
|
+
e.sections ?? null,
|
|
2519
|
+
!!e.entry,
|
|
2520
|
+
e.ports?.map((e) => e.id) ?? null
|
|
2521
|
+
]), pt = (e) => JSON.stringify([
|
|
2522
|
+
e.title ?? null,
|
|
2523
|
+
e.icon ?? null,
|
|
2524
|
+
e.sections ?? null,
|
|
2525
|
+
e.forkOf ?? null
|
|
2526
|
+
]), X = (e, t) => e.x < t.x + t.w && t.x < e.x + e.w && e.y < t.y + t.h && t.y < e.y + e.h, Z = (e, t) => ({
|
|
2527
|
+
x: e.x - t,
|
|
2528
|
+
y: e.y - t,
|
|
2529
|
+
w: e.w + 2 * t,
|
|
2530
|
+
h: e.h + 2 * t
|
|
2531
|
+
}), Q = (e) => e === "x" ? "w" : "h", mt = (e) => e === "x" ? "y" : "x", ht = (e) => e.reduce((t, n, r) => t + (r ? Math.abs(n.x - e[r - 1].x) + Math.abs(n.y - e[r - 1].y) : 0), 0);
|
|
2532
|
+
function gt(e, t, n, r) {
|
|
2533
|
+
let i = n[0], a = n[n.length - 1], o = Math.abs(i.x - a.x) + Math.abs(i.y - a.y);
|
|
2534
|
+
for (let n of e.nodes) {
|
|
2535
|
+
if (!l(n) || n.kind === "region") continue;
|
|
2536
|
+
let s = d(e, t.from, n.id);
|
|
2537
|
+
if (s === d(e, t.to, n.id)) continue;
|
|
2538
|
+
let c = n.y + Math.min(n.h, r(n)), [u, f] = s ? [i, a] : [a, i];
|
|
2539
|
+
f.y < c && u.y > c && f.x > n.x && f.x < n.x + n.w && (o += 2 * Math.min(u.x - n.x, n.x + n.w - u.x));
|
|
2540
|
+
}
|
|
2541
|
+
return o;
|
|
2542
|
+
}
|
|
2543
|
+
var _t = 300, vt = 24, $ = 12, yt = 8, bt = 16, xt = 16, St = 24, Ct = 60;
|
|
2544
|
+
function wt(e, t, n, r) {
|
|
2545
|
+
let i = Q(t), a = r;
|
|
2546
|
+
for (let o = 0; o <= e.length; o++) {
|
|
2547
|
+
let o = e.find((e) => e[t] < a - .5 && e[t] + e[i] > a + .5);
|
|
2548
|
+
if (!o) return a;
|
|
2549
|
+
if (o[t] <= n + .5) return r;
|
|
2550
|
+
a = o[t];
|
|
2551
|
+
}
|
|
2552
|
+
return r;
|
|
2553
|
+
}
|
|
2554
|
+
function Tt(e, t, n, r, i, a) {
|
|
2555
|
+
let o = Q(n), s = mt(n), c = Q(s), u = (e) => e >= r - .01, d = new Map(e);
|
|
2556
|
+
for (let [t, s] of d) u(s[n]) ? (e.set(t, {
|
|
2557
|
+
...s,
|
|
2558
|
+
[n]: K(s[n] + i)
|
|
2559
|
+
}), !l(s) && s.kind !== "marker" && a.add(t)) : l(s) && s[n] + s[o] > r && e.set(t, {
|
|
2560
|
+
...s,
|
|
2561
|
+
[o]: K(s[o] + i)
|
|
2562
|
+
});
|
|
2563
|
+
let f = (e, t) => {
|
|
2564
|
+
if (!t) return u(e[n]);
|
|
2565
|
+
let i = t[n], a = t[n] + t[o], d = e[s] > t[s] - 1.5 && e[s] < t[s] + t[c] + 1.5;
|
|
2566
|
+
return d && Math.abs(e[n] - i) < 1.5 ? u(i) : d && Math.abs(e[n] - a) < 1.5 ? u(i) || l(t) && a > r : u(e[n]);
|
|
2567
|
+
}, p = /* @__PURE__ */ new Set();
|
|
2568
|
+
for (let [e, r] of t) {
|
|
2569
|
+
let a = r.points;
|
|
2570
|
+
if (!a || a.length < 2) continue;
|
|
2571
|
+
let s = a.map((e, t) => (t === 0 ? f(e, d.get(r.from)) : t === a.length - 1 ? f(e, d.get(r.to)) : u(e[n])) ? {
|
|
2572
|
+
...e,
|
|
2573
|
+
[n]: K(e[n] + i)
|
|
2574
|
+
} : e);
|
|
2575
|
+
s.some((e, t) => t > 0 && Math.abs(e.x - s[t - 1].x) > .5 && Math.abs(e.y - s[t - 1].y) > .5) && p.add(e);
|
|
2576
|
+
let c = r.labelBox, l = c && u(c[n] + c[o] / 2) ? {
|
|
2577
|
+
...c,
|
|
2578
|
+
[n]: K(c[n] + i)
|
|
2579
|
+
} : c;
|
|
2580
|
+
t.set(e, {
|
|
2581
|
+
...r,
|
|
2582
|
+
points: s,
|
|
2583
|
+
...l ? { labelBox: l } : null
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
return p;
|
|
2587
|
+
}
|
|
2588
|
+
function Et(e, t, n, r, i) {
|
|
2589
|
+
if (!(Math.abs(n.x - r.x) < .25 && Math.abs(n.y - r.y) < .25 && Math.abs(n.w - r.w) < .25 && Math.abs(n.h - r.h) < .25)) for (let [a, o] of e) {
|
|
2590
|
+
let s = o.points;
|
|
2591
|
+
if (!s || s.length < 2 || o.from !== t && o.to !== t) continue;
|
|
2592
|
+
let c = [...s];
|
|
2593
|
+
for (let e of [0, s.length - 1]) {
|
|
2594
|
+
if ((e === 0 ? o.from : o.to) !== t) continue;
|
|
2595
|
+
let i = s[e], a = i.x > n.x - 1.5 && i.x < n.x + n.w + 1.5, l = i.y > n.y - 1.5 && i.y < n.y + n.h + 1.5, u = null;
|
|
2596
|
+
a && Math.abs(i.y - n.y) < 1.5 ? u = {
|
|
2597
|
+
x: i.x,
|
|
2598
|
+
y: r.y
|
|
2599
|
+
} : a && Math.abs(i.y - n.y - n.h) < 1.5 ? u = {
|
|
2600
|
+
x: i.x,
|
|
2601
|
+
y: r.y + r.h
|
|
2602
|
+
} : l && Math.abs(i.x - n.x) < 1.5 ? u = {
|
|
2603
|
+
x: r.x,
|
|
2604
|
+
y: i.y
|
|
2605
|
+
} : l && Math.abs(i.x - n.x - n.w) < 1.5 && (u = {
|
|
2606
|
+
x: r.x + r.w,
|
|
2607
|
+
y: i.y
|
|
2608
|
+
}), u && (c[e] = {
|
|
2609
|
+
x: K(u.x),
|
|
2610
|
+
y: K(u.y)
|
|
2611
|
+
});
|
|
2612
|
+
}
|
|
2613
|
+
e.set(a, {
|
|
2614
|
+
...o,
|
|
2615
|
+
points: c
|
|
2616
|
+
}), i?.add(a);
|
|
2617
|
+
}
|
|
2618
|
+
}
|
|
2619
|
+
function Dt(t, n, r) {
|
|
2620
|
+
let a = new Set(i(t, n)), o = [];
|
|
2621
|
+
for (let e of a) {
|
|
2622
|
+
let n = t.byId.get(e);
|
|
2623
|
+
n && o.push(n);
|
|
2624
|
+
}
|
|
2625
|
+
let s = [];
|
|
2626
|
+
for (let e of r) {
|
|
2627
|
+
let t = e.from === n && a.has(e.to) || e.to === n && a.has(e.from);
|
|
2628
|
+
if (!t && (!a.has(e.from) || !a.has(e.to))) continue;
|
|
2629
|
+
let r = t ? s : o;
|
|
2630
|
+
for (let t of e.points ?? []) r.push({
|
|
2631
|
+
x: t.x,
|
|
2632
|
+
y: t.y,
|
|
2633
|
+
w: 0,
|
|
2634
|
+
h: 0
|
|
2635
|
+
});
|
|
2636
|
+
e.labelBox && (e.points?.length ?? 0) >= 2 && r.push(e.labelBox);
|
|
2637
|
+
}
|
|
2638
|
+
let c = e(o);
|
|
2639
|
+
if (!c || !s.length) return c;
|
|
2640
|
+
let l = Math.min(c.x, ...s.map((e) => e.x)), u = Math.max(c.x + c.w, ...s.map((e) => e.x + e.w));
|
|
2641
|
+
return {
|
|
2642
|
+
x: l,
|
|
2643
|
+
y: c.y,
|
|
2644
|
+
w: u - l,
|
|
2645
|
+
h: c.h
|
|
2646
|
+
};
|
|
2647
|
+
}
|
|
2648
|
+
function Ot(e, t, n, r) {
|
|
2649
|
+
let i = Dt(t, e.id, n);
|
|
2650
|
+
if (!i || e.w <= 0 || e.h <= 0) return null;
|
|
2651
|
+
let a = m(e, r), o = i.x - e.x, s = e.x + e.w - (i.x + i.w);
|
|
2652
|
+
return {
|
|
2653
|
+
top: i.y - (e.y + a.top),
|
|
2654
|
+
left: o,
|
|
2655
|
+
right: e.w <= a.w + .5 && s > o ? o : s,
|
|
2656
|
+
bottom: e.y + e.h - (i.y + i.h)
|
|
2657
|
+
};
|
|
2658
|
+
}
|
|
2659
|
+
function kt(n, f, { text: p = S, routeAll: _ = !1 } = {}) {
|
|
2660
|
+
let v = new Map((n?.nodes ?? []).map((e) => [e.id, e])), y = new Map((n?.edges ?? []).map((e) => [e.id, e])), b = u([...v.values()]), x = /* @__PURE__ */ new Map(), C = [], w = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Map(), E = (e) => `\0label:${e}`;
|
|
2661
|
+
for (let e of f.nodes) {
|
|
2662
|
+
let t = v.get(e.id);
|
|
2663
|
+
if (t && T.set(e.id, t), l(e) || e.kind === "marker") {
|
|
2664
|
+
x.set(e.id, t && l(e) ? {
|
|
2665
|
+
...e,
|
|
2666
|
+
x: t.x,
|
|
2667
|
+
y: t.y,
|
|
2668
|
+
w: t.w,
|
|
2669
|
+
h: t.h
|
|
2670
|
+
} : e);
|
|
2671
|
+
continue;
|
|
2672
|
+
}
|
|
2673
|
+
if (t && ft(t) === ft(e)) x.set(e.id, {
|
|
2674
|
+
...e,
|
|
2675
|
+
w: t.w,
|
|
2676
|
+
h: t.h,
|
|
2677
|
+
...t.ports ? { ports: t.ports } : null
|
|
2678
|
+
});
|
|
2679
|
+
else {
|
|
2680
|
+
let n = m(e, p);
|
|
2681
|
+
x.set(e.id, h({
|
|
2682
|
+
...e,
|
|
2683
|
+
w: n.w,
|
|
2684
|
+
h: n.h
|
|
2685
|
+
}, n, n.h)), t && Math.abs(t.x - e.x) < .5 && Math.abs(t.y - e.y) < .5 && C.push({
|
|
2686
|
+
id: e.id,
|
|
2687
|
+
old: t
|
|
2688
|
+
});
|
|
2689
|
+
}
|
|
2690
|
+
(!t || Math.abs(t.x - e.x) > .5 || Math.abs(t.y - e.y) > .5 || ft(t) !== ft(e)) && w.add(e.id);
|
|
2691
|
+
}
|
|
2692
|
+
let D = /* @__PURE__ */ new Map();
|
|
2693
|
+
for (let e of f.nodes) {
|
|
2694
|
+
let t = v.get(e.id);
|
|
2695
|
+
if (!t || !l(t) || t.kind === "region") continue;
|
|
2696
|
+
let n = Ot(t, b, y.values(), p);
|
|
2697
|
+
n && D.set(e.id, n);
|
|
2698
|
+
}
|
|
2699
|
+
if (n && !_) {
|
|
2700
|
+
let e = new Map(n.nodes.map((e) => [e.id, e.parent ?? null])), t = new Set(f.nodes.filter((e) => l(e) && !v.has(e.id)).map((e) => e.id));
|
|
2701
|
+
for (let n of f.nodes) {
|
|
2702
|
+
let r = x.get(n.id);
|
|
2703
|
+
if (l(r) || r.kind === "marker" || !e.has(n.id) || e.get(n.id) === (n.parent ?? null) || t.has(n.parent ?? "")) continue;
|
|
2704
|
+
let i = jt({
|
|
2705
|
+
nodes: [...x.values()].filter((e) => e.id !== n.id && e.parent !== n.id),
|
|
2706
|
+
edges: [...y.values()]
|
|
2707
|
+
}, r, {
|
|
2708
|
+
parent: n.parent ?? null,
|
|
2709
|
+
center: {
|
|
2710
|
+
x: r.x + r.w / 2,
|
|
2711
|
+
y: r.y + r.h / 2
|
|
2712
|
+
},
|
|
2713
|
+
text: p
|
|
2714
|
+
}), a = K(i.x - r.x), o = K(i.y - r.y);
|
|
2715
|
+
for (let e of [r, ...[...x.values()].filter((e) => e.parent === n.id)]) x.set(e.id, {
|
|
2716
|
+
...e,
|
|
2717
|
+
x: K(e.x + a),
|
|
2718
|
+
y: K(e.y + o)
|
|
2719
|
+
}), w.add(e.id);
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
if (n && !_) {
|
|
2723
|
+
let n = u([...x.values()]), r = t;
|
|
2724
|
+
for (let t of f.nodes) {
|
|
2725
|
+
if (!l(t) || t.kind === "region" || t.kind === "root" || v.has(t.id)) continue;
|
|
2726
|
+
let a = new Set(i(n, t.id)), o = [...a].map((e) => x.get(e)).filter(Boolean), s = e(o);
|
|
2727
|
+
if (!s) continue;
|
|
2728
|
+
let c = m(t, p), u = {
|
|
2729
|
+
x: s.x - r.side,
|
|
2730
|
+
y: s.y - c.top - r.top,
|
|
2731
|
+
w: Math.max(c.w, s.w + 2 * r.side),
|
|
2732
|
+
h: c.top + r.top + s.h + r.bottom
|
|
2733
|
+
}, f = [...x.values()].filter((e) => e.id !== t.id && !a.has(e.id) && e.kind !== "marker" && !d(n, t.id, e.id)), h = f.filter(l).map((e) => ({
|
|
2734
|
+
x: e.x,
|
|
2735
|
+
y: e.y,
|
|
2736
|
+
w: e.w,
|
|
2737
|
+
h: Math.min(e.h, m(e, p).top)
|
|
2738
|
+
})), g = [...y.values()].flatMap((e) => e.labelBox ? [e.labelBox] : []);
|
|
2739
|
+
if (!([
|
|
2740
|
+
...f.filter((e) => !l(e)),
|
|
2741
|
+
...h,
|
|
2742
|
+
...g
|
|
2743
|
+
].some((e) => X(Z(u, 8), e)) || f.some((e) => l(e) && e.kind !== "region" && !d(n, e.id, t.parent ?? "") && X(u, e)))) continue;
|
|
2744
|
+
let _ = jt({
|
|
2745
|
+
nodes: f,
|
|
2746
|
+
edges: [...y.values()]
|
|
2747
|
+
}, u, {
|
|
2748
|
+
parent: t.parent ?? null,
|
|
2749
|
+
center: {
|
|
2750
|
+
x: u.x + u.w / 2,
|
|
2751
|
+
y: u.y + u.h / 2
|
|
2752
|
+
},
|
|
2753
|
+
text: p
|
|
2754
|
+
}), b = K(_.x - u.x), S = K(_.y - u.y);
|
|
2755
|
+
for (let e of o) x.set(e.id, {
|
|
2756
|
+
...e,
|
|
2757
|
+
x: K(e.x + b),
|
|
2758
|
+
y: K(e.y + S)
|
|
2759
|
+
}), w.add(e.id);
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
let O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set();
|
|
2763
|
+
for (let e of f.edges) {
|
|
2764
|
+
let t = y.get(e.id), n = t?.points, r = (e) => {
|
|
2765
|
+
let t = v.get(e), n = x.get(e);
|
|
2766
|
+
return !!t && !!n && Math.abs(t.x - n.x) < .5 && Math.abs(t.y - n.y) < .5;
|
|
2767
|
+
}, i = !_ && !!t && !!n && n.length >= 2 && t.from === e.from && t.to === e.to && (t.fromPort ?? null) === (e.fromPort ?? null) && (t.toPort ?? null) === (e.toPort ?? null) && r(e.from) && r(e.to), { points: a, labelBox: o, ...s } = e;
|
|
2768
|
+
if (!i) {
|
|
2769
|
+
O.set(e.id, s), k.add(e.id), (!t || _) && j.add(e.id);
|
|
2770
|
+
continue;
|
|
2771
|
+
}
|
|
2772
|
+
O.set(e.id, {
|
|
2773
|
+
...s,
|
|
2774
|
+
points: n,
|
|
2775
|
+
...t.labelBox ? { labelBox: t.labelBox } : null
|
|
2776
|
+
}), t.labelBox && T.set(E(e.id), t.labelBox), (pt(t) !== pt(e) || !t.labelBox && c(e)) && (A.add(e.id), w.add(E(e.id)));
|
|
2777
|
+
}
|
|
2778
|
+
{
|
|
2779
|
+
let e = u([...x.values()]);
|
|
2780
|
+
for (let t of [...k]) {
|
|
2781
|
+
let n = O.get(t);
|
|
2782
|
+
if (!(!d(e, n.to, n.from) && !d(e, n.from, n.to))) for (let e of [...O.values()]) {
|
|
2783
|
+
if (e.id === t || k.has(e.id) || !(e.from === n.from && e.to === n.to || e.from === n.to && e.to === n.from)) continue;
|
|
2784
|
+
let { points: r, labelBox: i, ...a } = e;
|
|
2785
|
+
O.set(e.id, a), k.add(e.id);
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
let M = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set([...k, ...A]), F = 0, I = (e, t, n, r) => {
|
|
2790
|
+
if (n <= .5 || F >= (_ ? 72 : St)) return !1;
|
|
2791
|
+
F++;
|
|
2792
|
+
{
|
|
2793
|
+
let a = R();
|
|
2794
|
+
for (let o of x.values()) {
|
|
2795
|
+
if (!l(o) || o.kind === "root" || o.kind === "region" || r?.has(o.id) || !(o[e] < t && o[e] + o[Q(e)] > t)) continue;
|
|
2796
|
+
let s = i(a, o.id).map((e) => x.get(e)).filter((e) => !!e);
|
|
2797
|
+
if (!s.length || Math.min(...s.map((t) => t[e])) < t - .01) continue;
|
|
2798
|
+
let c = D.get(o.id) ?? Ot(o, a, O.values(), p);
|
|
2799
|
+
c && (D.set(o.id, e === "y" ? {
|
|
2800
|
+
...c,
|
|
2801
|
+
top: c.top + K(n)
|
|
2802
|
+
} : {
|
|
2803
|
+
...c,
|
|
2804
|
+
left: c.left + K(n)
|
|
2805
|
+
}), w.add(o.id));
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
for (let r of Tt(x, O, e, t, K(n), M)) N.add(r), P.add(r);
|
|
2809
|
+
return !0;
|
|
2810
|
+
}, L = (e) => [...x.values()].filter((t) => !l(t) && t.kind !== "marker" && !e?.has(t.id)), R = () => u(s([...x.values()], [...O.values()])), z = (e, t, n, r) => {
|
|
2811
|
+
let i = Q(t), a = mt(t), o = Q(a), s = n[t] + n[i], c = R(), u = x.get(e) && l(x.get(e)), f = (t) => t === e || d(c, t, e), h = 0, g = (e, i) => {
|
|
2812
|
+
e[t] < r - .5 || e[a] >= n[a] + n[o] + $ || e[a] + e[o] <= n[a] - $ || (h = Math.max(h, s + Math.min(i, Math.max(0, e[t] - r)) - e[t]));
|
|
2813
|
+
};
|
|
2814
|
+
for (let t of x.values()) f(t.id) || t.kind === "marker" || d(c, e, t.id) || g(l(t) ? {
|
|
2815
|
+
x: t.x,
|
|
2816
|
+
y: t.y,
|
|
2817
|
+
w: t.w,
|
|
2818
|
+
h: Math.min(t.h, m(t, p).top)
|
|
2819
|
+
} : t, vt);
|
|
2820
|
+
for (let n of O.values()) {
|
|
2821
|
+
let i = f(n.from) || f(n.to);
|
|
2822
|
+
if (u && f(n.from) && f(n.to)) continue;
|
|
2823
|
+
n.labelBox && g(n.labelBox, i ? yt : $);
|
|
2824
|
+
let a = n.points ?? [];
|
|
2825
|
+
for (let o = 1; o < a.length; o++) {
|
|
2826
|
+
let s = a[o - 1], c = a[o];
|
|
2827
|
+
if (i && !u) {
|
|
2828
|
+
if (o === 1 && n.from === e || o === a.length - 1 && n.to === e) {
|
|
2829
|
+
let e = o === 1 ? c : s;
|
|
2830
|
+
g({
|
|
2831
|
+
x: e.x,
|
|
2832
|
+
y: e.y,
|
|
2833
|
+
w: 0,
|
|
2834
|
+
h: 0
|
|
2835
|
+
}, xt);
|
|
2836
|
+
}
|
|
2837
|
+
continue;
|
|
2838
|
+
}
|
|
2839
|
+
i && u && Math.abs(s[t] - c[t]) > .5 && Math.min(s[t], c[t]) <= r + .5 || g({
|
|
2840
|
+
x: Math.min(s.x, c.x),
|
|
2841
|
+
y: Math.min(s.y, c.y),
|
|
2842
|
+
w: Math.abs(s.x - c.x),
|
|
2843
|
+
h: Math.abs(s.y - c.y)
|
|
2844
|
+
}, $);
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
return h;
|
|
2848
|
+
};
|
|
2849
|
+
C.sort((e, t) => e.old.y - t.old.y || e.old.x - t.old.x);
|
|
2850
|
+
for (let { id: e, old: t } of C) {
|
|
2851
|
+
{
|
|
2852
|
+
let n = x.get(e), i = u([...x.values()]), a = [...x.values()].filter((t) => t.id !== e && t.kind !== "marker" && !(l(t) && d(i, e, t.id))), o = [...O.values()].flatMap((t) => t.labelBox && t.from !== e && t.to !== e ? [t.labelBox] : []), s = (t) => a.some((n) => X(Z(t, 16), l(n) ? {
|
|
2853
|
+
x: n.x,
|
|
2854
|
+
y: n.y,
|
|
2855
|
+
w: n.w,
|
|
2856
|
+
h: Math.min(n.h, m(n, p).top)
|
|
2857
|
+
} : n) || l(n) && !d(i, e, n.id) && X(t, n)) || o.some((e) => X(Z(t, 8), e)) || r(i, e).some((e) => {
|
|
2858
|
+
let n = x.get(e);
|
|
2859
|
+
return X(t, {
|
|
2860
|
+
x: n.x,
|
|
2861
|
+
y: n.y,
|
|
2862
|
+
w: n.w,
|
|
2863
|
+
h: Math.min(n.h, m(n, p).top)
|
|
2864
|
+
});
|
|
2865
|
+
}), c = [
|
|
2866
|
+
{
|
|
2867
|
+
x: n.x,
|
|
2868
|
+
y: n.y
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
x: t.x + t.w - n.w,
|
|
2872
|
+
y: n.y
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
x: t.x + (t.w - n.w) / 2,
|
|
2876
|
+
y: n.y
|
|
2877
|
+
}
|
|
2878
|
+
].find((e) => !s({
|
|
2879
|
+
...n,
|
|
2880
|
+
...e
|
|
2881
|
+
}));
|
|
2882
|
+
c && (c.x !== n.x || c.y !== n.y) && x.set(e, {
|
|
2883
|
+
...n,
|
|
2884
|
+
x: K(c.x),
|
|
2885
|
+
y: K(c.y)
|
|
2886
|
+
});
|
|
2887
|
+
}
|
|
2888
|
+
for (let n of ["y", "x"]) {
|
|
2889
|
+
let r = x.get(e), i = Q(n), a = t[n] + t[i];
|
|
2890
|
+
if (r[n] + r[i] > a + .5) {
|
|
2891
|
+
let t = z(e, n, r, a);
|
|
2892
|
+
t > .5 && I(n, wt(L(/* @__PURE__ */ new Set([e])), n, r[n] + .5, a), t);
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
Et(O, e, t, x.get(e), P);
|
|
2896
|
+
for (let t of O.values()) (t.from === e || t.to === e) && t.labelBox && A.add(t.id);
|
|
2897
|
+
}
|
|
2898
|
+
let B = /* @__PURE__ */ new Map(), V = (e) => {
|
|
2899
|
+
let t = `${e.id}\0${e.w}`, n = B.get(t);
|
|
2900
|
+
return n === void 0 && (n = m(e, p).top, B.set(t, n)), n;
|
|
2901
|
+
}, H = (e, t = !0) => {
|
|
2902
|
+
P.add(e);
|
|
2903
|
+
let n = O.get(e), a = n?.points;
|
|
2904
|
+
if (!n || !a || a.length < 2) return;
|
|
2905
|
+
let s = o(n, p), { labelBox: c, ...u } = n;
|
|
2906
|
+
if (!s) {
|
|
2907
|
+
O.set(e, u);
|
|
2908
|
+
return;
|
|
2909
|
+
}
|
|
2910
|
+
let f = c ? {
|
|
2911
|
+
x: c.x + c.w / 2,
|
|
2912
|
+
y: c.y + c.h / 2
|
|
2913
|
+
} : null, m = -1, h = Infinity;
|
|
2914
|
+
for (let e = 1; e < a.length; e++) {
|
|
2915
|
+
let t = a[e - 1], n = a[e], r = Math.abs(t.x - n.x) + Math.abs(t.y - n.y), i = f ? Math.hypot(f.x - Math.min(Math.max(f.x, Math.min(t.x, n.x)), Math.max(t.x, n.x)), f.y - Math.min(Math.max(f.y, Math.min(t.y, n.y)), Math.max(t.y, n.y))) : -r;
|
|
2916
|
+
i < h && (h = i, m = e - 1);
|
|
2917
|
+
}
|
|
2918
|
+
let g = () => {
|
|
2919
|
+
let t = O.get(e).points;
|
|
2920
|
+
return {
|
|
2921
|
+
a: t[m],
|
|
2922
|
+
b: t[m + 1],
|
|
2923
|
+
last: m === t.length - 2
|
|
2924
|
+
};
|
|
2925
|
+
}, { a: _, b: v, last: y } = g(), b = Math.abs(_.y - v.y) < .5 ? "x" : "y", S = Q(b), C = mt(b), T = Q(C), k = s[S], A = yt, j = y ? bt : yt, M = Math.abs(v[b] - _[b]), N = R(), F = d(N, n.to, n.from) ? n.from : d(N, n.from, n.to) ? n.to : null;
|
|
2926
|
+
if (M < A + k + j - .5 && t && F && b === "y") {
|
|
2927
|
+
let t = D.get(F) ?? Ot(x.get(F), N, O.values(), p), o = x.get(F), s = A + k + j - M, c = {
|
|
2928
|
+
x: o.x - $,
|
|
2929
|
+
y: o.y - s - $,
|
|
2930
|
+
w: o.w + 24,
|
|
2931
|
+
h: s + $
|
|
2932
|
+
}, l = ![...x.values()].some((e) => e.id !== F && e.kind !== "marker" && e.kind !== "region" && !d(N, F, e.id) && !d(N, e.id, F) && X(c, e)) && !r(N, F).some((e) => {
|
|
2933
|
+
let t = x.get(e);
|
|
2934
|
+
return X(c, {
|
|
2935
|
+
x: t.x,
|
|
2936
|
+
y: t.y,
|
|
2937
|
+
w: t.w,
|
|
2938
|
+
h: Math.min(t.h, V(t))
|
|
2939
|
+
});
|
|
2940
|
+
}) && ![...O.values()].some((t) => t.id !== e && (t.labelBox && X(c, t.labelBox) || (t.points ?? []).some((e, t, n) => t > 0 && Y(n[t - 1], e, c))));
|
|
2941
|
+
if (t && l) {
|
|
2942
|
+
D.set(F, {
|
|
2943
|
+
...t,
|
|
2944
|
+
top: t.top + s
|
|
2945
|
+
});
|
|
2946
|
+
let r = {
|
|
2947
|
+
...o,
|
|
2948
|
+
y: K(o.y - s),
|
|
2949
|
+
h: K(o.h + s)
|
|
2950
|
+
};
|
|
2951
|
+
x.set(F, r), w.add(F);
|
|
2952
|
+
let i = O.get(e).points.map((e) => (F === n.from ? e === a[0] : e === a[a.length - 1]) ? {
|
|
2953
|
+
...e,
|
|
2954
|
+
y: K(e.y - s)
|
|
2955
|
+
} : e);
|
|
2956
|
+
O.set(e, {
|
|
2957
|
+
...O.get(e),
|
|
2958
|
+
points: i
|
|
2959
|
+
}), {a: _, b: v, last: y} = g();
|
|
2960
|
+
} else if (t) {
|
|
2961
|
+
let e = i(N, F).map((e) => x.get(e)).filter((e) => !!e), t = Math.min(...e.map((e) => e.y));
|
|
2962
|
+
I("y", wt(L(), "y", o.y + V(o) + .5, t), s), {a: _, b: v, last: y} = g();
|
|
2963
|
+
}
|
|
2964
|
+
} else if (M < A + k + j - .5 && t) {
|
|
2965
|
+
let e = Math.min(_[b], v[b]), t = Math.max(_[b], v[b]), r = /* @__PURE__ */ new Set([n.from, n.to]);
|
|
2966
|
+
I(b, wt(L(r), b, e + .5, t), A + k + j - M), {a: _, b: v, last: y} = g();
|
|
2967
|
+
}
|
|
2968
|
+
let z = Math.abs(v[b] - _[b]), B = v[b] >= _[b], H = c && f ? B ? c[b] - _[b] : _[b] - (c[b] + c[S]) : (z - k) / 2, U = Math.max(Math.min(H, z - j - k), Math.min(A, Math.max(0, (z - k) / 2))), W = (e) => {
|
|
2969
|
+
let t = B ? _[b] + e : _[b] - e - k;
|
|
2970
|
+
return {
|
|
2971
|
+
[b]: K(t),
|
|
2972
|
+
[C]: K(_[C] - s[T] / 2),
|
|
2973
|
+
[S]: s[S],
|
|
2974
|
+
[T]: s[T]
|
|
2975
|
+
};
|
|
2976
|
+
}, ee = R(), G = (t) => {
|
|
2977
|
+
for (let e of ee.nodes) if (e.kind !== "marker" && e.kind !== "region") {
|
|
2978
|
+
if (l(e)) {
|
|
2979
|
+
let n = {
|
|
2980
|
+
x: e.x,
|
|
2981
|
+
y: e.y,
|
|
2982
|
+
w: e.w,
|
|
2983
|
+
h: Math.min(e.h, V(e))
|
|
2984
|
+
};
|
|
2985
|
+
if (X(Z(t, 2), n)) return !1;
|
|
2986
|
+
let r = t.x >= e.x + 2 && t.y >= e.y + 2 && t.x + t.w <= e.x + e.w - 2 && t.y + t.h <= e.y + e.h - 2;
|
|
2987
|
+
if (X(t, e) && !r) return !1;
|
|
2988
|
+
} else if (X(Z(t, 4), e)) return !1;
|
|
2989
|
+
}
|
|
2990
|
+
for (let n of O.values()) {
|
|
2991
|
+
if (n.id === e) continue;
|
|
2992
|
+
if (n.labelBox && X(Z(t, 4), n.labelBox)) return !1;
|
|
2993
|
+
let r = n.points ?? [];
|
|
2994
|
+
for (let e = 1; e < r.length; e++) if (Y(r[e - 1], r[e], Z(t, 4))) return !1;
|
|
2995
|
+
}
|
|
2996
|
+
return !0;
|
|
2997
|
+
}, te = U;
|
|
2998
|
+
if (!G(W(U))) {
|
|
2999
|
+
let e = Math.min(A, Math.max(0, (z - k) / 2)), t = Math.max(e, z - j - k);
|
|
3000
|
+
for (let n = 4; n <= t - e + 4; n += 4) {
|
|
3001
|
+
let r = [U + n, U - n].find((n) => n >= e - .5 && n <= t + .5 && G(W(n)));
|
|
3002
|
+
if (r !== void 0) {
|
|
3003
|
+
te = r;
|
|
3004
|
+
break;
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
let ne = W(te), { labelBox: re, ...ie } = O.get(e);
|
|
3009
|
+
if (O.set(e, {
|
|
3010
|
+
...ie,
|
|
3011
|
+
labelBox: ne
|
|
3012
|
+
}), F && t) {
|
|
3013
|
+
let e = x.get(F), t = D.get(F) ?? Ot(e, R(), O.values(), p), n = e.x + $ - ne.x, r = ne.x + ne.w - (e.x + e.w - $);
|
|
3014
|
+
t && (n > .5 || r > .5) && (D.set(F, {
|
|
3015
|
+
...t,
|
|
3016
|
+
left: t.left + Math.max(0, n),
|
|
3017
|
+
right: t.right + Math.max(0, r)
|
|
3018
|
+
}), w.add(F));
|
|
3019
|
+
}
|
|
3020
|
+
w.add(E(e));
|
|
3021
|
+
};
|
|
3022
|
+
for (let e of A) H(e);
|
|
3023
|
+
let U = 0, ee = /* @__PURE__ */ new Set(), G = (e, t, n = !1) => {
|
|
3024
|
+
P.add(e);
|
|
3025
|
+
let i = O.get(e);
|
|
3026
|
+
if (!i) return;
|
|
3027
|
+
let { points: a, labelBox: s, ...c } = i, u = R(), f = u.byId.get(c.from), h = u.byId.get(c.to);
|
|
3028
|
+
if (!f || !h || f === h || c.forkOf) {
|
|
3029
|
+
O.set(e, c);
|
|
3030
|
+
return;
|
|
3031
|
+
}
|
|
3032
|
+
let g = o(c, p), _ = d(u, h.id, f.id) ? {
|
|
3033
|
+
box: f,
|
|
3034
|
+
kid: h,
|
|
3035
|
+
out: !0
|
|
3036
|
+
} : d(u, f.id, h.id) ? {
|
|
3037
|
+
box: h,
|
|
3038
|
+
kid: f,
|
|
3039
|
+
out: !1
|
|
3040
|
+
} : null;
|
|
3041
|
+
if (_) {
|
|
3042
|
+
let t = [...O.values()].filter((e) => e.from === _.box.id && e.to === _.kid.id || e.to === _.box.id && e.from === _.kid.id), n = Math.max(24, ...t.map((e) => o(e, p)?.w ?? 0)) + 12, r = t.findIndex((t) => t.id === e), i = K(Math.min(Math.max(_.kid.x + _.kid.w / 2 + (r - (t.length - 1) / 2) * n, _.kid.x + 8), _.kid.x + _.kid.w - 8)), a = _.box.y + V(_.box);
|
|
3043
|
+
if (_.kid.y - a < (g ? .5 : xt)) {
|
|
3044
|
+
O.set(e, c);
|
|
3045
|
+
return;
|
|
3046
|
+
}
|
|
3047
|
+
let s = [{
|
|
3048
|
+
x: i,
|
|
3049
|
+
y: K(a)
|
|
3050
|
+
}, {
|
|
3051
|
+
x: i,
|
|
3052
|
+
y: _.kid.y
|
|
3053
|
+
}];
|
|
3054
|
+
if (O.set(e, {
|
|
3055
|
+
...c,
|
|
3056
|
+
points: _.out ? s : s.reverse(),
|
|
3057
|
+
...g ? { labelBox: {
|
|
3058
|
+
x: K(i - g.w / 2),
|
|
3059
|
+
y: K((a + _.kid.y - g.h) / 2),
|
|
3060
|
+
w: g.w,
|
|
3061
|
+
h: g.h
|
|
3062
|
+
} } : null
|
|
3063
|
+
}), g) {
|
|
3064
|
+
H(e, !0), w.add(E(e));
|
|
3065
|
+
let t = O.get(e).labelBox, n = x.get(_.box.id), r = D.get(_.box.id) ?? Ot(n, R(), O.values(), p);
|
|
3066
|
+
if (t && r) {
|
|
3067
|
+
let e = n.x + $ - t.x, i = t.x + t.w - (n.x + n.w - $);
|
|
3068
|
+
(e > .5 || i > .5) && (D.set(_.box.id, {
|
|
3069
|
+
...r,
|
|
3070
|
+
left: r.left + Math.max(0, e),
|
|
3071
|
+
right: r.right + Math.max(0, i)
|
|
3072
|
+
}), w.add(_.box.id));
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
return;
|
|
3076
|
+
}
|
|
3077
|
+
if (t) {
|
|
3078
|
+
let e = [...r(u, f.id).filter((e) => !d(u, h.id, e) && e !== h.id), ...r(u, h.id).filter((e) => !d(u, f.id, e) && e !== f.id)], t = !1;
|
|
3079
|
+
for (let n of e) {
|
|
3080
|
+
let e = x.get(n);
|
|
3081
|
+
if (!e || e.kind === "root" || e.kind === "region") continue;
|
|
3082
|
+
let r = D.get(n) ?? Ot(e, R(), O.values(), p);
|
|
3083
|
+
if (!r) continue;
|
|
3084
|
+
let i = {
|
|
3085
|
+
top: Math.max(r.top, W),
|
|
3086
|
+
left: Math.max(r.left, W),
|
|
3087
|
+
right: Math.max(r.right, W),
|
|
3088
|
+
bottom: Math.max(r.bottom, W)
|
|
3089
|
+
};
|
|
3090
|
+
(i.top !== r.top || i.left !== r.left || i.right !== r.right || i.bottom !== r.bottom) && (D.set(n, i), w.add(n), t = !0);
|
|
3091
|
+
}
|
|
3092
|
+
t && re();
|
|
3093
|
+
}
|
|
3094
|
+
let v = (t = !0, r = !1) => {
|
|
3095
|
+
u = R();
|
|
3096
|
+
let i = u.byId.get(c.from), a = u.byId.get(c.to), s = [...O.values()].filter((t) => t.id !== e && (t.points?.length ?? 0) >= 2), f = {
|
|
3097
|
+
headOf: V,
|
|
3098
|
+
captionOf: (e) => m(e, p).w,
|
|
3099
|
+
around: s.map((e) => e.points ?? []),
|
|
3100
|
+
labels: s.flatMap((e) => e.labelBox ? [e.labelBox] : []),
|
|
3101
|
+
labelSize: (e) => t ? o(e, p) : null
|
|
3102
|
+
}, h = s.flatMap((e) => [e.points[0], e.points[e.points.length - 1]]);
|
|
3103
|
+
for (let t of O.values()) {
|
|
3104
|
+
if (t.id === e || (t.points?.length ?? 0) >= 2) continue;
|
|
3105
|
+
let n = u.byId.get(t.from), r = u.byId.get(t.to), i = n && r ? d(u, r.id, n.id) ? r : d(u, n.id, r.id) ? n : null : null;
|
|
3106
|
+
i && h.push({
|
|
3107
|
+
x: K(i.x + i.w / 2),
|
|
3108
|
+
y: i.y
|
|
3109
|
+
});
|
|
3110
|
+
}
|
|
3111
|
+
let _ = [...x.values()].filter((e) => !l(e) && e.kind !== "marker" && e.id !== i.id && e.id !== a.id), v = (e) => e.flatMap((e) => {
|
|
3112
|
+
let t = At(e.from, i, h, _), n = At(e.to, a, h, _);
|
|
3113
|
+
return t && n ? [{
|
|
3114
|
+
from: t,
|
|
3115
|
+
to: n
|
|
3116
|
+
}] : [];
|
|
3117
|
+
}), y = Qe(x.values(), s, c, p), b = it(i, a, y.rects, y.runs, t ? g : null), S = v([...b ? [b] : [], ...ot(i, a, u)]), C = (e, t) => {
|
|
3118
|
+
if (!h.some((t) => Math.abs(t.x - e.x) + Math.abs(t.y - e.y) < lt)) return !0;
|
|
3119
|
+
let n = Math.abs(e.y - t.y) < 1.5 || Math.abs(e.y - t.y - t.h) < 1.5, r = h.filter((r) => n ? Math.abs(r.y - e.y) < 1.5 && r.x > t.x && r.x < t.x + t.w : Math.abs(r.x - e.x) < 1.5 && r.y > t.y && r.y < t.y + t.h).length;
|
|
3120
|
+
return (n ? t.w : t.h) - 14 >= lt * r;
|
|
3121
|
+
}, w = (e) => e.filter((e) => C(e.from.p, i) && C(e.to.p, a)), T = (e) => Math.abs(e.from.p.x - e.to.p.x) + Math.abs(e.from.p.y - e.to.p.y), E = v(ot(i, a, u, r === "all" ? { all: !0 } : { every: !0 })).sort((e, t) => T(e) - T(t)).slice(0, r === "all" ? 6 : 4), D = r ? w(E).length ? w(E) : E : w(S).length ? w(S) : w(E).length ? w(E) : S;
|
|
3122
|
+
if (!D.length) return null;
|
|
3123
|
+
U += D.length;
|
|
3124
|
+
let k = ve(u, c, D, f);
|
|
3125
|
+
if (!k.length) return null;
|
|
3126
|
+
if (r === "all" && n && t && g) {
|
|
3127
|
+
let e = k.find((e) => e.r.clear && !!e.r.label);
|
|
3128
|
+
if (e) return {
|
|
3129
|
+
r: e.r,
|
|
3130
|
+
detour: !0,
|
|
3131
|
+
ok: !1
|
|
3132
|
+
};
|
|
3133
|
+
}
|
|
3134
|
+
let A = Qe(x.values(), s, c, p), j = (e) => !J(e.r.pts) && !at(i, a, e.r.pts, A), M = k.find(j) ?? k[0], N = (e) => (f.around ?? []).reduce((t, n) => t + je(e, n), 0), P = N(M.r.pts);
|
|
3135
|
+
if (P > qe) {
|
|
3136
|
+
let e = k.find((e) => e !== M && j(e) && (!t || !g || e.r.clear) && N(e.r.pts) <= P - 2 && ht(e.r.pts) <= ht(M.r.pts) * 1.25 + 12);
|
|
3137
|
+
e && (M = e);
|
|
3138
|
+
}
|
|
3139
|
+
let F = M.way, I = M.r, L = I.pts.reduce((e, t, n) => e + (n ? Math.abs(t.x - I.pts[n - 1].x) + Math.abs(t.y - I.pts[n - 1].y) : 0), 0), z = Math.abs(F.from.p.x - F.to.p.x) + Math.abs(F.from.p.y - F.to.p.y), B = I.pts.length > 6 || L > z * 1.5 + 80;
|
|
3140
|
+
return {
|
|
3141
|
+
r: I,
|
|
3142
|
+
detour: B,
|
|
3143
|
+
ok: (!g || !t || !!I.label && !!I.clear) && !at(i, a, I.pts, A) && !J(I.pts) && !B
|
|
3144
|
+
};
|
|
3145
|
+
}, y = v();
|
|
3146
|
+
if ((!y || !y.ok) && U < Ct) {
|
|
3147
|
+
let e = v(!0, !0);
|
|
3148
|
+
e?.ok && (y = e);
|
|
3149
|
+
}
|
|
3150
|
+
if ((!y || !y.ok) && (U < Ct || n)) {
|
|
3151
|
+
let e = v(!0, "all");
|
|
3152
|
+
(e?.ok || n && e?.r.clear && !y?.r.clear) && (y = e);
|
|
3153
|
+
}
|
|
3154
|
+
for (let n = 0; n < 2 && y && !y.ok && t && g; n++) {
|
|
3155
|
+
let t = [
|
|
3156
|
+
{
|
|
3157
|
+
k: "y",
|
|
3158
|
+
lo: f.y + f.h,
|
|
3159
|
+
hi: h.y,
|
|
3160
|
+
along: g.h
|
|
3161
|
+
},
|
|
3162
|
+
{
|
|
3163
|
+
k: "y",
|
|
3164
|
+
lo: h.y + h.h,
|
|
3165
|
+
hi: f.y,
|
|
3166
|
+
along: g.h
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
k: "x",
|
|
3170
|
+
lo: f.x + f.w,
|
|
3171
|
+
hi: h.x,
|
|
3172
|
+
along: g.w
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
k: "x",
|
|
3176
|
+
lo: h.x + h.w,
|
|
3177
|
+
hi: f.x,
|
|
3178
|
+
along: g.w
|
|
3179
|
+
}
|
|
3180
|
+
].filter((e) => e.hi - e.lo > -.5).sort((e, t) => t.hi - t.lo - (e.hi - e.lo))[0];
|
|
3181
|
+
if (!t) break;
|
|
3182
|
+
let n = mt(t.k), r = Q(n), i = Q(t.k), a = Math.min(f[n], h[n]), o = Math.max(f[n] + f[r], h[n] + h[r]), s = [...O.values()].filter((s) => s.id !== e && (t.k === "y" || s.from === c.from && s.to === c.to || s.from === c.to && s.to === c.from) && s.labelBox && s.labelBox[t.k] >= t.lo - .5 && s.labelBox[t.k] + s.labelBox[i] <= t.hi + .5 && s.labelBox[n] < o && s.labelBox[n] + s.labelBox[r] > a).reduce((e, t) => e + t.labelBox[i] + $, 0), l = t.along + s + yt + bt + 32, u = Math.max(l - (t.hi - t.lo), y.detour && t.k === "y" && t.hi - t.lo < l * 2 ? t.along + 16 : 0);
|
|
3183
|
+
if (u <= .5 || !I(t.k, wt(L(/* @__PURE__ */ new Set([c.from, c.to])), t.k, t.lo + .5, t.hi), u)) break;
|
|
3184
|
+
y = v() ?? y;
|
|
3185
|
+
}
|
|
3186
|
+
if (g && (!y || !y.ok) && !(n && y && y.r.clear && y.r.label)) {
|
|
3187
|
+
let e = v(!1);
|
|
3188
|
+
e && (!y || y.detour || !e.detour) && (y = {
|
|
3189
|
+
...e,
|
|
3190
|
+
r: { pts: e.r.pts }
|
|
3191
|
+
});
|
|
3192
|
+
}
|
|
3193
|
+
y ? O.set(e, {
|
|
3194
|
+
...c,
|
|
3195
|
+
points: y.r.pts,
|
|
3196
|
+
...y.r.label ? { labelBox: y.r.label } : null
|
|
3197
|
+
}) : O.set(e, c), y && g && (!y.r.clear || !y.r.label) && H(e, t), g && w.add(E(e));
|
|
3198
|
+
}, te = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Set(), re = () => {
|
|
3199
|
+
let e = R(), n = [...x.values()].filter((e) => l(e) && e.kind !== "region").sort((t, n) => (e.depth.get(n.id) ?? 0) - (e.depth.get(t.id) ?? 0));
|
|
3200
|
+
for (let e of n) {
|
|
3201
|
+
let n = R(), r = Dt(n, e.id, O.values());
|
|
3202
|
+
if (!r) continue;
|
|
3203
|
+
let a = m(e, p), s = t, c = Math.max(0, ...[...O.values()].filter((t) => t.from === e.id && d(n, t.to, e.id) && !t.points).map((e) => o(e, p)?.h ?? 0)), l = D.get(e.id) ?? {
|
|
3204
|
+
top: s.top + (c ? c + 28 + 12 : 0),
|
|
3205
|
+
left: s.side,
|
|
3206
|
+
right: s.side,
|
|
3207
|
+
bottom: s.bottom
|
|
3208
|
+
}, u = {
|
|
3209
|
+
x: K(r.x - l.left),
|
|
3210
|
+
y: K(r.y - a.top - l.top),
|
|
3211
|
+
w: K(Math.max(a.w, r.w + l.left + l.right)),
|
|
3212
|
+
h: K(a.top + l.top + r.h + l.bottom)
|
|
3213
|
+
}, f = x.get(e.id);
|
|
3214
|
+
if (Math.abs(f.x - u.x) > .25 || Math.abs(f.y - u.y) > .25 || Math.abs(f.w - u.w) > .25 || Math.abs(f.h - u.h) > .25) {
|
|
3215
|
+
if (x.set(e.id, h({
|
|
3216
|
+
...e,
|
|
3217
|
+
...u
|
|
3218
|
+
}, a, u.h)), e.kind !== "root" && !_) {
|
|
3219
|
+
let t = v.get(e.id);
|
|
3220
|
+
for (let a of ["y", "x"]) {
|
|
3221
|
+
let o = Q(a), s = `${e.id}\0${a}`, c = Math.max(te.get(s) ?? (t ? t[a] + t[o] : r[a] + r[o]), r[a] + r[o]);
|
|
3222
|
+
if (u[a] + u[o] <= c + .5) continue;
|
|
3223
|
+
te.set(s, u[a] + u[o]);
|
|
3224
|
+
let l = z(e.id, a, x.get(e.id), c);
|
|
3225
|
+
l > .5 && I(a, wt(L(new Set(i(n, e.id))), a, r[a] + .5, c), l);
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
Et(O, e.id, f, u, P);
|
|
3229
|
+
let t = f.y + Math.min(f.h, V(f)), o = u.y + Math.min(u.h, a.top);
|
|
3230
|
+
if (Math.abs(t - o) > .25) for (let [r, i] of O) {
|
|
3231
|
+
let a = i.points;
|
|
3232
|
+
if (!a || a.length < 2) continue;
|
|
3233
|
+
let s = i.from === e.id && d(n, i.to, e.id) ? 0 : i.to === e.id && d(n, i.from, e.id) ? a.length - 1 : -1;
|
|
3234
|
+
s < 0 || Math.abs(a[s].y - t) > 1.5 || (O.set(r, {
|
|
3235
|
+
...i,
|
|
3236
|
+
points: a.map((e, t) => t === s ? {
|
|
3237
|
+
...e,
|
|
3238
|
+
y: K(o)
|
|
3239
|
+
} : e)
|
|
3240
|
+
}), P.add(r));
|
|
3241
|
+
}
|
|
3242
|
+
let s = Z(u, $);
|
|
3243
|
+
for (let e of O.values()) (e.points ?? []).some((e, t, n) => t > 0 && Y(n[t - 1], e, s)) && P.add(e.id);
|
|
3244
|
+
let c = v.get(e.id);
|
|
3245
|
+
(!c || Math.abs(c.x - u.x) > .5 || Math.abs(c.y - u.y) > .5 || Math.abs(c.w - u.w) > .5 || Math.abs(c.h - u.h) > .5) && w.add(e.id);
|
|
3246
|
+
} else if (!_ && !v.has(e.id) && !ne.has(e.id)) {
|
|
3247
|
+
ne.add(e.id);
|
|
3248
|
+
let t = Z(u, $);
|
|
3249
|
+
for (let e of O.values()) (e.points ?? []).some((e, n, r) => n > 0 && Y(r[n - 1], e, t)) && P.add(e.id);
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
}, ie = (e, t) => {
|
|
3253
|
+
let r = e.points;
|
|
3254
|
+
if (!r || r.length < 2) return null;
|
|
3255
|
+
let i = t.byId.get(e.from), a = t.byId.get(e.to);
|
|
3256
|
+
if (!i || !a) return null;
|
|
3257
|
+
if (r.some((e, t) => t > 0 && Math.abs(e.x - r[t - 1].x) > .5 && Math.abs(e.y - r[t - 1].y) > .5)) return "not square";
|
|
3258
|
+
let o = (e, n, r) => {
|
|
3259
|
+
if (l(n) && d(t, r.id, n.id)) return e.x > n.x + 6 && e.x < n.x + n.w - 6 && Math.abs(e.y - (n.y + V(n))) < 1.5;
|
|
3260
|
+
let i = Math.min(Math.abs(e.x - n.x), Math.abs(e.x - n.x - n.w), Math.abs(e.y - n.y), Math.abs(e.y - n.y - n.h)), a = e.x >= n.x + 6 && e.x <= n.x + n.w - 6, o = e.y >= n.y + 6 && e.y <= n.y + n.h - 6;
|
|
3261
|
+
return i < 1.5 && (a || o);
|
|
3262
|
+
}, s = (e, t, n) => {
|
|
3263
|
+
let r = n ? t.ports?.find((e) => e.id === n) : void 0;
|
|
3264
|
+
if (!r) return null;
|
|
3265
|
+
let i = g(t, r).p;
|
|
3266
|
+
return Math.hypot(i.x - e.x, i.y - e.y) <= 6;
|
|
3267
|
+
}, c = s(r[0], i, e.fromPort) ?? o(r[0], i, a), u = s(r[r.length - 1], a, e.toPort) ?? o(r[r.length - 1], a, i);
|
|
3268
|
+
if (!c || !u) return "detached";
|
|
3269
|
+
if (!e.fromPort && !e.toPort && !e.forkOf && !ee.has(e.id) && !d(t, i.id, a.id) && !d(t, a.id, i.id)) {
|
|
3270
|
+
let t = [...O.values()].filter((t) => t.id !== e.id && t.forkOf !== e.id && e.forkOf !== t.id).reduce((e, t) => e + je(r, t.points ?? []), 0), i = y.get(e.id)?.points, a = i ? [...y.values()].filter((t) => t.id !== e.id).reduce((e, t) => e + je(i, t.points ?? []), 0) : 0;
|
|
3271
|
+
if (t > qe && (P.has(e.id) || t > a || n !== null)) return ee.add(e.id), "tangled";
|
|
3272
|
+
}
|
|
3273
|
+
if (!e.fromPort && !e.toPort && !d(t, i.id, a.id) && !d(t, a.id, i.id) && (at(i, a, r, Qe(x.values(), O.values(), e, p)) || J(r))) return "goes round";
|
|
3274
|
+
{
|
|
3275
|
+
let n = y.get(e.id)?.points, i = ht(r), a = gt(t, e, r, V);
|
|
3276
|
+
if (n && r.length > 2 && i > ht(n) + .5 && i > a * 2 + _t) return "stretched";
|
|
3277
|
+
}
|
|
3278
|
+
let f = P.has(e.id);
|
|
3279
|
+
if (f && r.length > 2 && (Math.abs(r[0].x - r[1].x) + Math.abs(r[0].y - r[1].y) < 8 || Math.abs(r[r.length - 1].x - r[r.length - 2].x) + Math.abs(r[r.length - 1].y - r[r.length - 2].y) < 8)) return "short stub";
|
|
3280
|
+
if (f) for (let t of O.values()) {
|
|
3281
|
+
if (t.id === e.id || t.forkOf === e.id || e.forkOf === t.id || t.forkOf && t.forkOf === e.forkOf) continue;
|
|
3282
|
+
let n = t.points ?? [];
|
|
3283
|
+
for (let e = 1; e < r.length; e++) {
|
|
3284
|
+
let t = r[e - 1], i = r[e], a = Math.abs(t.y - i.y) < .5;
|
|
3285
|
+
for (let e = 1; e < n.length; e++) {
|
|
3286
|
+
let r = n[e - 1], o = n[e];
|
|
3287
|
+
if ((a ? Math.abs(r.y - o.y) < .5 && Math.abs(r.y - t.y) < 10 ? Math.min(Math.max(t.x, i.x), Math.max(r.x, o.x)) - Math.max(Math.min(t.x, i.x), Math.min(r.x, o.x)) : 0 : Math.abs(r.x - o.x) < .5 && Math.abs(r.x - t.x) < 10 ? Math.min(Math.max(t.y, i.y), Math.max(r.y, o.y)) - Math.max(Math.min(t.y, i.y), Math.min(r.y, o.y)) : 0) > 20) return "in another route’s lane";
|
|
3288
|
+
}
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
if (f) for (let t of O.values()) {
|
|
3292
|
+
let n = t.labelBox;
|
|
3293
|
+
if (!(t.id === e.id || !n || t.forkOf === e.id || e.forkOf === t.id) && r.some((e, t) => t > 0 && Y(r[t - 1], e, Z(n, -1)))) return "through a label";
|
|
3294
|
+
}
|
|
3295
|
+
for (let n of t.nodes) {
|
|
3296
|
+
if (n.kind === "marker") continue;
|
|
3297
|
+
let i = n.id === e.from || n.id === e.to, a = i ? null : l(n) && $e(t, n.id, e) ? n.kind === "region" ? null : {
|
|
3298
|
+
x: n.x,
|
|
3299
|
+
y: n.y,
|
|
3300
|
+
w: n.w,
|
|
3301
|
+
h: Math.min(n.h, V(n))
|
|
3302
|
+
} : n;
|
|
3303
|
+
if (a) {
|
|
3304
|
+
for (let e = 1; e < r.length; e++) if (Y(r[e - 1], r[e], Z(a, -1.5))) return `through ${n.id}`;
|
|
3305
|
+
}
|
|
3306
|
+
if (i && !l(n)) for (let t = 1; t < r.length; t++) {
|
|
3307
|
+
let i = t === 1 && n.id === e.from, a = t === r.length - 1 && n.id === e.to;
|
|
3308
|
+
if (!i && !a && Y(r[t - 1], r[t], Z(n, -1.5))) return `through its end ${n.id}`;
|
|
3309
|
+
}
|
|
3310
|
+
if (!i && e.labelBox && !l(n) && X(Z(e.labelBox, -1), n)) return "label on a card";
|
|
3311
|
+
if (f && l(n) && n.kind !== "region") {
|
|
3312
|
+
let e = n.y + Math.min(n.h, V(n));
|
|
3313
|
+
for (let t = 1; t < r.length; t++) {
|
|
3314
|
+
let i = r[t - 1], a = r[t];
|
|
3315
|
+
if ((Math.abs(i.y - a.y) < .5 ? Math.abs(i.y - n.y) < 10 || Math.abs(i.y - n.y - n.h) < 10 || Math.abs(i.y - e) < 6 ? Math.min(Math.max(i.x, a.x), n.x + n.w) - Math.max(Math.min(i.x, a.x), n.x) : 0 : Math.abs(i.x - n.x) < 10 || Math.abs(i.x - n.x - n.w) < 10 ? Math.min(Math.max(i.y, a.y), n.y + n.h) - Math.max(Math.min(i.y, a.y), n.y) : 0) > 10) return "along a wall";
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
return null;
|
|
3320
|
+
}, ae = (e, t) => ie(e, t) === null, oe = (e) => {
|
|
3321
|
+
let t = e.points, n = e.labelBox;
|
|
3322
|
+
if (!t || t.length < 2 || !n || e.from === e.to || e.forkOf) return !0;
|
|
3323
|
+
let r = {
|
|
3324
|
+
x: n.x + n.w / 2,
|
|
3325
|
+
y: n.y + n.h / 2
|
|
3326
|
+
};
|
|
3327
|
+
for (let e = 1; e < t.length; e++) {
|
|
3328
|
+
let i = t[e - 1], a = t[e], o = Math.abs(i.y - a.y) < .5 ? "x" : "y", s = mt(o), c = Q(o);
|
|
3329
|
+
if (Math.abs(i[s] - r[s]) > 3 || r[o] < Math.min(i[o], a[o]) || r[o] > Math.max(i[o], a[o])) continue;
|
|
3330
|
+
let l = a[o] >= i[o], u = l ? n[o] - i[o] : i[o] - (n[o] + n[c]), d = l ? a[o] - (n[o] + n[c]) : n[o] - a[o];
|
|
3331
|
+
return u >= 7.5 && d >= (e === t.length - 1 ? bt : yt) - .5;
|
|
3332
|
+
}
|
|
3333
|
+
return !1;
|
|
3334
|
+
}, se = () => {
|
|
3335
|
+
let e = R(), t = [];
|
|
3336
|
+
for (let e of x.values()) e.kind !== "marker" && e.kind !== "region" && e.kind !== "root" && t.push({
|
|
3337
|
+
id: e.id,
|
|
3338
|
+
r: e,
|
|
3339
|
+
box: l(e)
|
|
3340
|
+
});
|
|
3341
|
+
let n = [...x.values()].filter((e) => l(e) && e.kind !== "region").map((e) => ({
|
|
3342
|
+
n: e,
|
|
3343
|
+
r: {
|
|
3344
|
+
x: e.x,
|
|
3345
|
+
y: e.y,
|
|
3346
|
+
w: e.w,
|
|
3347
|
+
h: Math.min(e.h, V(e))
|
|
3348
|
+
}
|
|
3349
|
+
}));
|
|
3350
|
+
for (let e of O.values()) e.labelBox && (e.points?.length ?? 0) >= 2 && t.push({
|
|
3351
|
+
id: E(e.id),
|
|
3352
|
+
r: e.labelBox,
|
|
3353
|
+
edge: e
|
|
3354
|
+
});
|
|
3355
|
+
let r = (t, n) => {
|
|
3356
|
+
if (t.edge && n.edge) return !1;
|
|
3357
|
+
let r = t.edge ? n : n.edge ? t : null, i = t.edge ? t : n.edge ? n : null;
|
|
3358
|
+
if (r && i) {
|
|
3359
|
+
let t = (t) => t === r.id || d(e, t, r.id);
|
|
3360
|
+
if (r.box) {
|
|
3361
|
+
if (t(i.edge.from) && t(i.edge.to)) return !0;
|
|
3362
|
+
let e = r.r, n = i.r;
|
|
3363
|
+
return n.x >= e.x + 2 && n.y >= e.y + 2 && n.x + n.w <= e.x + e.w - 2 && n.y + n.h <= e.y + e.h - 2;
|
|
3364
|
+
}
|
|
3365
|
+
return !1;
|
|
3366
|
+
}
|
|
3367
|
+
return d(e, t.id, n.id) || d(e, n.id, t.id);
|
|
3368
|
+
};
|
|
3369
|
+
for (let e = 0; e < t.length; e++) for (let n = e + 1; n < t.length; n++) {
|
|
3370
|
+
let i = t[e], a = t[n];
|
|
3371
|
+
if (!w.has(i.id) && !w.has(a.id)) continue;
|
|
3372
|
+
let o = i.edge || a.edge ? 2 : 6;
|
|
3373
|
+
if (!(!X(Z(i.r, o), a.r) || r(i, a))) return w.has(i.id) ? {
|
|
3374
|
+
a: i.id,
|
|
3375
|
+
b: a.id,
|
|
3376
|
+
ra: i.r,
|
|
3377
|
+
rb: a.r
|
|
3378
|
+
} : {
|
|
3379
|
+
a: a.id,
|
|
3380
|
+
b: i.id,
|
|
3381
|
+
ra: a.r,
|
|
3382
|
+
rb: i.r
|
|
3383
|
+
};
|
|
3384
|
+
}
|
|
3385
|
+
for (let e of t) if (!(!e.edge || !w.has(e.id))) for (let t of O.values()) {
|
|
3386
|
+
if (t.id === e.edge.id || t.forkOf === e.edge.id || e.edge.forkOf === t.id) continue;
|
|
3387
|
+
let n = t.points ?? [];
|
|
3388
|
+
for (let r = 1; r < n.length; r++) {
|
|
3389
|
+
let i = {
|
|
3390
|
+
x: Math.min(n[r - 1].x, n[r].x),
|
|
3391
|
+
y: Math.min(n[r - 1].y, n[r].y),
|
|
3392
|
+
w: Math.abs(n[r - 1].x - n[r].x),
|
|
3393
|
+
h: Math.abs(n[r - 1].y - n[r].y)
|
|
3394
|
+
};
|
|
3395
|
+
if (Y(n[r - 1], n[r], Z(e.r, 4))) return {
|
|
3396
|
+
a: e.id,
|
|
3397
|
+
b: `\0run:${t.id}:${r}`,
|
|
3398
|
+
ra: e.r,
|
|
3399
|
+
rb: i
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3402
|
+
}
|
|
3403
|
+
for (let { n: r, r: i } of n) for (let n of t) if (!(n.id === r.id || !w.has(n.id) && !w.has(r.id)) && !(!n.edge && d(e, n.id, r.id)) && !(!n.edge && d(e, r.id, n.id)) && X(Z(i, 2), n.r)) return w.has(n.id) ? {
|
|
3404
|
+
a: n.id,
|
|
3405
|
+
b: `\0head:${r.id}`,
|
|
3406
|
+
ra: n.r,
|
|
3407
|
+
rb: i
|
|
3408
|
+
} : {
|
|
3409
|
+
a: `\0head:${r.id}`,
|
|
3410
|
+
b: n.id,
|
|
3411
|
+
ra: i,
|
|
3412
|
+
rb: n.r
|
|
3413
|
+
};
|
|
3414
|
+
return null;
|
|
3415
|
+
}, ce = (e) => {
|
|
3416
|
+
let t = R(), n = (e) => e.startsWith("\0head:") ? e.slice(6) : e, r = (e) => e.startsWith("\0label") || e.startsWith("\0run"), a = T.get(n(e.a)) ?? e.ra, o = e.ra, s = e.rb, c = "y", u = !0;
|
|
3417
|
+
s.y >= a.y + a.h - .5 ? (c = "y", u = !0) : a.y >= s.y + s.h - .5 ? (c = "y", u = !1) : s.x >= a.x + a.w - .5 ? (c = "x", u = !0) : a.x >= s.x + s.w - .5 ? (c = "x", u = !1) : (c = Math.min(o.y + o.h - s.y, s.y + s.h - o.y) <= Math.min(o.x + o.w - s.x, s.x + s.w - o.x) ? "y" : "x", u = s[c] + s[Q(c)] / 2 >= o[c] + o[Q(c)] / 2);
|
|
3418
|
+
let d = Q(c), f = r(e.a) || r(e.b) ? $ : vt, p = (e) => {
|
|
3419
|
+
let n = e.startsWith("\0") ? null : t.byId.get(e);
|
|
3420
|
+
return n && l(n) ? n : null;
|
|
3421
|
+
}, m = (e, a, o) => {
|
|
3422
|
+
if (r(e)) return a[c] + a[d] / 2;
|
|
3423
|
+
let s = t.byId.get(n(e));
|
|
3424
|
+
if (s && l(s) && o) {
|
|
3425
|
+
let e = i(t, s.id).map((e) => t.byId.get(e)).filter(Boolean);
|
|
3426
|
+
if (e.length) return Math.max(...e.map((e) => e[c] + e[Q(c)]));
|
|
3427
|
+
}
|
|
3428
|
+
return a[c];
|
|
3429
|
+
}, [h, g, _, v] = u ? [
|
|
3430
|
+
e.a,
|
|
3431
|
+
e.b,
|
|
3432
|
+
o,
|
|
3433
|
+
s
|
|
3434
|
+
] : [
|
|
3435
|
+
e.b,
|
|
3436
|
+
e.a,
|
|
3437
|
+
s,
|
|
3438
|
+
o
|
|
3439
|
+
], y = _[c] + _[d] + f - v[c], b = p(g) && p(h) ? /* @__PURE__ */ new Set([g]) : void 0;
|
|
3440
|
+
return I(c, wt(L(), c, m(h, _, !0) + .5, m(g, v, !1)), y, b);
|
|
3441
|
+
};
|
|
3442
|
+
re();
|
|
3443
|
+
for (let e of k) G(e, j.has(e));
|
|
3444
|
+
re();
|
|
3445
|
+
let le = !1, q = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Set();
|
|
3446
|
+
for (let e = 0; e < St * (_ ? 6 : 2); e++) {
|
|
3447
|
+
let e = R(), t = [...O.values()].filter((t) => N.has(t.id) || !ae(t, e)).map((e) => e.id);
|
|
3448
|
+
N.clear();
|
|
3449
|
+
for (let e of t) G(e, !0);
|
|
3450
|
+
for (let e of [...O.values()]) P.has(e.id) && !oe(e) && H(e.id);
|
|
3451
|
+
re();
|
|
3452
|
+
let n = se();
|
|
3453
|
+
if (!n) break;
|
|
3454
|
+
let r = n.b.startsWith("\0run:") ? n.b.slice(5, n.b.lastIndexOf(":")) : null;
|
|
3455
|
+
if (r && !ue.has(r)) {
|
|
3456
|
+
ue.add(r), G(r, !1);
|
|
3457
|
+
continue;
|
|
3458
|
+
}
|
|
3459
|
+
let i = `${n.a}\0${n.b}`;
|
|
3460
|
+
if (q.set(i, (q.get(i) ?? 0) + 1), q.get(i) > 3 || !ce(n)) {
|
|
3461
|
+
le = !0;
|
|
3462
|
+
break;
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
if (le) {
|
|
3466
|
+
let e = /* @__PURE__ */ new Set();
|
|
3467
|
+
for (let t = 0; t < 8; t++) {
|
|
3468
|
+
let t = se();
|
|
3469
|
+
if (!t) break;
|
|
3470
|
+
let n = [t.b.startsWith("\0run:") ? t.b.slice(5, t.b.lastIndexOf(":")) : null, [t.a, t.b].find((e) => e.startsWith("\0label:"))?.slice(7) ?? null].find((n) => n && !e.has(`${n}\0${t.a}`));
|
|
3471
|
+
if (!n) break;
|
|
3472
|
+
e.add(`${n}\0${t.a}`), G(n, !1, !0), re();
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
for (let e = 0; e < 3; e++) {
|
|
3476
|
+
let t = R();
|
|
3477
|
+
for (let e of [...O.values()]) {
|
|
3478
|
+
if (!N.has(e.id) && ae(e, t)) continue;
|
|
3479
|
+
G(e.id, !1, le);
|
|
3480
|
+
let n = O.get(e.id);
|
|
3481
|
+
!le && !ae(n, R()) && (le = !0, G(e.id, !1, !0));
|
|
3482
|
+
}
|
|
3483
|
+
N.clear();
|
|
3484
|
+
for (let t of [...O.values()]) P.has(t.id) && !oe(t) && H(t.id, e === 0);
|
|
3485
|
+
re();
|
|
3486
|
+
let n = !le && e < 2 ? se() : null;
|
|
3487
|
+
n && !n.a.startsWith("\0") && !n.b.startsWith("\0") && x.get(n.a) && l(x.get(n.a)) && x.get(n.b) && l(x.get(n.b)) && ce(n);
|
|
3488
|
+
}
|
|
3489
|
+
for (let e of dt({
|
|
3490
|
+
nodes: f.nodes.map((e) => x.get(e.id)),
|
|
3491
|
+
edges: f.edges.map((e) => O.get(e.id)),
|
|
3492
|
+
bounds: {
|
|
3493
|
+
x: 0,
|
|
3494
|
+
y: 0,
|
|
3495
|
+
w: 0,
|
|
3496
|
+
h: 0
|
|
3497
|
+
}
|
|
3498
|
+
}).edges) O.set(e.id, e);
|
|
3499
|
+
re();
|
|
3500
|
+
let de = f.nodes.map((e) => x.get(e.id)), fe = f.edges.map((e) => O.get(e.id));
|
|
3501
|
+
return {
|
|
3502
|
+
nodes: de,
|
|
3503
|
+
edges: fe,
|
|
3504
|
+
bounds: a(de, fe.map((e) => ({ pts: e.points ?? [] })), fe.flatMap((e) => e.labelBox ? [e.labelBox] : [])) ?? {
|
|
3505
|
+
x: 0,
|
|
3506
|
+
y: 0,
|
|
3507
|
+
w: 0,
|
|
3508
|
+
h: 0
|
|
3509
|
+
},
|
|
3510
|
+
pushed: M.size,
|
|
3511
|
+
knot: le
|
|
3512
|
+
};
|
|
3513
|
+
}
|
|
3514
|
+
function At(e, t, n, r = []) {
|
|
3515
|
+
let i = e.n;
|
|
3516
|
+
if (!i) return e;
|
|
3517
|
+
let a = i.x === 0 ? "x" : "y", o = (a === "x" ? t.x : t.y) + 12, s = (a === "x" ? t.x + t.w : t.y + t.h) - 12, c = (t) => {
|
|
3518
|
+
let n = {
|
|
3519
|
+
...e.p,
|
|
3520
|
+
[a]: t
|
|
3521
|
+
}, o = {
|
|
3522
|
+
x: n.x + i.x * xt,
|
|
3523
|
+
y: n.y + i.y * xt
|
|
3524
|
+
};
|
|
3525
|
+
return r.some((e) => Y(n, o, Z(e, 6)));
|
|
3526
|
+
}, l = (t) => !n.some((n) => Math.abs((a === "x" ? n.y : n.x) - (a === "x" ? e.p.y : e.p.x)) < 1.5 && Math.abs(n[a] - t) < 24);
|
|
3527
|
+
for (let t of [!0, !1]) for (let n = 0; n <= 12; n++) for (let r of n ? [1, -1] : [1]) {
|
|
3528
|
+
let i = e.p[a] + r * n * lt;
|
|
3529
|
+
if (i >= o && i <= s && !c(i) && (!t || l(i))) return {
|
|
3530
|
+
...e,
|
|
3531
|
+
p: {
|
|
3532
|
+
...e.p,
|
|
3533
|
+
[a]: K(i)
|
|
3534
|
+
}
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
return c(e.p[a]) ? null : e;
|
|
3538
|
+
}
|
|
3539
|
+
function jt(e, n, { parent: r, near: i, center: a, text: o = S } = {}) {
|
|
3540
|
+
let s = u(e.nodes), c = r ? s.byId.get(r) : e.nodes.find((e) => e.kind === "root" && !s.parent.get(e.id)), f = (e, t) => ({
|
|
3541
|
+
x: e.x - t,
|
|
3542
|
+
y: e.y - t,
|
|
3543
|
+
w: e.w + 2 * t,
|
|
3544
|
+
h: e.h + 2 * t
|
|
3545
|
+
}), p = [];
|
|
3546
|
+
for (let t of e.nodes) if (t.kind !== "marker") {
|
|
3547
|
+
if (l(t)) {
|
|
3548
|
+
if (t.kind === "region") continue;
|
|
3549
|
+
let e = c && (t.id === c.id || d(s, c.id, t.id));
|
|
3550
|
+
p.push(e ? f({
|
|
3551
|
+
x: t.x,
|
|
3552
|
+
y: t.y,
|
|
3553
|
+
w: t.w,
|
|
3554
|
+
h: Math.min(t.h, m(t, o).top)
|
|
3555
|
+
}, 20) : f(t, 40));
|
|
3556
|
+
} else p.push(f(t, 40));
|
|
3557
|
+
t.entry && p.push(f({
|
|
3558
|
+
x: t.x - 22,
|
|
3559
|
+
y: t.y - 16,
|
|
3560
|
+
w: 22,
|
|
3561
|
+
h: 34
|
|
3562
|
+
}, 8));
|
|
3563
|
+
}
|
|
3564
|
+
for (let t of e.edges) t.labelBox && p.push(f(t.labelBox, 20));
|
|
3565
|
+
let h = e.edges.flatMap((e) => (e.points ?? []).slice(1).map((t, n) => {
|
|
3566
|
+
let r = e.points[n];
|
|
3567
|
+
return f({
|
|
3568
|
+
x: Math.min(r.x, t.x),
|
|
3569
|
+
y: Math.min(r.y, t.y),
|
|
3570
|
+
w: Math.abs(r.x - t.x),
|
|
3571
|
+
h: Math.abs(r.y - t.y)
|
|
3572
|
+
}, 12);
|
|
3573
|
+
})), g = c ? c.y + Math.min(c.h, m(c, o).top) + t.top + 20 : -Infinity, _ = c ? c.x + t.side + 20 : -Infinity, v = c && c.kind !== "root" ? e.nodes.filter((e) => e.kind !== "marker" && e.kind !== "region" && e.id !== c.id && !d(s, e.id, c.id) && !d(s, c.id, e.id)) : [], y = t, b = (e) => {
|
|
3574
|
+
if (!c || !v.length) return !1;
|
|
3575
|
+
let t = Math.min(c.x, e.x - y.side - 20), n = Math.max(c.x + c.w, e.x + e.w + y.side + 20), r = Math.max(c.y + c.h, e.y + e.h + y.bottom + 20), i = {
|
|
3576
|
+
x: t,
|
|
3577
|
+
y: c.y,
|
|
3578
|
+
w: n - t,
|
|
3579
|
+
h: r - c.y
|
|
3580
|
+
};
|
|
3581
|
+
return v.some((e) => X(i, l(e) ? e : f(e, 8)));
|
|
3582
|
+
}, x = (e, t) => e.x >= _ && e.y >= g && !p.some((t) => X(e, t)) && (!t || !h.some((t) => X(e, t))) && !b(e), C = (e, t) => ({
|
|
3583
|
+
x: K(e),
|
|
3584
|
+
y: K(t),
|
|
3585
|
+
w: n.w,
|
|
3586
|
+
h: n.h
|
|
3587
|
+
}), w = i ? s.byId.get(i) : void 0;
|
|
3588
|
+
if (w) {
|
|
3589
|
+
let e = [
|
|
3590
|
+
C(w.x + w.w + 40, w.y),
|
|
3591
|
+
C(w.x, w.y + w.h + 40),
|
|
3592
|
+
C(w.x - 40 - n.w, w.y),
|
|
3593
|
+
C(w.x, w.y - 40 - n.h)
|
|
3594
|
+
];
|
|
3595
|
+
for (let t of [!0, !1]) for (let n of e) if (x(n, t)) return {
|
|
3596
|
+
x: n.x,
|
|
3597
|
+
y: n.y
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
let T = w ? {
|
|
3601
|
+
x: w.x + w.w / 2,
|
|
3602
|
+
y: w.y + w.h / 2
|
|
3603
|
+
} : a ?? (c ? {
|
|
3604
|
+
x: c.x + c.w / 2,
|
|
3605
|
+
y: c.y + c.h / 2
|
|
3606
|
+
} : {
|
|
3607
|
+
x: 0,
|
|
3608
|
+
y: 0
|
|
3609
|
+
});
|
|
3610
|
+
for (let e of [!0, !1]) for (let t = 0; t <= 250; t++) {
|
|
3611
|
+
let r = [];
|
|
3612
|
+
for (let i = -t; i <= t; i++) for (let [a, o] of [
|
|
3613
|
+
[i, -t],
|
|
3614
|
+
[i, t],
|
|
3615
|
+
[-t, i],
|
|
3616
|
+
[t, i]
|
|
3617
|
+
]) {
|
|
3618
|
+
if (t && Math.abs(a) !== t && Math.abs(o) !== t) continue;
|
|
3619
|
+
let i = C(T.x - n.w / 2 + a * 16, T.y - n.h / 2 + o * 16);
|
|
3620
|
+
x(i, e) && r.push(i);
|
|
3621
|
+
}
|
|
3622
|
+
if (r.length) return r.sort((e, t) => Math.hypot(e.x + e.w / 2 - T.x, e.y + e.h / 2 - T.y) - Math.hypot(t.x + t.w / 2 - T.x, t.y + t.h / 2 - T.y)), {
|
|
3623
|
+
x: r[0].x,
|
|
3624
|
+
y: r[0].y
|
|
3625
|
+
};
|
|
3626
|
+
}
|
|
3627
|
+
if (c && c.kind !== "root") {
|
|
3628
|
+
let t = e.nodes.filter((e) => d(s, e.id, c.id)), n = t.length ? Math.max(...t.map((e) => e.y + e.h)) : g;
|
|
3629
|
+
return {
|
|
3630
|
+
x: K(Math.max(_ - 20, c.x + y.side)),
|
|
3631
|
+
y: K(n + 40)
|
|
3632
|
+
};
|
|
3633
|
+
}
|
|
3634
|
+
return {
|
|
3635
|
+
x: K(Math.max(...e.nodes.map((e) => e.x + e.w), 0) + 40),
|
|
3636
|
+
y: K(Math.max(g, c?.y ?? 0))
|
|
3637
|
+
};
|
|
3638
|
+
}
|
|
3639
|
+
//#endregion
|
|
3640
|
+
export { z as DIAGRAM_ELK_OPTIONS, C as DiagramLayoutError, Re as createDiagramLayoutEngine, R as diagramElkOptions, He as finishLayout, jt as freePlace, te as fromElkGraph, kt as keepLayout, ze as layoutDiagram, ke as routeForks, Se as routePortEdges, ct as runLayout, ee as toElkGraph, J as turnsBack, de as wrapDiagram };
|