pi-roundtable-web 0.29.2 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +3 -3
- package/dist/chunk-account-51nmc9g6.js +1 -0
- package/dist/{chunk-action-menu-37zgbhje.js → chunk-action-menu-mxcvx4a1.js} +1 -1
- package/dist/chunk-agent-x53f7c2h.js +1 -0
- package/dist/chunk-arranged-rooms-1w3zqdtt.js +1 -0
- package/dist/{chunk-attachments-3vbj05g5.js → chunk-attachments-qbv5ar62.js} +2 -2
- package/dist/chunk-bulk-actions-aktwxqc9.js +1 -0
- package/dist/{chunk-character-creator-bg3tdc8p.js → chunk-character-creator-1mfybhjz.js} +2 -2
- package/dist/{chunk-codeeditor-102wa9bj.js → chunk-codeeditor-y2emmmr0.js} +2 -2
- package/dist/chunk-command-menu-sj2kfe4d.js +59 -0
- package/dist/chunk-confirm-ex5kc1st.js +1 -0
- package/dist/{chunk-connectors-0jzzren3.js → chunk-connectors-1nmm8yc3.js} +2 -2
- package/dist/{chunk-conversations-3276jq4q.js → chunk-conversations-ec3aqjxs.js} +1 -1
- package/dist/chunk-council-sheet-hdsg3fes.js +2 -0
- package/dist/chunk-council-view-sba8fs4c.js +1 -0
- package/dist/{chunk-drag-sw692nr3.js → chunk-drag-pkghf4ts.js} +1 -1
- package/dist/{chunk-entry-mb6jd983.js → chunk-entry-e24gjxtd.js} +1 -1
- package/dist/{chunk-folder-list-g7st6p1e.js → chunk-folder-list-kghgyc0x.js} +1 -1
- package/dist/chunk-folds-crd9k375.js +1 -0
- package/dist/chunk-gate-xay9vedw.js +1 -0
- package/dist/chunk-host-icons-y9hd1qqd.js +1 -0
- package/dist/chunk-host-picture-k16n5wm3.js +1 -0
- package/dist/chunk-host-state-1mbsrmhk.js +1 -0
- package/dist/chunk-host-ui-4pymhn6v.js +1 -0
- package/dist/{chunk-index-e8535c4h.js → chunk-index-0dyf2gdm.js} +2 -2
- package/dist/chunk-index-14cxgacv.js +2 -0
- package/dist/{chunk-index-edjyj761.js → chunk-index-37g8ggry.js} +1 -1
- package/dist/chunk-index-39gw0qhr.js +2 -0
- package/dist/chunk-index-4p45h04z.js +2 -0
- package/dist/chunk-index-5e8wn6r3.js +2 -0
- package/dist/chunk-index-65p4hfkr.js +2 -0
- package/dist/{chunk-index-6yfcfcc8.js → chunk-index-6e9nmad3.js} +1 -1
- package/dist/chunk-index-6f4qvp5p.js +2 -0
- package/dist/{chunk-index-yn1vvxj2.js → chunk-index-6hy2fabj.js} +1 -1
- package/dist/{chunk-index-0qzqzp6t.js → chunk-index-6j75embz.js} +2 -2
- package/dist/{chunk-index-1tkzdy4s.js → chunk-index-70pq2k7q.js} +2 -2
- package/dist/{chunk-index-7gk2sdf4.js → chunk-index-726w3145.js} +3 -3
- package/dist/chunk-index-86x6b7dx.js +3 -0
- package/dist/chunk-index-8cxmgzhy.js +2 -0
- package/dist/{chunk-index-gmbk3sra.js → chunk-index-93dr9fh8.js} +1 -1
- package/dist/chunk-index-97238pp8.js +2 -0
- package/dist/{chunk-index-7p31pda8.js → chunk-index-ads1abh1.js} +3 -3
- package/dist/{chunk-index-jrj09r5c.js → chunk-index-awc03q99.js} +2 -2
- package/dist/chunk-index-bh6m0bpm.js +2 -0
- package/dist/chunk-index-br1wechm.js +2 -0
- package/dist/{chunk-index-qedt9szy.js → chunk-index-c8vsw9h8.js} +2 -2
- package/dist/{chunk-index-mey1p7h8.js → chunk-index-cd0ymvtj.js} +2 -2
- package/dist/{chunk-index-50w6yq2d.js → chunk-index-e3encn5p.js} +1 -1
- package/dist/{chunk-index-d941ae7c.js → chunk-index-fw6kawhw.js} +2 -2
- package/dist/{chunk-index-6ycrvwzs.js → chunk-index-g3f1sdw0.js} +2 -2
- package/dist/{chunk-index-6cs1wvhy.js → chunk-index-gae833v6.js} +1 -1
- package/dist/{chunk-index-m8bv51r9.js → chunk-index-gc30hm37.js} +2 -2
- package/dist/{chunk-index-5fyqxh0r.js → chunk-index-gpaychmm.js} +2 -2
- package/dist/chunk-index-hk6aq03d.js +2 -0
- package/dist/chunk-index-k3hj2310.js +2 -0
- package/dist/chunk-index-maf6wr1b.js +2 -0
- package/dist/{chunk-index-eyythjdx.js → chunk-index-mhb8mpg3.js} +2 -2
- package/dist/chunk-index-n92zea3s.js +2 -0
- package/dist/{chunk-index-m7wzrmcd.js → chunk-index-ndhwytvz.js} +2 -2
- package/dist/{chunk-index-qk7rp7fk.js → chunk-index-ne8v2rxx.js} +12 -12
- package/dist/chunk-index-p4rc9swx.js +2 -0
- package/dist/chunk-index-pce4byw4.js +2 -0
- package/dist/{chunk-index-6nja2vd8.js → chunk-index-ptvrkv0r.js} +2 -2
- package/dist/{chunk-index-mzw7nmkc.js → chunk-index-pz6926p5.js} +2 -2
- package/dist/chunk-index-qb41kkt3.js +2 -0
- package/dist/{chunk-index-5x3h176v.js → chunk-index-qqaaxh63.js} +2 -2
- package/dist/chunk-index-qwztcbjz.js +2 -0
- package/dist/chunk-index-r1g24er0.js +2 -0
- package/dist/chunk-index-rvatmx8s.js +50 -0
- package/dist/{chunk-index-qq86fxda.js → chunk-index-tfgd7vr5.js} +2 -2
- package/dist/{chunk-index-qw9a7ken.js → chunk-index-tqrjr37v.js} +2 -2
- package/dist/chunk-index-tvsvtd4q.js +2 -0
- package/dist/chunk-index-vaxytvde.js +2 -0
- package/dist/{chunk-index-n2v2bz8d.js → chunk-index-ve07gdef.js} +1 -1
- package/dist/chunk-index-vw592m3p.js +2 -0
- package/dist/{chunk-index-y1xv3dxs.js → chunk-index-vwd5drzh.js} +4 -4
- package/dist/{chunk-index-0t68az7d.js → chunk-index-vxn4zws9.js} +3 -3
- package/dist/{chunk-index-6m25qpa7.js → chunk-index-wqbcade7.js} +2 -2
- package/dist/chunk-index-x7p6k52w.js +138 -0
- package/dist/{chunk-index-syxwqhry.js → chunk-index-xekytvrr.js} +1 -1
- package/dist/{chunk-index-6q3dx093.js → chunk-index-xkb336kq.js} +2 -2
- package/dist/{chunk-index-sk8cvb4e.js → chunk-index-xv3e4x0j.js} +2 -2
- package/dist/{chunk-index-50syrmaq.js → chunk-index-xvdna54d.js} +2 -2
- package/dist/chunk-index-yzd9cg0s.js +1 -0
- package/dist/{chunk-index-tasbd41t.js → chunk-index-zr2qwzz4.js} +2 -2
- package/dist/chunk-lang-css-6t2q4xw4.js +1 -0
- package/dist/{chunk-lang-dockerfile-e87ssppx.js → chunk-lang-dockerfile-9rc0adjw.js} +1 -1
- package/dist/{chunk-lang-go-kbcbn346.js → chunk-lang-go-t47kg9n0.js} +2 -2
- package/dist/chunk-lang-html-c6p22v5m.js +1 -0
- package/dist/chunk-lang-javascript-m57t19pw.js +1 -0
- package/dist/{chunk-lang-json-4pe1fv7e.js → chunk-lang-json-y33kawwg.js} +1 -1
- package/dist/{chunk-lang-markdown-67cm3tjx.js → chunk-lang-markdown-2c2sqc4z.js} +4 -4
- package/dist/{chunk-lang-python-mnfhcvww.js → chunk-lang-python-ymasvj52.js} +2 -2
- package/dist/{chunk-lang-rust-e4a9s76x.js → chunk-lang-rust-qcg53mkn.js} +1 -1
- package/dist/{chunk-lang-shell-43nea8tq.js → chunk-lang-shell-996wb0dk.js} +1 -1
- package/dist/{chunk-lang-sql-28364npv.js → chunk-lang-sql-60rh2y3y.js} +2 -2
- package/dist/{chunk-lang-toml-a83hr7bw.js → chunk-lang-toml-q1yzt70y.js} +1 -1
- package/dist/chunk-lang-typescript-7gcbrhbd.js +1 -0
- package/dist/{chunk-lang-xml-2hv5xc8n.js → chunk-lang-xml-k2a92cm3.js} +1 -1
- package/dist/{chunk-lang-yaml-vw22drt8.js → chunk-lang-yaml-qp3asq06.js} +1 -1
- package/dist/chunk-layout-actions-yxh77zcz.js +1 -0
- package/dist/chunk-mention-menu-qpksygcf.js +43 -0
- package/dist/chunk-menu-items-95evdhk1.js +1 -0
- package/dist/chunk-mode-toggle-dqwvcr2p.js +1 -0
- package/dist/{chunk-note-row-c0trzayj.js → chunk-note-row-ngzxbdn6.js} +4 -4
- package/dist/chunk-notes-9ykcajzc.js +1 -0
- package/dist/chunk-notice-bell-eryn2k5m.js +1 -0
- package/dist/{chunk-notices-gkaqncqz.js → chunk-notices-jkv1derx.js} +1 -1
- package/dist/{chunk-onboarding-fkq9ptcw.js → chunk-onboarding-ka11bgd0.js} +1 -1
- package/dist/{chunk-overview-yssxbg0d.js → chunk-overview-dgvrjwbc.js} +1 -1
- package/dist/{chunk-palette-w6qbr7zp.js → chunk-palette-wmvynt7n.js} +1 -1
- package/dist/chunk-placement-items-zyqq2mp7.js +1 -0
- package/dist/{chunk-profile-9sjgayrx.js → chunk-profile-sdn7bs08.js} +1 -1
- package/dist/chunk-prompt-history-qfnj4w2y.js +1 -0
- package/dist/chunk-prompts-4hdcvy6t.js +1 -0
- package/dist/chunk-room-confirms-b8gvak47.js +1 -0
- package/dist/chunk-room-menu-18mnqcja.js +1 -0
- package/dist/chunk-rooms-menu-button-hjg4zqjy.js +1 -0
- package/dist/{chunk-schedules-m9mn68gt.js → chunk-schedules-cy2dv8x0.js} +1 -1
- package/dist/{chunk-seat-menu-3tdcr44t.js → chunk-seat-menu-cw3z9560.js} +1 -1
- package/dist/chunk-section-fold-9tc2m103.js +1 -0
- package/dist/{chunk-settings-18qmhcyr.js → chunk-settings-rhdv64p7.js} +1 -1
- package/dist/chunk-sheet-hosts-hhs1e3a8.js +29 -0
- package/dist/chunk-shortcut-help-fv6b6ntc.js +26 -0
- package/dist/{chunk-shortcuts-qee393s5.js → chunk-shortcuts-sjwrv858.js} +1 -1
- package/dist/{chunk-skill-editor-pryntvpr.js → chunk-skill-editor-zzmv9nfq.js} +2 -2
- package/dist/chunk-skills-b2enxk30.js +1 -0
- package/dist/{chunk-start-over-line-azexcxj1.js → chunk-start-over-line-4rwasr8k.js} +2 -2
- package/dist/{chunk-switcher-list-6hacxjfe.js → chunk-switcher-list-dcq91xxa.js} +1 -1
- package/dist/{chunk-tab-dot-h0eskhrt.js → chunk-tab-dot-b3gcgcrq.js} +1 -1
- package/dist/chunk-table-6j64ps89.js +1 -0
- package/dist/{chunk-table2d-vy4w4r5k.js → chunk-table2d-k4z439nt.js} +1 -1
- package/dist/{chunk-table3d-0a62jerb.js → chunk-table3d-mx0afnv8.js} +23 -23
- package/dist/chunk-thread-actions-rs5xpf1r.js +1 -0
- package/dist/{chunk-thread-cards-mwxzy02t.js → chunk-thread-cards-k9m7p5fn.js} +1 -1
- package/dist/{chunk-thread-list-52mx2m9p.js → chunk-thread-list-zz7596zy.js} +2 -2
- package/dist/chunk-transcript-8yjp18cr.js +1 -0
- package/dist/chunk-waiting-9gshhhx0.js +1 -0
- package/dist/{chunk-waiting-chip-wvkbsnw5.js → chunk-waiting-chip-nr9cza2j.js} +2 -2
- package/dist/chunk-where-8mq8azgw.js +1 -0
- package/dist/{chunk-workspace-ne2nkf4h.js → chunk-workspace-hdamnf4r.js} +2 -2
- package/dist/chunk-zh-tw-ama40y87.js +1 -0
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +3 -3
- package/src/api-types.ts +17 -0
- package/src/app/app.ts +3 -0
- package/src/app/command-routes.ts +45 -0
- package/src/app/routes.ts +13 -0
- package/src/i18n/zh-tw.ts +8 -1
- package/src/web-plugin.ts +2 -0
- package/dist/chunk-account-dq0nhfvj.js +0 -1
- package/dist/chunk-agent-yqe6reej.js +0 -1
- package/dist/chunk-arranged-rooms-sx6xg9df.js +0 -1
- package/dist/chunk-bulk-actions-6pehrsgb.js +0 -1
- package/dist/chunk-confirm-ghxga720.js +0 -1
- package/dist/chunk-council-sheet-7m884s44.js +0 -2
- package/dist/chunk-council-view-rkzcxeg8.js +0 -1
- package/dist/chunk-folds-rb1b069h.js +0 -1
- package/dist/chunk-gate-3rxxyfev.js +0 -1
- package/dist/chunk-host-icons-cyj62pwp.js +0 -1
- package/dist/chunk-host-picture-9wnhqckv.js +0 -1
- package/dist/chunk-host-state-b858k3p8.js +0 -1
- package/dist/chunk-host-ui-j6wvj0pe.js +0 -1
- package/dist/chunk-index-2s48qyrs.js +0 -2
- package/dist/chunk-index-33cqx9v2.js +0 -2
- package/dist/chunk-index-36m3knsk.js +0 -2
- package/dist/chunk-index-91wnf1k9.js +0 -1
- package/dist/chunk-index-9ehqccfe.js +0 -2
- package/dist/chunk-index-ar1x9fhw.js +0 -2
- package/dist/chunk-index-axw4wkqq.js +0 -2
- package/dist/chunk-index-b5patef1.js +0 -2
- package/dist/chunk-index-dagc92hw.js +0 -2
- package/dist/chunk-index-ddssgba9.js +0 -2
- package/dist/chunk-index-dpgn7kzp.js +0 -2
- package/dist/chunk-index-eez0kbk4.js +0 -2
- package/dist/chunk-index-ekp5mmvp.js +0 -2
- package/dist/chunk-index-fdg2qd3f.js +0 -2
- package/dist/chunk-index-g0sdxjxr.js +0 -2
- package/dist/chunk-index-hsc9yz2x.js +0 -2
- package/dist/chunk-index-kvztbfqj.js +0 -2
- package/dist/chunk-index-nncy9wxw.js +0 -2
- package/dist/chunk-index-p2e7rwac.js +0 -2
- package/dist/chunk-index-p98tt12y.js +0 -2
- package/dist/chunk-index-qdtmetsy.js +0 -120
- package/dist/chunk-index-s356ybxk.js +0 -50
- package/dist/chunk-index-vxqzavgz.js +0 -2
- package/dist/chunk-index-x5xq9g9a.js +0 -3
- package/dist/chunk-index-xx0kecz9.js +0 -2
- package/dist/chunk-lang-css-rwkzd784.js +0 -1
- package/dist/chunk-lang-html-zhngbs9v.js +0 -1
- package/dist/chunk-lang-javascript-bk2s6a56.js +0 -1
- package/dist/chunk-lang-typescript-r5npc6zf.js +0 -1
- package/dist/chunk-layout-actions-rw5myg2t.js +0 -1
- package/dist/chunk-menu-items-q0hy5kzd.js +0 -1
- package/dist/chunk-mode-toggle-yk2t0tcy.js +0 -1
- package/dist/chunk-notes-0xcmm938.js +0 -1
- package/dist/chunk-notice-bell-f9nhxg71.js +0 -1
- package/dist/chunk-placement-items-wcwy91mp.js +0 -1
- package/dist/chunk-prompt-history-kn42sf8y.js +0 -1
- package/dist/chunk-prompts-824fwgvh.js +0 -1
- package/dist/chunk-room-confirms-hvs9tra4.js +0 -1
- package/dist/chunk-room-menu-pkd0487m.js +0 -1
- package/dist/chunk-rooms-menu-button-w5hfhsfv.js +0 -1
- package/dist/chunk-section-fold-g0tx68cj.js +0 -1
- package/dist/chunk-sheet-hosts-tsppnmvv.js +0 -29
- package/dist/chunk-shortcut-help-wnm0cm8n.js +0 -26
- package/dist/chunk-skills-sap3rysr.js +0 -1
- package/dist/chunk-table-jtn49c2m.js +0 -1
- package/dist/chunk-thread-actions-31scmndt.js +0 -1
- package/dist/chunk-transcript-p5q2m795.js +0 -1
- package/dist/chunk-waiting-s7nm3q0p.js +0 -1
- package/dist/chunk-where-j99f8pb8.js +0 -1
- package/dist/chunk-zh-tw-vm5d0w6j.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E,o,r,l,te}from"./chunk-index-rvatmx8s.js";function cn(s){let{version:i}=te(),[a,u]=r(0),[f,d]=r(),[c,n]=r();o(()=>{let e=!0;return s().then((t)=>{if(!e)return;d(t),n(void 0)},(t)=>{if(e)n(l(t))}),()=>{e=!1}},[a,i]);let m=E(()=>u((e)=>e+1),[]);return{data:f,error:c,reload:m}}
|
|
2
|
+
export{cn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{at,x,O,yo,Pr}from"./chunk-index-rvatmx8s.js";import{pe}from"./chunk-index-37g8ggry.js";var o={notices:[],badge:0,known:!1},r=new Set,s=(e)=>{o=e;for(let t of r)t()};function f(e){let t=navigator;(e>0?t.setAppBadge?.(e):t.clearAppBadge?.())?.catch(()=>{return})}function d(e){if(e.type==="notice"){let t=o.notices.filter((i)=>i.tag!==e.notice.tag),n=o.notices.findIndex((i)=>i.tag===e.notice.tag),c=n>=0?o.notices[n]:void 0,p=c&&c.raisedAt!==e.notice.raisedAt,g=n>=0&&!p?o.notices.map((i)=>i.tag===e.notice.tag?e.notice:i):[e.notice,...t];s({...o,notices:g,known:!0})}else if(e.type==="notice_resolved")s({...o,notices:o.notices.filter((t)=>t.tag!==e.tag),known:!0});else if(e.type==="badge")s({...o,badge:e.count,known:!0}),f(e.count)}var a=O.getState().connects;O.subscribe(()=>{let e=O.getState().connects;if(e===a)return;a=e,s({...o,notices:[],known:!1})});for(let e of yo.splice(0))d(e);Pr.take=d;function ir(){return o}function u(e){return r.add(e),()=>r.delete(e)}var ls=u;function wi(){return at(u,ir,ir)}async function cs(e){await pe.ackNotice(e),s({...o,notices:o.notices.map((t)=>t.tag===e?{...t,acked:!0}:t),badge:Math.max(0,o.badge-(o.notices.some((t)=>t.tag===e&&t.ackable&&!t.acked)?1:0))})}function us(e){if(!e)return x("notices");if("room"in e){let c=x("room",e.room);return e.message===void 0?c:`${c}?message=${e.message}`}let t=x("p",e.page),n=new URLSearchParams(e.query??{}).toString();return n?`${t}?${n}`:t}
|
|
2
|
+
export{ir,ls,wi,cs,us};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{
|
|
1
|
+
import{Yn,Ei}from"./chunk-index-r1g24er0.js";var m={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"}},g={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"}},P={modern:{dark:{banner:m.banner,bannerEdge:m.gold,gold:m.gold,goldDark:m.goldDark},light:{banner:g.banner,bannerEdge:g.gold,gold:g.gold,goldDark:g.goldDark}},camelot:{dark:{banner:"#6b1f3f",bannerEdge:"#f0c35a",gold:"#f0c35a",goldDark:"#a8791f"},light:{banner:"#9b2a45",bannerEdge:"#e6b436",gold:"#e6b436",goldDark:"#9a6b14"}}},Gn=(e,n)=>({...n==="dark"?m:g,...P[e][n]}),Zr={done:"#58c878",error:"#ee4b4b"};var S=(e)=>{let n=e.codePointAt(0)??0;return n>=11904&&n<=64255?1:n>=65280&&n<=65519?1:0.6};function u(e,n){if(n(e))return e;let r=Array.from(e);while(r.length>1){r.pop();let t=`${r.join("").trimEnd()}…`;if(n(t))return t}return"…"}function Wr(e,n){let r=(t)=>Array.from(t).reduce((a,o)=>a+S(o),0);return u(e,(t)=>r(t)<=n)}var Rt='system-ui, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif',p=(e)=>`700 ${e}px ${Rt}`;function T(e,n,r,t){let a=r*0.86,o=Math.round(t*0.56),s=Math.round(t*0.36),f=(i,d)=>(e.font=p(d),e.measureText(i).width);for(let i=o;i>=s;i-=2)if(f(n,i)<=a)return{text:n,px:i,font:p(i)};return{text:u(n,(i)=>f(i,s)<=a),px:s,font:p(s)}}function fs(e,n,r,t,a){let o=Math.max(3,t*0.07);e.fillStyle=a.ink,e.fillRect(0,0,r,t);let s=e.createLinearGradient?.(0,0,0,t);if(s)s.addColorStop(0,a.gold),s.addColorStop(0.55,a.gold),s.addColorStop(1,a.goldDark),e.fillStyle=s;else e.fillStyle=a.gold;e.fillRect(o,o,r-o*2,t-o*2),e.strokeStyle=a.goldDark,e.lineWidth=Math.max(1,t*0.03),e.beginPath(),e.moveTo(o*2,o*2),e.lineTo(r-o*2,o*2),e.lineTo(r-o*2,t-o*2),e.lineTo(o*2,t-o*2),e.closePath(),e.stroke(),e.fillStyle=a.goldDark;for(let b of[o*3.4,r-o*3.4])e.beginPath(),e.arc(b,t/2,Math.max(1.4,t*0.04),0,Math.PI*2),e.fill();let f=T(e,n,r-o*4,t);return e.font=f.font,e.fillStyle=a.plateInk,e.textAlign="center",e.textBaseline="middle",e.fillText(f.text,r/2,t/2+t*0.03),f}var mn=720,h=260,A=380,y=600,gn=850,Ct=160,hs=4.2,E=0.35;function Ti(e,n,r){let t=new Set(e),a=new Set(n),o=e.filter((c)=>!a.has(c)),s=n.filter((c)=>!t.has(c)),f=n.filter((c)=>t.has(c)),b={leaving:o,joining:s,staying:f,swapAt:0,glideEnd:0,riseAt:0,riseEnd:0,total:0};if(o.length===0&&s.length===0)return{mode:"cut",...b};if(r)return{mode:"fade",...b,swapAt:Ct,glideEnd:Ct,riseAt:Ct,riseEnd:Ct,total:Ct*2};let i=o.length>0?A:0,d=i+y,x=d,k=s.length>0?x+gn:d;return{mode:"play",...b,swapAt:i,glideEnd:d,riseAt:x,riseEnd:k,total:Math.max(o.length>0?mn:0,d,s.length>0?k:0)}}var l=(e,n=0,r=1)=>Math.min(r,Math.max(n,e));function ar(e){let n=l(e),r=1.70158;return 1+2.70158*(n-1)**3+1.70158*(n-1)**2}function ps(e){let n=Math.sin(Math.PI*l(e/h));return{scaleX:1+0.08*n,scaleY:1-0.14*n,gone:e>=h,puff:l(e/mn)}}function lr(e){if(e<0)return{shown:!1,depth:1,circle:0,light:0,spin:0,named:!1};let n=l(e/gn),r=l((n-0.25)/0.6),t=1-ar(r);return{shown:n>=0.25,depth:t,named:n>=0.25&&t<=E,circle:l(n/0.25)*l((1-n)/0.2),light:Math.sin(Math.PI*l((n-0.2)/0.7)),spin:n*Math.PI*1.5}}var ms=(e)=>Ei(l(e/y)),gs=(e,n,r)=>e+Yn(e,n)*r;var M=(e)=>{let n=Math.sin(e*127.1+311.7)*43758.5453;return n-Math.floor(n)};function Yr(e,n=0){let r=Math.floor(e*7*2+n*10);if(r%2===0)return!1;return M(r)>0.2}function Os(e=0,n=28){return{frames:Array.from({length:n},(a,o)=>Yr((o+0.5)*0.07142857142857142,e)?1:0),seconds:n*0.07142857142857142}}
|
|
2
|
+
export{Gn,Zr,Wr,Rt,fs,mn,gn,Ct,hs,Ti,ar,ps,lr,ms,gs,Yr,Os};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p,o,a,Oe,yr,Vi}from"./chunk-index-rvatmx8s.js";var D=6,g=()=>(p("pkghf4ts"),import("./chunk-drag-pkghf4ts.js"));var h=()=>{return},L=0;function ro(){if(L++===0)window.addEventListener("touchmove",h,{passive:!1});return()=>{if(--L===0)window.removeEventListener("touchmove",h)}}function Jt(T,m){let s=a(m);s.current=m;let E=m!==void 0;o(()=>E?ro():void 0,[E]);let t=a(void 0),f=a(void 0),d=a(!1),v=(e,n,i)=>T(e).then((u)=>{if(u)Oe({...u,at:n,via:i,source:e})},()=>{return}),y=(e,n,i,u)=>{let c=s.current,M=c?.item(e),P=c?.root(e);if(!c||!M||!P)return!1;return f.current??=g(),f.current.then(({lift:x})=>{if(t.current?.id!==n)return u();x({mode:c.mode,key:c.key,item:M,root:P,pointerId:n,y:i(),open:c.open,done:(l)=>{if(l.type==="tap")u();else if(l.type!=="cancel")c.onDrop(l)}})},u),!0},r=yr((e)=>{let n=()=>v(e.source,e.at,e.via),i=t.current;if(!(e.via==="hold"||e.via==="contextmenu"&&i?.touch)||!i)return void n();if(!y(e.source,i.id,()=>i.y,n))return void n();if(e.via==="contextmenu")d.current=!0});return{...r,onPointerDown(e){if(d.current=!1,t.current={id:e.pointerId,x:e.clientX,y:e.clientY,touch:e.pointerType!=="mouse"},e.pointerType!=="mouse"&&Vi(e.clientX,window.innerWidth))t.current=void 0;else if(s.current)f.current??=g();r.onPointerDown(e)},onPointerMove(e){let n=t.current;if(n?.id===e.pointerId){if(e.pointerType==="mouse"&&e.buttons===1&&!d.current&&s.current&&Math.hypot(e.clientX-n.x,e.clientY-n.y)>D)d.current=y(e.currentTarget,e.pointerId,()=>e.clientY,()=>{return});n.y=e.clientY}r.onPointerMove(e)},onPointerUp(e){if(t.current?.id===e.pointerId)t.current=void 0;r.onPointerUp(e)},onPointerCancel(e){if(t.current?.id===e.pointerId)t.current=void 0;r.onPointerCancel(e)},onContextMenu:r.onContextMenu,onKeyDown:r.onKeyDown,onClickCapture(e){if(d.current){d.current=!1,e.preventDefault(),e.stopPropagation();return}r.onClickCapture(e)},onDragStart(e){e.preventDefault()}}}
|
|
2
|
+
export{ro,Jt};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{y}from"./chunk-index-
|
|
2
|
-
export{
|
|
1
|
+
import{y}from"./chunk-index-rvatmx8s.js";var a=()=>typeof navigator<"u"&&("serviceWorker"in navigator)&&typeof window<"u"&&("PushManager"in window)&&("Notification"in window),s=()=>navigator.serviceWorker.ready;async function u(e){let t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(t),(n)=>n.toString(16).padStart(2,"0")).join("")}var d=(e)=>Uint8Array.from(atob(e.replaceAll("-","+").replaceAll("_","/")),(t)=>t.charCodeAt(0)),c=(e,t)=>{if(!e||e.byteLength!==t.byteLength)return!1;return new Uint8Array(e).every((o,i)=>o===t[i])};function p(){let e=navigator.userAgent,t=/Edg\//.test(e)?"Edge":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)?"Safari":"Browser",n=/iPhone|iPad/.test(e)?"iOS":/Android/.test(e)?"Android":/Mac OS X/.test(e)?"macOS":/Windows/.test(e)?"Windows":/Linux/.test(e)?"Linux":"";return n?`${t} on ${n}`:t}async function hn(){if(!a())return"unsupported";if(Notification.permission==="denied")return"blocked";return await(await s()).pushManager.getSubscription()&&Notification.permission==="granted"?"on":"off"}async function ds(){if(!a())return;let e=await(await s()).pushManager.getSubscription();return e?u(e.endpoint):void 0}async function ki(){if(await Notification.requestPermission()!=="granted")throw Error("permission");let{key:t}=await y.pushKey(),n=d(t),{pushManager:o}=await s(),i=await o.getSubscription();if(i&&!c(i.options.applicationServerKey,n))await i.unsubscribe(),i=null;let r=(i??await o.subscribe({userVisibleOnly:!0,applicationServerKey:n})).toJSON();if(!r.endpoint||!r.keys?.p256dh||!r.keys.auth)throw Error("subscription");await y.addPushDevice({endpoint:r.endpoint,keys:{p256dh:r.keys.p256dh,auth:r.keys.auth},label:p()})}async function Fn(){if(!a())return;let e=await(await s()).pushManager.getSubscription();if(!e)return;await y.removePushEndpoint(e.endpoint),await e.unsubscribe()}
|
|
2
|
+
export{hn,ds,ki,Fn};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var jt=Math.PI*2,On=8;function yn(n){let t=((n+Math.PI)%jt+jt)%jt-Math.PI;return t===-Math.PI?Math.PI:t}var Yn=(n,t)=>yn(t-n);function cr(n){let t=Math.min(Math.max(n,0),8);return{count:1+t,seated:t}}var y=0.62,E=(n)=>Math.min(jt/Math.max(n,1),y),Kt=(n,t)=>n===0?0:yn(Math.PI+(n-t/2)*E(t)),At=(n)=>Math.max(4.2,2.6/(2*Math.sin(E(n)/2)));function z(n,t){let o=0,e=Number.POSITIVE_INFINITY;for(let r=0;r<t;r+=1){let u=Math.abs(Yn(n,Kt(r,t)));if(u<e-0.000000001)e=u,o=r}return o}var Jr=(n,t)=>Kt(z(n,t),t);function Rs(n,t){if(t.seated===0)return;let o=yn(n+Math.PI),e,r=Number.POSITIVE_INFINITY;for(let u=1;u<=t.seated;u+=1){let s=Math.abs(Yn(o,Kt(u,t.count)));if(s<r-0.000000001)r=s,e=u}return e}var x=1.65,R=1.06,T=44,N=390,v=4.8,p=0.07,d=3;function H(n,t,o){let{position:e,target:r}=eo(n),u=S([r[0]-e[0],r[1]-e[1],r[2]-e[2]]),s=S(P(u,[0,1,0])),i=P(s,u),m=[o[0]-e[0],o[1]-e[1],o[2]-e[2]],a=h(m,u),c=Math.tan(to(n.fov,t)*Math.PI/360),l=a>0.000001?a:Number.NaN;return{x:h(m,s)/(l*c*t),y:h(m,i)/(l*c),depth:a}}var h=(n,t)=>n[0]*t[0]+n[1]*t[1]+n[2]*t[2],P=(n,t)=>[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]],S=(n)=>{let t=Math.hypot(n[0],n[1],n[2])||1;return[n[0]/t,n[1]/t,n[2]/t]};function Y(n){let t=At(n),o=[];for(let e=1;e<n;e+=1){let r=Kt(e,n),u=Math.cos(r),s=-Math.sin(r);for(let i of[-1,1])for(let m of[0,v])o.push([Math.sin(r)*t+u*i*x,m,Math.cos(r)*t+s*i*x])}return o}function A(n,t,o,e=p,r=e){let u=1-r,s=1-e;return o.every((i)=>{let m=H(n,t,i);return Math.abs(m.x)<=u&&Math.abs(m.y)<=s})}var vt=2.9,D=0.7,X=0.2,w=0.8;function Cs(n,t,o){let e=o[0]-n[0],r=o[2]-n[2],u=Math.hypot(e,r)||1,s=r/u,i=-e/u,m=vt*D/2,a=vt*t,c=n[1]+a/2-a*X,l=n[1]+a/2-a*w,M=[];for(let f of[-1,1])for(let k of[c,l])M.push([n[0]+s*f*m,k,n[2]+i*f*m]);return M}function O(n){let t=At(n),o=[];for(let e=1;e<n;e+=1){let r=Kt(e,n);o.push([Math.sin(r)*t,R,Math.cos(r)*t])}return o}function g(n,t){return{...n,r:n.lookR+(n.r-n.lookR)*t,y:n.lookY+(n.y-n.lookY)*t}}function Hn(n,t,o=1.6,e=N){let r=At(t),u={az:n,r:r+4.4,y:4.4+r*0.1,aim:0,lookR:-1.6,lookY:2.5,roll:0,fov:46};if(!(o>0))return u;let s=Y(t),i=O(t),m=p+T/(Math.max(e,1)/2);for(let a=1;a<=d;a+=0.02){let c=g(u,a);if(A(c,o,s)&&A(c,o,i,p,m))return c}return g(u,d)}function Es(n,t){let o=At(t),e=0.18;return{az:yn(n+0.18),r:Math.max(o-3.9,0.5),y:1.8,aim:-0.18,lookR:o+0.1,lookY:1.7,roll:-0.16,fov:58}}var b=(n,t,o)=>n+(t-n)*o;function As(n,t,o){return{az:yn(n.az+Yn(n.az,t.az)*o),r:b(n.r,t.r,o),y:b(n.y,t.y,o),aim:b(n.aim,t.aim,o),lookR:b(n.lookR,t.lookR,o),lookY:b(n.lookY,t.lookY,o),roll:b(n.roll,t.roll,o),fov:b(n.fov,t.fov,o)}}var Ei=(n)=>{let t=Math.min(1,Math.max(0,n));return t<0.5?4*t*t*t:1-(-2*t+2)**3/2},$s=(n)=>{let t=Math.min(1,Math.max(0,n)),o=(u,s,i)=>3*(1-u)*(1-u)*u*s+3*(1-u)*u*u*i+u*u*u,e=0,r=1;for(let u=0;u<24;u++){let s=(e+r)/2;if(o(s,0.7,0.84)<t)e=s;else r=s}return o((e+r)/2,0,0)},F=420,I=450,V=650;function Ns(n,t,o,e=!1){if(o)return{ms:0,cut:!0};if(e)return{ms:F,cut:!1,dive:!0};let r=Math.abs(Yn(n.az,t.az))/Math.PI;return{ms:Math.round(I+(V-I)*r),cut:!1}}function eo(n){let t=n.az+n.aim;return{position:[Math.sin(n.az)*n.r,n.y,Math.cos(n.az)*n.r],target:[Math.sin(t)*n.lookR,n.lookY,Math.cos(t)*n.lookR]}}function Ls(n,t){let o=Kt(n,t),e=At(t);return{x:Math.sin(o)*e,z:Math.cos(o)*e,yaw:o+Math.PI}}var Xs=(n,t)=>-n/Math.max(t,1)*(Math.PI/2),zs=(n)=>n<0?-1:1,_=32;function Is(n,t,o,e){let r=(u,s,i)=>u-s<_||i-u<_;return r(n,0,e.width)||r(t,0,e.height)||r(n,o.left,o.left+o.width)||r(t,o.top,o.top+o.height)}function Ds(n,t){if(Math.abs(n)<0.000001)return"none";if(n<0)return t?"none":"in";return t?"out":"none"}function to(n,t){if(!(t>0)||t>=1.2)return n;return Math.min(n*(1+(1.2-t)*0.55),95)}
|
|
2
|
+
export{jt,On,yn,Yn,cr,Kt,At,Jr,Rs,vt,Cs,Hn,Es,As,Ei,$s,Ns,eo,Ls,Xs,zs,Is,Ds,to};
|