rivet-design 0.28.0 → 0.28.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/README.md +2 -6
- package/README.npm.md +2 -6
- package/dist/agent-variants/WorktreeOrchestrator.js +6 -4
- package/package.json +15 -25
- package/src/ui/dist/assets/LibraryEntry-DS6Ce0sW.js +112 -0
- package/src/ui/dist/assets/main-CQSk-6km.css +1 -0
- package/src/ui/dist/assets/main-DkKRuatC.js +218 -0
- package/src/ui/dist/index.html +2 -2
- package/src/ui/dist/assets/LibraryEntry-BE8nZneH.js +0 -37
- package/src/ui/dist/assets/main-1EDrDqgn.js +0 -498
- package/src/ui/dist/assets/main-qgqnlUkI.css +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rivet
|
|
2
2
|
|
|
3
|
-
Rivet
|
|
3
|
+
Rivet is a design agent for your coding agent. It explores dozens of design directions in parallel so you can pick the one that fits. It opens a local visual editor, generates parallel variants, and lets you refine with comments.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -81,8 +81,6 @@ rivet variants start --project /path/to/app --instruction "try three hero layout
|
|
|
81
81
|
rivet wait <workId> --project /path/to/app --timeout 120
|
|
82
82
|
rivet variants list --project /path/to/app
|
|
83
83
|
rivet variants get <projectId>/<sessionId>:<variantId> --detail
|
|
84
|
-
rivet changes request --project /path/to/app --instruction "make the header coral" --element "#header"
|
|
85
|
-
rivet changes pull --project /path/to/app
|
|
86
84
|
rivet update
|
|
87
85
|
rivet stop --project /path/to/app
|
|
88
86
|
```
|
|
@@ -103,12 +101,10 @@ rivet open --project /path/to/app --caller-agent cursor --caller-model <model> -
|
|
|
103
101
|
## How It Works
|
|
104
102
|
|
|
105
103
|
1. `rivet open` starts or attaches to the local Rivet editor server for a project. It can attach to an existing dev server or start the app's standard `dev`, `start`, or `serve` script when possible.
|
|
106
|
-
2. The editor shows your app and variant previews in the browser. Agents use `rivet variants ...`
|
|
104
|
+
2. The editor shows your app and variant previews in the browser. Agents use `rivet variants ...` to enqueue work.
|
|
107
105
|
3. Use `rivet wait`, `rivet status`, or `rivet status --watch` to observe progress.
|
|
108
106
|
4. Copy the chosen direction’s context and ask your coding agent to implement it in your project. Rivet preserves the prototype; your agent owns integration and verification.
|
|
109
107
|
|
|
110
|
-
If Rivet reports pull mode, staged work can be drained with `rivet changes pull --project <path>`, applied by the agent, then acknowledged with `rivet changes pull --project <path> --ack <leaseId>`.
|
|
111
|
-
|
|
112
108
|
## Supported Frameworks
|
|
113
109
|
|
|
114
110
|
- Next.js
|
package/README.npm.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rivet
|
|
2
2
|
|
|
3
|
-
Rivet
|
|
3
|
+
Rivet is a design agent for your coding agent. It explores dozens of design directions in parallel so you can pick the one that fits. It opens a local visual editor, generates parallel variants, and lets you refine with comments.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -81,8 +81,6 @@ rivet variants start --project /path/to/app --instruction "try three hero layout
|
|
|
81
81
|
rivet wait <workId> --project /path/to/app --timeout 120
|
|
82
82
|
rivet variants list --project /path/to/app
|
|
83
83
|
rivet variants get <projectId>/<sessionId>:<variantId> --detail
|
|
84
|
-
rivet changes request --project /path/to/app --instruction "make the header coral" --element "#header"
|
|
85
|
-
rivet changes pull --project /path/to/app
|
|
86
84
|
rivet update
|
|
87
85
|
rivet stop --project /path/to/app
|
|
88
86
|
```
|
|
@@ -103,12 +101,10 @@ rivet open --project /path/to/app --caller-agent cursor --caller-model <model> -
|
|
|
103
101
|
## How It Works
|
|
104
102
|
|
|
105
103
|
1. `rivet open` starts or attaches to the local Rivet editor server for a project. It can attach to an existing dev server or start the app's standard `dev`, `start`, or `serve` script when possible.
|
|
106
|
-
2. The editor shows your app and variant previews in the browser. Agents use `rivet variants ...`
|
|
104
|
+
2. The editor shows your app and variant previews in the browser. Agents use `rivet variants ...` to enqueue work.
|
|
107
105
|
3. Use `rivet wait`, `rivet status`, or `rivet status --watch` to observe progress.
|
|
108
106
|
4. Copy the chosen direction’s context and ask your coding agent to implement it in your project. Rivet preserves the prototype; your agent owns integration and verification.
|
|
109
107
|
|
|
110
|
-
If Rivet reports pull mode, staged work can be drained with `rivet changes pull --project <path>`, applied by the agent, then acknowledged with `rivet changes pull --project <path> --ack <leaseId>`.
|
|
111
|
-
|
|
112
108
|
## Supported Frameworks
|
|
113
109
|
|
|
114
110
|
- Next.js
|
|
@@ -2743,10 +2743,12 @@ class AgentVariantsOrchestrator {
|
|
|
2743
2743
|
await Promise.all(this.workspaceInventory
|
|
2744
2744
|
.getWorktrees(sessionId)
|
|
2745
2745
|
.map((record) => DependencyPreparationService_1.previewDependencies.settle(record.worktreePath)));
|
|
2746
|
-
await Promise
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2746
|
+
await new Promise((resolve) => {
|
|
2747
|
+
const timer = setTimeout(resolve, SETTLE_PERSISTS_TEARDOWN_TIMEOUT_MS);
|
|
2748
|
+
void this.settleHistoryPersists()
|
|
2749
|
+
.finally(() => clearTimeout(timer))
|
|
2750
|
+
.then(resolve);
|
|
2751
|
+
});
|
|
2750
2752
|
await this.previewRuntime.closeSession(sessionId);
|
|
2751
2753
|
await this.workspaceInventory.disposeAssignments({ sessionId });
|
|
2752
2754
|
this.resources.delete(sessionId);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rivet-design",
|
|
3
|
-
"version": "0.28.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.28.1",
|
|
4
|
+
"description": "Rivet is a design agent for your coding agent. It explores dozens of design directions in parallel so you can pick the one that fits.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"workspaces": [
|
|
7
7
|
"src/ui",
|
|
@@ -154,32 +154,22 @@
|
|
|
154
154
|
"README.npm.md"
|
|
155
155
|
],
|
|
156
156
|
"keywords": [
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
157
|
+
"design-agent",
|
|
158
|
+
"coding-agent",
|
|
159
|
+
"design-variants",
|
|
160
|
+
"design-exploration",
|
|
161
|
+
"mcp",
|
|
162
|
+
"claude-code",
|
|
163
|
+
"claude",
|
|
164
|
+
"cursor",
|
|
165
|
+
"codex",
|
|
160
166
|
"design-tools",
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"web-design",
|
|
164
|
-
"css-visual-editor",
|
|
165
|
-
"no-code",
|
|
166
|
-
"low-code",
|
|
167
|
-
"ai-powered",
|
|
168
|
-
"product-design",
|
|
169
|
-
"tailwind-css",
|
|
170
|
-
"component-editor",
|
|
171
|
-
"web-builder"
|
|
167
|
+
"frontend-development",
|
|
168
|
+
"web-design"
|
|
172
169
|
],
|
|
173
170
|
"author": "Rivet Design",
|
|
174
171
|
"license": "GPL-3.0-or-later",
|
|
175
|
-
"
|
|
176
|
-
"type": "git",
|
|
177
|
-
"url": "https://github.com/rivet-design/rivet"
|
|
178
|
-
},
|
|
179
|
-
"bugs": {
|
|
180
|
-
"url": "https://github.com/rivet-design/rivet/issues"
|
|
181
|
-
},
|
|
182
|
-
"homepage": "https://github.com/rivet-design/rivet#readme",
|
|
172
|
+
"homepage": "https://rivet.design",
|
|
183
173
|
"publishConfig": {
|
|
184
174
|
"access": "public"
|
|
185
175
|
},
|
|
@@ -212,5 +202,5 @@
|
|
|
212
202
|
"rivetPlugin": {
|
|
213
203
|
"toolContract": "intent-v2"
|
|
214
204
|
},
|
|
215
|
-
"gitHead": "
|
|
205
|
+
"gitHead": "b2fbc13c45997a1b003d0e124016e384f648e0e7"
|
|
216
206
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
var He=s=>{throw TypeError(s)};var je=(s,t,n)=>t.has(s)||He("Cannot "+n);var _=(s,t,n)=>(je(s,t,"read from private field"),n?n.call(s):t.get(s)),V=(s,t,n)=>t.has(s)?He("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,n),D=(s,t,n,r)=>(je(s,t,"write to private field"),r?r.call(s,n):t.set(s,n),n),G=(s,t,n)=>(je(s,t,"access private method"),n);import{S as Mt,n as Ne,s as zt,r as Tt,Q as Ze,u as Ae,a as Dt,b as $t,c as d,e as qt,d as Ft,f as Ht,g as Ut,h as Ue,i as Bt,j as Kt,k as de,l as Qt,m as e,B as Y,o as Se,P as Wt,p as Vt,q as Gt,t as Yt,D as et,v as tt,w as st,x as rt,y as nt,z as it,A as Jt,C as at,E as Be,F as Xt,G as Zt,H as es,I as te,J as ye,K as $,R as ts,L as ne,M as ss,N as rs,O as le,T as ns,U as ae,V as U,W as ot,X as ge,Y as is,Z as as,_ as H,$ as ct,a0 as os,a1 as ue,a2 as cs,a3 as _e,a4 as ls,a5 as Ke,a6 as ds,a7 as us,a8 as hs,a9 as ms,aa as xs,ab as ps,ac as fs,ad as bs,ae as ys,af as gs,ag as vs,ah as ws,ai as js,aj as lt,ak as ks,al as Ns,am as Ss,an as _s,ao as Cs,ap as Rs,aq as Is,ar as Ps}from"./main-DkKRuatC.js";function Qe(s,t){const n=new Set(t);return s.filter(r=>!n.has(r))}var oe,F,ce,se,Q,re,he,me,xe,pe,M,Ce,Re,dt,Ie,Pe,Ee,Xe,Es=(Xe=class extends Mt{constructor(t,n,r){super();V(this,M);V(this,oe);V(this,F);V(this,ce);V(this,se);V(this,Q);V(this,re);V(this,he);V(this,me);V(this,xe);V(this,pe,[]);D(this,oe,t),D(this,se,r),D(this,ce,[]),D(this,Q,[]),D(this,F,[]),this.setQueries(n)}onSubscribe(){this.listeners.size===1&&_(this,Q).forEach(t=>{t.subscribe(n=>{G(this,M,Pe).call(this,t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,_(this,Q).forEach(t=>{t.destroy()})}setQueries(t,n){D(this,ce,t),D(this,se,n),Ne.batch(()=>{const r=_(this,Q),a=G(this,M,Ie).call(this,_(this,ce));a.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const o=a.map(m=>m.observer),i=o.map(m=>m.getCurrentResult()),c=r.length!==o.length,h=o.some((m,w)=>m!==r[w]),f=c||h,k=f?!0:i.some((m,w)=>{const g=_(this,F)[w];return!g||!zt(m,g)});!f&&!k||(f&&(D(this,pe,a),D(this,Q,o)),D(this,F,i),this.hasListeners()&&(f&&(Qe(r,o).forEach(m=>{m.destroy()}),Qe(o,r).forEach(m=>{m.subscribe(w=>{G(this,M,Pe).call(this,m,w)})})),G(this,M,Ee).call(this)))})}getCurrentResult(){return _(this,F)}getQueries(){return _(this,Q).map(t=>t.getCurrentQuery())}getObservers(){return _(this,Q)}getOptimisticResult(t,n){const r=G(this,M,Ie).call(this,t),a=r.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),o=r.map(i=>i.defaultedQueryOptions.queryHash);return[a,i=>G(this,M,Re).call(this,i??a,n,o),()=>G(this,M,Ce).call(this,a,r)]}},oe=new WeakMap,F=new WeakMap,ce=new WeakMap,se=new WeakMap,Q=new WeakMap,re=new WeakMap,he=new WeakMap,me=new WeakMap,xe=new WeakMap,pe=new WeakMap,M=new WeakSet,Ce=function(t,n){const r=new Set;return n.map((a,o)=>{const i=t[o];return a.defaultedQueryOptions.notifyOnChangeProps?i:a.observer.trackResult(i,c=>{r.has(c)||(r.add(c),n.forEach(h=>{h.observer.trackProp(c)}))})})},Re=function(t,n,r){if(n){const a=_(this,xe),o=r!==void 0&&a!==void 0&&(a.length!==r.length||r.some((i,c)=>i!==a[c]));return(_(this,F)!==_(this,me)||o||n!==_(this,he))&&(D(this,he,n),D(this,me,_(this,F)),r!==void 0&&D(this,xe,r),D(this,re,Tt(_(this,re),n(t)))),_(this,re)}return t},dt=function(){var t;return!((t=_(this,se))!=null&&t.combine)||_(this,Q).some((n,r)=>{var a;return n.options.suspense&&((a=_(this,F)[r])==null?void 0:a.data)===void 0})},Ie=function(t){const n=new Map;_(this,Q).forEach(a=>{const o=a.options.queryHash;if(!o)return;const i=n.get(o);i?i.push(a):n.set(o,[a])});const r=[];return t.forEach(a=>{var c;const o=_(this,oe).defaultQueryOptions(a),i=((c=n.get(o.queryHash))==null?void 0:c.shift())??new Ze(_(this,oe),o);r.push({defaultedQueryOptions:o,observer:i})}),r},Pe=function(t,n){const r=_(this,Q).indexOf(t);r!==-1&&(D(this,F,_(this,F).slice()),_(this,F)[r]=n,G(this,M,Ee).call(this))},Ee=function(){var t;if(this.hasListeners()){const n=G(this,M,dt).call(this),r=_(this,re),a=n?r:G(this,M,Re).call(this,G(this,M,Ce).call(this,_(this,F),_(this,pe)),(t=_(this,se))==null?void 0:t.combine);(n||r!==a)&&Ne.batch(()=>{this.listeners.forEach(o=>{o(_(this,F))})})}},Xe);function Ls({queries:s,...t},n){const r=Ae(),a=Dt(),o=$t(),i=t.subscribed!==!1,c=d.useMemo(()=>s.map(j=>{const x=r.defaultQueryOptions(j);return x._optimisticResults=a?"isRestoring":i?"optimistic":void 0,x}),[s,r,a,i]);c.forEach(j=>{qt(j);const x=r.getQueryCache().get(j.queryHash);Ft(j,o,x)}),Ht(o);const[h]=d.useState(()=>new Es(r,c,t)),[f,k,m]=h.getOptimisticResult(c,t.combine);d.useEffect(()=>{h.setQueries(c,t)},[c,t,h]);const w=!a&&i;d.useSyncExternalStore(d.useCallback(j=>w?h.subscribe(Ne.batchCalls(j)):Ut,[h,w]),()=>h.getCurrentResult(),()=>h.getCurrentResult());const g=f.some((j,x)=>Ue(c[x],j))?f.flatMap((j,x)=>{const N=c[x];if(N&&Ue(N,j)){const E=new Ze(r,N);return Bt(N,E,o)}return[]}):[];if(g.length>0)throw Promise.all(g);const p=f.find((j,x)=>{const N=c[x];return N&&Kt({result:j,errorResetBoundary:o,throwOnError:N.throwOnError,query:r.getQueryCache().get(N.queryHash),suspense:N.suspense})});if(p)throw p.error;return k(m())}/**
|
|
2
|
+
* @license lucide-react v1.70.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const As=s=>s==null?void 0:s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
7
|
+
* @license lucide-react v1.70.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/function Os(s,t,n=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:As(s),size:24,node:t,...n.length>0?{aliases:n}:{}}}/**
|
|
12
|
+
* @license lucide-react v1.70.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const Ms=s=>{let t="",n=!1;for(const r of s){if(r==="-"||r==="_"||r<=" "){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t};/**
|
|
17
|
+
* @license lucide-react v1.70.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const zs=s=>{const t=Ms(s);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
22
|
+
* @license lucide-react v1.70.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const Le=(...s)=>s.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
27
|
+
* @license lucide-react v1.70.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const ee={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
32
|
+
* @license lucide-react v1.70.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/function ke(s){return s!=null}function Ts(s,t={}){var w,g;const n=t.attributeNames??{},r=p=>n[p]??p,a=s.size??s.width??ee.width,o=s.size??s.height??ee.height,i=((w=s.aliases)==null?void 0:w.filter(p=>typeof p=="string"&&p.trim()!=="").map(p=>`lucide-${p}`))??[],c=[...s.name?[`lucide-${s.name}`]:[],...i],h=((g=t.className)==null?void 0:g.split(" ").filter(Boolean))??[],f=t.includeDefaultClasses===!1?Le(...h):Le("lucide",...c,...h),k=t.absoluteStrokeWidth?Number(t.strokeWidth??ee["stroke-width"])*Number(s.size??s.width??ee.width)/Number(t.size??t.width??ee.width):t.strokeWidth??ee["stroke-width"];return["svg",{...Object.entries(ee).reduce((p,[j,x])=>(p[r(j)]=x,p),{}),..."color"in t&&t.color&&{[r("stroke")]:t.color},..."size"in t&&ke(t.size)&&{[r("width")]:t.size,[r("height")]:t.size},..."width"in t&&ke(t.width)&&{[r("width")]:t.width},..."height"in t&&ke(t.height)&&{[r("height")]:t.height},[r("stroke-width")]:k,...f&&{[r("class")]:f},[r("viewBox")]:`0 0 ${a} ${o}`,...t.hasA11yProp===!1?{[r("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},s.node.map(p=>{const[j,x,N]=p,E=t.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...x}:x;return N?[j,E,N]:[j,E]})]}/**
|
|
37
|
+
* @license lucide-react v1.70.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/function Ds(s,t={}){return Ts(s,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
|
|
42
|
+
* @license lucide-react v1.70.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const $s=s=>{for(const t in s)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},qs=d.createContext({}),Fs=()=>d.useContext(qs),Hs=d.forwardRef(({color:s,size:t,width:n,height:r,strokeWidth:a,absoluteStrokeWidth:o,nonScalingStroke:i,className:c="",children:h,iconNode:f=[],icon:k={node:f,aliases:[],size:24},...m},w)=>{const{size:g=24,strokeWidth:p=2,absoluteStrokeWidth:j=!1,nonScalingStroke:x=!1,color:N="currentColor",className:E=""}=Fs()??{},b=!!h||$s(m),[S,I,O=[]]=Ds(k,{color:s??N,width:n??t??g,height:r??t??g,strokeWidth:a??p,absoluteStrokeWidth:o??j,nonScalingStroke:i??x,className:Le(E,c),hasA11yProp:b,attributes:m});return d.createElement(S,{ref:w,...I},[...O.map(([B,A])=>d.createElement(B,A)),...Array.isArray(h)?h:[h]])});/**
|
|
47
|
+
* @license lucide-react v1.70.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/function J(s,t=[],n=[]){const r=typeof s=="string"?Os(s,t,n):s,a=d.forwardRef(({className:o,...i},c)=>d.createElement(Hs,{ref:c,icon:r,className:o,...i}));return r.name&&(a.displayName=zs(r.name)),a}/**
|
|
52
|
+
* @license lucide-react v1.70.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const ut={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};ut.node;const Us=J(ut);/**
|
|
57
|
+
* @license lucide-react v1.70.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const ht={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};ht.node;const mt=J(ht);/**
|
|
62
|
+
* @license lucide-react v1.70.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const xt={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};xt.node;const pt=J(xt);/**
|
|
67
|
+
* @license lucide-react v1.70.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const ft={name:"clipboard-copy",size:24,node:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2",key:"4jdomd"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v4",key:"3hqy98"}],["path",{d:"M21 14H11",key:"1bme5i"}],["path",{d:"m15 10-4 4 4 4",key:"5dvupr"}]]};ft.node;const Bs=J(ft);/**
|
|
72
|
+
* @license lucide-react v1.70.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const bt={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};bt.node;const Ks=J(bt);/**
|
|
77
|
+
* @license lucide-react v1.70.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const yt={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};yt.node;const We=J(yt);/**
|
|
82
|
+
* @license lucide-react v1.70.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const gt={name:"image-off",size:24,node:[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]]};gt.node;const Qs=J(gt);/**
|
|
87
|
+
* @license lucide-react v1.70.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const vt={name:"images",size:24,node:[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]]};vt.node;const Ws=J(vt);/**
|
|
92
|
+
* @license lucide-react v1.70.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const wt={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};wt.node;const jt=J(wt);/**
|
|
97
|
+
* @license lucide-react v1.70.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const kt={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};kt.node;const Vs=J(kt);/**
|
|
102
|
+
* @license lucide-react v1.70.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Nt={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Nt.node;const Gs=J(Nt);/**
|
|
107
|
+
* @license lucide-react v1.70.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const St={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};St.node;const _t=J(St),Ys=({project:s,onRename:t,onRemove:n,onSetPinned:r})=>{const a=de(),o=d.useRef(null),i=d.useRef(null),c=d.useRef(null),[h,f]=d.useState(!1),[k,m]=d.useState(!1),w=!!s.pinnedAt,[g,p]=d.useState(null),[j,x]=d.useState(s.name),[N,E]=d.useState(!1),[b,S]=d.useState(null),{containerRef:I,onKeyDown:O}=Qt();let B=g==="rename"?"Save name":"Remove from projects";N&&(B="Saving…"),d.useEffect(()=>{var z;if(k||!c.current)return;const y=c.current==="button"?i:o;c.current=null,(z=y.current)==null||z.focus()},[k]);const A=y=>{f(y),a==null||a.capture(y?"library_project_menu_opened":"library_project_menu_closed")},L=async y=>{if(!k){c.current=y,m(!0),a==null||a.capture("library_project_pin_clicked",{is_pinning:!w,method:y});try{await r(s.id,!w)}catch(z){at.error(Be(z,"Could not save pin. Try again."))}finally{m(!1)}}},W=y=>{A(!1),x(s.name),S(null),p(y),a==null||a.capture("library_project_action_opened",{action:y})},K=y=>{a==null||a.capture("library_project_action_closed",{action:g,outcome:y}),p(null)},C=async()=>{if(!(N||!g||g==="rename"&&!j.trim())){E(!0),S(null);try{g==="rename"?await t(s.id,j.trim()):await n(s.id),K("completed")}catch(y){S(Be(y,"Could not save changes. Try again."))}finally{E(!1)}}};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`flex items-center gap-0.5 group-hover/project:pointer-events-auto group-hover/project:opacity-100 has-[:focus-visible]:pointer-events-auto has-[:focus-visible]:opacity-100 [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100 ${h?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"}`,children:[e.jsx(Y,{ref:i,type:"button",variant:"ghost",size:"icon-compact",title:w?"Unpin project":"Pin project","aria-label":`${w?"Unpin":"Pin"} ${s.name}`,"aria-pressed":w,disabled:k,onClick:()=>{L("button")},children:e.jsx(Se,{weight:w?"fill":"bold",size:16,"aria-hidden":!0})}),e.jsxs(Wt,{open:h,onOpenChange:A,children:[e.jsx(Vt,{asChild:!0,children:e.jsx(Y,{ref:o,type:"button",variant:"ghost",size:"icon-compact","aria-label":`Actions for ${s.name}`,children:e.jsx(Ks,{size:16,"aria-hidden":!0})})}),e.jsx(Gt,{children:e.jsxs(Yt,{"data-rivet-private":!0,ref:I,onKeyDown:O,role:"menu","aria-label":"Project actions",align:"start",sideOffset:4,onCloseAutoFocus:y=>{g&&y.preventDefault()},className:"ph-no-capture bg-surface-2 text-content z-ui-primary min-w-44 rounded-lg p-1 shadow-lg",children:[e.jsxs("button",{type:"button",role:"menuitem","data-menu-item":!0,disabled:k,onClick:()=>{A(!1),L("menu")},className:"hover:bg-hover focus:bg-hover flex w-full items-center gap-2 rounded-md px-3 py-2 text-xs focus:outline-none disabled:opacity-50",children:[e.jsx(Se,{size:14,weight:w?"fill":"bold","aria-hidden":!0}),w?"Unpin":"Pin"]}),e.jsxs("button",{type:"button",role:"menuitem","data-menu-item":!0,onClick:()=>W("rename"),className:"hover:bg-hover focus:bg-hover flex w-full items-center gap-2 rounded-md px-3 py-2 text-xs focus:outline-none",children:[e.jsx(Vs,{size:14,"aria-hidden":!0}),"Rename"]}),e.jsxs("button",{type:"button",role:"menuitem","data-menu-item":!0,onClick:()=>W("remove"),className:"hover:bg-hover focus:bg-hover flex w-full items-center gap-2 rounded-md px-3 py-2 text-xs focus:outline-none",children:[e.jsx(_t,{size:14,"aria-hidden":!0}),"Remove from projects"]})]})})]})]}),e.jsx(et,{open:g!==null,onOpenChange:y=>{!y&&!N&&K("cancelled")},children:e.jsxs(tt,{children:[e.jsx(st,{className:"z-modal fixed inset-0 bg-black/60"}),e.jsxs(rt,{"data-rivet-private":!0,onCloseAutoFocus:y=>{var z;y.preventDefault(),(z=o.current)==null||z.focus()},className:"ph-no-capture bg-surface-2 text-content z-ui-secondary fixed top-1/2 left-1/2 w-[calc(100%-2rem)] max-w-sm -translate-x-1/2 -translate-y-1/2 rounded-xl p-6 shadow-lg",children:[e.jsx(nt,{className:"text-base font-medium break-words",children:g==="rename"?"Rename project":`Remove “${s.name}” from projects?`}),e.jsx(it,{className:"mt-2 text-sm leading-6 text-white/60",children:g==="rename"?"Choose a display name for this project. Its folder name will stay the same.":"Your folders and saved variants will remain on this computer. Open the project again to restore it."}),e.jsxs("form",{onSubmit:y=>{y.preventDefault(),C()},children:[g==="rename"?e.jsxs("label",{className:"mt-5 block text-xs text-white/70",children:["Project name",e.jsx("input",{autoFocus:!0,value:j,onChange:y=>x(y.target.value),maxLength:Jt,disabled:N,className:"mt-2 w-full rounded-lg border border-white/15 bg-white/5 px-3 py-2 text-sm text-white outline-none focus:border-white/50"})]}):null,b?e.jsx("p",{role:"alert",className:"mt-4 text-xs text-red-300",children:b}):null,e.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[e.jsx(Y,{type:"button",variant:"ghost",disabled:N,onClick:()=>K("cancelled"),children:"Cancel"}),e.jsx(Y,{type:"submit",variant:"secondary",disabled:N||g==="rename"&&!j.trim(),children:B})]})]})]})]})})]})},Ct=6e4,Rt=60*Ct,ve=24*Rt,Js=7*ve,Xs=30*ve,Zs=365*ve,er=[["year",Zs],["month",Xs],["week",Js],["day",ve],["hour",Rt],["minute",Ct]],tr=new Intl.RelativeTimeFormat("en",{numeric:"always"}),sr=s=>{const t=new Map;for(const n of s??[]){const r=Date.parse(n.createdAt);if(!Number.isFinite(r))continue;const a=t.get(n.projectId);(a===void 0||r>a)&&t.set(n.projectId,r)}return t},rr=({projects:s,latestEdits:t})=>[...s].sort((n,r)=>{if(n.pinnedAt&&!r.pinnedAt)return-1;if(r.pinnedAt&&!n.pinnedAt)return 1;if(n.pinnedAt&&r.pinnedAt)return n.pinnedAt.localeCompare(r.pinnedAt)||n.id.localeCompare(r.id);const a=t.get(n.id),o=t.get(r.id);return a===void 0&&o!==void 0?1:o===void 0&&a!==void 0?-1:(o??0)-(a??0)||n.name.localeCompare(r.name)||n.id.localeCompare(r.id)}),nr=({editedAt:s,now:t})=>{const n=Math.max(0,t-s);for(const[r,a]of er)if(n>=a)return`Edited ${tr.format(-Math.floor(n/a),r)}`;return"Edited just now"},It=d.createContext(null),ir=({navigation:s,onBrowseProjects:t,controls:n,isHeaderVisible:r=!0,children:a})=>{const[o,i]=d.useState(null);return e.jsxs(It.Provider,{value:o,children:[r?e.jsxs("div",{className:"grid shrink-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-4 px-10 py-5 max-sm:px-5 sm:grid-cols-[auto_minmax(0,1fr)_auto]",children:[e.jsx("button",{onClick:t,"aria-label":"Projects",className:"flex items-center",children:e.jsx("img",{src:Xt,alt:"","aria-hidden":!0,draggable:!1,className:"h-8 w-8"})}),e.jsx("div",{ref:i,className:"col-span-2 row-start-2 flex min-w-0 items-center gap-3 sm:col-span-1 sm:col-start-2 sm:row-start-1",children:n}),e.jsx("div",{className:"col-start-2 row-start-1 justify-self-end sm:col-start-3",children:s})]}):null,a]})},Pt=({children:s})=>{const t=d.useContext(It);return t?Zt.createPortal(s,t):null},Oe=({label:s,value:t,onChange:n,onBlur:r,isDisabled:a=!1})=>e.jsxs("label",{className:"flex w-64 min-w-0 items-center gap-2 rounded-lg border border-white/[0.08] bg-white/[0.02] px-3 py-2.5 text-white/35 max-sm:flex-1",children:[e.jsx(Gs,{size:14,className:"shrink-0","aria-hidden":!0}),e.jsx("input",{type:"search","aria-label":s,placeholder:`${s}…`,value:t,onChange:o=>n==null?void 0:n(o.target.value),onBlur:r,disabled:a,className:"min-w-0 flex-1 bg-transparent text-xs text-white outline-none placeholder:text-white/30 disabled:opacity-40 [&::-webkit-search-cancel-button]:hidden"})]}),ar=({projects:s,variants:t,historyError:n,onRetryHistory:r,projectPreviews:a={},selectedProjectId:o,onSelectProject:i,onBrowseLibrary:c,onOpenProject:h,onRenameProject:f,onRemoveProject:k,onSetProjectPinned:m,isOpeningProject:w=!1,projectOpenError:g,onSearchCompleted:p,accountMenu:j,navigation:x,view:N="library",children:E})=>{const[b,S]=d.useState(""),I=o===null||E===void 0,O=d.useRef(null),B=sr(t),[A]=d.useState(Date.now),L=s.find(C=>C.id===o),W=new Map;if(t)for(const C of s)C.historyIssue||W.set(C.id,0);for(const{projectId:C}of t??[]){const y=W.get(C);y!==void 0&&W.set(C,y+1)}const K=rr({projects:s.filter(C=>C.name.toLowerCase().includes(b.toLowerCase())),latestEdits:B});return e.jsx("div",{className:"ph-no-capture bg-background text-foreground flex h-screen min-h-0","data-rivet-private":!0,children:e.jsx("main",{className:"relative flex min-w-0 flex-1 flex-col overflow-hidden",children:e.jsxs(ir,{navigation:x,onBrowseProjects:c,isHeaderVisible:I,controls:N==="library"?e.jsx(Oe,{label:"Search projects",value:b,onChange:S,onBlur:()=>p==null?void 0:p(b.length)}):null,children:[g?e.jsx("p",{role:"alert",className:"px-10 pt-5 text-xs text-red-200",children:g}):null,E!==void 0?E:e.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto px-10 pb-10 max-sm:px-5",children:[e.jsx("h1",{ref:O,tabIndex:-1,className:"sr-only",children:"Projects"}),e.jsx("div",{className:"mb-9 flex items-center justify-end",children:e.jsx(Y,{onClick:()=>h(),variant:"secondary",disabled:w,leadingIcon:We,className:"shrink-0",children:"Open project…"})}),n?e.jsxs("div",{role:"alert",className:"mb-6 flex items-center gap-3 text-xs text-white/60",children:[e.jsx("span",{children:n}),e.jsx("button",{onClick:r,className:"shrink-0 underline underline-offset-4",children:"Retry history"})]}):null,L!=null&&L.issue?e.jsx("p",{role:"alert",className:"mb-6 rounded-lg border border-amber-200/10 bg-amber-200/[0.03] p-4 text-xs leading-6 text-white/70",children:L.issue}):null,L&&!L.isAvailable?e.jsxs("div",{className:"mb-6 flex items-center justify-between gap-4 rounded-lg border border-amber-200/10 bg-amber-200/[0.03] p-4 text-xs text-white/60",children:[e.jsxs("span",{children:["Locate ",L.name,"’s working folder to open its workspace."]}),e.jsx("button",{disabled:w,onClick:()=>h(L.id),className:"shrink-0 text-white underline decoration-white/30 underline-offset-4",children:"Locate folder"})]}):null,e.jsxs("div",{className:"grid items-start gap-x-6 gap-y-8 sm:grid-cols-2",children:[K.map(C=>{const y=W.get(C.id);let z="Loading variants…";y!==void 0?z=`${y.toLocaleString()} ${y===1?"variant":"variants"}`:(n||C.historyIssue)&&(z="Variants unavailable");const u=B.get(C.id);let R="No edits yet";n||C.historyIssue?R="Edit history unavailable":t===void 0?R="Loading edits…":y&&(R="Edit date unavailable");const q=a[C.id];return e.jsxs("div",{className:"group/project grid min-w-0",children:[e.jsxs("button",{onClick:()=>{S(""),i(C.id)},className:"group col-start-1 row-span-2 row-start-1 -m-2 grid w-[calc(100%+1rem)] min-w-0 grid-rows-subgrid rounded-2xl p-2 text-left hover:bg-white/[0.06] focus-visible:bg-white/[0.06] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-white/60",children:[e.jsx("span",{className:"group-hover:border-border relative block aspect-video overflow-hidden rounded-xl border border-white/[0.08] bg-white/[0.02]",children:q?e.jsx("img",{src:q.dataUrl,alt:`${C.name} — ${q.label}`,draggable:!1,className:"h-full w-full object-cover object-top"}):null}),e.jsxs("span",{className:"mt-3 block pr-16",children:[e.jsxs("span",{className:"flex min-w-0 items-center gap-1.5 text-sm font-medium",children:[C.pinnedAt?e.jsx(Se,{size:12,weight:"fill","aria-hidden":!0,className:"text-content-muted shrink-0"}):null,e.jsx("span",{className:"truncate",children:C.name})]}),e.jsxs("span",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-xs text-white/40 group-hover:text-white/65 group-focus-visible:text-white/65",children:[u!==void 0?e.jsx("time",{dateTime:new Date(u).toISOString(),title:new Date(u).toLocaleString(),children:nr({editedAt:u,now:A})}):e.jsx("span",{children:R}),e.jsx("span",{className:"shrink-0",children:z})]}),C.isAvailable?null:e.jsx("span",{className:"mt-2 block text-xs text-amber-200/65",children:"Folder unavailable"})]})]}),e.jsx("div",{className:"z-content col-start-1 row-start-2 mt-3 self-center justify-self-end",children:e.jsx(Ys,{project:C,onRename:f,onSetPinned:m,onRemove:async X=>{var ie;await k(X),(ie=O.current)==null||ie.focus()}})})]},C.id)}),K.length===0?e.jsxs("div",{className:"col-span-full flex min-h-80 flex-col items-center justify-center rounded-xl border border-dashed border-white/10 px-8 text-center",children:[e.jsx(We,{size:26,className:"mb-5 text-white/25"}),e.jsx("h2",{className:"text-sm font-medium",children:b?"No matching projects":"Add your projects"}),e.jsx("p",{className:"mt-2 max-w-sm text-xs leading-6 text-white/40",children:b?"Try another project name.":"Open an existing project to add it as a project here"}),b?null:e.jsx(Y,{onClick:()=>h(),variant:"secondary",disabled:w,className:"mt-5",children:"Open project"})]}):null]})]}),I&&j?e.jsx("footer",{className:"border-main-border bg-main-light shrink-0 border-t px-2.5 py-2.5",children:j}):null]})})})},Et=8,Ve=1,or=({children:s})=>e.jsx("ul",{className:"grid grid-cols-1 items-start gap-x-5 min-[400px]:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5",style:{gridAutoRows:`${Et}px`},children:s}),cr=({children:s})=>{const[t,n]=d.useState(Ve),r=d.useRef(null),a=d.useCallback(o=>{var c;if((c=r.current)==null||c.disconnect(),!o)return;const i=()=>n(Math.max(Ve,Math.ceil(o.getBoundingClientRect().height/Et)));i(),r.current=new ResizeObserver(i),r.current.observe(o)},[]);return e.jsx("li",{className:"min-w-0",style:{gridRowEnd:`span ${t}`},children:e.jsx("div",{ref:a,className:"relative pb-8",children:s})})},lr=async({profileId:s,referenceId:t,hash:n,signal:r})=>{const a=await es(`/api/library/profile/references/${encodeURIComponent(t)}/media/${n}?${new URLSearchParams({profileId:s})}`,{signal:r});if(!a.ok)throw new Error("Image unavailable");return a.blob()},dr="200px",Lt=({profileId:s,referenceId:t,hash:n,title:r,isDetail:a=!1})=>{const[o,i]=d.useState(!1),[c,h]=d.useState(!1),f=d.useRef(null),k=d.useCallback(g=>{var p;(p=f.current)==null||p.disconnect(),g&&(f.current=new IntersectionObserver(j=>{var x;j.some(N=>N.isIntersecting)&&(i(!0),(x=f.current)==null||x.disconnect())},{rootMargin:dr}),f.current.observe(g))},[]),m=te({queryKey:$.designLibraryImage({profileId:s,referenceId:t,hash:n}),queryFn:async({signal:g})=>{const p=await lr({profileId:s,referenceId:t,hash:n,signal:g});return new Promise((j,x)=>{const N=new FileReader;N.onload=()=>typeof N.result=="string"?j(N.result):x(new Error("Image unavailable")),N.onerror=()=>x(new Error("Image unavailable")),N.readAsDataURL(p)})},enabled:o,staleTime:1/0,gcTime:0,retry:!1}),w=!!m.data&&!c;return e.jsxs("div",{ref:k,className:ye("flex items-center justify-center overflow-hidden bg-white/[0.025]",a?"min-h-32":null,!a&&!w?"aspect-[4/3]":null),children:[m.isError||c?e.jsxs("span",{className:"flex items-center gap-2 p-5 text-xs text-white/35",children:[e.jsx(Qs,{size:16,"aria-hidden":!0}),"Image unavailable"]}):null,m.data&&!c?e.jsx("img",{src:m.data,alt:r,onError:()=>h(!0),className:a?"max-h-[65vh] w-full object-contain":"block h-auto w-full"}):null,!m.data&&!m.isError?e.jsx("span",{className:"text-xs text-white/25",children:"Loading image…"}):null]})},ur={arena:"Are.na",cosmos:"Cosmos",pinterest:"Pinterest",x:"X",image:"Uploaded image",text:"Saved text",variant:"Saved direction",pdf:"PDF"},hr=({provider:s})=>e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[s==="arena"||s==="cosmos"||s==="pinterest"||s==="x"?e.jsx(ts,{provider:s,className:"h-3.5 w-3.5"}):null,ur[s]]}),mr=({label:s,onCopy:t,referenceCount:n=1})=>{const r=de(),[a,o]=d.useState("idle"),i=async()=>{o("copying");try{await t(),o("copied"),r==null||r.capture("library_reference_copy_completed",{reference_count:n,copy_kind:"agent"})}catch{o("failed"),at.error("Could not copy. Check clipboard access and try again."),r==null||r.capture("library_reference_copy_failed",{reference_count:n,copy_kind:"agent"})}},c=a==="copied"?pt:Bs,h=a==="copied"?"Copied":s;return e.jsxs(e.Fragment,{children:[e.jsx(Y,{variant:"secondary",size:"compact",leadingIcon:c,disabled:a==="copying",onClick:()=>void i(),"aria-label":h,"aria-live":"polite",children:e.jsxs("span",{className:"grid whitespace-nowrap",children:[e.jsx("span",{"aria-hidden":!0,className:"invisible col-start-1 row-start-1",children:s}),e.jsx("span",{className:"col-start-1 row-start-1",children:h})]})}),a==="failed"?e.jsx("span",{role:"alert",className:"sr-only",children:"Could not copy. Check clipboard access and try again."}):null]})},At=ne({id:U(),title:U(),provider:ot,isIncluded:ge()}),xr=ss.extend({sourceIds:le(U()),observation:rs.nullable()}),pr=ne({profileId:U(),revision:ae(),isEnabled:ge(),sources:le(At),references:le(xr)});ne({query:U().trim().min(2).max(1e3),sourceId:U().min(1).max(200).optional(),limit:ae().int().min(1).max(100).default(24),runtime:ns.default("codex")});const fr=ne({profileId:U(),query:U(),coverage:ne({saved:ae(),analyzed:ae(),indexed:ae()}),results:le(ne({id:U(),key:U(),title:U(),provider:ot,url:U().optional(),description:U().nullable(),imageCount:ae(),sources:le(At),isIncluded:ge()}))}),Ot=50,Ge=12,br=U().regex(/^[a-f0-9]{12,64}@[1-9][0-9]*$/).refine(s=>Number.isSafeInteger(Number(s.split("@")[1])),"Invalid reference revision"),yr=ne({profileId:U().uuid(),keys:le(br).min(1).max(Ot),isDetailed:ge().default(!1)}),gr=s=>{const t=new Map;for(const n of s){const r=n.id.slice(0,Ge);t.set(r,(t.get(r)??0)+1)}return new Map(s.map(n=>{const r=n.id.slice(0,Ge),a=t.get(r)===1?r:n.id;return[n.id,`${a}@${n.revision}`]}))},vr=({profileId:s,referenceKeys:t})=>{const n=yr.parse({profileId:s,keys:t});return["rivet","profile","reference",n.profileId,...n.keys].join(" ")},Me=s=>{const t=s.referenceKeys.length===1?"Copy to agent":`Copy ${s.referenceKeys.length} to agent`;return e.jsx(mr,{label:t,referenceCount:s.referenceKeys.length,onCopy:()=>navigator.clipboard.writeText(vr(s))})},wr=({profileId:s,reference:t,sources:n,referenceKey:r,children:a})=>{var h,f;const o=de(),i=t.title||"Untitled reference",c=t.url&&/^https?:\/\//i.test(t.url)?t.url:void 0;return e.jsxs(et,{onOpenChange:k=>o==null?void 0:o.capture(k?"library_reference_opened":"library_reference_closed",{provider:t.provider,media_count:t.media.length}),children:[e.jsx(is,{asChild:!0,children:a}),e.jsxs(tt,{children:[e.jsx(st,{className:"fixed inset-0 z-50 bg-black/55"}),e.jsxs(rt,{className:"ph-no-capture bg-background text-foreground fixed inset-y-0 right-0 z-50 flex w-full max-w-2xl flex-col border-l border-white/10 shadow-2xl outline-none","data-rivet-private":!0,children:[e.jsxs("header",{className:"flex items-start justify-between gap-6 border-b border-white/[0.07] px-7 py-6",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx(it,{className:"mb-2 text-xs text-white/40",children:e.jsx(hr,{provider:t.provider})}),e.jsx(nt,{className:"text-lg leading-snug font-medium tracking-tight break-words",children:i})]}),e.jsx(as,{asChild:!0,children:e.jsx(Y,{variant:"ghost",size:"icon-compact","aria-label":"Close reference",children:e.jsx(_t,{size:18})})})]}),e.jsx("div",{className:"border-b border-white/[0.07] px-7 py-4",children:e.jsx(Me,{profileId:s,referenceKeys:[r]},t.revision)}),e.jsxs("div",{className:"min-h-0 flex-1 space-y-7 overflow-y-auto px-7 py-6",children:[t.media.map(k=>e.jsx(Lt,{profileId:s,referenceId:t.id,hash:k.hash,title:i,isDetail:!0},k.hash)),t.text?e.jsx("p",{className:"text-sm leading-7 break-words whitespace-pre-wrap text-white/70",children:t.text}):null,t.note?e.jsxs("section",{children:[e.jsx("h3",{className:"mb-2 text-xs font-medium text-white/45",children:"Your note"}),e.jsx("p",{className:"text-sm leading-7 break-words whitespace-pre-wrap text-white/75",children:t.note})]}):null,e.jsxs("section",{children:[e.jsx("h3",{className:"mb-2 text-xs font-medium text-white/45",children:((h=t.observation)==null?void 0:h.evidence)==="preference"?"Your preference":"Rivet’s analysis"}),e.jsx("p",{className:"text-sm leading-7 break-words whitespace-pre-wrap text-white/75",children:((f=t.observation)==null?void 0:f.description)??t.unsupportedReason??"No analysis saved yet."})]}),e.jsxs("section",{children:[e.jsx("h3",{className:"mb-3 text-xs font-medium text-white/45",children:"Saved in"}),e.jsx("ul",{className:"space-y-2",children:n.filter(k=>t.sourceIds.includes(k.id)).map(k=>e.jsxs("li",{className:"flex flex-wrap items-center justify-between gap-2 rounded-md bg-white/[0.035] px-3 py-2.5 text-xs",children:[e.jsx("span",{children:k.title}),k.isIncluded?null:e.jsx("span",{className:"text-white/35",children:"Excluded from generation"})]},k.id))})]}),c?e.jsxs("a",{href:c,target:"_blank",rel:"noopener noreferrer",onClick:()=>o==null?void 0:o.capture("library_reference_original_opened",{provider:t.provider}),className:"inline-flex items-center gap-1 text-xs text-white/70 underline-offset-4 hover:underline",children:["Open original",e.jsx(mt,{size:14,"aria-hidden":!0})]}):null]})]})]})]})},Ye="opacity-0 group-hover/card:opacity-100 group-focus-within/card:opacity-100 [@media(hover:none)]:opacity-100",jr="pointer-events-none group-hover/card:pointer-events-auto group-focus-within/card:pointer-events-auto [@media(hover:none)]:pointer-events-auto",kr=({profileId:s,reference:t,sources:n,referenceKey:r,isSelected:a,isSelectionDisabled:o,onSelect:i})=>{var f;const c=t.title||"Untitled reference",h=t.media[0];return e.jsxs("div",{className:"group/card relative",children:[e.jsx(wr,{profileId:s,reference:t,sources:n,referenceKey:r,children:e.jsx("button",{"aria-label":`Inspect ${c}`,className:"block w-full overflow-hidden text-left outline-none focus-visible:ring-2 focus-visible:ring-white/50 focus-visible:ring-offset-4 focus-visible:ring-offset-background",children:h?e.jsx(Lt,{profileId:s,referenceId:t.id,hash:h.hash,title:c},h.hash):e.jsxs("div",{className:"min-h-44 border border-white/10 bg-white/[0.03] p-5 pb-14",children:[e.jsx("p",{className:"text-sm font-medium text-white/80",children:c}),e.jsx("p",{className:"mt-3 line-clamp-3 text-xs leading-5 text-white/45",children:((f=t.observation)==null?void 0:f.description)??t.text})]})})}),e.jsx("div",{"aria-hidden":!0,className:ye("pointer-events-none absolute inset-0 bg-black/40",Ye)}),e.jsxs("div",{className:ye("absolute inset-x-0 bottom-0 z-10 flex items-center justify-between gap-2 p-2",a?null:Ye,a?null:jr),children:[e.jsxs("label",{className:"relative shrink-0 cursor-pointer",title:a?"Deselect":"Select",children:[e.jsx("input",{type:"checkbox","aria-label":`Select ${c}`,checked:a,disabled:o,onChange:i,className:"peer absolute inset-0 h-full w-full cursor-pointer opacity-0 disabled:cursor-default"}),e.jsx("span",{className:ye("flex h-7 w-7 items-center justify-center rounded-full border shadow-sm peer-focus-visible:ring-2 peer-focus-visible:ring-white peer-focus-visible:ring-offset-2 peer-disabled:opacity-40",a?"border-orange-400 bg-orange-500 text-white":"border-white/35 bg-black/60 text-white/70"),children:e.jsx(pt,{size:14,"aria-hidden":!0})})]}),e.jsx(Me,{profileId:s,referenceKeys:[r]},t.revision)]})]})},fe=24,Nr="200px",Sr=350,_r=100,Cr=({snapshot:s})=>{var z;const t=de(),[n,r]=d.useState(""),[a,o]=d.useState(""),i=d.useRef(null),[c,h]=d.useState(""),[f,k]=d.useState(fe),[m,w]=d.useState([]),g=d.useRef(null),p=gr(s.references),j=s.references.filter(u=>u.media.length>0),x=te({queryKey:$.designReferenceSearch({profileId:s.profileId,revision:s.revision,references:s.references.map(({id:u,revision:R,sourceIds:q})=>[u,R,q]),search:a,sourceId:c}),queryFn:({signal:u})=>H("/profile/search",{schema:fr,method:"POST",body:{query:a,sourceId:c||void 0,limit:_r},signal:u}),enabled:a.length>=2&&s.references.length>0,retry:!1}),N=s.references.filter(u=>m.includes(u.id)),E=N.flatMap(u=>{const R=p.get(u.id);return R?[R]:[]}),b=n.trim(),S=b.length>=2,I=S&&s.references.length>0&&(a!==b||x.isLoading),O=S&&!I&&x.isError,B=new Map(s.references.map(u=>[u.id,u])),A=S?(((z=x.data)==null?void 0:z.results)??[]).flatMap(({id:u})=>{const R=B.get(u);return R?[R]:[]}):j.filter(u=>!c||u.sourceIds.includes(c)),L=j.length>0,W=A.length,K=s.references.length>0?"No images yet":"Your library starts here",C=d.useCallback(u=>{var R;(R=g.current)==null||R.disconnect(),u&&(g.current=new IntersectionObserver(q=>{var X;q.some(ie=>ie.isIntersecting)&&((X=g.current)==null||X.disconnect(),k(Math.min(f+fe,W)))},{root:u.parentElement,rootMargin:Nr}),g.current.observe(u))},[f,W]),y=u=>{const R=N.map(X=>X.id),q=R.includes(u)?R.filter(X=>X!==u):[...R,u];w(q),t==null||t.capture("library_reference_selection_changed",{selected_count:q.length})};return e.jsxs("div",{className:"ph-no-capture flex min-h-0 flex-1 flex-col","data-rivet-private":!0,children:[e.jsx(Pt,{children:e.jsx(Oe,{label:"Search references",value:n,onChange:u=>{r(u),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>o(u.trim()),Sr),k(fe)},onBlur:()=>{var u;return t==null?void 0:t.capture("library_reference_search_completed",{query_length:n.length,result_count:S?((u=x.data)==null?void 0:u.results.length)??0:A.length})}})}),e.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto px-10 pb-10 max-sm:px-5",children:[!s.isEnabled&&L?e.jsx("p",{className:"mb-5 text-xs text-white/40",children:"Automatic use is paused. Your saved references are still here."}):null,L?e.jsx("div",{className:"mb-7 flex flex-wrap items-center gap-3",children:e.jsxs("select",{"aria-label":"Source",value:c,onChange:u=>{h(u.target.value),k(fe),t==null||t.capture("library_reference_source_filtered",{is_filtered:!!u.target.value})},className:"bg-background max-w-64 rounded-lg border border-white/[0.08] px-3 py-2.5 text-xs text-white/60 focus-visible:outline-2",children:[e.jsx("option",{value:"",children:"All sources"}),s.sources.map(u=>e.jsx("option",{value:u.id,children:u.title},u.id))]})}):null,E.length?e.jsxs("div",{className:"bg-background sticky top-0 z-20 mb-6 flex flex-wrap items-center gap-3 rounded-lg border border-white/10 p-3 shadow-lg",children:[e.jsxs("span",{className:"text-xs text-white/50",children:[E.length," selected"]}),e.jsx(Me,{profileId:s.profileId,referenceKeys:E},E.join(" ")),e.jsx(Y,{variant:"ghost",size:"compact",onClick:()=>{w([]),t==null||t.capture("library_reference_selection_changed",{selected_count:0})},children:"Clear selection"})]}):null,S&&x.data&&x.data.coverage.analyzed<x.data.coverage.saved?e.jsxs("p",{role:"status",className:"mb-5 text-xs text-white/45",children:[x.data.coverage.analyzed," of"," ",x.data.coverage.saved," references analyzed; results may be incomplete."]}):null,I?e.jsx("p",{role:"status",className:"py-10 text-center text-xs text-white/45",children:"Searching references…"}):null,O?e.jsxs("div",{role:"alert",className:"py-10 text-center text-xs text-white/50",children:[e.jsxs("p",{children:["Search is unavailable: ",x.error.message]}),e.jsx(Y,{variant:"ghost",onClick:()=>{t==null||t.capture("library_reference_search_retry"),x.refetch()},children:"Try again"})]}):null,!I&&!O&&A.length?e.jsx(or,{children:A.slice(0,f).map(u=>{const R=p.get(u.id);return R?e.jsx(cr,{children:e.jsx(kr,{profileId:s.profileId,reference:u,sources:s.sources,referenceKey:R,isSelected:m.includes(u.id),isSelectionDisabled:!m.includes(u.id)&&E.length>=Ot,onSelect:()=>y(u.id)})},u.id):null})}):null,!I&&!O&&!A.length?e.jsxs("div",{className:"flex min-h-72 flex-col items-center justify-center rounded-xl border border-dashed border-white/[0.08] px-6 text-center",children:[e.jsx(Ws,{size:28,strokeWidth:1,className:"mb-5 text-white/25","aria-hidden":!0}),e.jsx("h2",{className:"text-sm text-white/75",children:L||S?"No references found":K}),e.jsx("p",{className:"mt-2 max-w-sm text-xs leading-6 text-white/35",children:L||S?"Try another search or choose a different source.":"Ask your agent to save a design reference with an image to your library. It will appear here, ready to browse."})]}):null,!I&&!O&&A.length>f?e.jsx("div",{ref:C,role:"status",className:"py-8 text-center text-xs text-white/35",children:"Loading more references…"}):null]})]})},Rr=1e4,Ir=({onBrowseProjects:s})=>{var i,c;const t=ct(),n=de(),r=te({queryKey:$.designLibrary((i=t.data)==null?void 0:i.userId,(c=t.data)==null?void 0:c.isAuthenticated),queryFn:({signal:h})=>H("/profile/library",{schema:pr,signal:h}),enabled:!t.isPending,refetchInterval:Rr,gcTime:0,retry:!1}),a=()=>{n==null||n.capture("library_reference_retry"),r.refetch()},o=e.jsx(Pt,{children:e.jsx(Oe,{label:"Search references",value:"",isDisabled:!0})});return r.isError&&!r.data?e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[o,e.jsxs("div",{className:"m-auto max-w-md px-8 text-center",children:[e.jsx("h1",{className:"mb-3 text-lg font-medium",children:"References"}),e.jsx("p",{role:"alert",className:"text-sm text-white/50",children:r.error.message}),e.jsx("div",{className:"mt-5 flex justify-center gap-3",children:e.jsx(Y,{variant:"ghost",onClick:s,children:"Projects"})})]})]}):r.data?e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[r.isError?e.jsxs("div",{role:"alert",className:"flex items-center justify-between gap-4 border-b border-white/10 px-8 py-3 text-xs text-white/50",children:[e.jsx("span",{children:"Could not refresh. Showing the last saved results."}),e.jsx(Y,{variant:"ghost",onClick:a,children:"Try again"})]}):null,e.jsx(Cr,{snapshot:r.data},r.data.profileId)]}):e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[o,e.jsx("p",{role:"status",className:"m-auto text-xs text-white/40",children:"Loading references…"})]})},Pr=({view:s,onNavigate:t})=>e.jsx("nav",{"aria-label":"Library",className:"flex items-center gap-1 rounded-lg bg-white/[0.03] p-1",children:["library","references"].map(n=>e.jsx("a",{href:n==="library"?"/rivet/library":"/rivet/library/references","aria-current":s===n?"page":void 0,onClick:r=>{r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),t(n))},className:os("rounded-md px-3 py-2 text-xs focus-visible:outline-2 focus-visible:outline-offset-2",s===n?"bg-white/[0.08] text-white":"text-white/45 hover:text-white/80"),children:n==="library"?"Projects":"References"},n))}),Er=()=>{const s=Ae(),t=async o=>{await s.cancelQueries({queryKey:$.projectLibrary.all}),s.setQueryData($.projectLibrary.projects,i=>i&&{projects:o(i.projects)}),s.setQueriesData({queryKey:$.projectLibrary.histories},i=>{if(!i)return i;const c=o(i.projects),h=new Set(c.map(({id:f})=>f));return{projects:c,variants:i.variants.filter(({projectId:f})=>h.has(f))}}),s.invalidateQueries({queryKey:$.projectLibrary.all})},n=ue({mutationFn:({projectId:o,name:i})=>H(`/projects/${encodeURIComponent(o)}`,{schema:_e,method:"PATCH",body:{name:i}}),onSuccess:({project:o})=>t(i=>i.map(c=>c.id===o.id?{...c,name:o.name}:c))}),r=ue({mutationFn:({projectId:o,isPinned:i})=>H(`/projects/${encodeURIComponent(o)}/pin`,{schema:_e,method:i?"PUT":"DELETE"}),onSuccess:({project:o})=>t(i=>i.map(c=>c.id===o.id?{...c,pinnedAt:o.pinnedAt}:c))}),a=ue({mutationFn:o=>H(`/projects/${encodeURIComponent(o)}`,{schema:cs,method:"DELETE"}),onSuccess:async(o,i)=>{await t(c=>c.filter(({id:h})=>h!==i)),await s.cancelQueries({queryKey:$.libraryProjectPreview.project(i)}),s.removeQueries({queryKey:$.libraryProjectPreview.project(i)})}});return{setProjectPinned:async(o,i)=>{await r.mutateAsync({projectId:o,isPinned:i})},renameProject:async(o,i)=>{await n.mutateAsync({projectId:o,name:i})},removeProject:async o=>{await a.mutateAsync(o)}}},Je=2500,Lr=500,Ar=6e4,Or=[],Mr=[],be=({error:s,retry:t})=>e.jsxs("div",{className:"m-auto max-w-md px-8 text-center",children:[e.jsx("p",{className:"text-sm text-white/70",children:s.message}),e.jsx("button",{onClick:t,className:"mt-5 rounded-lg border border-white/15 px-4 py-2 text-xs text-white/70",children:"Try again"})]}),zr=()=>{var ze,Te,De,$e,qe,Fe;const s=de();ls(ct().data);const t=Ae(),{renameProject:n,removeProject:r,setProjectPinned:a}=Er(),o=d.useRef(),[i,c]=d.useState(()=>Ke(new URL(window.location.href))),[h]=d.useState(()=>crypto.randomUUID()),f=d.useRef(0),k=d.useRef(null),m=te({queryKey:$.projectLibrary.projects,queryFn:({signal:l})=>H("/projects",{schema:gs,signal:l}),refetchInterval:Je,retry:!1}),w=((ze=m.data)==null?void 0:ze.projects)??Or,g=w.map(({id:l,projectPath:v})=>({id:l,projectPath:v})).sort((l,v)=>l.id.localeCompare(v.id)),p=te({queryKey:$.projectLibrary.history(g),queryFn:({signal:l})=>H("",{schema:vs,signal:l}),placeholderData:l=>{if(!l)return;const v=new Map(l.projects.map(({id:T,projectPath:Z})=>[T,Z]));if(!w.every(({id:T,projectPath:Z})=>v.get(T)===Z))return;const P=new Set(w.map(({id:T})=>T));return{projects:l.projects.filter(({id:T})=>P.has(T)),variants:l.variants.filter(({projectId:T})=>P.has(T))}},enabled:w.length>0,refetchInterval:Je,retry:!1}),j=new Map((Te=p.data)==null?void 0:Te.projects.map(l=>[l.id,l])),x=w.map(l=>{const v=j.get(l.id);return{...l,issue:v?v.issue:l.issue,historyIssue:v?v.historyIssue:l.historyIssue}}),N=((De=p.data)==null?void 0:De.variants)??Mr,E=Ls({queries:x.map(l=>({queryKey:$.libraryProjectPreview.thumbnail(l.id,l.projectPath),queryFn:({signal:v})=>H(`/projects/${l.id}/thumbnail`,{schema:ys,signal:v}),enabled:i.kind==="library",refetchInterval:Ar,retry:!1}))}),b=x.find(l=>l.id===i.projectId),S=N.find(l=>l.projectId===i.projectId&&l.sessionId===i.sessionId&&l.variantId===i.variantId),I=d.useCallback(l=>{window.history.pushState(null,"",ds(l)),c(l)},[]);d.useEffect(()=>{b?o.current=b.id:m.isSuccess&&!m.isFetching&&i.projectId===o.current&&i.projectId&&(o.current=void 0,I({kind:"library"}))},[b,i.projectId,m.isSuccess,m.isFetching,I]),d.useEffect(()=>{const l=()=>c(Ke(new URL(window.location.href)));return window.addEventListener("popstate",l),()=>window.removeEventListener("popstate",l)},[]),d.useEffect(()=>{const l=new AbortController;let v;const P=async()=>{try{const T=await H(`/views/${h}`,{schema:ms,method:"PUT",body:{isFocused:document.visibilityState==="visible"&&document.hasFocus()},signal:l.signal});for(const Z of T.navigations){if(l.signal.aborted)return;if(Z.sequence>f.current){let we="library";Z.projectId&&(we="workspace"),Z.variantId&&(we="preview"),I({...Z,kind:we}),f.current=Z.sequence}await H(`/views/${h}/acknowledgements`,{schema:xs,method:"POST",body:{sequence:Z.sequence},signal:l.signal})}}catch{}l.signal.aborted||(v=setTimeout(()=>{P()},Lr))};return P(),()=>{l.abort(),clearTimeout(v)}},[h,I]);const O=te({queryKey:$.libraryWorkspace(i.projectId),queryFn:()=>H(`/projects/${i.projectId}/runtime`,{schema:ws,method:"POST"}),enabled:i.kind==="workspace"&&!!i.projectId&&(b==null?void 0:b.isAvailable)===!0,retry:!1,refetchOnWindowFocus:!1}),B=O.data?new URL(O.data.editorUrl).origin:null;d.useEffect(()=>{if(i.kind!=="workspace"||!B)return;const l=v=>{!k.current||v.source!==k.current.contentWindow||v.origin!==B||v.data!==ps||(s==null||s.capture("library_view_changed",{view:"projects"}),I({kind:"library"}))};return window.addEventListener("message",l),()=>window.removeEventListener("message",l)},[i.kind,B,I,s]);const A=te({queryKey:$.libraryPreview({projectId:i.projectId,sessionId:i.sessionId,variantId:i.variantId}),queryFn:()=>H(`/projects/${i.projectId}/variants/${i.sessionId}/${i.variantId}/preview`,{schema:js,method:"POST"}),enabled:i.kind==="preview"&&!!(S!=null&&S.hasStaticPreview),retry:!1,refetchOnWindowFocus:!1}),L=ue({mutationFn:l=>H(`/projects/${i.projectId}/variants/${i.sessionId}/${i.variantId}`,{schema:fs,method:"PATCH",body:{label:l}}),onSuccess:()=>t.invalidateQueries({queryKey:$.projectLibrary.all})}),W=l=>{const v=x.find(P=>P.id===l);s==null||s.capture("library_project_selected",{project_id:l,workspace_available:(v==null?void 0:v.isAvailable)??!1}),I({kind:"workspace",projectId:l})},K=ue({mutationFn:async l=>{const{projectPath:v}=await H("/folder-selections",{schema:bs,method:"POST"});return v===null?null:H(l?`/projects/${l}/workspace`:"/projects",{schema:_e,method:l?"PATCH":"POST",body:{projectPath:v}})},onSuccess:l=>{l&&(t.invalidateQueries({queryKey:$.projectLibrary.all}),s==null||s.capture("library_project_selected",{project_id:l.project.id,workspace_available:l.project.isAvailable}),I({kind:"workspace",projectId:l.project.id}))},onSettled:(l,v,P)=>{s==null||s.capture("library_open_project_closed",{is_relink:!!P})}}),C=l=>{K.isPending||(s==null||s.capture("library_open_project_opened",{is_relink:!!l}),K.mutate(l))},y=()=>{s==null||s.capture("library_view_changed",{view:"projects"}),I({kind:"library"})},z=()=>{s==null||s.capture("library_view_changed",{view:"workspace"}),I({...i,kind:"workspace"})},u=()=>{s==null||s.capture("library_history_retry"),p.refetch()};let R;if(i.kind==="workspace"&&(b==null?void 0:b.isAvailable)!==!1||i.kind==="preview"){let l=!1,v=e.jsxs("div",{className:"m-auto flex items-center gap-2 text-xs text-white/40",children:[e.jsx(jt,{size:14,className:"animate-spin"}),"Opening ",(b==null?void 0:b.name)??"project","…"]});if(m.data&&!b||p.data&&i.variantId&&!S)v=e.jsx("div",{className:"m-auto text-sm text-white/60",children:"This project or direction is no longer in your library."});else if(i.kind==="preview"&&p.error&&!p.data)v=e.jsx(be,{error:p.error,retry:u});else if(i.kind==="workspace"&&O.error)v=e.jsx(be,{error:O.error,retry:()=>{O.refetch()}});else if(i.kind==="workspace"&&O.data){l=!0;const P=new URL(O.data.editorUrl);P.searchParams.set("library","1"),P.searchParams.set("libraryOrigin",window.location.origin),i.sessionId&&i.variantId&&(P.searchParams.set("historySession",i.sessionId),P.searchParams.set("historyVariant",i.variantId)),v=e.jsx("iframe",{ref:k,title:`${(b==null?void 0:b.name)??"Project"} workspace`,src:P.toString(),allow:"clipboard-write","data-rivet-private":!0,className:"ph-no-capture min-h-0 w-full flex-1 border-0"},P.toString())}else i.kind==="preview"&&A.error?v=e.jsx(be,{error:A.error,retry:()=>{A.refetch()}}):i.kind==="preview"&&A.data?v=e.jsx("iframe",{title:`${(S==null?void 0:S.label)??"Saved direction"} preview`,src:A.data.url,sandbox:"allow-scripts allow-same-origin allow-forms allow-popups",className:"min-h-0 w-full flex-1 border-0 bg-white"}):i.kind==="preview"&&S&&!S.hasStaticPreview&&(v=e.jsxs("div",{className:"m-auto max-w-sm text-center",children:[e.jsx("p",{className:"text-sm",children:S.hasInteractivePreview?"Open this direction in its workspace":"This direction contains saved code changes"}),e.jsx("p",{className:"mt-2 text-xs leading-6 text-white/40",children:S.hasInteractivePreview?"Rivet will start the preview with this project’s dependencies and configuration.":"Open the project to continue working with its saved history."}),e.jsx("button",{onClick:z,disabled:(b==null?void 0:b.isAvailable)===!1,className:"mt-5 rounded-lg bg-white px-4 py-2.5 text-xs font-medium text-black disabled:opacity-30",children:"Open workspace"})]}));R=e.jsxs(e.Fragment,{children:[i.kind==="preview"?e.jsxs("header",{className:"flex h-14 shrink-0 items-center gap-3 border-b border-white/[0.07] px-5",children:[e.jsx("button",{"aria-label":"Back to projects",onClick:y,className:"rounded p-1.5 text-white/45 hover:bg-white/5",children:e.jsx(Us,{size:15})}),e.jsx("span",{className:"text-xs text-white/40",children:b==null?void 0:b.name}),S?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-white/20",children:"/"}),e.jsxs("form",{onSubmit:P=>{P.preventDefault();const T=new FormData(P.currentTarget);L.mutate(String(T.get("label")))},className:"flex min-w-0 flex-1 gap-2",children:[e.jsx("input",{name:"label","aria-label":"Direction name",defaultValue:S.label,className:"max-w-xs min-w-0 flex-1 bg-transparent text-xs text-white/80 outline-none"}),e.jsx("button",{disabled:L.isPending,className:"text-[10px] text-white/30 hover:text-white",children:"Rename"})]},`${S.projectId}:${S.variantId}`)]}):e.jsx("span",{className:"flex-1"}),i.kind==="preview"?e.jsxs("button",{onClick:z,disabled:(b==null?void 0:b.isAvailable)===!1,className:"flex items-center gap-1.5 rounded-md border border-white/10 px-3 py-1.5 text-[11px] text-white/70 disabled:opacity-30",children:["Edit in project",e.jsx(mt,{size:12})]}):null]}):null,i.kind==="workspace"&&!l?e.jsx("button",{onClick:y,className:"absolute top-5 left-5 rounded px-2 py-1 text-xs text-white/50 hover:bg-white/5 hover:text-white",children:"Projects"}):null,L.error?e.jsx("p",{role:"alert",className:"px-5 py-2 text-xs text-red-200",children:L.error.message}):null,v]})}let q=R;m.error&&!m.data?q=e.jsx(be,{error:m.error,retry:()=>{m.refetch()}}):m.isPending&&(q=e.jsx("div",{role:"status",className:"flex min-h-0 flex-1 items-center justify-center text-xs text-white/40",children:"Loading projects…"}));const X=i.kind==="references"?"references":"library",ie=e.jsx(Pr,{view:X,onNavigate:l=>{s==null||s.capture("library_view_changed",{view:l==="references"?"references":"projects"}),I({kind:l})}});return i.kind==="references"&&(q=e.jsx(Ir,{onBrowseProjects:y})),e.jsxs(e.Fragment,{children:[e.jsx(ar,{projects:x,variants:($e=p.data)==null?void 0:$e.variants,historyError:(qe=p.error)==null?void 0:qe.message,onRetryHistory:u,projectPreviews:Object.fromEntries(x.map((l,v)=>{var P,T;return[l.id,(T=(P=E[v])==null?void 0:P.data)==null?void 0:T.preview]})),selectedProjectId:i.projectId??null,onSelectProject:W,onBrowseLibrary:y,navigation:ie,view:X,onOpenProject:C,onRenameProject:n,onRemoveProject:r,onSetProjectPinned:a,accountMenu:e.jsx(us,{side:"top",align:"start"}),isOpeningProject:K.isPending,projectOpenError:(Fe=K.error)==null?void 0:Fe.message,onSearchCompleted:l=>s==null?void 0:s.capture("library_search_completed",{query_length:l}),children:q}),e.jsx(hs,{position:"bottom-right",theme:"dark"})]})},Tr=async s=>{const t=Ps(),n=await _s("/api/library/browser-sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!n.ok){const r=Cs.safeParse(await n.json().catch(()=>null));throw new Error(r.success?r.data.error:"Could not start a library session.")}Rs(Is(await n.json()),t)},Dr=()=>{const s=d.useSyncExternalStore(lt,Ns),{startLogin:t,isStartingLogin:n,loginError:r}=Ss("library",Tr);return e.jsx("main",{className:"flex min-h-screen items-center justify-center bg-[#111215] px-6 text-white",children:e.jsxs("div",{className:"w-full max-w-sm rounded-2xl border border-white/10 bg-white/[0.04] p-8 text-center shadow-2xl",children:[e.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Rivet"}),e.jsx("p",{className:"mt-3 text-sm leading-6 text-white/60",children:"Sign in to open your project library on this computer."}),e.jsxs("button",{type:"button",onClick:()=>void t(),disabled:n,className:"mt-7 inline-flex h-10 w-full items-center justify-center gap-2 rounded-lg bg-white px-4 text-sm font-medium text-black disabled:opacity-60",children:[n?e.jsx(jt,{size:16,className:"animate-spin"}):null,n?"Connecting…":"Continue with Google"]}),r||s?e.jsx("p",{role:"alert",className:"mt-4 text-sm text-red-300",children:r??s}):null]})})},Fr=()=>d.useSyncExternalStore(lt,ks)?e.jsx(zr,{}):e.jsx(Dr,{});export{Fr as default};
|
|
112
|
+
//# sourceMappingURL=LibraryEntry-DS6Ce0sW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.la-scene{overflow:hidden;isolation:isolate;background:radial-gradient(130% 120% at 50% 42%,#fff 60%,#f0efec)}.la-obj{position:absolute;top:0;left:0;transform-origin:50% 50%;will-change:transform,opacity,filter;-webkit-user-select:none;user-select:none;pointer-events:none}.la-obj img{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 12px rgba(40,33,28,.22)) drop-shadow(0 2px 3px rgba(40,33,28,.18))}.la-logo-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.la-mark{position:absolute;top:0;left:0;width:100%;height:100%}/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-500:oklch(63.7% .237 25.331);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-amber-200:oklch(92.4% .12 95.746);--color-emerald-500:oklch(69.6% .17 162.48);--color-sky-400:oklch(74.6% .16 232.661);--color-neutral-900:oklch(20.5% 0 none);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-5xl:64rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--aspect-video:16 / 9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before{border-color:var(--color-main-border,#232328)}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-px{top:1px;right:1px;bottom:1px;left:1px}.inset-x-0{inset-inline:0}.inset-y-0{inset-block:0}.top-0{top:0}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-5{top:calc(var(--spacing) * 5)}.right-0{right:0}.right-1{right:var(--spacing)}.right-2{right:calc(var(--spacing) * 2)}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-5{left:calc(var(--spacing) * 5)}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[100\]{z-index:100}.z-content{z-index:10}.z-max{z-index:999999}.z-modal{z-index:30}.z-tooltip{z-index:70}.z-ui-primary{z-index:50}.z-ui-secondary{z-index:40}.order-first{order:-9999}.col-span-2{grid-column:span 2/span 2}.col-span-full{grid-column:1/-1}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-m-2{margin:calc(var(--spacing) * -2)}.m-auto{margin:auto}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-7{margin-top:calc(var(--spacing) * 7)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-7{margin-bottom:calc(var(--spacing) * 7)}.mb-9{margin-bottom:calc(var(--spacing) * 9)}.ml-3{margin-left:calc(var(--spacing) * 3)}.ml-auto{margin-left:auto}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-video{aspect-ratio:var(--aspect-video)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-2\.5{height:calc(var(--spacing) * 2.5)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-44{height:calc(var(--spacing) * 44)}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-60{max-height:calc(var(--spacing) * 60)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-\[65vh\]{max-height:65vh}.max-h-\[min\(680px\,calc\(100vh-32px\)\)\]{max-height:min(680px,100vh - 32px)}.min-h-0{min-height:0}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-32{min-height:calc(var(--spacing) * 32)}.min-h-44{min-height:calc(var(--spacing) * 44)}.min-h-72{min-height:calc(var(--spacing) * 72)}.min-h-80{min-height:calc(var(--spacing) * 80)}.min-h-\[64px\]{min-height:64px}.min-h-screen{min-height:100vh}.w-0\.5{width:calc(var(--spacing) * .5)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-11{width:calc(var(--spacing) * 11)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-24{width:calc(var(--spacing) * 24)}.w-28{width:calc(var(--spacing) * 28)}.w-64{width:calc(var(--spacing) * 64)}.w-\[360px\]{width:360px}.w-\[440px\]{width:440px}.w-\[calc\(100\%\+1rem\)\]{width:calc(100% + 1rem)}.w-\[calc\(100\%-2rem\)\]{width:calc(100% - 2rem)}.w-\[min\(440px\,calc\(100vw-32px\)\)\]{width:min(440px,100vw - 32px)}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-40{max-width:calc(var(--spacing) * 40)}.max-w-60{max-width:calc(var(--spacing) * 60)}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\[8rem\]{max-width:8rem}.max-w-\[14rem\]{max-width:14rem}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:0}.min-w-44{min-width:calc(var(--spacing) * 44)}.min-w-\[140px\]{min-width:140px}.min-w-\[160px\]{min-width:160px}.min-w-\[180px\]{min-width:180px}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-auto{cursor:auto}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.resize{resize:both}.resize-none{resize:none}.\[scrollbar-gutter\:stable\]{scrollbar-gutter:stable}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_minmax\(0\,1fr\)\]{grid-template-columns:auto minmax(0,1fr)}.grid-rows-subgrid{grid-template-rows:subgrid}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-\[inherit\]{gap:inherit}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-7>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 7) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 7) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-5{column-gap:calc(var(--spacing) * 5)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-1{row-gap:var(--spacing)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-main-border>:not(:last-child)){border-color:#232328}.self-center{align-self:center}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.rounded-l-md{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.rounded-r-md{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-amber-200\/10{border-color:#fee6851a}@supports (color:color-mix(in lab,red,red)){.border-amber-200\/10{border-color:color-mix(in oklab,var(--color-amber-200) 10%,transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black) 10%,transparent)}}.border-border{border-color:var(--border)}.border-content-muted\/40{border-color:#d1d5db66}.border-current{border-color:currentColor}.border-divider{border-color:#4b5563}.border-hover{border-color:var(--hover)}.border-main-border{border-color:#232328}.border-orange-400{border-color:var(--color-orange-400)}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.border-white\/15{border-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.border-white\/15{border-color:color-mix(in oklab,var(--color-white) 15%,transparent)}}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab,red,red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white) 20%,transparent)}}.border-white\/35{border-color:#ffffff59}@supports (color:color-mix(in lab,red,red)){.border-white\/35{border-color:color-mix(in oklab,var(--color-white) 35%,transparent)}}.border-white\/\[0\.07\]{border-color:#ffffff12}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.07\]{border-color:color-mix(in oklab,var(--color-white) 7%,transparent)}}.border-white\/\[0\.08\]{border-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.border-white\/\[0\.08\]{border-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.border-t-transparent{border-top-color:#0000}.bg-\[\#1c1c20\]{background-color:#1c1c20}.bg-\[\#111215\]{background-color:#111215}.bg-\[\#b1b1b1\]{background-color:#b1b1b1}.bg-\[var\(--btn-bg\)\]{background-color:var(--btn-bg)}.bg-accent{background-color:var(--accent)}.bg-accent-error{background-color:#ef4444}.bg-accent-success{background-color:#10b981}.bg-accent-warning{background-color:#f59e0b}.bg-amber-200\/\[0\.03\]{background-color:#fee68508}@supports (color:color-mix(in lab,red,red)){.bg-amber-200\/\[0\.03\]{background-color:color-mix(in oklab,var(--color-amber-200) 3%,transparent)}}.bg-background{background-color:var(--background)}.bg-black\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-black\/55{background-color:#0000008c}@supports (color:color-mix(in lab,red,red)){.bg-black\/55{background-color:color-mix(in oklab,var(--color-black) 55%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.bg-card{background-color:var(--card)}.bg-content-muted{background-color:#d1d5db}.bg-current{background-color:currentColor}.bg-divider{background-color:#4b5563}.bg-hover{background-color:var(--hover)}.bg-main{background-color:#1c1c20}.bg-main-hover{background-color:#404040}.bg-main-input{background-color:#2e2e2e}.bg-main-input\/40{background-color:#2e2e2e66}.bg-main-light{background-color:#1e1e22}.bg-main\/90{background-color:#1c1c20e6}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/10{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/10{background-color:color-mix(in oklab,var(--muted-foreground) 10%,transparent)}}.bg-muted-foreground\/15{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/15{background-color:color-mix(in oklab,var(--muted-foreground) 15%,transparent)}}.bg-neutral-900{background-color:var(--color-neutral-900)}.bg-orange-500{background-color:var(--color-orange-500)}.bg-popover{background-color:var(--popover)}.bg-primary{background-color:#f30}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500) 15%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-selected{background-color:var(--selected)}.bg-surface-1{background-color:var(--surface-1)}.bg-surface-2{background-color:var(--surface-2)}.bg-surface-3{background-color:var(--surface-3)}.bg-surface-4{background-color:var(--surface-4)}.bg-surface-5{background-color:var(--surface-5)}.bg-surface-6{background-color:var(--surface-6)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-white\/5{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.bg-white\/5{background-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.bg-white\/15{background-color:#ffffff26}@supports (color:color-mix(in lab,red,red)){.bg-white\/15{background-color:color-mix(in oklab,var(--color-white) 15%,transparent)}}.bg-white\/\[0\.02\]{background-color:#ffffff05}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.02\]{background-color:color-mix(in oklab,var(--color-white) 2%,transparent)}}.bg-white\/\[0\.03\]{background-color:#ffffff08}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.03\]{background-color:color-mix(in oklab,var(--color-white) 3%,transparent)}}.bg-white\/\[0\.04\]{background-color:#ffffff0a}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.04\]{background-color:color-mix(in oklab,var(--color-white) 4%,transparent)}}.bg-white\/\[0\.08\]{background-color:#ffffff14}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.08\]{background-color:color-mix(in oklab,var(--color-white) 8%,transparent)}}.bg-white\/\[0\.012\]{background-color:#ffffff03}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.012\]{background-color:color-mix(in oklab,var(--color-white) 1.2%,transparent)}}.bg-white\/\[0\.025\]{background-color:#ffffff06}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.025\]{background-color:color-mix(in oklab,var(--color-white) 2.5%,transparent)}}.bg-white\/\[0\.035\]{background-color:#ffffff09}@supports (color:color-mix(in lab,red,red)){.bg-white\/\[0\.035\]{background-color:color-mix(in oklab,var(--color-white) 3.5%,transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-top{object-position:top}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-7{padding-inline:calc(var(--spacing) * 7)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-10{padding-inline:calc(var(--spacing) * 10)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-10{padding-block:calc(var(--spacing) * 10)}.pt-1{padding-top:var(--spacing)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-5{padding-top:calc(var(--spacing) * 5)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pr-12{padding-right:calc(var(--spacing) * 12)}.pr-16{padding-right:calc(var(--spacing) * 16)}.pb-1{padding-bottom:var(--spacing)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pb-10{padding-bottom:calc(var(--spacing) * 10)}.pb-12{padding-bottom:calc(var(--spacing) * 12)}.pb-14{padding-bottom:calc(var(--spacing) * 14)}.pb-\[14vh\]{padding-bottom:14vh}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-7{padding-left:calc(var(--spacing) * 7)}.pl-\[33px\]{padding-left:33px}.text-center{text-align:center}.text-left{text-align:left}.font-main{font-family:Satoshi,Inter,system-ui,-apple-system,Segoe UI,sans-serif}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-6{--tw-leading:calc(var(--spacing) * 6);line-height:calc(var(--spacing) * 6)}.leading-7{--tw-leading:calc(var(--spacing) * 7);line-height:calc(var(--spacing) * 7)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.16em\]{--tw-tracking:.16em;letter-spacing:.16em}.tracking-\[0\.18em\]{--tw-tracking:.18em;letter-spacing:.18em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#18181b\]{color:#18181b}.text-\[\#71717a\]{color:#71717a}.text-\[\#e60023\]{color:#e60023}.text-amber-200\/65{color:#fee685a6}@supports (color:color-mix(in lab,red,red)){.text-amber-200\/65{color:color-mix(in oklab,var(--color-amber-200) 65%,transparent)}}.text-background{color:var(--background)}.text-black{color:var(--color-black)}.text-content{color:#fff}.text-content-muted{color:#d1d5db}.text-content-subtle{color:#9ca3af}.text-emerald-500{color:var(--color-emerald-500)}.text-foreground{color:var(--foreground)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:#f30}.text-red-200{color:var(--color-red-200)}.text-red-300{color:var(--color-red-300)}.text-red-500{color:var(--color-red-500)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sky-400{color:var(--color-sky-400)}.text-white{color:var(--color-white)}.text-white\/20{color:#fff3}@supports (color:color-mix(in lab,red,red)){.text-white\/20{color:color-mix(in oklab,var(--color-white) 20%,transparent)}}.text-white\/25{color:#ffffff40}@supports (color:color-mix(in lab,red,red)){.text-white\/25{color:color-mix(in oklab,var(--color-white) 25%,transparent)}}.text-white\/30{color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.text-white\/30{color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.text-white\/35{color:#ffffff59}@supports (color:color-mix(in lab,red,red)){.text-white\/35{color:color-mix(in oklab,var(--color-white) 35%,transparent)}}.text-white\/40{color:#fff6}@supports (color:color-mix(in lab,red,red)){.text-white\/40{color:color-mix(in oklab,var(--color-white) 40%,transparent)}}.text-white\/45{color:#ffffff73}@supports (color:color-mix(in lab,red,red)){.text-white\/45{color:color-mix(in oklab,var(--color-white) 45%,transparent)}}.text-white\/50{color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.text-white\/50{color:color-mix(in oklab,var(--color-white) 50%,transparent)}}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\/60{color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab,red,red)){.text-white\/70{color:color-mix(in oklab,var(--color-white) 70%,transparent)}}.text-white\/75{color:#ffffffbf}@supports (color:color-mix(in lab,red,red)){.text-white\/75{color:color-mix(in oklab,var(--color-white) 75%,transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab,red,red)){.text-white\/80{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.uppercase{text-transform:uppercase}.underline{text-decoration-line:underline}.decoration-white\/30{text-decoration-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.decoration-white\/30{-webkit-text-decoration-color:color-mix(in oklab,var(--color-white) 30%,transparent);text-decoration-color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.underline-offset-4{text-underline-offset:4px}.placeholder-content-subtle::placeholder{color:#9ca3af}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_transparent\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,transparent);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_var\(--border\)\,inset_0_0_0_0px_var\(--border\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--border)), inset 0 0 0 0px var(--tw-shadow-color,var(--border));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_var\(--btn-bg\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--btn-bg));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_2px_8px_rgba\(0\,0\,0\,0\.2\)\,0_4px_16px_rgba\(0\,0\,0\,0\.1\)\]{--tw-shadow:0 2px 8px var(--tw-shadow-color,#0003), 0 4px 16px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_4px_12px_rgba\(0\,0\,0\,0\.28\)\,0_10px_24px_rgba\(0\,0\,0\,0\.16\)\]{--tw-shadow:0 4px 12px var(--tw-shadow-color,#00000047), 0 10px 24px var(--tw-shadow-color,#00000029);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_8px_24px_rgba\(40\,33\,28\,0\.14\)\]{--tw-shadow:0 8px 24px var(--tw-shadow-color,#28211c24);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-surface-3{--tw-shadow:var(--shadow-surface-3);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-surface-4{--tw-shadow:var(--shadow-surface-4);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-content-muted\/30{--tw-ring-color:oklab(87.1681% -.00188759 -.00914592/.3)}.ring-content-muted\/70{--tw-ring-color:oklab(87.1681% -.00188759 -.00914592/.7)}.ring-secondary{--tw-ring-color:var(--secondary)}.outline,.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.outline-transparent{outline-color:#0000}.blur{--tw-blur:blur(8px);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.brightness-0{--tw-brightness:brightness(0%);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.invert{--tw-invert:invert(100%);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,box-shadow\]{transition-property:background-color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[box-shadow\,background-color\]{transition-property:box-shadow,background-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[outline-color\]{transition-property:outline-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-80{--tw-duration:80ms;transition-duration:80ms}.duration-150{--tw-duration:.15s;transition-duration:.15s}.\[transition-duration\:180ms\,80ms\]{transition-duration:.18s,80ms}.\[transition-timing-function\:cubic-bezier\(0\.23\,1\,0\.32\,1\)\,ease\]{transition-timing-function:cubic-bezier(.23,1,.32,1),ease}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.\[--btn-bg\:var\(--accent\)\]{--btn-bg:var(--accent)}.\[--btn-bg\:var\(--foreground\)\]{--btn-bg:var(--foreground)}.\[text-box\:trim-both_cap_alphabetic\]{text-box:trim-both cap alphabetic}:is(:where(.group\/card):focus-within .group-focus-within\/card\:pointer-events-auto){pointer-events:auto}:is(:where(.group\/card):focus-within .group-focus-within\/card\:opacity-100){opacity:1}@media(hover:hover){:is(:where(.group):hover .group-hover\:pointer-events-auto){pointer-events:auto}:is(:where(.group):hover .group-hover\:border-border){border-color:var(--border)}:is(:where(.group):hover .group-hover\:text-white\/65){color:#ffffffa6}@supports (color:color-mix(in lab,red,red)){:is(:where(.group):hover .group-hover\:text-white\/65){color:color-mix(in oklab,var(--color-white) 65%,transparent)}}:is(:where(.group):hover .group-hover\:opacity-100){opacity:1}:is(:where(.group\/button):hover .group-hover\/button\:bg-hover){background-color:var(--hover)}:is(:where(.group\/button):hover .group-hover\/button\:shadow-\[0_0_0_1px_var\(--hover\)\]){--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--hover));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(:where(.group\/button):hover .group-hover\/button\:\[--btn-bg\:color-mix\(in_oklab\,var\(--accent\)_80\%\,var\(--background\)\)\]){--btn-bg:var(--accent)}@supports (color:color-mix(in lab,red,red)){:is(:where(.group\/button):hover .group-hover\/button\:\[--btn-bg\:color-mix\(in_oklab\,var\(--accent\)_80\%\,var\(--background\)\)\]){--btn-bg:color-mix(in oklab,var(--accent) 80%,var(--background))}}:is(:where(.group\/button):hover .group-hover\/button\:\[--btn-bg\:color-mix\(in_oklab\,var\(--foreground\)_90\%\,var\(--background\)\)\]){--btn-bg:var(--foreground)}@supports (color:color-mix(in lab,red,red)){:is(:where(.group\/button):hover .group-hover\/button\:\[--btn-bg\:color-mix\(in_oklab\,var\(--foreground\)_90\%\,var\(--background\)\)\]){--btn-bg:color-mix(in oklab,var(--foreground) 90%,var(--background))}}:is(:where(.group\/card):hover .group-hover\/card\:pointer-events-auto){pointer-events:auto}:is(:where(.group\/card):hover .group-hover\/card\:opacity-100){opacity:1}:is(:where(.group\/project):hover .group-hover\/project\:pointer-events-auto){pointer-events:auto}:is(:where(.group\/project):hover .group-hover\/project\:opacity-100){opacity:1}:is(:where(.group\/resize):hover .group-hover\/resize\:w-0\.5){width:calc(var(--spacing) * .5)}:is(:where(.group\/resize):hover .group-hover\/resize\:bg-content-muted){background-color:#d1d5db}}:is(:where(.group):focus-visible .group-focus-visible\:text-white\/65){color:#ffffffa6}@supports (color:color-mix(in lab,red,red)){:is(:where(.group):focus-visible .group-focus-visible\:text-white\/65){color:color-mix(in oklab,var(--color-white) 65%,transparent)}}:is(:where(.group\/button):active .group-active\/button\:bg-active){background-color:var(--active)}:is(:where(.group\/button):active .group-active\/button\:shadow-\[0_0_0_0px_var\(--active\)\]){--tw-shadow:0 0 0 0px var(--tw-shadow-color,var(--active));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(:where(.group\/button):active .group-active\/button\:shadow-\[0_0_0_0px_var\(--border\)\,inset_0_0_0_1px_var\(--border\)\]){--tw-shadow:0 0 0 0px var(--tw-shadow-color,var(--border)), inset 0 0 0 1px var(--tw-shadow-color,var(--border));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(:where(.group\/button):active .group-active\/button\:shadow-\[0_0_0_0px_var\(--btn-bg\)\]){--tw-shadow:0 0 0 0px var(--tw-shadow-color,var(--btn-bg));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(:where(.group\/button):active .group-active\/button\:\[transition-duration\:80ms\,80ms\]){transition-duration:80ms,80ms}:is(:where(.group\/button):active .group-active\/button\:\[--btn-bg\:color-mix\(in_oklab\,var\(--foreground\)_80\%\,var\(--background\)\)\]){--btn-bg:var(--foreground)}@supports (color:color-mix(in lab,red,red)){:is(:where(.group\/button):active .group-active\/button\:\[--btn-bg\:color-mix\(in_oklab\,var\(--foreground\)_80\%\,var\(--background\)\)\]){--btn-bg:color-mix(in oklab,var(--foreground) 80%,var(--background))}}:is(:where(.group\/button):active .group-active\/button\:\[--btn-bg\:var\(--accent\)\]){--btn-bg:var(--accent)}:is(:where(.group\/button)[aria-expanded=true] .group-aria-expanded\/button\:bg-active){background-color:var(--active)}:is(:where(.group\/button)[aria-expanded=true] .group-aria-expanded\/button\:shadow-\[0_0_0_0px_var\(--active\)\]){--tw-shadow:0 0 0 0px var(--tw-shadow-color,var(--active));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(:where(.group\/button)[aria-pressed=true] .group-aria-pressed\/button\:bg-active){background-color:var(--active)}:is(:where(.group\/button)[aria-pressed=true] .group-aria-pressed\/button\:shadow-\[0_0_0_0px_var\(--active\)\]){--tw-shadow:0 0 0 0px var(--tw-shadow-color,var(--active));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(:where(.peer):focus-visible~.peer-focus-visible\:ring-2){--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(:where(.peer):focus-visible~.peer-focus-visible\:ring-white){--tw-ring-color:var(--color-white)}:is(:where(.peer):focus-visible~.peer-focus-visible\:ring-offset-2){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}:is(:where(.peer):disabled~.peer-disabled\:opacity-40){opacity:.4}.placeholder\:text-content-muted::placeholder{color:#d1d5db}.placeholder\:text-white\/30::placeholder{color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.placeholder\:text-white\/30::placeholder{color:color-mix(in oklab,var(--color-white) 30%,transparent)}}.focus-within\:outline-white\/20:focus-within{outline-color:#fff3}@supports (color:color-mix(in lab,red,red)){.focus-within\:outline-white\/20:focus-within{outline-color:color-mix(in oklab,var(--color-white) 20%,transparent)}}@media(hover:hover){.hover\:border-content-muted\/50:hover{border-color:#d1d5db80}.hover\:bg-\[\#2a2a2a\]:hover{background-color:#2a2a2a}.hover\:bg-\[\#faf9f7\]:hover{background-color:#faf9f7}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-hover:hover{background-color:var(--hover)}.hover\:bg-main-border:hover{background-color:#232328}.hover\:bg-main-hover:hover{background-color:#404040}.hover\:bg-main-input:hover{background-color:#2e2e2e}.hover\:bg-main-input\/80:hover{background-color:#2e2e2ecc}.hover\:bg-main-light:hover{background-color:#1e1e22}.hover\:bg-main\/80:hover{background-color:#1c1c20cc}.hover\:bg-red-500\/25:hover{background-color:#fb2c3640}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/25:hover{background-color:color-mix(in oklab,var(--color-red-500) 25%,transparent)}}.hover\:bg-surface-3:hover{background-color:var(--surface-3)}.hover\:bg-white\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/5:hover{background-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.hover\:bg-white\/\[0\.03\]:hover{background-color:#ffffff08}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/\[0\.03\]:hover{background-color:color-mix(in oklab,var(--color-white) 3%,transparent)}}.hover\:bg-white\/\[0\.06\]:hover{background-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.hover\:bg-white\/\[0\.06\]:hover{background-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.hover\:text-content:hover{color:#fff}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-white:hover{color:var(--color-white)}.hover\:text-white\/80:hover{color:#fffc}@supports (color:color-mix(in lab,red,red)){.hover\:text-white\/80:hover{color:color-mix(in oklab,var(--color-white) 80%,transparent)}}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-secondary:focus{border-color:var(--secondary)}.focus\:border-white\/50:focus{border-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.focus\:border-white\/50:focus{border-color:color-mix(in oklab,var(--color-white) 50%,transparent)}}.focus\:bg-hover:focus{background-color:var(--hover)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-content-muted\/40:focus{--tw-ring-color:oklab(87.1681% -.00188759 -.00914592/.4)}.focus\:ring-content-muted\/50:focus{--tw-ring-color:oklab(87.1681% -.00188759 -.00914592/.5)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:bg-hover:focus-visible{background-color:var(--hover)}.focus-visible\:bg-white\/\[0\.06\]:focus-visible{background-color:#ffffff0f}@supports (color:color-mix(in lab,red,red)){.focus-visible\:bg-white\/\[0\.06\]:focus-visible{background-color:color-mix(in oklab,var(--color-white) 6%,transparent)}}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[color\:var\(--focus-ring\,\#6B97FF\)\]:focus-visible{--tw-ring-color:var(--focus-ring,#6b97ff)}.focus-visible\:ring-content-muted\/40:focus-visible{--tw-ring-color:oklab(87.1681% -.00188759 -.00914592/.4)}.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.focus-visible\:ring-white\/75:focus-visible{--tw-ring-color:#ffffffbf}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-white\/75:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-white) 75%, transparent)}}.focus-visible\:ring-offset-4:focus-visible{--tw-ring-offset-width:4px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:var(--background)}.focus-visible\:outline:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:-outline-offset-2:focus-visible{outline-offset:-2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-offset-4:focus-visible{outline-offset:4px}.focus-visible\:outline-content:focus-visible{outline-color:#fff}.focus-visible\:outline-white\/60:focus-visible{outline-color:#fff9}@supports (color:color-mix(in lab,red,red)){.focus-visible\:outline-white\/60:focus-visible{outline-color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.focus-visible\:ring-inset:focus-visible{--tw-ring-inset:inset}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.has-\[\:focus-visible\]\:pointer-events-auto:has(:focus-visible){pointer-events:auto}.has-\[\:focus-visible\]\:opacity-100:has(:focus-visible){opacity:1}.aria-expanded\:text-foreground[aria-expanded=true],.aria-pressed\:text-foreground[aria-pressed=true]{color:var(--foreground)}@media(prefers-reduced-motion:no-preference){.motion-safe\:animate-\[spinner-move_2s_linear_infinite\,spinner-dash_4s_ease-in-out_infinite\]{animation:2s linear infinite spinner-move,4s ease-in-out infinite spinner-dash}}@media(prefers-reduced-motion:reduce){.motion-reduce\:transition-none{transition-property:none}}@media not all and (min-width:40rem){.max-sm\:flex-1{flex:1}.max-sm\:px-5{padding-inline:calc(var(--spacing) * 5)}}@media(min-width:400px){.min-\[400px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:40rem){.sm\:col-span-1{grid-column:span 1/span 1}.sm\:col-start-2{grid-column-start:2}.sm\:col-start-3{grid-column-start:3}.sm\:row-start-1{grid-row-start:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[auto_minmax\(0\,1fr\)_auto\]{grid-template-columns:auto minmax(0,1fr) auto}}@media(min-width:48rem){.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:64rem){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:80rem){.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(min-width:96rem){.\32xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&_svg\]\:h-3\.5 svg{height:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:h-4 svg{height:calc(var(--spacing) * 4)}.\[\&_svg\]\:w-3\.5 svg{width:calc(var(--spacing) * 3.5)}.\[\&_svg\]\:w-4 svg{width:calc(var(--spacing) * 4)}.\[\&\:\:-webkit-search-cancel-button\]\:hidden::-webkit-search-cancel-button{display:none}@media(hover:none){.\[\@media\(hover\:none\)\]\:pointer-events-auto{pointer-events:auto}.\[\@media\(hover\:none\)\]\:opacity-100{opacity:1}}}:root{--background:#1c1c20;--foreground:#fff;--card:#1e1e22;--card-foreground:#fff;--bg-main:#1c1c20;--main-border:#232328;--popover:var(--surface-4);--popover-foreground:#fff;--primary:#f30;--primary-foreground:#fff;--secondary:#2e2e2e;--secondary-foreground:#fff;--muted:#2e2e2e;--muted-foreground:#9ca3af;--accent:#333;--accent-foreground:#fff;--selected:#404040;--border:#ffffff1f;--input:#404040;--ring:#404040;--destructive:#ef4444;--destructive-foreground:#fff;--destructive-light:#450a0a;--hover:#ffffff0f;--active:#ffffff1a;--checker-a:#1f1f1f;--checker-b:#2a2a2a;--surface-1:#1c1c20;--surface-2:#232328;--surface-3:#2a2a30;--surface-4:#313138;--surface-5:#383840;--surface-6:#3f3f48;--surface-7:#464650;--surface-8:#4d4d58;--dm-hi-base:#ffffff03;--dm-hi-mid:#ffffff05;--dm-hi-high:#ffffff0a;--dm-hi-peak:#ffffff0f;--dm-ring-base:#ffffff05;--dm-ring-mid:#ffffff0a;--dm-ring-high:#ffffff0f;--dm-drop:#0000002e;--shadow-surface-1:inset 0 0 0 1px var(--dm-ring-base);--shadow-surface-2:inset 0 1px 0 0 var(--dm-hi-base), inset 0 0 0 1px var(--dm-ring-base), 0 1px 1px -.5px var(--dm-drop);--shadow-surface-3:inset 0 1px 0 0 var(--dm-hi-mid), inset 0 0 0 1px var(--dm-ring-base), 0 0 0 1px #0000001f, 0 1px 1px -.5px var(--dm-drop), 0 3px 3px -1.5px var(--dm-drop);--shadow-surface-4:inset 0 1px 0 0 var(--dm-hi-mid), inset 0 0 0 1px var(--dm-ring-mid), 0 0 0 1px #00000024, 0 1px 1px -.5px var(--dm-drop), 0 3px 3px -1.5px var(--dm-drop), 0 6px 6px -3px var(--dm-drop);--shadow-surface-5:inset 0 1px 0 0 var(--dm-hi-high), inset 0 0 0 1px var(--dm-ring-mid), 0 0 0 1px #00000029, 0 1px 1px -.5px var(--dm-drop), 0 3px 3px -1.5px var(--dm-drop), 0 6px 6px -3px var(--dm-drop), 0 12px 12px -6px var(--dm-drop);--shadow-surface-6:inset 0 1px 0 0 var(--dm-hi-high), inset 0 0 0 1px var(--dm-ring-high), 0 0 0 1px #0000002e, 0 1px 1px -.5px var(--dm-drop), 0 3px 3px -1.5px var(--dm-drop), 0 6px 6px -3px var(--dm-drop), 0 12px 12px -6px var(--dm-drop), 0 24px 24px -12px var(--dm-drop);--shadow-surface-7:inset 0 1px 0 0 var(--dm-hi-peak), inset 0 0 0 1px var(--dm-ring-high), 0 0 0 1px #0003, 0 1px 1px -.5px var(--dm-drop), 0 3px 3px -1.5px var(--dm-drop), 0 6px 6px -3px var(--dm-drop), 0 12px 12px -6px var(--dm-drop), 0 24px 24px -12px var(--dm-drop), 0 48px 48px -24px var(--dm-drop);--shadow-surface-8:inset 0 1px 0 0 var(--dm-hi-peak), inset 0 0 0 1px var(--dm-ring-high), 0 0 0 1px #00000038, 0 1px 1px -.5px var(--dm-drop), 0 3px 3px -1.5px var(--dm-drop), 0 6px 6px -3px var(--dm-drop), 0 12px 12px -6px var(--dm-drop), 0 24px 24px -12px var(--dm-drop), 0 48px 48px -24px var(--dm-drop), 0 96px 96px -48px var(--dm-drop)}html,body{background-color:var(--background);overflow:hidden}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;font-family:Satoshi,Inter,system-ui,sans-serif}@font-face{font-family:Satoshi;src:url(/fonts/Satoshi-Variable.woff2)format("woff2-variations");font-weight:300 900;font-style:normal;font-display:swap}@font-face{font-family:Satoshi;src:url(/fonts/Satoshi-VariableItalic.woff2)format("woff2-variations");font-weight:300 900;font-style:italic;font-display:swap}*{scrollbar-width:thin;scrollbar-color:#404040 transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0;border-radius:4px}::-webkit-scrollbar-thumb{background:#3a3a3f padding-box padding-box;border:2px solid #0000;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#505058 padding-box padding-box;border:2px solid #0000}::-webkit-scrollbar-corner{background:0 0}@keyframes rivet-sparkle-scroll{0%{transform:translateY(0)}to{transform:translateY(-6em)}}.rivet-sparkle-strip{animation:.9s steps(6,end) infinite rivet-sparkle-scroll}@media(prefers-reduced-motion:reduce){.rivet-sparkle-strip{animation:none}}.rivet-skeleton{background-color:#a3a3aa14;position:relative;overflow:hidden}.rivet-skeleton:after{content:"";background:linear-gradient(100deg,#0000 20%,#ffffff0f,#0000 80%);animation:1.6s ease-in-out infinite rivet-skeleton-sweep;position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%)}@keyframes rivet-skeleton-sweep{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){.rivet-skeleton:after{animation:none}}@keyframes shimmer{0%{background-position:0 0}to{background-position:100% 0}}.shimmer-text{-webkit-text-fill-color:transparent;color:#0000;background:linear-gradient(90deg,#a3a3a3,#a3a3a3 35%,#525252,#a3a3a3 65%,#a3a3a3) 0 0/300% 100%;-webkit-background-clip:text;background-clip:text;animation:1.5s ease-in-out infinite shimmer}.glass-panel{-webkit-backdrop-filter:blur(20px);background:#ffffff04;border:1px solid #ffffff08}.active-push:active{transition:transform .1s;transform:scale(.98)}:root{--variant-split-ease:cubic-bezier(.4, 0, .2, 1);--variant-split-accent:var(--color-primary,#f30);--variant-split-zone-bg:#26262aeb;--variant-split-zone-border:#ffffff0a;--variant-split-zone-shadow:0 30px 60px -20px #0000008c, 0 0 90px 10px #ffdca00d}.variant-preview-region{isolation:isolate}.variant-preview-primary{transition:filter .2s var(--variant-split-ease)}.variant-preview-region.is-dragging .variant-preview-primary{filter:brightness(.92)saturate(.92)}.variant-preview-region.is-dragging iframe{pointer-events:none}.variant-preview-atmosphere{pointer-events:none;opacity:0;z-index:30;transition:opacity .2s var(--variant-split-ease);background:radial-gradient(60% 50%,#0000,#00000059);position:absolute;top:0;right:0;bottom:0;left:0}.variant-preview-region.is-dragging .variant-preview-atmosphere{opacity:1}.variant-drop-zones{pointer-events:none;z-index:50;position:absolute;top:16px;right:16px;bottom:16px;left:16px}.variant-drop-zone{background:var(--variant-split-zone-bg);border:1px solid var(--variant-split-zone-border);pointer-events:auto;opacity:0;filter:blur(12px);width:14%;min-width:130px;max-width:180px;box-shadow:var(--variant-split-zone-shadow);transition:opacity .32s var(--variant-split-ease),transform .32s var(--variant-split-ease),filter .32s var(--variant-split-ease),box-shadow .24s var(--variant-split-ease);border-radius:14px;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;transform:scale(.94)}.variant-drop-zone.is-left{left:8px}.variant-drop-zone.is-right{right:8px}.variant-drop-zones.is-visible .variant-drop-zone{opacity:1;filter:blur();transform:scale(1)}.variant-drop-zones.is-exiting .variant-drop-zone{opacity:0;filter:blur(8px);transition:opacity .2s var(--variant-split-ease),transform .2s var(--variant-split-ease),filter .2s var(--variant-split-ease);transform:scale(.97)}.variant-drop-zone.is-disabled{opacity:.6;filter:blur(2px)saturate(.6)}.variant-drop-zone-inner{opacity:0;filter:blur(4px);transition:opacity .22s var(--variant-split-ease),transform .22s var(--variant-split-ease),filter .22s var(--variant-split-ease);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex;position:absolute;top:0;right:0;bottom:0;left:0;transform:translateY(6px)}.variant-drop-zones.is-visible .variant-drop-zone-inner{opacity:1;filter:blur();transition-delay:.18s;transform:translateY(0)}.variant-drop-zone.is-hover .variant-drop-zone-caption{color:var(--variant-split-accent)}.variant-drop-zone-icon{border:1.5px solid #ffffff73;border-radius:6px;width:36px;height:28px;position:relative;overflow:hidden}.variant-drop-zone-icon:after{content:"";background:#ffffff73;width:1.5px;position:absolute;top:0;bottom:0}.variant-drop-zone-icon.is-left:after{left:11px}.variant-drop-zone-icon.is-right:after{right:11px}.variant-drop-zone-icon.is-left:before{content:"";background:#ffffff14;width:11px;position:absolute;top:0;bottom:0;left:0}.variant-drop-zone-icon.is-right:before{content:"";background:#ffffff14;width:11px;position:absolute;top:0;bottom:0;right:0}.variant-drop-zone.is-hover .variant-drop-zone-icon{border-color:var(--variant-split-accent)}.variant-drop-zone.is-hover .variant-drop-zone-icon:after,.variant-drop-zone.is-hover .variant-drop-zone-icon.is-left:before,.variant-drop-zone.is-hover .variant-drop-zone-icon.is-right:before{background:var(--variant-split-accent)}@supports (color:color-mix(in lab,red,red)){.variant-drop-zone.is-hover .variant-drop-zone-icon.is-left:before,.variant-drop-zone.is-hover .variant-drop-zone-icon.is-right:before{background:color-mix(in srgb,var(--variant-split-accent) 22%,transparent)}}.variant-drop-zone-caption{letter-spacing:.02em;color:#fff9;text-align:center;max-width:80%;font-size:11.5px;line-height:1.35}.variant-drop-zone-border{border:2px dashed var(--variant-split-accent);opacity:0;transition:opacity .24s var(--variant-split-ease);pointer-events:none;border-radius:10px;position:absolute;top:4px;right:4px;bottom:4px;left:4px}.variant-drop-zone.is-hover .variant-drop-zone-border{opacity:1}.variant-drop-zone-preview{display:none}.variant-split-secondary{border-left:1px solid var(--main-border,#ffffff0f);background:var(--bg-main,#0d0d0e);min-width:0;animation:variantSplitSecondaryEnter .42s var(--variant-split-ease) both;flex-direction:column;flex:1 1 0;display:flex;position:relative}.variant-preview-region.is-split>.variant-preview-row>.variant-preview-primary{border-right:1px solid var(--main-border,#ffffff0f)}@keyframes variantSplitSecondaryEnter{0%{opacity:0}to{opacity:1}}.variant-split-secondary-toolbar{background:var(--bg-main);border-bottom:1px solid var(--main-border);color:#9ca3af;flex:0 0 32px;justify-content:space-between;align-items:center;height:32px;padding:0 10px;font-size:11.5px;display:flex}.variant-split-secondary-label{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.variant-split-secondary-close{-webkit-appearance:none;-moz-appearance:none;appearance:none;color:#ffffff8c;cursor:pointer;transition:color .14s var(--variant-split-ease),background-color .14s var(--variant-split-ease);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:4px;display:inline-flex}.variant-split-secondary-close:hover{color:#fff;background:#404040}@media(prefers-reduced-motion:reduce){.variant-drop-zone,.variant-drop-zone-inner,.variant-drop-zone-preview,.variant-drop-zone-border,.variant-preview-primary,.variant-preview-atmosphere,.variant-split-secondary,.variant-split-secondary-close{filter:none!important;transition-duration:80ms!important;animation-duration:80ms!important;transform:none!important}.variant-drop-zones.is-visible .variant-drop-zone-inner{transition-delay:0s}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes spinner-move{to{stroke-dashoffset:-100px}}@keyframes spinner-dash{0%,to{stroke-dasharray:15 85}50%{stroke-dasharray:40 60}}
|