pi-roundtable-web 0.25.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +165 -12
- package/dist/account-zk4efb87.css +102 -0
- package/dist/chunk-account-ghq105t4.js +1 -0
- package/dist/chunk-action-menu-me0g9qsc.js +1 -0
- package/dist/{chunk-agent-0pm9p3nn.js → chunk-agent-rdv7ekrt.js} +1 -1
- package/dist/chunk-arranged-rooms-81rqhx9x.js +1 -0
- package/dist/chunk-character-creator-bd426yjw.js +1 -0
- package/dist/chunk-codeeditor-ajhgd33t.js +2 -0
- package/dist/chunk-confirm-p3mts8mx.js +1 -0
- package/dist/{chunk-connectors-anhghy3k.js → chunk-connectors-bkv3xn83.js} +1 -1
- package/dist/chunk-conversations-0e0vbxwr.js +1 -0
- package/dist/{chunk-drag-q4fx9b22.js → chunk-drag-peyb8t0k.js} +1 -1
- package/dist/{chunk-entry-he1embgp.js → chunk-entry-mv7q8br0.js} +1 -1
- package/dist/chunk-folder-list-era3tksh.js +1 -0
- package/dist/chunk-folds-hvws0bd5.js +1 -0
- package/dist/chunk-gate-hc7dd0fx.js +1 -0
- package/dist/chunk-group-scene-dkbpmbh5.js +1 -0
- package/dist/chunk-group-table-fqmxgdfw.js +1 -0
- package/dist/chunk-host-icons-4xde9ntk.js +1 -0
- package/dist/chunk-host-picture-014yzk20.js +1 -0
- package/dist/chunk-host-state-t56e5sdy.js +1 -0
- package/dist/chunk-host-ui-p1zy9nmp.js +1 -0
- package/dist/chunk-index-0fmmvgee.js +2 -0
- package/dist/chunk-index-0q15ysrb.js +1 -0
- package/dist/chunk-index-0xh24y25.js +2 -0
- package/dist/chunk-index-2yebd9tb.js +426 -0
- package/dist/chunk-index-4t0r3t3b.js +2 -0
- package/dist/chunk-index-5yzfrf7b.js +138 -0
- package/dist/{chunk-index-d5abvq7v.js → chunk-index-6twb7ccd.js} +2 -2
- package/dist/chunk-index-73gh7kgr.js +920 -0
- package/dist/chunk-index-7xffskfa.js +8 -0
- package/dist/chunk-index-aqw7cy5j.js +1 -0
- package/dist/chunk-index-b6ca02e8.js +2 -0
- package/dist/chunk-index-b8nvhcx5.js +2 -0
- package/dist/{chunk-index-bvfqjh77.js → chunk-index-cvbdf2ca.js} +2 -2
- package/dist/chunk-index-czdketze.js +2 -0
- package/dist/{chunk-index-9jqcskb4.js → chunk-index-dt9775ka.js} +5 -5
- package/dist/chunk-index-eg55mqqe.js +1 -0
- package/dist/chunk-index-gr6e0hse.js +2 -0
- package/dist/chunk-index-gyary7np.js +13 -0
- package/dist/chunk-index-j214tczc.js +1 -0
- package/dist/chunk-index-jd6632ef.js +2 -0
- package/dist/chunk-index-jw7dtshr.js +2 -0
- package/dist/{chunk-index-krtk6nn2.js → chunk-index-k7t14rwa.js} +2 -2
- package/dist/chunk-index-kwcx62wb.js +4 -0
- package/dist/chunk-index-m7fvw92f.js +2 -0
- package/dist/chunk-index-mmg788a1.js +2 -0
- package/dist/chunk-index-mq0dacwr.js +2 -0
- package/dist/chunk-index-p53ak25v.js +2 -0
- package/dist/{chunk-index-27qca4mr.js → chunk-index-pk1yxkv4.js} +2 -2
- package/dist/{chunk-index-9b1kt7qw.css → chunk-index-rbcz9jd4.css} +1 -1
- package/dist/{chunk-index-s681nny9.js → chunk-index-rmxbdmn2.js} +2 -2
- package/dist/chunk-index-rnxj3z8k.js +2 -0
- package/dist/chunk-index-snzzfhk3.js +2 -0
- package/dist/chunk-index-v3bmr0nw.js +2 -0
- package/dist/chunk-index-vcyzwtk2.js +2 -0
- package/dist/{chunk-index-zfd00hwb.js → chunk-index-w2j3njb6.js} +2 -2
- package/dist/chunk-index-w31c4yjv.js +2 -0
- package/dist/chunk-index-wrm8w165.js +2 -0
- package/dist/chunk-index-xh0mg9cw.js +2 -0
- package/dist/chunk-index-ybtvvx85.js +2 -0
- package/dist/chunk-index-yzsgsvnp.js +2 -0
- package/dist/{chunk-index-18gxy79n.js → chunk-index-z9x4cnzf.js} +2 -2
- package/dist/chunk-index-zrvg23jd.js +2 -0
- package/dist/chunk-index-zynq0b0w.js +50 -0
- package/dist/chunk-lang-css-88v3hp3d.js +1 -0
- package/dist/{chunk-lang-dockerfile-d5mzxs60.js → chunk-lang-dockerfile-k728ewsf.js} +1 -1
- package/dist/{chunk-lang-go-830fmhba.js → chunk-lang-go-wjwgay4v.js} +3 -3
- package/dist/chunk-lang-html-07d47es4.js +1 -0
- package/dist/chunk-lang-javascript-fmhhgzwd.js +1 -0
- package/dist/{chunk-lang-json-5eaarz7j.js → chunk-lang-json-7gd89mvs.js} +1 -1
- package/dist/chunk-lang-markdown-b6qbe8bt.js +6 -0
- package/dist/{chunk-lang-python-fjw84w10.js → chunk-lang-python-3v56y31b.js} +2 -2
- package/dist/{chunk-lang-rust-5rbp2zdk.js → chunk-lang-rust-kh0z74d1.js} +1 -1
- package/dist/{chunk-lang-shell-vzagpym3.js → chunk-lang-shell-9zv0zvbx.js} +1 -1
- package/dist/{chunk-lang-sql-0c2w9c2y.js → chunk-lang-sql-yw6bf3t7.js} +2 -2
- package/dist/{chunk-lang-toml-yr9fv6eb.js → chunk-lang-toml-tg1r96nq.js} +1 -1
- package/dist/chunk-lang-typescript-etjjvr2g.js +1 -0
- package/dist/{chunk-lang-xml-eze08p42.js → chunk-lang-xml-ev1mndd4.js} +1 -1
- package/dist/{chunk-lang-yaml-c4b6ft3y.js → chunk-lang-yaml-fz5qpb3r.js} +1 -1
- package/dist/chunk-layout-actions-48ecgtkg.js +1 -0
- package/dist/{chunk-menu-items-jrwxycr1.js → chunk-menu-items-1epy3h0t.js} +2 -2
- package/dist/chunk-mode-toggle-fxmfxsa4.js +1 -0
- package/dist/chunk-note-row-kd0fy7ee.js +75 -0
- package/dist/chunk-notes-yb8f057c.js +1 -0
- package/dist/chunk-notice-bell-wr4f1rph.js +1 -0
- package/dist/chunk-notices-x07da5bb.js +1 -0
- package/dist/chunk-onboarding-csrkbh9z.js +1 -0
- package/dist/chunk-overview-avc2d30t.js +1 -0
- package/dist/chunk-palette-9nhp95bz.js +1 -0
- package/dist/chunk-placement-items-q694dpgk.js +1 -0
- package/dist/chunk-profile-6qemf3m7.js +1 -0
- package/dist/chunk-prompt-history-7enzp2p3.js +1 -0
- package/dist/chunk-prompts-nv6mrn0q.js +1 -0
- package/dist/chunk-room-confirms-zz7n61y7.js +1 -0
- package/dist/chunk-room-menu-rr6nzap1.js +1 -0
- package/dist/chunk-rooms-menu-button-zbtwj47d.js +1 -0
- package/dist/chunk-schedules-rw57nr0m.js +1 -0
- package/dist/{chunk-seat-menu-jv4s7hmj.js → chunk-seat-menu-ys5v9abz.js} +1 -1
- package/dist/chunk-sheet-hosts-jhvaacst.js +1 -0
- package/dist/chunk-skill-editor-sz8an8qr.js +8 -0
- package/dist/chunk-skills-tnr1h16h.js +1 -0
- package/dist/chunk-switcher-list-17enhrse.js +1 -0
- package/dist/chunk-tab-dot-r6brdbmw.js +1 -0
- package/dist/chunk-table-r12cja6p.js +1 -0
- package/dist/chunk-table-seats-g3t392zz.js +1 -0
- package/dist/{chunk-table2d-4sje1fr0.js → chunk-table2d-p3ezsdcj.js} +1 -1
- package/dist/{chunk-table3d-h64skazp.js → chunk-table3d-4x2n2b00.js} +23 -23
- package/dist/chunk-thread-actions-qc6ezkha.js +1 -0
- package/dist/chunk-transcript-n2s6dher.js +1 -0
- package/dist/chunk-where-f3scdydc.js +1 -0
- package/dist/chunk-workspace-xs023bxm.js +1 -0
- package/dist/chunk-zh-tw-efvmk3fd.js +1 -0
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +5 -4
- package/src/api-types.ts +356 -4
- package/src/app/app.ts +201 -32
- package/src/app/desk.ts +47 -22
- package/src/app/files.ts +73 -7
- package/src/app/presence.ts +2 -2
- package/src/app/protocol.ts +63 -1
- package/src/app/room-log.ts +153 -14
- package/src/app/rooms.ts +39 -0
- package/src/app/routes.ts +168 -28
- package/src/app/socket.ts +349 -81
- package/src/app/sockets.ts +108 -20
- package/src/app/surface.ts +72 -36
- package/src/app/threads.ts +31 -2
- package/src/app/uploads.ts +33 -7
- package/src/auth/authenticator.ts +77 -8
- package/src/auth/login-page.ts +4 -2
- package/src/auth/next.ts +52 -0
- package/src/auth/oidc-pages.ts +62 -0
- package/src/auth/oidc.ts +649 -0
- package/src/auth/sessions.ts +193 -0
- package/src/authz.ts +173 -0
- package/src/console-api.ts +122 -25
- package/src/console-server.ts +102 -12
- package/src/gate.ts +90 -0
- package/src/host/access.ts +161 -0
- package/src/host/cards.ts +112 -0
- package/src/host/context.ts +188 -0
- package/src/host/forms.ts +240 -0
- package/src/host/frames.ts +349 -0
- package/src/host/host-app.ts +178 -0
- package/src/host/host-context.ts +49 -0
- package/src/host/host-routes.ts +396 -0
- package/src/host/pages.ts +266 -0
- package/src/host/reads.ts +155 -0
- package/src/host/retention.ts +41 -0
- package/src/host/room-views.ts +137 -0
- package/src/host/rooms-service.ts +429 -0
- package/src/host/stored-json.ts +13 -0
- package/src/host/views.ts +106 -0
- package/src/i18n/zh-tw.ts +139 -0
- package/src/index.ts +15 -1
- package/src/notices/api.ts +43 -0
- package/src/notices/mount.ts +292 -0
- package/src/notices/service.ts +294 -0
- package/src/notices/store.ts +298 -0
- package/src/notices/urls.ts +38 -0
- package/src/onboarding/api.ts +32 -0
- package/src/onboarding/service.ts +149 -0
- package/src/onboarding/steps.ts +75 -0
- package/src/onboarding/waivers.ts +40 -0
- package/src/options.ts +534 -34
- package/src/page-presentation.ts +47 -2
- package/src/profile/api.ts +175 -0
- package/src/profile/links.ts +162 -0
- package/src/push/api.ts +189 -52
- package/src/push/dispatch.ts +156 -0
- package/src/push/drain.ts +139 -0
- package/src/push/outbox.ts +218 -0
- package/src/push/prefs.ts +118 -0
- package/src/push/sender.ts +7 -2
- package/src/push/triggers.ts +56 -5
- package/src/push/vapid.ts +19 -0
- package/src/push/web-push-transport.ts +106 -0
- package/src/push-sender/index.ts +14 -0
- package/src/push-sender/run.ts +118 -0
- package/src/push-sender/session.ts +54 -0
- package/src/pwa.ts +32 -4
- package/src/visitors.ts +94 -6
- package/src/web-app.ts +718 -0
- package/src/web-plugin.ts +279 -26
- package/dist/chunk-action-menu-qe839g4b.js +0 -1
- package/dist/chunk-arranged-rooms-enpfswmg.js +0 -1
- package/dist/chunk-character-creator-6yf29xwx.js +0 -1
- package/dist/chunk-codeeditor-gdbdg7rp.js +0 -2
- package/dist/chunk-confirm-xrw7d732.js +0 -1
- package/dist/chunk-conversations-ry228aes.js +0 -1
- package/dist/chunk-folder-list-5cp8stna.js +0 -1
- package/dist/chunk-folds-hff104tk.js +0 -1
- package/dist/chunk-group-scene-h228jdat.js +0 -1
- package/dist/chunk-index-0p5h2kdz.js +0 -2
- package/dist/chunk-index-0pt08yd9.js +0 -1
- package/dist/chunk-index-12bw9yj8.js +0 -2
- package/dist/chunk-index-2ad17eh4.js +0 -2
- package/dist/chunk-index-31wh5twj.js +0 -52
- package/dist/chunk-index-4dy94pbz.js +0 -2
- package/dist/chunk-index-4ecjtdy8.js +0 -13
- package/dist/chunk-index-4v1b7ks9.js +0 -2
- package/dist/chunk-index-5d8yjj4m.js +0 -2
- package/dist/chunk-index-89ajmxh7.js +0 -2
- package/dist/chunk-index-b9ny4623.js +0 -2
- package/dist/chunk-index-e1dr6g10.js +0 -2
- package/dist/chunk-index-gpkzhq1g.js +0 -2
- package/dist/chunk-index-hk3xyy20.js +0 -2
- package/dist/chunk-index-jm23vn03.js +0 -4
- package/dist/chunk-index-k7gh0jvz.js +0 -2
- package/dist/chunk-index-ky42ev0b.js +0 -2
- package/dist/chunk-index-pa2yyqh0.js +0 -2
- package/dist/chunk-index-pcvt668q.js +0 -2
- package/dist/chunk-index-pqw27eye.js +0 -1
- package/dist/chunk-index-wmbmmrd4.js +0 -302
- package/dist/chunk-index-ymbjrsp6.js +0 -2
- package/dist/chunk-lang-css-t85r8rz0.js +0 -1
- package/dist/chunk-lang-html-n6jparge.js +0 -1
- package/dist/chunk-lang-javascript-xj00cp97.js +0 -1
- package/dist/chunk-lang-markdown-zxx8eke8.js +0 -6
- package/dist/chunk-lang-typescript-8f6yywt3.js +0 -1
- package/dist/chunk-layout-actions-bv0chj41.js +0 -1
- package/dist/chunk-notes-9b7pgqfe.js +0 -1
- package/dist/chunk-overview-8yw71esz.js +0 -1
- package/dist/chunk-palette-frms7axe.js +0 -1
- package/dist/chunk-placement-items-fvfy9m0y.js +0 -1
- package/dist/chunk-prompt-history-yrqehads.js +0 -1
- package/dist/chunk-prompts-g6609tqx.js +0 -1
- package/dist/chunk-room-confirms-0a2y0925.js +0 -1
- package/dist/chunk-room-menu-g11q97br.js +0 -1
- package/dist/chunk-rooms-menu-button-h9qge48n.js +0 -1
- package/dist/chunk-schedules-ezmacrbj.js +0 -1
- package/dist/chunk-sheet-hosts-b0azyfhb.js +0 -1
- package/dist/chunk-skill-editor-h6k6whwg.js +0 -8
- package/dist/chunk-skills-gqcfhq56.js +0 -1
- package/dist/chunk-switcher-list-mcpamqnj.js +0 -1
- package/dist/chunk-table-s8cde1xz.js +0 -1
- package/dist/chunk-table-seats-wqkjn8bc.js +0 -1
- package/dist/chunk-transcript-c59c6mpm.js +0 -1
- package/dist/chunk-workspace-0cyspkk4.js +0 -1
- package/dist/chunk-zh-tw-nc93jm10.js +0 -1
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import{h,a,o,B,ye,vi,or}from"./chunk-index-zynq0b0w.js";var w=!1;function In(){if(w||typeof document>"u")return;if(w=!0,typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in Document.prototype)try{let t=new CSSStyleSheet;t.replaceSync(`
|
|
2
|
+
.folder-body[hidden] {
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/* An empty place to drop (the pinned list, a folder of the drawer) shows only while a row is lifted. */
|
|
7
|
+
[data-empty] {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
[data-reordering] [data-empty] {
|
|
12
|
+
display: block;
|
|
13
|
+
min-height: 2.75rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Folders of the room list, and the lifted row or folder while it is dragged. */
|
|
17
|
+
.folder {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: var(--space-2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* An ordinary folder is a light section header, tappable, like the Home and Pinned labels: no box. */
|
|
24
|
+
.folder-head {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--space-2);
|
|
28
|
+
min-height: 2.75rem;
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* The fold button wears the section label. It sits under the base "button:hover:not(:disabled)"
|
|
34
|
+
* (an accent fill), which a plain class would lose to; so each state is named here, and none of them
|
|
35
|
+
* changes the text colour away from the page's own text.
|
|
36
|
+
*/
|
|
37
|
+
.folder-head .folder-toggle {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex: 1;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: flex-start;
|
|
42
|
+
gap: var(--space-2);
|
|
43
|
+
min-width: 0;
|
|
44
|
+
min-height: 2.75rem;
|
|
45
|
+
padding: 0 var(--space-2);
|
|
46
|
+
border: 0;
|
|
47
|
+
border-radius: var(--radius);
|
|
48
|
+
background: transparent;
|
|
49
|
+
color: var(--muted);
|
|
50
|
+
font-weight: var(--weight-medium);
|
|
51
|
+
text-align: left;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.folder-head .folder-toggle:hover:not(:disabled),
|
|
55
|
+
.folder-head .folder-toggle:active:not(:disabled),
|
|
56
|
+
.folder-head .folder-toggle:focus-visible {
|
|
57
|
+
border: 0;
|
|
58
|
+
background: color-mix(in srgb, var(--text) 8%, transparent);
|
|
59
|
+
color: var(--text);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.folder-head .folder-toggle:active:not(:disabled) {
|
|
63
|
+
transform: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.folder-toggle strong {
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
color: inherit;
|
|
69
|
+
font-size: var(--text-xs);
|
|
70
|
+
letter-spacing: 0.06em;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
text-transform: uppercase;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.folder-toggle .meta {
|
|
77
|
+
flex: none;
|
|
78
|
+
color: inherit;
|
|
79
|
+
font-size: var(--text-xs);
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* The pictures of a folded folder's rooms, overlapping, then how many more. */
|
|
84
|
+
.folder-stack {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex: none;
|
|
87
|
+
align-items: center;
|
|
88
|
+
margin-left: var(--space-1);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.folder-stack > * + * {
|
|
92
|
+
margin-left: -0.5rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.folder-stack-item,
|
|
96
|
+
.folder-stack-more {
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
flex: none;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
width: 1.75rem;
|
|
102
|
+
height: 1.75rem;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
border-radius: 50%;
|
|
105
|
+
background: var(--surface);
|
|
106
|
+
box-shadow: 0 0 0 2px var(--bg);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.folder-stack-more {
|
|
110
|
+
background: var(--surface-2);
|
|
111
|
+
color: var(--muted);
|
|
112
|
+
font-size: var(--text-xs);
|
|
113
|
+
font-weight: var(--weight-medium);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.folder-chevron {
|
|
117
|
+
flex: none;
|
|
118
|
+
transition: transform var(--dur-fast) var(--ease-out);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.folder-chevron[data-open] {
|
|
122
|
+
transform: rotate(90deg);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.folder-head .muted-mark[data-partial] {
|
|
126
|
+
opacity: 0.55;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.folder-more,
|
|
130
|
+
.row-more {
|
|
131
|
+
flex: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.folder-body {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
gap: var(--space-2);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.folder-empty {
|
|
141
|
+
margin: 0;
|
|
142
|
+
padding: var(--space-2) var(--space-3);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.room-list > li {
|
|
146
|
+
position: relative;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* The menu button sits over the row's right edge: the row keeps that strip clear of its chevron and time. */
|
|
150
|
+
.room-list > li[data-arranging] > .room-row {
|
|
151
|
+
padding-right: 3.75rem;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.room-list .row-more {
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: var(--space-2);
|
|
157
|
+
right: var(--space-2);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.arrange-bar {
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
justify-content: space-between;
|
|
164
|
+
gap: var(--space-3);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[data-drop-zone] {
|
|
168
|
+
position: relative;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-lifted] {
|
|
172
|
+
position: relative;
|
|
173
|
+
z-index: 5;
|
|
174
|
+
box-shadow: var(--shadow-3);
|
|
175
|
+
transition: none;
|
|
176
|
+
touch-action: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
[data-reordering] {
|
|
180
|
+
-webkit-user-select: none;
|
|
181
|
+
user-select: none;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
[data-reordering] [data-drop-item]:not([data-lifted]),
|
|
185
|
+
[data-reordering] [data-folder-block]:not([data-lifted]) {
|
|
186
|
+
transition: transform var(--dur-fast) var(--ease-out);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
[data-drop-target] {
|
|
190
|
+
outline: 2px dashed var(--accent);
|
|
191
|
+
outline-offset: 4px;
|
|
192
|
+
border-radius: var(--radius-lg);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.drop-line {
|
|
196
|
+
position: absolute;
|
|
197
|
+
left: 0;
|
|
198
|
+
right: 0;
|
|
199
|
+
height: 3px;
|
|
200
|
+
margin-top: -2px;
|
|
201
|
+
border-radius: 2px;
|
|
202
|
+
background: var(--accent);
|
|
203
|
+
pointer-events: none;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@media (prefers-reduced-motion: reduce) {
|
|
207
|
+
.folder-chevron,
|
|
208
|
+
[data-reordering] [data-drop-item]:not([data-lifted]),
|
|
209
|
+
[data-reordering] [data-folder-block]:not([data-lifted]) {
|
|
210
|
+
transition: none;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
`),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];return}catch{}let n=document.createElement("style");n.textContent=`
|
|
214
|
+
.folder-body[hidden] {
|
|
215
|
+
display: none;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* An empty place to drop (the pinned list, a folder of the drawer) shows only while a row is lifted. */
|
|
219
|
+
[data-empty] {
|
|
220
|
+
display: none;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
[data-reordering] [data-empty] {
|
|
224
|
+
display: block;
|
|
225
|
+
min-height: 2.75rem;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/* Folders of the room list, and the lifted row or folder while it is dragged. */
|
|
229
|
+
.folder {
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
gap: var(--space-2);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* An ordinary folder is a light section header, tappable, like the Home and Pinned labels: no box. */
|
|
236
|
+
.folder-head {
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: var(--space-2);
|
|
240
|
+
min-height: 2.75rem;
|
|
241
|
+
padding: 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/*
|
|
245
|
+
* The fold button wears the section label. It sits under the base "button:hover:not(:disabled)"
|
|
246
|
+
* (an accent fill), which a plain class would lose to; so each state is named here, and none of them
|
|
247
|
+
* changes the text colour away from the page's own text.
|
|
248
|
+
*/
|
|
249
|
+
.folder-head .folder-toggle {
|
|
250
|
+
display: flex;
|
|
251
|
+
flex: 1;
|
|
252
|
+
align-items: center;
|
|
253
|
+
justify-content: flex-start;
|
|
254
|
+
gap: var(--space-2);
|
|
255
|
+
min-width: 0;
|
|
256
|
+
min-height: 2.75rem;
|
|
257
|
+
padding: 0 var(--space-2);
|
|
258
|
+
border: 0;
|
|
259
|
+
border-radius: var(--radius);
|
|
260
|
+
background: transparent;
|
|
261
|
+
color: var(--muted);
|
|
262
|
+
font-weight: var(--weight-medium);
|
|
263
|
+
text-align: left;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.folder-head .folder-toggle:hover:not(:disabled),
|
|
267
|
+
.folder-head .folder-toggle:active:not(:disabled),
|
|
268
|
+
.folder-head .folder-toggle:focus-visible {
|
|
269
|
+
border: 0;
|
|
270
|
+
background: color-mix(in srgb, var(--text) 8%, transparent);
|
|
271
|
+
color: var(--text);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.folder-head .folder-toggle:active:not(:disabled) {
|
|
275
|
+
transform: none;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.folder-toggle strong {
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
color: inherit;
|
|
281
|
+
font-size: var(--text-xs);
|
|
282
|
+
letter-spacing: 0.06em;
|
|
283
|
+
text-overflow: ellipsis;
|
|
284
|
+
text-transform: uppercase;
|
|
285
|
+
white-space: nowrap;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.folder-toggle .meta {
|
|
289
|
+
flex: none;
|
|
290
|
+
color: inherit;
|
|
291
|
+
font-size: var(--text-xs);
|
|
292
|
+
white-space: nowrap;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* The pictures of a folded folder's rooms, overlapping, then how many more. */
|
|
296
|
+
.folder-stack {
|
|
297
|
+
display: flex;
|
|
298
|
+
flex: none;
|
|
299
|
+
align-items: center;
|
|
300
|
+
margin-left: var(--space-1);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.folder-stack > * + * {
|
|
304
|
+
margin-left: -0.5rem;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.folder-stack-item,
|
|
308
|
+
.folder-stack-more {
|
|
309
|
+
display: inline-flex;
|
|
310
|
+
flex: none;
|
|
311
|
+
align-items: center;
|
|
312
|
+
justify-content: center;
|
|
313
|
+
width: 1.75rem;
|
|
314
|
+
height: 1.75rem;
|
|
315
|
+
overflow: hidden;
|
|
316
|
+
border-radius: 50%;
|
|
317
|
+
background: var(--surface);
|
|
318
|
+
box-shadow: 0 0 0 2px var(--bg);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.folder-stack-more {
|
|
322
|
+
background: var(--surface-2);
|
|
323
|
+
color: var(--muted);
|
|
324
|
+
font-size: var(--text-xs);
|
|
325
|
+
font-weight: var(--weight-medium);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.folder-chevron {
|
|
329
|
+
flex: none;
|
|
330
|
+
transition: transform var(--dur-fast) var(--ease-out);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.folder-chevron[data-open] {
|
|
334
|
+
transform: rotate(90deg);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.folder-head .muted-mark[data-partial] {
|
|
338
|
+
opacity: 0.55;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.folder-more,
|
|
342
|
+
.row-more {
|
|
343
|
+
flex: none;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.folder-body {
|
|
347
|
+
display: flex;
|
|
348
|
+
flex-direction: column;
|
|
349
|
+
gap: var(--space-2);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.folder-empty {
|
|
353
|
+
margin: 0;
|
|
354
|
+
padding: var(--space-2) var(--space-3);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.room-list > li {
|
|
358
|
+
position: relative;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* The menu button sits over the row's right edge: the row keeps that strip clear of its chevron and time. */
|
|
362
|
+
.room-list > li[data-arranging] > .room-row {
|
|
363
|
+
padding-right: 3.75rem;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.room-list .row-more {
|
|
367
|
+
position: absolute;
|
|
368
|
+
top: var(--space-2);
|
|
369
|
+
right: var(--space-2);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.arrange-bar {
|
|
373
|
+
display: flex;
|
|
374
|
+
align-items: center;
|
|
375
|
+
justify-content: space-between;
|
|
376
|
+
gap: var(--space-3);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
[data-drop-zone] {
|
|
380
|
+
position: relative;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
[data-lifted] {
|
|
384
|
+
position: relative;
|
|
385
|
+
z-index: 5;
|
|
386
|
+
box-shadow: var(--shadow-3);
|
|
387
|
+
transition: none;
|
|
388
|
+
touch-action: none;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
[data-reordering] {
|
|
392
|
+
-webkit-user-select: none;
|
|
393
|
+
user-select: none;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
[data-reordering] [data-drop-item]:not([data-lifted]),
|
|
397
|
+
[data-reordering] [data-folder-block]:not([data-lifted]) {
|
|
398
|
+
transition: transform var(--dur-fast) var(--ease-out);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
[data-drop-target] {
|
|
402
|
+
outline: 2px dashed var(--accent);
|
|
403
|
+
outline-offset: 4px;
|
|
404
|
+
border-radius: var(--radius-lg);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.drop-line {
|
|
408
|
+
position: absolute;
|
|
409
|
+
left: 0;
|
|
410
|
+
right: 0;
|
|
411
|
+
height: 3px;
|
|
412
|
+
margin-top: -2px;
|
|
413
|
+
border-radius: 2px;
|
|
414
|
+
background: var(--accent);
|
|
415
|
+
pointer-events: none;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@media (prefers-reduced-motion: reduce) {
|
|
419
|
+
.folder-chevron,
|
|
420
|
+
[data-reordering] [data-drop-item]:not([data-lifted]),
|
|
421
|
+
[data-reordering] [data-folder-block]:not([data-lifted]) {
|
|
422
|
+
transition: none;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
`,document.head.append(n)}var k=()=>(h("48ecgtkg"),import("./chunk-layout-actions-48ecgtkg.js")),Dn=(n)=>({mode:"room",key:n,item:(t)=>t.closest("[data-drop-item]"),root:(t)=>t.closest("[data-drop-root]"),onDrop:(t)=>{if(t.type==="room")k().then((i)=>i.dropRoom(n,t.drop))},open:(t)=>void (h("hvws0bd5"),import("./chunk-folds-hvws0bd5.js")).then((i)=>i.expandFolder(t))});var g=!1,{emit:T,use:D}=B(),Un=()=>D(()=>g);function Zi(n){if(g===n)return;g=n,T()}var H=6,E=()=>(h("peyb8t0k"),import("./chunk-drag-peyb8t0k.js"));var M=()=>{return},S=0;function C(){if(S++===0)window.addEventListener("touchmove",M,{passive:!1});return()=>{if(--S===0)window.removeEventListener("touchmove",M)}}function Xt(n,t){let i=o(t);i.current=t;let v=t!==void 0;a(()=>v?C():void 0,[v]);let d=o(void 0),u=o(void 0),p=o(!1),L=(e,r,s)=>n(e).then((c)=>{if(c)ye({...c,at:r,via:s,source:e})},()=>{return}),y=(e,r,s,c)=>{let f=i.current,x=f?.item(e),b=f?.root(e);if(!f||!x||!b)return!1;return u.current??=E(),u.current.then(({lift:P})=>{if(d.current?.id!==r)return c();P({mode:f.mode,key:f.key,item:x,root:b,pointerId:r,y:s(),open:f.open,done:(m)=>{if(m.type==="tap")c();else if(m.type!=="cancel")f.onDrop(m)}})},c),!0},l=vi((e)=>{let r=()=>L(e.source,e.at,e.via),s=d.current;if(!(e.via==="hold"||e.via==="contextmenu"&&s?.touch)||!s)return void r();if(!y(e.source,s.id,()=>s.y,r))return void r();if(e.via==="contextmenu")p.current=!0});return{...l,onPointerDown(e){if(p.current=!1,d.current={id:e.pointerId,x:e.clientX,y:e.clientY,touch:e.pointerType!=="mouse"},e.pointerType!=="mouse"&&or(e.clientX,window.innerWidth))d.current=void 0;else if(i.current)u.current??=E();l.onPointerDown(e)},onPointerMove(e){let r=d.current;if(r?.id===e.pointerId){if(e.pointerType==="mouse"&&e.buttons===1&&!p.current&&i.current&&Math.hypot(e.clientX-r.x,e.clientY-r.y)>H)p.current=y(e.currentTarget,e.pointerId,()=>e.clientY,()=>{return});r.y=e.clientY}l.onPointerMove(e)},onPointerUp(e){if(d.current?.id===e.pointerId)d.current=void 0;l.onPointerUp(e)},onPointerCancel(e){if(d.current?.id===e.pointerId)d.current=void 0;l.onPointerCancel(e)},onContextMenu:l.onContextMenu,onKeyDown:l.onKeyDown,onClickCapture(e){if(p.current){p.current=!1,e.preventDefault(),e.stopPropagation();return}l.onClickCapture(e)},onDragStart(e){e.preventDefault()}}}
|
|
426
|
+
export{In,Dn,Un,Zi,Xt};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Me}from"./chunk-index-wrm8w165.js";import{t,ye,Ss,Kn}from"./chunk-index-zynq0b0w.js";function Ln(e){let n=e.getBoundingClientRect(),o=Ss();ye({title:t("Rooms"),items:[{id:"new-folder",label:t("Add a folder"),icon:"plus",run:()=>Me({kind:"new"})},{id:"arrange",label:o?t("Done"):t("Arrange"),icon:o?"check":"list",run:()=>Kn(!o)}],at:{x:n.left,y:n.bottom},via:"key",source:e})}
|
|
2
|
+
export{Ln};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import{e,n}from"./chunk-index-zynq0b0w.js";var r=!1;function a(){if(r||typeof document>"u")return;if(r=!0,typeof CSSStyleSheet<"u"&&"adoptedStyleSheets"in Document.prototype)try{let o=new CSSStyleSheet;o.replaceSync(`
|
|
2
|
+
/* One choice of how to write, in the composer's column over the bar, wherever the pane is wide. */
|
|
3
|
+
.mode-toggle {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
align-self: flex-start;
|
|
7
|
+
gap: var(--space-2);
|
|
8
|
+
min-height: var(--touch);
|
|
9
|
+
padding: 0 var(--space-3) 0 var(--space-1);
|
|
10
|
+
border: 1px solid transparent;
|
|
11
|
+
border-radius: var(--radius-full);
|
|
12
|
+
background: none;
|
|
13
|
+
color: var(--muted);
|
|
14
|
+
font-size: var(--text-sm);
|
|
15
|
+
font-weight: var(--weight-medium);
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.mode-toggle[aria-checked="true"] {
|
|
20
|
+
color: var(--text);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.mode-toggle:hover:not(:disabled) {
|
|
24
|
+
background: var(--surface);
|
|
25
|
+
border-color: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mode-toggle:disabled {
|
|
29
|
+
cursor: default;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.mode-toggle-track {
|
|
33
|
+
position: relative;
|
|
34
|
+
flex: none;
|
|
35
|
+
width: 2.25rem;
|
|
36
|
+
height: 1.35rem;
|
|
37
|
+
border: 1px solid var(--control-border);
|
|
38
|
+
border-radius: var(--radius-full);
|
|
39
|
+
background: var(--surface-3);
|
|
40
|
+
transition:
|
|
41
|
+
background-color var(--dur) var(--ease-out),
|
|
42
|
+
border-color var(--dur) var(--ease-out);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.mode-toggle-track::after {
|
|
46
|
+
content: "";
|
|
47
|
+
position: absolute;
|
|
48
|
+
left: 2px;
|
|
49
|
+
top: 50%;
|
|
50
|
+
width: 1rem;
|
|
51
|
+
height: 1rem;
|
|
52
|
+
margin-top: -0.5rem;
|
|
53
|
+
border-radius: var(--radius-full);
|
|
54
|
+
background: var(--control-border);
|
|
55
|
+
transition:
|
|
56
|
+
transform var(--dur) var(--ease-out),
|
|
57
|
+
background-color var(--dur) var(--ease-out);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.mode-toggle[aria-checked="true"] .mode-toggle-track {
|
|
61
|
+
border-color: var(--accent);
|
|
62
|
+
background: var(--accent);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.mode-toggle[aria-checked="true"] .mode-toggle-track::after {
|
|
66
|
+
background: var(--bg);
|
|
67
|
+
transform: translateX(0.9rem);
|
|
68
|
+
}
|
|
69
|
+
`),document.adoptedStyleSheets=[...document.adoptedStyleSheets,o];return}catch{}let t=document.createElement("style");t.textContent=`
|
|
70
|
+
/* One choice of how to write, in the composer's column over the bar, wherever the pane is wide. */
|
|
71
|
+
.mode-toggle {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
align-self: flex-start;
|
|
75
|
+
gap: var(--space-2);
|
|
76
|
+
min-height: var(--touch);
|
|
77
|
+
padding: 0 var(--space-3) 0 var(--space-1);
|
|
78
|
+
border: 1px solid transparent;
|
|
79
|
+
border-radius: var(--radius-full);
|
|
80
|
+
background: none;
|
|
81
|
+
color: var(--muted);
|
|
82
|
+
font-size: var(--text-sm);
|
|
83
|
+
font-weight: var(--weight-medium);
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.mode-toggle[aria-checked="true"] {
|
|
88
|
+
color: var(--text);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.mode-toggle:hover:not(:disabled) {
|
|
92
|
+
background: var(--surface);
|
|
93
|
+
border-color: transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.mode-toggle:disabled {
|
|
97
|
+
cursor: default;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.mode-toggle-track {
|
|
101
|
+
position: relative;
|
|
102
|
+
flex: none;
|
|
103
|
+
width: 2.25rem;
|
|
104
|
+
height: 1.35rem;
|
|
105
|
+
border: 1px solid var(--control-border);
|
|
106
|
+
border-radius: var(--radius-full);
|
|
107
|
+
background: var(--surface-3);
|
|
108
|
+
transition:
|
|
109
|
+
background-color var(--dur) var(--ease-out),
|
|
110
|
+
border-color var(--dur) var(--ease-out);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.mode-toggle-track::after {
|
|
114
|
+
content: "";
|
|
115
|
+
position: absolute;
|
|
116
|
+
left: 2px;
|
|
117
|
+
top: 50%;
|
|
118
|
+
width: 1rem;
|
|
119
|
+
height: 1rem;
|
|
120
|
+
margin-top: -0.5rem;
|
|
121
|
+
border-radius: var(--radius-full);
|
|
122
|
+
background: var(--control-border);
|
|
123
|
+
transition:
|
|
124
|
+
transform var(--dur) var(--ease-out),
|
|
125
|
+
background-color var(--dur) var(--ease-out);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.mode-toggle[aria-checked="true"] .mode-toggle-track {
|
|
129
|
+
border-color: var(--accent);
|
|
130
|
+
background: var(--accent);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.mode-toggle[aria-checked="true"] .mode-toggle-track::after {
|
|
134
|
+
background: var(--bg);
|
|
135
|
+
transform: translateX(0.9rem);
|
|
136
|
+
}
|
|
137
|
+
`,document.head.append(t)}a();function Vi(t){return n("button",{type:"button",role:"switch","aria-checked":t.on,className:"mode-toggle",disabled:t.locked!==void 0,title:t.locked,onClick:()=>t.onChange(!t.on),children:[e("span",{className:"mode-toggle-track","aria-hidden":"true"}),t.label]})}
|
|
138
|
+
export{Vi};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var x={bg:"#0a1130",ink:"#0b0f1e",stone:"#3c4a6d",stoneShade:"#2a3555",stoneJoint:"#1d2745",floor:"#2b3756",floorJoint:"#1b2442",rune:"#3fe6cb",runeGlow:0.9,wood:"#5b3a22",woodDark:"#3a2314",woodLight:"#7d5231",gold:"#e3b24b",goldDark:"#9a6c1d",banner:"#1b5160",bannerEdge:"#e3b24b",glass:"#2e53a3",glassLight:"#5f86d6",glassDark:"#1b2f66",sky:"#f6f3da",beam:"#9fb9ff",beamAlpha:0.14,flame:"#ffb23a",flameCore:"#fff0a8",ambient:"#6f86c9",ambientI:1.55,key:"#aebfff",keyI:1.4,plateInk:"#3a2410",paper:"#f4efe3",spot:"#ffe29a",night:!0,additive:!0,css:{bg:"#0a1130",floor:"#2b3756",ring:"#3fe6cb",text:"#f4efe3",plate:"#e3b24b"}},h={bg:"#e8dcc0",ink:"#2a2036",stone:"#b9ae9a",stoneShade:"#938873",stoneJoint:"#756b5a",floor:"#cfc2a6",floorJoint:"#a79a80",rune:"#1c9d8f",runeGlow:0.75,wood:"#8c5a33",woodDark:"#5d3a20",woodLight:"#ab7443",gold:"#e0a92f",goldDark:"#936718",banner:"#2c7283",bannerEdge:"#e0a92f",glass:"#8dbbe6",glassLight:"#c4e0f6",glassDark:"#5d8dc2",sky:"#ffe9a6",beam:"#fff0b4",beamAlpha:0.2,flame:"#ff9a2c",flameCore:"#ffe7a0",ambient:"#fff1d4",ambientI:2.1,key:"#ffe3b0",keyI:1.6,plateInk:"#3a2410",paper:"#fffaf0",spot:"#fff0b0",night:!1,additive:!1,css:{bg:"#e8dcc0",floor:"#cfc2a6",ring:"#1c9d8f",text:"#2a2036",plate:"#e0a92f"}},H={modern:{dark:{banner:x.banner,bannerEdge:x.gold,gold:x.gold,goldDark:x.goldDark},light:{banner:h.banner,bannerEdge:h.gold,gold:h.gold,goldDark:h.goldDark}},camelot:{dark:{banner:"#6b1f3f",bannerEdge:"#f0c35a",gold:"#f0c35a",goldDark:"#a8791f"},light:{banner:"#9b2a45",bannerEdge:"#e6b436",gold:"#e6b436",goldDark:"#9a6b14"}}},
|
|
2
|
-
export{
|
|
1
|
+
var x={bg:"#0a1130",ink:"#0b0f1e",stone:"#3c4a6d",stoneShade:"#2a3555",stoneJoint:"#1d2745",floor:"#2b3756",floorJoint:"#1b2442",rune:"#3fe6cb",runeGlow:0.9,wood:"#5b3a22",woodDark:"#3a2314",woodLight:"#7d5231",gold:"#e3b24b",goldDark:"#9a6c1d",banner:"#1b5160",bannerEdge:"#e3b24b",glass:"#2e53a3",glassLight:"#5f86d6",glassDark:"#1b2f66",sky:"#f6f3da",beam:"#9fb9ff",beamAlpha:0.14,flame:"#ffb23a",flameCore:"#fff0a8",ambient:"#6f86c9",ambientI:1.55,key:"#aebfff",keyI:1.4,plateInk:"#3a2410",paper:"#f4efe3",spot:"#ffe29a",night:!0,additive:!0,css:{bg:"#0a1130",floor:"#2b3756",ring:"#3fe6cb",text:"#f4efe3",plate:"#e3b24b"}},h={bg:"#e8dcc0",ink:"#2a2036",stone:"#b9ae9a",stoneShade:"#938873",stoneJoint:"#756b5a",floor:"#cfc2a6",floorJoint:"#a79a80",rune:"#1c9d8f",runeGlow:0.75,wood:"#8c5a33",woodDark:"#5d3a20",woodLight:"#ab7443",gold:"#e0a92f",goldDark:"#936718",banner:"#2c7283",bannerEdge:"#e0a92f",glass:"#8dbbe6",glassLight:"#c4e0f6",glassDark:"#5d8dc2",sky:"#ffe9a6",beam:"#fff0b4",beamAlpha:0.2,flame:"#ff9a2c",flameCore:"#ffe7a0",ambient:"#fff1d4",ambientI:2.1,key:"#ffe3b0",keyI:1.6,plateInk:"#3a2410",paper:"#fffaf0",spot:"#fff0b0",night:!1,additive:!1,css:{bg:"#e8dcc0",floor:"#cfc2a6",ring:"#1c9d8f",text:"#2a2036",plate:"#e0a92f"}},H={modern:{dark:{banner:x.banner,bannerEdge:x.gold,gold:x.gold,goldDark:x.goldDark},light:{banner:h.banner,bannerEdge:h.gold,gold:h.gold,goldDark:h.goldDark}},camelot:{dark:{banner:"#6b1f3f",bannerEdge:"#f0c35a",gold:"#f0c35a",goldDark:"#a8791f"},light:{banner:"#9b2a45",bannerEdge:"#e6b436",gold:"#e6b436",goldDark:"#9a6b14"}}},gn=(n,e)=>({...e==="dark"?x:h,...H[n][e]}),Wi={done:"#58c878",error:"#ee4b4b"};var z=(n)=>{let e=n.codePointAt(0)??0;return e>=11904&&e<=64255?1:e>=65280&&e<=65519?1:0.6};function M(n,e){if(e(n))return n;let t=Array.from(n);while(t.length>1){t.pop();let r=`${t.join("").trimEnd()}…`;if(e(r))return r}return"…"}function Yi(n,e){let t=(r)=>Array.from(r).reduce((a,o)=>a+z(o),0);return M(n,(r)=>t(r)<=e)}var _t='system-ui, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif',P=(n)=>`700 ${n}px ${_t}`;function L(n,e,t,r){let a=t*0.86,o=Math.round(r*0.56),s=Math.round(r*0.36),l=(i,c)=>(n.font=P(c),n.measureText(i).width);for(let i=o;i>=s;i-=2)if(l(e,i)<=a)return{text:e,px:i,font:P(i)};return{text:M(e,(i)=>l(i,s)<=a),px:s,font:P(s)}}function Wr(n,e,t,r,a){let o=Math.max(3,r*0.07);n.fillStyle=a.ink,n.fillRect(0,0,t,r);let s=n.createLinearGradient?.(0,0,0,r);if(s)s.addColorStop(0,a.gold),s.addColorStop(0.55,a.gold),s.addColorStop(1,a.goldDark),n.fillStyle=s;else n.fillStyle=a.gold;n.fillRect(o,o,t-o*2,r-o*2),n.strokeStyle=a.goldDark,n.lineWidth=Math.max(1,r*0.03),n.beginPath(),n.moveTo(o*2,o*2),n.lineTo(t-o*2,o*2),n.lineTo(t-o*2,r-o*2),n.lineTo(o*2,r-o*2),n.closePath(),n.stroke(),n.fillStyle=a.goldDark;for(let u of[o*3.4,t-o*3.4])n.beginPath(),n.arc(u,r/2,Math.max(1.4,r*0.04),0,Math.PI*2),n.fill();let l=L(n,e,t-o*4,r);return n.font=l.font,n.fillStyle=a.plateInk,n.textAlign="center",n.textBaseline="middle",n.fillText(l.text,t/2,r/2+r*0.03),l}var zt=Math.PI*2;function Yt(n){let e=((n+Math.PI)%zt+zt)%zt-Math.PI;return e===-Math.PI?Math.PI:e}var g=(n,e)=>Yt(e-n);function li(n){let e=Math.min(Math.max(n,0),12),t=Math.max(n-12,0);return{count:1+e+(t>0?1:0),seated:e,more:t}}var F=0.62,w=(n)=>Math.min(zt/Math.max(n,1),F),It=(n,e)=>n===0?0:Yt(Math.PI+(n-e/2)*w(e)),kt=(n)=>Math.max(4.2,2.6/(2*Math.sin(w(n)/2)));function O(n,e){let t=0,r=Number.POSITIVE_INFINITY;for(let a=0;a<e;a+=1){let o=Math.abs(g(n,It(a,e)));if(o<r-0.000000001)r=o,t=a}return t}var Hi=(n,e)=>It(O(n,e),e);function Yr(n,e){if(e.seated===0)return;let t=Yt(n+Math.PI),r,a=Number.POSITIVE_INFINITY;for(let o=1;o<=e.seated;o+=1){let s=Math.abs(g(t,It(o,e.count)));if(s<a-0.000000001)a=s,r=o}return r}var A=1.65,Y=1.06,G=44,X=390,W=4.8,S=0.07,y=3;function B(n,e,t){let{position:r,target:a}=ji(n),o=I([a[0]-r[0],a[1]-r[1],a[2]-r[2]]),s=I(E(o,[0,1,0])),l=E(s,o),u=[t[0]-r[0],t[1]-r[1],t[2]-r[2]],i=k(u,o),c=Math.tan(Ki(n.fov,e)*Math.PI/360),f=i>0.000001?i:Number.NaN;return{x:k(u,s)/(f*c*e),y:k(u,l)/(f*c),depth:i}}var k=(n,e)=>n[0]*e[0]+n[1]*e[1]+n[2]*e[2],E=(n,e)=>[n[1]*e[2]-n[2]*e[1],n[2]*e[0]-n[0]*e[2],n[0]*e[1]-n[1]*e[0]],I=(n)=>{let e=Math.hypot(n[0],n[1],n[2])||1;return[n[0]/e,n[1]/e,n[2]/e]};function J(n){let e=kt(n),t=[];for(let r=1;r<n;r+=1){let a=It(r,n),o=Math.cos(a),s=-Math.sin(a);for(let l of[-1,1])for(let u of[0,W])t.push([Math.sin(a)*e+o*l*A,u,Math.cos(a)*e+s*l*A])}return t}function T(n,e,t,r=S,a=r){let o=1-a,s=1-r;return t.every((l)=>{let u=B(n,e,l);return Math.abs(u.x)<=o&&Math.abs(u.y)<=s})}var lt=2.9,U=0.7,V=0.2,j=0.8;function Hr(n,e,t){let r=t[0]-n[0],a=t[2]-n[2],o=Math.hypot(r,a)||1,s=a/o,l=-r/o,u=lt*U/2,i=lt*e,c=n[1]+i/2-i*V,f=n[1]+i/2-i*j,p=[];for(let m of[-1,1])for(let C of[c,f])p.push([n[0]+s*m*u,C,n[2]+l*m*u]);return p}function K(n){let e=kt(n),t=[];for(let r=1;r<n;r+=1){let a=It(r,n);t.push([Math.sin(a)*e,Y,Math.cos(a)*e])}return t}function _(n,e){return{...n,r:n.lookR+(n.r-n.lookR)*e,y:n.lookY+(n.y-n.lookY)*e}}function yn(n,e,t=1.6,r=X){let a=kt(e),o={az:n,r:a+4.4,y:4.4+a*0.1,aim:0,lookR:-1.6,lookY:2.5,roll:0,fov:46};if(!(t>0))return o;let s=J(e),l=K(e),u=S+G/(Math.max(r,1)/2);for(let i=1;i<=y;i+=0.02){let c=_(o,i);if(T(c,t,s)&&T(c,t,l,S,u))return c}return _(o,y)}function jr(n,e){let t=kt(e),r=0.18;return{az:Yt(n+0.18),r:Math.max(t-3.9,0.5),y:1.8,aim:-0.18,lookR:t+0.1,lookY:1.7,roll:-0.16,fov:58}}var d=(n,e,t)=>n+(e-n)*t;function Kr(n,e,t){return{az:Yt(n.az+g(n.az,e.az)*t),r:d(n.r,e.r,t),y:d(n.y,e.y,t),aim:d(n.aim,e.aim,t),lookR:d(n.lookR,e.lookR,t),lookY:d(n.lookY,e.lookY,t),roll:d(n.roll,e.roll,t),fov:d(n.fov,e.fov,t)}}var ci=(n)=>{let e=Math.min(1,Math.max(0,n));return e<0.5?4*e*e*e:1-(-2*e+2)**3/2},v=450,Z=650;function Jr(n,e,t){if(t)return{ms:0,cut:!0};let r=Math.abs(g(n.az,e.az))/Math.PI;return{ms:Math.round(v+(Z-v)*r),cut:!1}}function ji(n){let e=n.az+n.aim;return{position:[Math.sin(n.az)*n.r,n.y,Math.cos(n.az)*n.r],target:[Math.sin(e)*n.lookR,n.lookY,Math.cos(e)*n.lookR]}}function es(n,e){let t=It(n,e),r=kt(e);return{x:Math.sin(t)*r,z:Math.cos(t)*r,yaw:t+Math.PI}}var ts=(n,e)=>-n/Math.max(e,1)*(Math.PI/2),D=32;function ns(n,e,t,r){let a=(o,s,l)=>o-s<D||l-o<D;return a(n,0,r.width)||a(e,0,r.height)||a(n,t.left,t.left+t.width)||a(e,t.top,t.top+t.height)}function is(n,e){if(Math.abs(n)<0.000001)return"none";if(n<0)return e?"none":"in";return e?"out":"none"}function Ki(n,e){if(!(e>0)||e>=1.2)return n;return Math.min(n*(1+(1.2-e)*0.55),95)}var Ht=720,R=260,q=380,N=600,jt=850,Tt=160,rs=4.2,Q=0.35;function qn(n,e,t){let r=new Set(n),a=new Set(e),o=n.filter((m)=>!a.has(m)),s=e.filter((m)=>!r.has(m)),l=e.filter((m)=>r.has(m)),u={leaving:o,joining:s,staying:l,swapAt:0,glideEnd:0,riseAt:0,riseEnd:0,total:0};if(o.length===0&&s.length===0)return{mode:"cut",...u};if(t)return{mode:"fade",...u,swapAt:Tt,glideEnd:Tt,riseAt:Tt,riseEnd:Tt,total:Tt*2};let i=o.length>0?q:0,c=i+N,f=c,p=s.length>0?f+jt:c;return{mode:"play",...u,swapAt:i,glideEnd:c,riseAt:f,riseEnd:p,total:Math.max(o.length>0?Ht:0,c,s.length>0?p:0)}}var b=(n,e=0,t=1)=>Math.min(t,Math.max(e,n));function ui(n){let e=b(n),t=1.70158;return 1+2.70158*(e-1)**3+1.70158*(e-1)**2}function ss(n){let e=Math.sin(Math.PI*b(n/R));return{scaleX:1+0.08*e,scaleY:1-0.14*e,gone:n>=R,puff:b(n/Ht)}}function di(n){if(n<0)return{shown:!1,depth:1,circle:0,light:0,spin:0,named:!1};let e=b(n/jt),t=b((e-0.25)/0.6),r=1-ui(t);return{shown:e>=0.25,depth:r,named:e>=0.25&&r<=Q,circle:b(e/0.25)*b((1-e)/0.2),light:Math.sin(Math.PI*b((e-0.2)/0.7)),spin:e*Math.PI*1.5}}var as=(n)=>ci(b(n/N)),os=(n,e,t)=>n+g(n,e)*t;
|
|
2
|
+
export{gn,Wi,Yi,_t,Wr,zt,Yt,li,It,kt,Hi,Yr,lt,Hr,yn,jr,Kr,ci,Jr,ji,es,ts,ns,is,Ki,Ht,jt,Tt,rs,qn,ui,ss,di,as,os};
|