grab 0.0.88 → 0.0.90
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 +55 -2
- package/dist/chunk-AAPYQRSF.js +94 -0
- package/dist/chunk-WZQBGJJG.cjs +94 -0
- package/dist/cli.cjs +32 -30
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.global.js +30 -32
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-JHN4RPOU.cjs +0 -96
- package/dist/chunk-OVQE4TUE.js +0 -96
package/README.md
CHANGED
|
@@ -16,8 +16,6 @@ https://github.com/user-attachments/assets/fdb34329-b471-4b39-b433-0b1a27a94bd8
|
|
|
16
16
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
19
|
-
> [**Install using Cursor**](https://cursor.com/link/prompt?text=1.+Run+curl+-s+https%3A%2F%2Freact-grab.com%2Fllms.txt+%0A2.+Understand+the+content+and+follow+the+instructions+to+install+React+Grab.%0A3.+Tell+the+user+to+refresh+their+local+app+and+explain+how+to+use+React+Grab)
|
|
20
|
-
|
|
21
19
|
Run this command to install React Grab into your project. Ensure you are running at project root (e.g. where the `next.config.ts` or `vite.config.ts` file is located).
|
|
22
20
|
|
|
23
21
|
```html
|
|
@@ -456,6 +454,61 @@ export default function RootLayout({ children }) {
|
|
|
456
454
|
|
|
457
455
|
</details>
|
|
458
456
|
|
|
457
|
+
<details>
|
|
458
|
+
<summary><strong>Factory Droid</strong></summary>
|
|
459
|
+
|
|
460
|
+
#### Server Setup
|
|
461
|
+
|
|
462
|
+
The server runs on port `10567` and interfaces with the [Factory CLI](https://docs.factory.ai/cli/droid-exec/overview). Add to your `package.json`:
|
|
463
|
+
|
|
464
|
+
```json
|
|
465
|
+
{
|
|
466
|
+
"scripts": {
|
|
467
|
+
"dev": "npx @react-grab/droid@latest && next dev"
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
> **Note:** You must have [Factory CLI](https://app.factory.ai) installed (`curl -fsSL https://app.factory.ai/cli | sh`) and `FACTORY_API_KEY` environment variable set.
|
|
473
|
+
|
|
474
|
+
#### Client Setup
|
|
475
|
+
|
|
476
|
+
```html
|
|
477
|
+
<script src="//unpkg.com/grab/dist/index.global.js"></script>
|
|
478
|
+
<!-- add this in the <head> -->
|
|
479
|
+
<script src="//unpkg.com/@react-grab/droid/dist/client.global.js"></script>
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
Or using Next.js `Script` component in your `app/layout.tsx`:
|
|
483
|
+
|
|
484
|
+
```jsx
|
|
485
|
+
import Script from "next/script";
|
|
486
|
+
|
|
487
|
+
export default function RootLayout({ children }) {
|
|
488
|
+
return (
|
|
489
|
+
<html>
|
|
490
|
+
<head>
|
|
491
|
+
{process.env.NODE_ENV === "development" && (
|
|
492
|
+
<>
|
|
493
|
+
<Script
|
|
494
|
+
src="//unpkg.com/grab/dist/index.global.js"
|
|
495
|
+
strategy="beforeInteractive"
|
|
496
|
+
/>
|
|
497
|
+
<Script
|
|
498
|
+
src="//unpkg.com/@react-grab/droid/dist/client.global.js"
|
|
499
|
+
strategy="lazyOnload"
|
|
500
|
+
/>
|
|
501
|
+
</>
|
|
502
|
+
)}
|
|
503
|
+
</head>
|
|
504
|
+
<body>{children}</body>
|
|
505
|
+
</html>
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
</details>
|
|
511
|
+
|
|
459
512
|
## Extending React Grab
|
|
460
513
|
|
|
461
514
|
React Grab provides an public customization API. Check out the [type definitions](https://github.com/aidenybai/react-grab/blob/main/packages/react-grab/src/types.ts) to see all available options for extending React Grab.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
var ra=(e,t)=>e===t;var Bo=Symbol("solid-track"),Nn={equals:ra},Ho=Ko,ze=1,sn=2,zo={owned:null,cleanups:null,context:null,owner:null},gr={},re=null,E=null,Ht=null,ue=null,Ee=null,Le=null,Ln=0;function lt(e,t){let n=ue,r=re,i=e.length===0,o=t===void 0?r:t,a=i?zo:{owned:null,cleanups:null,context:o?o.context:null,owner:o},l=i?e:()=>e(()=>Me(()=>bt(a)));re=a,ue=null;try{return He(l,!0)}finally{ue=n,re=r;}}function N(e,t){t=t?Object.assign({},Nn,t):Nn;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=i=>(typeof i=="function"&&(i=i(n.value)),Go(n,i));return [Uo.bind(n),r]}function Po(e,t,n){let r=On(e,t,true,ze);jt(r);}function de(e,t,n){let r=On(e,t,false,ze);jt(r);}function oe(e,t,n){Ho=la;let r=On(e,t,false,ze);(r.user=true),Le?Le.push(r):jt(r);}function ce(e,t,n){n=n?Object.assign({},Nn,n):Nn;let r=On(e,t,true,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,jt(r),Uo.bind(r)}function oa(e){return e&&typeof e=="object"&&"then"in e}function Mn(e,t,n){let r,i,o;typeof t=="function"?(r=e,i=t,o={}):(r=true,i=e,o=t||{});let a=null,l=gr,g=false,p="initialValue"in o,k=typeof r=="function"&&ce(r),y=new Set,[x,_]=(o.storage||N)(o.initialValue),[H,V]=N(void 0),[C,$]=N(void 0,{equals:false}),[Z,v]=N(p?"ready":"unresolved");function M(h,m,f,b){return a===h&&(a=null,b!==void 0&&(p=true),(h===l||m===l)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(b,{value:m})),l=gr,W(m,f)),m}function W(h,m){He(()=>{m===void 0&&_(()=>h),v(m!==void 0?"errored":p?"ready":"unresolved"),V(m);for(let f of y.keys())f.decrement();y.clear();},false);}function z(){let h=an,m=x(),f=H();if(f!==void 0&&!a)throw f;return ue&&!ue.user&&h,m}function q(h=true){if(h!==false&&g)return;g=false;let m=k?k():r;if(m==null||m===false){M(a,Me(x));return}let f,b=l!==gr?l:Me(()=>{try{return i(m,{value:x(),refetching:h})}catch(L){f=L;}});if(f!==void 0){M(a,void 0,_n(f),m);return}else if(!oa(b))return M(a,b,void 0,m),b;return a=b,"v"in b?(b.s===1?M(a,b.v,void 0,m):M(a,void 0,_n(b.v),m),b):(g=true,queueMicrotask(()=>g=false),He(()=>{v(p?"refreshing":"pending"),$();},false),b.then(L=>M(b,L,void 0,m),L=>M(b,void 0,_n(L),m)))}Object.defineProperties(z,{state:{get:()=>Z()},error:{get:()=>H()},loading:{get(){let h=Z();return h==="pending"||h==="refreshing"}},latest:{get(){if(!p)return z();let h=H();if(h&&!a)throw h;return x()}}});let O=re;return k?Po(()=>(O=re,q(false))):q(false),[z,{refetch:h=>jo(O,()=>q(h)),mutate:_}]}function Me(e){if(ue===null)return e();let t=ue;ue=null;try{return Ht?Ht.untrack(e):e()}finally{ue=t;}}function Pe(e,t,n){let r=Array.isArray(e),i;return a=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]();}else l=e();let c=Me(()=>t(l,i,a));return i=l,c}}function cn(e){oe(()=>Me(e));}function be(e){return re===null||(re.cleanups===null?re.cleanups=[e]:re.cleanups.push(e)),e}function jo(e,t){let n=re,r=ue;re=e,ue=null;try{return He(t,!0)}catch(i){Pn(i);}finally{re=n,ue=r;}}var[pu,$o]=N(false);var an;function Uo(){let e=E;if(this.sources&&(this.state))if((this.state)===ze)jt(this);else {let t=Ee;Ee=null,He(()=>In(this),false),Ee=t;}if(ue){let t=this.observers?this.observers.length:0;ue.sources?(ue.sources.push(this),ue.sourceSlots.push(t)):(ue.sources=[this],ue.sourceSlots=[t]),this.observers?(this.observers.push(ue),this.observerSlots.push(ue.sources.length-1)):(this.observers=[ue],this.observerSlots=[ue.sources.length-1]);}return e&&E.sources.has(this)?this.tValue:this.value}function Go(e,t,n){let r=e.value;if(!e.comparator||!e.comparator(r,t)){e.value=t;e.observers&&e.observers.length&&He(()=>{for(let i=0;i<e.observers.length;i+=1){let o=e.observers[i],a=E&&E.running;a&&E.disposed.has(o)||((a?!o.tState:!o.state)&&(o.pure?Ee.push(o):Le.push(o),o.observers&&Xo(o)),a?o.tState=ze:o.state=ze);}if(Ee.length>1e6)throw Ee=[],new Error},false);}return t}function jt(e){if(!e.fn)return;bt(e);let t=Ln;Fo(e,e.value,t);}function Fo(e,t,n){let r,i=re,o=ue;ue=re=e;try{r=e.fn(t);}catch(a){return e.pure&&((e.state=ze,e.owned&&e.owned.forEach(bt),e.owned=null)),e.updatedAt=n+1,Pn(a)}finally{ue=o,re=i;}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Go(e,r):e.value=r,e.updatedAt=n);}function On(e,t,n,r=ze,i){let o={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:re,context:re?re.context:null,pure:n};if(re===null||re!==zo&&(re.owned?re.owned.push(o):re.owned=[o]),Ht);return o}function ln(e){let t=E;if((e.state)===0)return;if((e.state)===sn)return In(e);if(e.suspense&&Me(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Ln);){(e.state)&&n.push(e);}for(let r=n.length-1;r>=0;r--){if(e=n[r],t);if((e.state)===ze)jt(e);else if((e.state)===sn){let i=Ee;Ee=null,He(()=>In(e,n[0]),false),Ee=i;}}}function He(e,t){if(Ee)return e();let n=false;t||(Ee=[]),Le?n=true:Le=[],Ln++;try{let r=e();return sa(n),r}catch(r){n||(Le=null),Ee=null,Pn(r);}}function sa(e){if(Ee&&(Ko(Ee),Ee=null),e)return;let n=Le;Le=null,n.length&&He(()=>Ho(n),false);}function Ko(e){for(let t=0;t<e.length;t++)ln(e[t]);}function la(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:ln(r);}for(t=0;t<n;t++)ln(e[t]);}function In(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let o=i.state;o===ze?i!==t&&(!i.updatedAt||i.updatedAt<Ln)&&ln(i):o===sn&&In(i,t);}}}function Xo(e){for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(!r.state)&&(r.state=sn,r.pure?Ee.push(r):Le.push(r),r.observers&&Xo(r));}}function bt(e){let t;if(e.sources)for(;e.sources.length;){let n=e.sources.pop(),r=e.sourceSlots.pop(),i=n.observers;if(i&&i.length){let o=i.pop(),a=n.observerSlots.pop();r<i.length&&(o.sourceSlots[a]=r,i[r]=o,n.observerSlots[r]=a);}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)bt(e.tOwned[t]);delete e.tOwned;}if(e.owned){for(t=e.owned.length-1;t>=0;t--)bt(e.owned[t]);e.owned=null;}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null;}e.state=0;}function _n(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Pn(e,t=re){let r=_n(e);throw r;}var br=Symbol("fallback");function Rn(e){for(let t=0;t<e.length;t++)e[t]();}function ca(e,t,n={}){let r=[],i=[],o=[],a=0,l=t.length>1?[]:null;return be(()=>Rn(o)),()=>{let c=e()||[],u=c.length,g,p;return c[Bo],Me(()=>{let y,x,_,H,V,C,$,Z,v;if(u===0)a!==0&&(Rn(o),o=[],r=[],i=[],a=0,l&&(l=[])),n.fallback&&(r=[br],i[0]=lt(M=>(o[0]=M,n.fallback())),a=1);else if(a===0){for(i=new Array(u),p=0;p<u;p++)r[p]=c[p],i[p]=lt(k);a=u;}else {for(_=new Array(u),H=new Array(u),l&&(V=new Array(u)),C=0,$=Math.min(a,u);C<$&&r[C]===c[C];C++);for($=a-1,Z=u-1;$>=C&&Z>=C&&r[$]===c[Z];$--,Z--)_[Z]=i[$],H[Z]=o[$],l&&(V[Z]=l[$]);for(y=new Map,x=new Array(Z+1),p=Z;p>=C;p--)v=c[p],g=y.get(v),x[p]=g===void 0?-1:g,y.set(v,p);for(g=C;g<=$;g++)v=r[g],p=y.get(v),p!==void 0&&p!==-1?(_[p]=i[g],H[p]=o[g],l&&(V[p]=l[g]),p=x[p],y.set(v,p)):o[g]();for(p=C;p<u;p++)p in _?(i[p]=_[p],o[p]=H[p],l&&(l[p]=V[p],l[p](p))):i[p]=lt(k);i=i.slice(0,a=u),r=c.slice(0);}return i});function k(y){if(o[p]=y,l){let[x,_]=N(p);return l[p]=_,t(c[p],x)}return t(c[p])}}}function ua(e,t,n={}){let r=[],i=[],o=[],a=[],l=0,c;return be(()=>Rn(o)),()=>{let u=e()||[],g=u.length;return u[Bo],Me(()=>{if(g===0)return l!==0&&(Rn(o),o=[],r=[],i=[],l=0,a=[]),n.fallback&&(r=[br],i[0]=lt(k=>(o[0]=k,n.fallback())),l=1),i;for(r[0]===br&&(o[0](),o=[],r=[],i=[],l=0),c=0;c<g;c++)c<r.length&&r[c]!==u[c]?a[c](()=>u[c]):c>=r.length&&(i[c]=lt(p));for(;c<r.length;c++)o[c]();return l=a.length=o.length=g,r=u.slice(0),i=i.slice(0,l)});function p(k){o[c]=k;let[y,x]=N(u[c]);return a[c]=x,t(y,c)}}}function A(e,t){return Me(()=>e(t||{}))}var fa=e=>`Stale read from <${e}>.`;function $n(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ce(ca(()=>e.each,e.children,t||void 0))}function yr(e){let t="fallback"in e&&{fallback:()=>e.fallback};return ce(ua(()=>e.each,e.children,t||void 0))}function Q(e){let t=e.keyed,n=ce(()=>e.when,void 0,void 0),r=t?n:ce(n,void 0,{equals:(i,o)=>!i==!o});return ce(()=>{let i=r();if(i){let o=e.children;return typeof o=="function"&&o.length>0?Me(()=>o(t?i:()=>{if(!Me(r))throw fa("Show");return n()})):o}return e.fallback},void 0,void 0)}var ye=e=>ce(()=>e());function ga(e,t,n){let r=n.length,i=t.length,o=r,a=0,l=0,c=t[i-1].nextSibling,u=null;for(;a<i||l<o;){if(t[a]===n[l]){a++,l++;continue}for(;t[i-1]===n[o-1];)i--,o--;if(i===a){let g=o<r?l?n[l-1].nextSibling:n[o-l]:c;for(;l<o;)e.insertBefore(n[l++],g);}else if(o===l)for(;a<i;)(!u||!u.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[o-1]&&n[l]===t[i-1]){let g=t[--i].nextSibling;e.insertBefore(n[l++],t[a++].nextSibling),e.insertBefore(n[--o],g),t[i]=n[o];}else {if(!u){u=new Map;let p=l;for(;p<o;)u.set(n[p],p++);}let g=u.get(t[a]);if(g!=null)if(l<g&&g<o){let p=a,k=1,y;for(;++p<i&&p<o&&!((y=u.get(t[p]))==null||y!==g+k);)k++;if(k>g-l){let x=t[a];for(;l<g;)e.insertBefore(n[l++],x);}else e.replaceChild(n[l++],t[a++]);}else a++;else t[a++].remove();}}}var Yo="_$DX_DELEGATE";function Zo(e,t,n,r={}){let i;return lt(o=>{i=o,t===document?e():B(t,e(),t.firstChild?null:void 0,n);},r.owner),()=>{i(),t.textContent="";}}function K(e,t,n,r){let i,o=()=>{let l=document.createElement("template");return l.innerHTML=e,l.content.firstChild},a=()=>(i||(i=o())).cloneNode(true);return a.cloneNode=a,a}function Dn(e,t=window.document){let n=t[Yo]||(t[Yo]=new Set);for(let r=0,i=e.length;r<i;r++){let o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,ha));}}function ve(e,t,n){(n==null?e.removeAttribute(t):e.setAttribute(t,n));}function Ge(e,t){(t==null?e.removeAttribute("class"):e.className=t);}function yt(e,t,n,r){Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;}function Jo(e,t,n){if(!t)return n?ve(e,"style"):t;let r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let i,o;for(o in n)t[o]==null&&r.removeProperty(o),delete n[o];for(o in t)i=t[o],i!==n[o]&&(r.setProperty(o,i),n[o]=i);return n}function _e(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t);}function Ut(e,t,n){return Me(()=>e(t,n))}function B(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Fn(e,t,r,n);de(i=>Fn(e,t(),i,n),r);}function ha(e){let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=c=>Object.defineProperty(e,"target",{configurable:true,value:c}),a=()=>{let c=t[n];if(c&&!t.disabled){let u=t[`${n}Data`];if(u!==void 0?c.call(t,u,e):c.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&o(t.host),true},l=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:true,get(){return t||document}}),e.composedPath){let c=e.composedPath();o(c[0]);for(let u=0;u<c.length-2&&(t=c[u],!!a());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===i)break}}else l();o(r);}function Fn(e,t,n,r,i){for(;typeof n=="function";)n=n();if(t===n)return n;let a=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(a==="number"&&(t=t.toString(),t===n))return n;if(l){let c=n[0];c&&c.nodeType===3?c.data!==t&&(c.data=t):c=document.createTextNode(t),n=Vt(e,n,r,c);}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;}else if(t==null||a==="boolean"){n=Vt(e,n,r);}else {if(a==="function")return de(()=>{let c=t();for(;typeof c=="function";)c=c();n=Fn(e,c,n,r);}),()=>n;if(Array.isArray(t)){let c=[],u=n&&Array.isArray(n);if(wr(c,t,n,i))return de(()=>n=Fn(e,c,n,r,true)),()=>n;if(c.length===0){if(n=Vt(e,n,r),l)return n}else u?n.length===0?qo(e,c,r):ga(e,n,c):(n&&Vt(e),qo(e,c));n=c;}else if(t.nodeType){if(Array.isArray(n)){if(l)return n=Vt(e,n,r,t);Vt(e,n,null,t);}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t;}}return n}function wr(e,t,n,r){let i=false;for(let o=0,a=t.length;o<a;o++){let l=t[o],c=n&&n[e.length],u;if(!(l==null||l===true||l===false))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))i=wr(e,l,c)||i;else if(u==="function")if(r){for(;typeof l=="function";)l=l();i=wr(e,Array.isArray(l)?l:[l],Array.isArray(c)?c:[c])||i;}else e.push(l),i=true;else {let g=String(l);c&&c.nodeType===3&&c.data===g?e.push(c):e.push(document.createTextNode(g));}}return i}function qo(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n);}function Vt(e,t,n,r){if(n===void 0)return e.textContent="";let i=r||document.createTextNode("");if(t.length){let o=false;for(let a=t.length-1;a>=0;a--){let l=t[a];if(i!==l){let c=l.parentNode===e;!o&&!a?c?e.replaceChild(i,l):e.insertBefore(i,n):c&&l.remove();}else o=true;}}else e.insertBefore(i,n);return [i]}var Qo=`/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
10
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) 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-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--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;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,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-black:#000;--color-white:#fff;--spacing:.25rem;--font-weight-medium:500;--radius-xs:.125rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--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);--color-grab-pink:#b21c8e;--color-grab-purple:#d239c0;--color-label-tag-border:#730079;--color-label-muted:#767676}}@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%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,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;-webkit-text-decoration: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{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]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.top-0{top:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-2147483645{z-index:2147483645}.z-2147483646{z-index:2147483646}.z-2147483647{z-index:2147483647}.z-\\[2147483645\\]{z-index:2147483645}.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-0{margin:calc(var(--spacing)*0)}.-mt-px{margin-top:-1px}.mb-0\\.5{margin-bottom:calc(var(--spacing)*.5)}.-ml-\\[2px\\]{margin-left:-2px}.ml-1{margin-left:calc(var(--spacing)*1)}.box-border{box-sizing:border-box}.flex{display:flex}.grid{display:grid}.hidden{display:none}.size-fit{width:fit-content;height:fit-content}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-5\\.5{height:calc(var(--spacing)*5.5)}.h-\\[7px\\]{height:7px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-fit{height:fit-content}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.w-0{width:calc(var(--spacing)*0)}.w-0\\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-\\[7px\\]{width:7px}.w-\\[17px\\]{width:17px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[280px\\]{max-width:280px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-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)}.cursor-crosshair{cursor:crosshair}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-none{resize:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.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:calc(var(--spacing)*1)}.gap-\\[3px\\]{gap:3px}.gap-\\[5px\\]{gap:5px}.gap-px{gap:1px}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-\\[1\\.5px\\]{border-radius:1.5px}.rounded-\\[1px\\]{border-radius:1px}.rounded-full{border-radius:3.40282e38px}.rounded-xs{border-radius:var(--radius-xs)}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-b-xs{border-bottom-right-radius:var(--radius-xs);border-bottom-left-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[\\#7e0002\\]{border-color:#7e0002}.border-\\[\\#B3B3B3\\]{border-color:#b3b3b3}.border-grab-purple{border-color:var(--color-grab-purple)}.border-grab-purple\\/40{border-color:#d239c066}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/40{border-color:color-mix(in oklab,var(--color-grab-purple)40%,transparent)}}.border-grab-purple\\/50{border-color:#d239c080}@supports (color:color-mix(in lab, red, red)){.border-grab-purple\\/50{border-color:color-mix(in oklab,var(--color-grab-purple)50%,transparent)}}.border-label-tag-border{border-color:var(--color-label-tag-border)}.border-white{border-color:var(--color-white)}.border-t-\\[\\#D9D9D9\\]{border-top-color:#d9d9d9}.bg-\\[\\#F7F7F7\\]{background-color:#f7f7f7}.bg-black{background-color:var(--color-black)}.bg-grab-pink{background-color:var(--color-grab-pink)}.bg-grab-purple{background-color:var(--color-grab-purple)}.bg-grab-purple\\/5{background-color:#d239c00d}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/5{background-color:color-mix(in oklab,var(--color-grab-purple)5%,transparent)}}.bg-grab-purple\\/8{background-color:#d239c014}@supports (color:color-mix(in lab, red, red)){.bg-grab-purple\\/8{background-color:color-mix(in oklab,var(--color-grab-purple)8%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1\\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\\[2px\\]{padding-inline:2px}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:calc(var(--spacing)*0)}.py-\\[2px\\]{padding-block:2px}.py-\\[3px\\]{padding-block:3px}.py-\\[5px\\]{padding-block:5px}.py-px{padding-block:1px}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\\.5{padding-top:calc(var(--spacing)*1.5)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-1\\.5{padding-right:calc(var(--spacing)*1.5)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pl-1\\.5{padding-left:calc(var(--spacing)*1.5)}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-\\[9px\\]{font-size:9px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.leading-3{--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-3\\.5{--tw-leading:calc(var(--spacing)*3.5);line-height:calc(var(--spacing)*3.5)}.leading-4{--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.wrap-break-word{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.text-\\[\\#0C0C0C\\]{color:#0c0c0c}.text-\\[\\#47004A\\]{color:#47004a}.text-\\[\\#71717a\\]{color:#71717a}.text-\\[\\#B91C1C\\]{color:#b91c1c}.text-\\[\\#a1a1aa\\]{color:#a1a1aa}.text-\\[\\#c00002\\]{color:#c00002}.text-black{color:var(--color-black)}.text-black\\/50{color:#00000080}@supports (color:color-mix(in lab, red, red)){.text-black\\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.text-label-muted{color:var(--color-label-muted)}.text-label-tag-border{color:var(--color-label-tag-border)}.text-white{color:var(--color-white)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.opacity-\\[0\\.99\\]{opacity:.99}.brightness-125{--tw-brightness:brightness(125%);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,)}.filter{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,)}.filter-\\[drop-shadow\\(0px_0px_4px_\\#51515180\\)\\]{filter:drop-shadow(0 0 4px #51515180)}.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-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[width\\,height\\]{transition-property:width,height;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-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-none{transition-property:none}.duration-30{--tw-duration:30ms;transition-duration:30ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[transform\\,width\\,height\\]{will-change:transform,width,height}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,)var(--tw-contain-layout,)var(--tw-contain-paint,)var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\\[font-synthesis\\:none\\]{font-synthesis:none}@media (hover:hover){.hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\\:bg-\\[\\#F5F5F5\\]:hover{background-color:#f5f5f5}.hover\\:bg-\\[\\#FEF2F2\\]:hover{background-color:#fef2f2}.hover\\:opacity-100:hover{opacity:1}}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@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}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}`;var ya=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"],wa=e=>Array.isArray(e),xa=(e,t=false)=>{let{composed:n,target:r}=e,i,o;if(n){let l=e.composedPath()[0];l instanceof HTMLElement&&(i=l.tagName,o=l.role);}else r instanceof HTMLElement&&(i=r.tagName,o=r.role);return wa(t)?!!(i&&t&&t.some(a=>typeof i=="string"&&a.toLowerCase()===i.toLowerCase()||a===o)):!!(i&&t&&t)},tt=e=>xa(e,ya);var ei=e=>{let t=e.tagName.toLowerCase();return !!(t==="input"||t==="textarea"||e instanceof HTMLElement&&e.isContentEditable)},ti=(e,t)=>{let n=document.activeElement;if(n){let r=n;for(;r;){if(ei(r))return true;r=r.parentElement;}}if(e!==void 0&&t!==void 0){let r=document.elementsFromPoint(e,t);for(let i of r)if(ei(i))return true}return false};var Gt="data-react-grab",ni=e=>{let t=document.querySelector(`[${Gt}]`);if(t){let a=t.shadowRoot?.querySelector(`[${Gt}]`);if(a instanceof HTMLDivElement&&t.shadowRoot)return a}let n=document.createElement("div");n.setAttribute(Gt,"true"),n.style.zIndex="2147483646",n.style.position="fixed",n.style.top="0",n.style.left="0";let r=n.attachShadow({mode:"open"});{let a=document.createElement("style");a.textContent=e,r.appendChild(a);}let i=document.createElement("div");i.setAttribute(Gt,"true"),r.appendChild(i);let o=document.body??document.documentElement;return o.appendChild(n),setTimeout(()=>{o.contains(n)||o.appendChild(n);},1e3),i};var va="https://react-grab.com",Bn=(e,t)=>{let n=t?`&line=${t}`:"";return `${va}/open-file?url=${encodeURIComponent(e)}${n}`};var ri="0.0.90";var Hn=["Meta","Control","Shift","Alt"],oi='<svg width="294" height="294" viewBox="0 0 294 294" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_0_3)"><mask id="mask0_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="294" height="294"><path d="M294 0H0V294H294V0Z" fill="white"/></mask><g mask="url(#mask0_0_3)"><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z" fill="white"/><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z" fill="#FF40E0"/></g><mask id="mask1_0_3" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="102" y="84" width="161" height="162"><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z" fill="white"/></mask><g mask="url(#mask1_0_3)"><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z" fill="#FF40E0" stroke="#FF40E0" stroke-width="0.817337" stroke-linecap="round" stroke-linejoin="round"/></g></g><defs><clipPath id="clip0_0_3"><rect width="294" height="294" fill="white"/></clipPath></defs></svg>';var wt=(e,t,n)=>e+(t-e)*n;function ii(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ii(e[t]))&&(r&&(r+=" "),r+=n);}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function si(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ii(e))&&(r&&(r+=" "),r+=t);return r}var Cr="-",Sa=e=>{let t=Ea(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return {getClassGroupId:a=>{let l=a.split(Cr);return l[0]===""&&l.length!==1&&l.shift(),ci(l,t)||Ca(a)},getConflictingClassGroupIds:(a,l)=>{let c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},ci=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?ci(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let o=e.join(Cr);return t.validators.find(({validator:a})=>a(o))?.classGroupId},ai=/^\[(.+)\]$/,Ca=e=>{if(ai.test(e)){let t=ai.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return "arbitrary.."+n}},Ea=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ta(Object.entries(e.classGroups),n).forEach(([o,a])=>{Sr(a,r,o,t);}),r},Sr=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){let o=i===""?t:li(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(ka(i)){Sr(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{Sr(a,li(t,o),n,r);});});},li=(e,t)=>{let n=e;return t.split(Cr).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r);}),n},ka=e=>e.isThemeGetter,Ta=(e,t)=>t?e.map(([n,r])=>{let i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,l])=>[t+a,l])):o);return [n,i]}):e,Aa=e=>{if(e<1)return {get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map,i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map);};return {get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a);}}},ui="!",_a=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=l=>{let c=[],u=0,g=0,p;for(let H=0;H<l.length;H++){let V=l[H];if(u===0){if(V===i&&(r||l.slice(H,H+o)===t)){c.push(l.slice(g,H)),g=H+o;continue}if(V==="/"){p=H;continue}}V==="["?u++:V==="]"&&u--;}let k=c.length===0?l:l.substring(g),y=k.startsWith(ui),x=y?k.substring(1):k,_=p&&p>g?p-g:void 0;return {modifiers:c,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:_}};return n?l=>n({className:l,parseClassName:a}):a},Na=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r);}),t.push(...n.sort()),t},Ia=e=>({cache:Aa(e.cacheSize),parseClassName:_a(e),...Sa(e)}),Ra=/\s+/,La=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(Ra),l="";for(let c=a.length-1;c>=0;c-=1){let u=a[c],{modifiers:g,hasImportantModifier:p,baseClassName:k,maybePostfixModifierPosition:y}=n(u),x=!!y,_=r(x?k.substring(0,y):k);if(!_){if(!x){l=u+(l.length>0?" "+l:l);continue}if(_=r(k),!_){l=u+(l.length>0?" "+l:l);continue}x=false;}let H=Na(g).join(":"),V=p?H+ui:H,C=V+_;if(o.includes(C))continue;o.push(C);let $=i(_,x);for(let Z=0;Z<$.length;++Z){let v=$[Z];o.push(V+v);}l=u+(l.length>0?" "+l:l);}return l};function Ma(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=di(t))&&(r&&(r+=" "),r+=n);return r}var di=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=di(e[r]))&&(n&&(n+=" "),n+=t);return n};function Oa(e,...t){let n,r,i,o=a;function a(c){let u=t.reduce((g,p)=>p(g),e());return n=Ia(u),r=n.cache.get,i=n.cache.set,o=l,l(c)}function l(c){let u=r(c);if(u)return u;let g=La(c,n);return i(c,g),g}return function(){return o(Ma.apply(null,arguments))}}var he=e=>{let t=n=>n[e]||[];return t.isThemeGetter=true,t},fi=/^\[(?:([a-z-]+):)?(.+)\]$/i,Pa=/^\d+\/\d+$/,$a=new Set(["px","full","screen"]),Fa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Da=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ba=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ha=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,za=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ct=e=>Kt(e)||$a.has(e)||Pa.test(e),xt=e=>Xt(e,"length",Ya),Kt=e=>!!e&&!Number.isNaN(Number(e)),vr=e=>Xt(e,"number",Kt),un=e=>!!e&&Number.isInteger(Number(e)),ja=e=>e.endsWith("%")&&Kt(e.slice(0,-1)),J=e=>fi.test(e),vt=e=>Fa.test(e),Va=new Set(["length","size","percentage"]),Ua=e=>Xt(e,Va,mi),Ga=e=>Xt(e,"position",mi),Ka=new Set(["image","url"]),Xa=e=>Xt(e,Ka,Za),Wa=e=>Xt(e,"",qa),dn=()=>true,Xt=(e,t,n)=>{let r=fi.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):false},Ya=e=>Da.test(e)&&!Ba.test(e),mi=()=>false,qa=e=>Ha.test(e),Za=e=>za.test(e);var Ja=()=>{let e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),i=he("borderColor"),o=he("borderRadius"),a=he("borderSpacing"),l=he("borderWidth"),c=he("contrast"),u=he("grayscale"),g=he("hueRotate"),p=he("invert"),k=he("gap"),y=he("gradientColorStops"),x=he("gradientColorStopPositions"),_=he("inset"),H=he("margin"),V=he("opacity"),C=he("padding"),$=he("saturate"),Z=he("scale"),v=he("sepia"),M=he("skew"),W=he("space"),z=he("translate"),q=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],h=()=>["auto",J,t],m=()=>[J,t],f=()=>["",ct,xt],b=()=>["auto",Kt,J],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>["start","end","center","between","around","evenly","stretch"],se=()=>["","0",J],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[Kt,J];return {cacheSize:500,separator:":",theme:{colors:[dn],spacing:[ct,xt],blur:["none","",vt,J],brightness:F(),borderColor:[e],borderRadius:["none","","full",vt,J],borderSpacing:m(),borderWidth:f(),contrast:F(),grayscale:se(),hueRotate:F(),invert:se(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[ja,xt],inset:h(),margin:h(),opacity:F(),padding:m(),saturate:F(),scale:F(),sepia:se(),skew:F(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[vt]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),J]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",un,J]}],basis:[{basis:h()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:se()}],shrink:[{shrink:se()}],order:[{order:["first","last","none",un,J]}],"grid-cols":[{"grid-cols":[dn]}],"col-start-end":[{col:["auto",{span:["full",un,J]},J]}],"col-start":[{"col-start":b()}],"col-end":[{"col-end":b()}],"grid-rows":[{"grid-rows":[dn]}],"row-start-end":[{row:["auto",{span:[un,J]},J]}],"row-start":[{"row-start":b()}],"row-end":[{"row-end":b()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[H]}],mx:[{mx:[H]}],my:[{my:[H]}],ms:[{ms:[H]}],me:[{me:[H]}],mt:[{mt:[H]}],mr:[{mr:[H]}],mb:[{mb:[H]}],ml:[{ml:[H]}],"space-x":[{"space-x":[W]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[W]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[vt]},vt]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vt,xt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",vr]}],"font-family":[{font:[dn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J]}],"line-clamp":[{"line-clamp":["none",Kt,vr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ct,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[V]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ct,xt]}],"underline-offset":[{"underline-offset":["auto",ct,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[V]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),Ga]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ua]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Xa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[V]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[V]}],"divide-style":[{divide:j()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[ct,J]}],"outline-w":[{outline:[ct,xt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:f()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[V]}],"ring-offset-w":[{"ring-offset":[ct,xt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vt,Wa]}],"shadow-color":[{shadow:[dn]}],opacity:[{opacity:[V]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",vt,J]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[p]}],saturate:[{saturate:[$]}],sepia:[{sepia:[v]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[V]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[v]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[un,J]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ct,xt,vr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var pi=Oa(Ja);var je=(...e)=>pi(si(e));var el=K("<div style=overflow:visible>"),It=e=>{let[t,n]=N(e.bounds.x),[r,i]=N(e.bounds.y),[o,a]=N(e.bounds.width),[l,c]=N(e.bounds.height),[u,g]=N(1),p=false,k=null,y=null,x=e.bounds,_=false,H=()=>e.lerpFactor!==void 0?e.lerpFactor:e.variant==="drag"?.7:.95,V=()=>{if(_)return;_=true;let C=()=>{let $=wt(t(),x.x,H()),Z=wt(r(),x.y,H()),v=wt(o(),x.width,H()),M=wt(l(),x.height,H());n($),i(Z),a(v),c(M),Math.abs($-x.x)<.5&&Math.abs(Z-x.y)<.5&&Math.abs(v-x.width)<.5&&Math.abs(M-x.height)<.5?(k=null,_=false):k=requestAnimationFrame(C);};k=requestAnimationFrame(C);};return oe(Pe(()=>e.bounds,C=>{if(x=C,!p){n(x.x),i(x.y),a(x.width),c(x.height),p=true;return}V();})),oe(()=>{e.variant==="grabbed"&&e.createdAt&&(y=window.setTimeout(()=>{g(0);},1500));}),be(()=>{k!==null&&(cancelAnimationFrame(k),k=null),y!==null&&(window.clearTimeout(y),y=null),_=false;}),A(Q,{get when(){return e.visible!==false},get children(){var C=el();return de($=>{var Z=je("fixed box-border",e.variant==="drag"&&"pointer-events-none",e.variant!=="drag"&&"pointer-events-auto",e.variant==="grabbed"&&"z-2147483645",e.variant!=="grabbed"&&"z-2147483646",e.variant==="drag"&&"border border-solid border-grab-purple/40 bg-grab-purple/5 will-change-[transform,width,height] cursor-crosshair",e.variant==="selection"&&"border border-solid border-grab-purple/50 bg-grab-purple/8 transition-opacity duration-100 ease-out",e.variant==="grabbed"&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&!e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8",e.variant==="processing"&&e.isCompleted&&"border border-solid border-grab-purple/50 bg-grab-purple/8"),v=`${r()}px`,M=`${t()}px`,W=`${o()}px`,z=`${l()}px`,q=e.bounds.borderRadius,O=e.bounds.transform,h=e.isFading?0:u(),m=e.variant==="drag"?"layout paint size":void 0;return Z!==$.e&&Ge(C,$.e=Z),v!==$.t&&_e(C,"top",$.t=v),M!==$.a&&_e(C,"left",$.a=M),W!==$.o&&_e(C,"width",$.o=W),z!==$.i&&_e(C,"height",$.i=z),q!==$.n&&_e(C,"border-radius",$.n=q),O!==$.s&&_e(C,"transform",$.s=O),h!==$.h&&_e(C,"opacity",$.h=h),m!==$.r&&_e(C,"contain",$.r=m),$},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0}),C}})};var gi=e=>{let t=e.lerpFactor??.3,n=e.convergenceThreshold??.5,[r,i]=N(e.x()),[o,a]=N(e.y()),l=e.x(),c=e.y(),u=null,g=false,p=()=>{let y=wt(r(),l,t),x=wt(o(),c,t);i(y),a(x),Math.abs(y-l)<n&&Math.abs(x-c)<n?u=null:u=requestAnimationFrame(p);},k=()=>{u===null&&(u=requestAnimationFrame(p));};return oe(()=>{if(l=e.x(),c=e.y(),!g){i(l),a(c),g=true;return}k();}),be(()=>{u!==null&&(cancelAnimationFrame(u),u=null);}),{x:r,y:o}};var tl=K('<canvas class="fixed top-0 left-0 pointer-events-none z-[2147483645]">'),hi=e=>{let t,n=null,r=0,i=0,o=1,a=gi({x:()=>e.mouseX,y:()=>e.mouseY,lerpFactor:.3}),l=()=>{t&&(o=Math.max(window.devicePixelRatio||1,2),r=window.innerWidth,i=window.innerHeight,t.width=r*o,t.height=i*o,t.style.width=`${r}px`,t.style.height=`${i}px`,n=t.getContext("2d"),n&&n.scale(o,o));},c=()=>{n&&(n.clearRect(0,0,r,i),n.strokeStyle="rgba(210, 57, 192)",n.lineWidth=1,n.beginPath(),n.moveTo(a.x(),0),n.lineTo(a.x(),i),n.moveTo(0,a.y()),n.lineTo(r,a.y()),n.stroke());};return oe(()=>{l(),c();let u=()=>{l(),c();};window.addEventListener("resize",u),be(()=>{window.removeEventListener("resize",u);});}),oe(()=>{a.x(),a.y(),c();}),A(Q,{get when(){return e.visible!==false},get children(){var u=tl(),g=t;return typeof g=="function"?Ut(g,u):t=u,u}})};var bi=e=>{let t,[n,r]=N(false),i=()=>typeof window<"u"&&(!!window.SpeechRecognition||!!window.webkitSpeechRecognition),o=()=>{if(!i())return;let c=window.SpeechRecognition||window.webkitSpeechRecognition;if(!c)return;t=new c,t.continuous=true,t.interimResults=true,t.lang=navigator.language||"en-US";let u="",g="";t.onresult=p=>{let k=e.getCurrentValue(),y;u&&k.endsWith(u)||k===g&&u?y=k.slice(0,-u.length):y=k;let x="",_="";for(let V=p.resultIndex;V<p.results.length;V++){let C=p.results[V][0].transcript;p.results[V].isFinal?x+=C:_+=C;}u=_;let H=y+x+_;g=H,e.onTranscript(H);},t.onerror=()=>{r(false);},t.onend=()=>{r(false);},t.start(),r(true);},a=()=>{t&&(t.stop(),t=void 0),r(false);},l=()=>{n()?a():o();};return be(()=>{a();}),{isListening:n,isSupported:i,start:o,stop:a,toggle:l}};var nl=K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path d="M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6"></path><path d="M11 13l9-9"></path><path d="M15 4h5v5">'),yi=e=>{let t=()=>e.size??12;return (()=>{var n=nl();return de(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&ve(n,"width",r.e=i),o!==r.t&&ve(n,"height",r.t=o),a!==r.a&&ve(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var rl=K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1=12 x2=12 y1=19 y2=22>'),wi=e=>{let t=()=>e.size??12;return (()=>{var n=rl();return de(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&ve(n,"width",r.e=i),o!==r.t&&ve(n,"height",r.t=o),a!==r.a&&ve(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var ol=K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 22 19"fill=none><path d="M6.76263 18.6626C7.48251 18.6626 7.95474 18.1682 7.95474 17.4895C7.95474 17.1207 7.80474 16.8576 7.58683 16.6361L5.3018 14.4137L2.84621 12.3589L2.44374 13.0037L5.92137 13.1622H17.9232C20.4842 13.1622 21.593 12.021 21.593 9.47237V3.66983C21.593 1.10875 20.4842 0 17.9232 0H12.5414C11.8179 0 11.3018 0.545895 11.3018 1.21695C11.3018 1.888 11.8179 2.43389 12.5414 2.43389H17.8424C18.7937 2.43389 19.1897 2.83653 19.1897 3.78784V9.35747C19.1897 10.3257 18.7937 10.7314 17.8424 10.7314H5.92137L2.44374 10.8832L2.84621 11.5281L5.3018 9.47993L7.58683 7.2606C7.80474 7.03914 7.95474 6.7693 7.95474 6.40049C7.95474 5.72854 7.48251 5.22747 6.76263 5.22747C6.46129 5.22747 6.12975 5.36905 5.89231 5.6096L0.376815 11.0425C0.134921 11.2777 0 11.6141 0 11.9452C0 12.2728 0.134921 12.6158 0.376815 12.848L5.89231 18.2871C6.12975 18.5276 6.46129 18.6626 6.76263 18.6626Z"fill=currentColor>'),fn=e=>{let t=()=>e.size??12;return (()=>{var n=ol();return de(r=>{var i=t(),o=t()*19/22,a=e.class;return i!==r.e&&ve(n,"width",r.e=i),o!==r.t&&ve(n,"height",r.t=o),a!==r.a&&ve(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var il=K('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none><path d="M17.65 6.35C16.2 4.9 14.21 4 12 4C7.58 4 4.01 7.58 4.01 12C4.01 16.42 7.58 20 12 20C15.73 20 18.84 17.45 19.73 14H17.65C16.83 16.33 14.61 18 12 18C8.69 18 6 15.31 6 12C6 8.69 8.69 6 12 6C13.66 6 15.14 6.69 16.22 7.78L13 11H20V4L17.65 6.35Z"fill=currentColor>'),xi=e=>{let t=()=>e.size??12;return (()=>{var n=il();return de(r=>{var i=t(),o=t(),a=e.class;return i!==r.e&&ve(n,"width",r.e=i),o!==r.t&&ve(n,"height",r.t=o),a!==r.a&&ve(n,"class",r.a=a),r},{e:void 0,t:void 0,a:void 0}),n})()};var sl=K('<div style="background-image:linear-gradient(in oklab 180deg, oklab(88.7% 0.086 -0.058) 0%, oklab(83.2% 0.132 -0.089) 100%)"><span>'),al=K('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-[#B3B3B3] py-0 bg-[#F7F7F7]"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">'),ll=K('<div class="contain-layout shrink-0 flex items-center w-fit h-4 rounded-[1px] gap-1 px-[3px] [border-width:0.5px] border-solid border-white py-0"><span class="text-[#0C0C0C] text-[11.5px] leading-3.5 shrink-0 font-medium w-fit h-fit">>'),cl=K('<div class="absolute w-0 h-0"style="border-left:8px solid transparent;border-right:8px solid transparent">'),ul=K('<div role=button><div class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">'),dl=K('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-[5px] w-auto h-fit self-stretch [border-top-width:0.5px] border-t-solid border-t-[#D9D9D9] antialiased rounded-t-none rounded-b-xs -mt-px"style="background-image:linear-gradient(in oklab 180deg, oklab(100% 0 0) 0%, oklab(96.1% 0 0) 5.92%)">'),fl=K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">No</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Yes'),ml=K('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Discard?'),pl=K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit"><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Retry</span></button><button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Ok'),gl=K('<div class="contain-layout shrink-0 flex flex-col justify-center items-end gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-full h-fit"><span class="text-[#B91C1C] text-[12px] leading-4 font-sans font-medium">'),hl=K('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#7e0002] cursor-pointer transition-all hover:bg-[#FEF2F2] h-[17px]"><span class="text-[#B91C1C] text-[11px] leading-3.5 font-sans font-medium">Undo'),bl=K('<button class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">Reply'),yl=K('<button class="contain-layout shrink-0 flex items-center justify-center gap-1 px-[3px] py-px rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] cursor-pointer transition-all hover:bg-[#F5F5F5] h-[17px]"><span class="text-black text-[11px] leading-3.5 font-sans font-medium">'),wl=K('<div class="contain-layout shrink-0 flex items-center justify-end gap-[5px] w-full h-fit">'),xl=K('<div class="[font-synthesis:none] contain-layout shrink-0 flex flex-col justify-center items-end rounded-xs bg-white antialiased w-fit h-fit"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1.5 pb-1 px-1.5 w-full h-fit"><span class="text-black text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit tabular-nums">'),vl=K('<button data-react-grab-ignore-events class="contain-layout shrink-0 flex flex-col items-start rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] p-1 size-fit cursor-pointer ml-1 transition-none hover:scale-105"><div data-react-grab-ignore-events class="shrink-0 w-[7px] h-[7px] rounded-[1px] bg-black pointer-events-none">'),Sl=K('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 opacity-50 wrap-break-word overflow-y-auto"placeholder="type to edit"rows=1 disabled style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none>'),Cl=K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div class="contain-layout shrink-0 flex items-center gap-1 pt-1 px-1.5 w-auto h-fit"><div class="contain-layout flex items-center px-0 py-px w-auto h-fit rounded-[1.5px] gap-[3px]"><span class="text-[12px] leading-4 font-sans font-medium w-auto h-fit whitespace-normal text-[#71717a] animate-pulse tabular-nums">'),vi=K('<div class="contain-layout shrink-0 flex items-center gap-px w-fit h-fit">'),El=K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Double click to edit'),kl=K('<div class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit">'),Tl=K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">Press'),Al=K('<div class="contain-layout shrink-0 flex items-center justify-center px-[3px] py-[2px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit"><span class="text-[9px] leading-none font-medium text-black">Esc'),_l=K('<span class="text-label-muted text-[12px] leading-4 shrink-0 font-sans font-medium w-fit h-fit">to dismiss'),Nl=K('<div class="contain-layout shrink-0 flex items-center gap-1 w-fit h-fit">'),Il=K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit"><div></div><div class="grid transition-[grid-template-rows] duration-30 ease-out self-stretch"><div>'),Rl=K('<div class="shrink-0 flex items-center gap-0.5 w-full mb-0.5 overflow-hidden"><span class="text-[#a1a1aa] text-[9px] leading-3 shrink-0">>previously:</span><span class="text-[#a1a1aa] text-[9px] leading-3 italic truncate whitespace-nowrap">'),Ll=K("<button>"),Ml=K('<button class="contain-layout shrink-0 flex flex-col items-start px-[3px] py-[3px] rounded-xs bg-white [border-width:0.5px] border-solid border-[#B3B3B3] size-fit cursor-pointer transition-all hover:scale-105">'),Ol=K('<div class="shrink-0 flex justify-between items-end w-full min-h-4"><textarea data-react-grab-ignore-events class="text-black text-[12px] leading-4 font-medium bg-transparent border-none outline-none resize-none flex-1 p-0 m-0 wrap-break-word overflow-y-auto"rows=1 style=field-sizing:content;min-height:16px;max-height:95px;scrollbar-width:none></textarea><div class="flex items-center gap-0.5 ml-1 w-[17px] h-[17px] justify-end">'),Pl=K('<div class="contain-layout shrink-0 flex flex-col justify-center items-start gap-1 w-fit h-fit max-w-[280px]"><div>'),$l=K('<div data-react-grab-ignore-events class="fixed font-sans antialiased transition-opacity duration-300 ease-out filter-[drop-shadow(0px_0px_4px_#51515180)] select-none"style=z-index:2147483647><div class="[font-synthesis:none] contain-layout flex items-center gap-[5px] rounded-xs bg-white antialiased w-fit h-fit p-0">'),Si=8,Ci=4,Fl=400;var zn=e=>{let[t,n]=N(false),r=()=>{n(true),e.onHoverChange?.(true);},i=()=>{n(false),e.onHoverChange?.(false);};return (()=>{var o=sl(),a=o.firstChild;return yt(o,"click",e.onClick),o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",r),B(a,()=>e.tagName),B(o,A(Q,{get when(){return e.isClickable||e.forceShowIcon},get children(){return A(yi,{size:10,get class(){return je("text-label-tag-border transition-all duration-100",t()||e.forceShowIcon?"opacity-100 scale-100":"opacity-0 scale-75 -ml-[2px] w-0")}})}}),null),de(l=>{var c=je("contain-layout flex items-center px-[3px] py-0 h-4 rounded-[1px] gap-0.5 [border-width:0.5px] border-solid border-label-tag-border",e.shrink&&"shrink-0 w-fit",e.isClickable&&"cursor-pointer"),u=je("text-[#47004A] text-[11.5px] leading-3.5 shrink-0 w-fit h-fit font-medium");return c!==l.e&&Ge(o,l.e=c),u!==l.t&&Ge(a,l.t=u),l},{e:void 0,t:void 0}),o})()},Ei=e=>(()=>{var t=al(),n=t.firstChild;return B(n,()=>e.name),t})(),ki=()=>ll(),Dl=e=>{let t=()=>e.color??"white";return (()=>{var n=cl();return de(r=>Jo(n,{left:`${e.leftPx}px`,...e.position==="bottom"?{top:"0",transform:"translateX(-50%) translateY(-100%)"}:{bottom:"0",transform:"translateX(-50%) translateY(100%)"},...e.position==="bottom"?{"border-bottom":`8px solid ${t()}`}:{"border-top":`8px solid ${t()}`}},r)),n})()},Ti=e=>{let t=()=>e.hasAgent?"Selecting":e.hasParent?"Copy":"Click to copy";return (()=>{var n=ul(),r=n.firstChild;return yt(n,"click",e.onClick),B(r,t),de(()=>Ge(n,je("contain-layout shrink-0 flex items-center px-0 py-px w-fit h-[18px] rounded-[1.5px] gap-[3px]",e.asButton&&"cursor-pointer",e.dimmed&&"opacity-50 hover:opacity-100 transition-opacity"))),n})()};var Wt=e=>(()=>{var t=dl();return B(t,()=>e.children),t})(),$e=null,Ai=e=>{let t=Symbol(),n=i=>{$e===t&&(tt(i)||(i.code==="Enter"||i.code==="Escape")&&(i.preventDefault(),i.stopPropagation(),e.onConfirm?.()));},r=()=>{$e=t;};return cn(()=>{$e=t,window.addEventListener("keydown",n,{capture:true});}),be(()=>{$e===t&&($e=null),window.removeEventListener("keydown",n,{capture:true});}),(()=>{var i=ml();i.firstChild;return i.$$click=r,i.$$pointerdown=r,B(i,A(Wt,{get children(){var a=fl(),l=a.firstChild,c=l.nextSibling;c.firstChild;return yt(l,"click",e.onCancel),yt(c,"click",e.onConfirm),B(c,A(fn,{size:10,class:"text-[#c00002]"}),null),a}}),null),i})()},_i=50,Bl=e=>{let t=Symbol(),n=o=>{$e===t&&(tt(o)||(o.code==="Enter"?(o.preventDefault(),o.stopPropagation(),e.onRetry?.()):o.code==="Escape"&&(o.preventDefault(),o.stopPropagation(),e.onAcknowledge?.())));},r=()=>{$e=t;},i=()=>{let o=e.error;return o.length<=_i?o:`${o.slice(0,_i)}\u2026`};return cn(()=>{$e=t,window.addEventListener("keydown",n,{capture:true});}),be(()=>{$e===t&&($e=null),window.removeEventListener("keydown",n,{capture:true});}),(()=>{var o=gl(),a=o.firstChild,l=a.firstChild;return o.$$click=r,o.$$pointerdown=r,B(l,i),B(o,A(Wt,{get children(){var c=pl(),u=c.firstChild;u.firstChild;var p=u.nextSibling;return yt(u,"click",e.onRetry),B(u,A(xi,{size:10,class:"text-black/50"}),null),yt(p,"click",e.onAcknowledge),c}}),null),de(()=>ve(l,"title",e.error)),o})()},Hl=e=>{let t=Symbol(),n=i=>{$e===t&&(tt(i)||(i.code==="Enter"||i.code==="Escape")&&(i.preventDefault(),i.stopPropagation(),e.onDismiss?.()));},r=()=>{$e=t;};return cn(()=>{$e=t,window.addEventListener("keydown",n,{capture:true});}),be(()=>{$e===t&&($e=null),window.removeEventListener("keydown",n,{capture:true});}),(()=>{var i=xl(),o=i.firstChild,a=o.firstChild;return i.$$click=r,i.$$pointerdown=r,B(a,()=>e.statusText),B(i,A(Q,{get when(){return e.onDismiss||e.onUndo||e.onReply},get children(){return A(Wt,{get children(){var l=wl();return B(l,A(Q,{get when(){return ye(()=>!!e.supportsUndo)()&&e.onUndo},get children(){var c=hl();return c.$$click=()=>e.onUndo?.(),c}}),null),B(l,A(Q,{get when(){return ye(()=>!!e.supportsFollowUp)()&&e.onReply},get children(){var c=bl();return c.$$click=()=>e.onReply?.(),c}}),null),B(l,A(Q,{get when(){return e.onDismiss},get children(){var c=yl(),u=c.firstChild;return c.$$click=()=>e.onDismiss?.(),B(u,()=>e.dismissButtonText??"Ok"),B(c,A(fn,{size:10,class:"text-black/50"}),null),c}}),null),l}})}}),null),i})()},Yt=e=>{let t,n,r=false,i=null,o=null,[a,l]=N(0),[c,u]=N(0),[g,p]=N("bottom"),[k,y]=N(0),[x,_]=N(false),[H,V]=N(false),C=bi({onTranscript:S=>e.onInputChange?.(S),getCurrentValue:()=>e.inputValue??""}),$=()=>e.status!=="copying"&&e.status!=="copied"&&e.status!=="fading",Z=()=>{if(t&&!r){let S=t.getBoundingClientRect();l(S.width),u(S.height);}},v=S=>{r=S;},M=()=>{y(S=>S+1);},W,z=()=>{_(false),W&&clearTimeout(W),W=setTimeout(()=>{_(true);},Fl);},q=S=>{tt(S)||S.code==="Enter"&&x()&&!e.isInputExpanded&&$()&&(S.preventDefault(),S.stopPropagation(),S.stopImmediatePropagation(),e.onToggleExpand?.());};cn(()=>{Z(),window.addEventListener("scroll",M,true),window.addEventListener("resize",M),window.addEventListener("keydown",q,{capture:true}),z();}),be(()=>{window.removeEventListener("scroll",M,true),window.removeEventListener("resize",M),window.removeEventListener("keydown",q,{capture:true}),W&&clearTimeout(W);}),oe(()=>{let S=`${e.tagName??""}:${e.componentName??""}`;S!==o&&(o=S,z());}),oe(()=>{e.tagName,e.componentName,e.statusText,e.inputValue,e.hasAgent,e.isInputExpanded,e.isPendingDismiss,e.error,e.isPendingAbort,requestAnimationFrame(Z);}),oe(()=>{e.visible&&requestAnimationFrame(Z);}),oe(()=>{e.status,requestAnimationFrame(Z);}),oe(()=>{e.isInputExpanded&&n?setTimeout(()=>{n?.focus();},0):C.stop();});let O=()=>{k();let S=e.selectionBounds,F=a(),X=c(),Y=F>0&&X>0,G=S&&S.width>0&&S.height>0;if(!Y||!G)return i??{left:-9999,top:-9999,arrowLeft:0};let U=window.innerWidth,ae=window.innerHeight,ee=S.x+S.width/2,fe=e.mouseX??ee,me=S.y+S.height,we=S.y,pe=fe-F/2,Te=me+Si+Ci;pe+F>U-8&&(pe=U-F-8),pe<8&&(pe=8);let Se=X+Si+Ci;Te+X<=ae-8?p("bottom"):(Te=we-Se,p("top")),Te<8&&(Te=8);let Fe=Math.max(12,Math.min(fe-pe,F-12)),Ve={left:pe,top:Te,arrowLeft:Fe};return i=Ve,V(true),Ve},h=S=>{if(S.stopPropagation(),S.stopImmediatePropagation(),S.code==="Enter"&&!S.shiftKey){if(S.preventDefault(),!e.inputValue?.trim())return;C.stop(),e.onSubmit?.();}else S.code==="Escape"&&(S.preventDefault(),C.stop(),e.onConfirmDismiss?.());},m=S=>{let F=S.target;e.onInputChange?.(F.value);},f=()=>e.tagName||"element",b=S=>{S.stopPropagation(),S.stopImmediatePropagation(),e.filePath&&e.onOpen&&e.onOpen();},L=()=>!!(e.filePath&&e.onOpen),j=S=>{S.stopPropagation(),S.stopImmediatePropagation();},ne=S=>{j(S),$()&&e.isInputExpanded&&!e.isPendingDismiss&&n&&n.focus();},te=()=>{e.isInputExpanded&&!e.inputValue?.trim()||(C.stop(),e.onSubmit?.());},se=()=>H()&&(e.status==="copied"||e.status==="fading");return A(Q,{get when(){return ye(()=>e.visible!==false)()&&(e.selectionBounds||se())},get children(){var S=$l(),F=S.firstChild;S.$$click=j,S.$$mousedown=j,S.$$pointerdown=ne;var X=t;return typeof X=="function"?Ut(X,S):t=S,B(S,A(Dl,{get position(){return g()},get leftPx(){return O().arrowLeft}}),F),B(S,A(Q,{get when(){return ye(()=>e.status==="copied"||e.status==="fading")()&&!e.error},get children(){return A(Hl,{get statusText(){return ye(()=>!!e.hasAgent)()?e.statusText??"Completed":"Copied"},get supportsUndo(){return e.supportsUndo},get supportsFollowUp(){return e.supportsFollowUp},get dismissButtonText(){return e.dismissButtonText},get onDismiss(){return e.onDismiss},get onUndo(){return e.onUndo},get onReply(){return e.onReply}})}}),F),B(F,A(Q,{get when(){return ye(()=>e.status==="copying")()&&!e.isPendingAbort},get children(){var Y=Cl(),G=Y.firstChild,U=G.firstChild,ae=U.firstChild;return B(ae,()=>e.statusText??"Grabbing\u2026"),B(Y,A(Wt,{get children(){var ee=Sl(),fe=ee.firstChild,me=n;return typeof me=="function"?Ut(me,fe):n=fe,B(ee,A(Q,{get when(){return e.onAbort},get children(){var we=vl();return we.$$click=pe=>{pe.stopPropagation(),e.onAbort?.();},we.$$pointerup=pe=>{pe.stopPropagation(),e.onAbort?.();},we.$$mousedown=pe=>pe.stopPropagation(),we.$$pointerdown=pe=>pe.stopPropagation(),we}}),null),de(()=>fe.value=e.inputValue??""),ee}}),null),Y}}),null),B(F,A(Q,{get when(){return ye(()=>e.status==="copying")()&&e.isPendingAbort},get children(){return A(Ai,{get onConfirm(){return e.onConfirmAbort},get onCancel(){return e.onCancelAbort}})}}),null),B(F,A(Q,{get when(){return ye(()=>!!$())()&&!e.isInputExpanded},get children(){var Y=Il(),G=Y.firstChild,U=G.nextSibling,ae=U.firstChild;return B(G,A(Ti,{onClick:te,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),B(G,A(Q,{get when(){return e.componentName},get children(){var ee=vi();return B(ee,A(Ei,{get name(){return e.componentName}}),null),B(ee,A(ki,{}),null),B(ee,A(zn,{get tagName(){return f()},get isClickable(){return L()},onClick:b,onHoverChange:v,shrink:true}),null),ee}}),null),B(G,A(Q,{get when(){return !e.componentName},get children(){return A(zn,{get tagName(){return f()},get isClickable(){return L()},onClick:b,onHoverChange:v,shrink:true})}}),null),B(ae,A(Wt,{get children(){var ee=Nl();return B(ee,A(Q,{get when(){return e.hasAgent},get children(){return [El(),(()=>{var fe=kl();return B(fe,A(fn,{size:10,class:"opacity-[0.99] text-black"})),fe})()]}}),null),B(ee,A(Q,{get when(){return !e.hasAgent},get children(){return [Tl(),Al(),_l()]}}),null),ee}})),de(ee=>{var fe=je("contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5",e.componentName?"pr-1.5":"pr-1"),me=x()?"1fr":"0fr",we=je("overflow-hidden min-h-0",!x()&&"w-0");return fe!==ee.e&&Ge(G,ee.e=fe),me!==ee.t&&_e(U,"grid-template-rows",ee.t=me),we!==ee.a&&Ge(ae,ee.a=we),ee},{e:void 0,t:void 0,a:void 0}),Y}}),null),B(F,A(Q,{get when(){return ye(()=>!!($()&&e.isInputExpanded))()&&!e.isPendingDismiss},get children(){var Y=Pl(),G=Y.firstChild;return B(G,A(Ti,{onClick:te,dimmed:true,shrink:true,get hasParent(){return !!e.componentName},get hasAgent(){return e.hasAgent}}),null),B(G,A(Q,{get when(){return e.componentName},get children(){var U=vi();return B(U,A(Ei,{get name(){return e.componentName}}),null),B(U,A(ki,{}),null),B(U,A(zn,{get tagName(){return f()},get isClickable(){return L()},onClick:b,onHoverChange:v,shrink:true,forceShowIcon:true}),null),U}}),null),B(G,A(Q,{get when(){return !e.componentName},get children(){return A(zn,{get tagName(){return f()},get isClickable(){return L()},onClick:b,onHoverChange:v,shrink:true,forceShowIcon:true})}}),null),B(Y,A(Wt,{get children(){return [A(Q,{get when(){return e.replyToPrompt},get children(){var U=Rl(),ae=U.firstChild,ee=ae.nextSibling;return B(ee,()=>e.replyToPrompt),U}}),(()=>{var U=Ol(),ae=U.firstChild,ee=ae.nextSibling;ae.$$keydown=h,ae.$$input=m;var fe=n;return typeof fe=="function"?Ut(fe,ae):n=ae,B(ee,A(Q,{get when(){return ye(()=>!!(e.hasAgent&&C.isSupported()))()&&!e.inputValue},get children(){var me=Ll();return yt(me,"click",C.toggle),B(me,A(wi,{size:11,get class(){return C.isListening()?"animate-pulse":""}})),de(we=>{var pe=je("contain-layout shrink-0 flex items-center justify-center px-[2px] py-[2px] rounded-xs [border-width:0.5px] border-solid size-fit cursor-pointer transition-all hover:scale-105",C.isListening()?"bg-grab-purple border-grab-purple text-white":"bg-white border-[#B3B3B3] text-black"),Te=C.isListening()?"Stop listening":"Start voice input";return pe!==we.e&&Ge(me,we.e=pe),Te!==we.t&&ve(me,"title",we.t=Te),we},{e:void 0,t:void 0}),me}}),null),B(ee,A(Q,{get when(){return e.inputValue},get children(){var me=Ml();return me.$$click=te,B(me,A(fn,{size:10,class:"opacity-[0.99] text-black"})),me}}),null),de(()=>ve(ae,"placeholder",C.isListening()?"listening...":"type prompt")),de(()=>ae.value=e.inputValue??""),U})()]}}),null),de(()=>Ge(G,je("contain-layout shrink-0 flex items-center gap-1 pt-1 w-fit h-fit pl-1.5",e.componentName?"pr-1.5":"pr-1"))),Y}}),null),B(F,A(Q,{get when(){return e.isPendingDismiss},get children(){return A(Ai,{get onConfirm(){return e.onConfirmDismiss},get onCancel(){return e.onCancelDismiss}})}}),null),B(F,A(Q,{get when(){return e.error},get children(){return A(Bl,{get error(){return e.error},get onAcknowledge(){return e.onAcknowledgeError},get onRetry(){return e.onRetry}})}}),null),de(Y=>{var G=`${O().top}px`,U=`${O().left}px`,ae=e.isInputExpanded||e.status==="copied"&&e.onDismiss||e.status==="copying"&&e.onAbort?"auto":"none",ee=e.status==="fading"?0:1,fe=(e.status==="copied"||e.status==="fading")&&!e.error?"none":void 0;return G!==Y.e&&_e(S,"top",Y.e=G),U!==Y.t&&_e(S,"left",Y.t=U),ae!==Y.a&&_e(S,"pointer-events",Y.a=ae),ee!==Y.o&&_e(S,"opacity",Y.o=ee),fe!==Y.i&&_e(F,"display",Y.i=fe),Y},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),S}})};Dn(["click","pointerdown","mousedown","pointerup","input","keydown"]);var jl=K('<div class="fixed z-2147483647"><button data-react-grab-selection-cursor>'),Ni=e=>{let[t,n]=N(false),[r,i]=N(false);oe(()=>{let a=e.visible!==false;if(e.x,e.y,i(false),a){let l=setTimeout(()=>i(true),500);be(()=>clearTimeout(l));}}),oe(()=>{if(!r()||!e.onEnter)return;let a=l=>{tt(l)||!(l.code==="Enter"||l.code==="NumpadEnter")||(l.preventDefault(),l.stopPropagation(),l.stopImmediatePropagation(),e.onEnter?.());};window.addEventListener("keydown",a,true),be(()=>{window.removeEventListener("keydown",a,true);});});let o=a=>{a.preventDefault(),a.stopPropagation(),e.onClick?.();};return A(Q,{get when(){return r()},get children(){return [A(Q,{get when(){return ye(()=>!!t())()&&e.elementBounds},get children(){return A(It,{variant:"selection",get bounds(){return e.elementBounds},visible:true})}}),(()=>{var a=jl(),l=a.firstChild;return a.addEventListener("mouseleave",()=>n(false)),a.addEventListener("mouseenter",()=>n(true)),l.$$click=o,de(c=>{var u=`${e.x}px`,g=`${e.y}px`,p=je("absolute left-0 top-0 -translate-x-1/2 -translate-y-1/2 bg-grab-pink cursor-pointer rounded-full transition-[width,height] duration-150",t()?"w-1 h-5.5 brightness-125":"w-0.5 h-5 animate-pulse");return u!==c.e&&_e(a,"left",c.e=u),g!==c.t&&_e(a,"top",c.t=g),p!==c.a&&Ge(l,c.a=p),c},{e:void 0,t:void 0,a:void 0}),a})(),A(Q,{get when(){return ye(()=>!!t())()&&e.elementBounds},get children(){return A(Yt,{get tagName(){return e.tagName},get componentName(){return e.componentName},get selectionBounds(){return e.elementBounds},get mouseX(){return e.x},visible:true,get onSubmit(){return e.onClick}})}})]}})};Dn(["click"]);var Ii=e=>{let t=ce(()=>e.agentSessions?Array.from(e.agentSessions.values()):[]);return [A(Q,{get when(){return ye(()=>!!e.selectionVisible)()&&e.selectionBounds},get children(){return A(It,{variant:"selection",get bounds(){return e.selectionBounds},get visible(){return e.selectionVisible},get isFading(){return e.selectionLabelStatus==="fading"}})}}),A(Q,{get when(){return ye(()=>e.crosshairVisible===true&&e.mouseX!==void 0)()&&e.mouseY!==void 0},get children(){return A(hi,{get mouseX(){return e.mouseX},get mouseY(){return e.mouseY},visible:true})}}),A(Q,{get when(){return ye(()=>!!e.dragVisible)()&&e.dragBounds},get children(){return A(It,{variant:"drag",get bounds(){return e.dragBounds},get visible(){return e.dragVisible}})}}),A($n,{get each(){return e.grabbedBoxes??[]},children:n=>A(It,{variant:"grabbed",get bounds(){return n.bounds},get createdAt(){return n.createdAt}})}),A(yr,{get each(){return t()},children:n=>[A(Q,{get when(){return n().selectionBounds},get children(){return A(It,{variant:"processing",get bounds(){return n().selectionBounds},visible:true,get isCompleted(){return !n().isStreaming}})}}),A(Yt,{get tagName(){return n().tagName},get componentName(){return n().componentName},get selectionBounds(){return n().selectionBounds},get mouseX(){return n().position.x},visible:true,hasAgent:true,isAgentConnected:true,get status(){return n().isStreaming?"copying":"copied"},get statusText(){return n().lastStatus||"Thinking\u2026"},get inputValue(){return n().context.prompt},get supportsUndo(){return e.supportsUndo},get supportsFollowUp(){return e.supportsFollowUp},get dismissButtonText(){return e.dismissButtonText},onAbort:()=>e.onAbortSession?.(n().id),get onDismiss(){return n().isStreaming?void 0:()=>e.onDismissSession?.(n().id)},get onUndo(){return n().isStreaming?void 0:()=>e.onUndoSession?.(n().id)},get onReply(){return n().isStreaming?void 0:()=>e.onReplySession?.(n().id)},get error(){return n().error},onAcknowledgeError:()=>e.onAcknowledgeSessionError?.(n().id),onRetry:()=>e.onRetrySession?.(n().id),get isPendingAbort(){return ye(()=>!!n().isStreaming)()?e.isPendingAgentAbort:false},get onConfirmAbort(){return e.onConfirmAgentAbort},get onCancelAbort(){return e.onCancelAgentAbort}})]}),A(Q,{get when(){return ye(()=>!!e.selectionLabelVisible)()&&e.selectionBounds},get children(){return A(Yt,{get tagName(){return e.selectionTagName},get componentName(){return e.selectionComponentName},get selectionBounds(){return e.selectionBounds},get mouseX(){return e.mouseX},get visible(){return e.selectionLabelVisible},get isInputExpanded(){return e.isInputExpanded},get inputValue(){return e.inputValue},get replyToPrompt(){return e.replyToPrompt},get hasAgent(){return e.hasAgent},get isAgentConnected(){return e.isAgentConnected},get status(){return e.selectionLabelStatus},get filePath(){return e.selectionFilePath},get lineNumber(){return e.selectionLineNumber},get onInputChange(){return e.onInputChange},get onSubmit(){return e.onInputSubmit},get onCancel(){return e.onInputCancel},get onToggleExpand(){return e.onToggleExpand},get isPendingDismiss(){return e.isPendingDismiss},get onConfirmDismiss(){return e.onConfirmDismiss},get onCancelDismiss(){return e.onCancelDismiss},onOpen:()=>{if(e.selectionFilePath){let n=Bn(e.selectionFilePath,e.selectionLineNumber);window.open(n,"_blank");}}})}}),A($n,{get each(){return e.labelInstances??[]},children:n=>A(Yt,{get tagName(){return n.tagName},get componentName(){return n.componentName},get selectionBounds(){return n.bounds},get mouseX(){return n.mouseX},visible:true,get status(){return n.status}})}),A(Q,{get when(){return ye(()=>!!(e.nativeSelectionCursorVisible&&e.nativeSelectionCursorX!==void 0))()&&e.nativeSelectionCursorY!==void 0},get children(){return A(Ni,{get x(){return e.nativeSelectionCursorX},get y(){return e.nativeSelectionCursorY},get tagName(){return e.nativeSelectionTagName},get componentName(){return e.nativeSelectionComponentName},get elementBounds(){return e.nativeSelectionBounds},get visible(){return e.nativeSelectionCursorVisible},get onClick(){return e.onNativeSelectionCopy},get onEnter(){return e.onNativeSelectionEnter}})}})]};var Mi="0.5.26",Un=`bippy-${Mi}`,Ri=Object.defineProperty,Vl=Object.prototype.hasOwnProperty,mn=()=>{},Oi=e=>{try{Function.prototype.toString.call(e).indexOf("^_^")>-1&&setTimeout(()=>{throw Error("React is running in production mode, but dead code elimination has not been applied. Read how to correctly configure React for production: https://reactjs.org/link/perf-use-production-build")});}catch{}},Gn=(e=ut())=>"getFiberRoots"in e,Pi=false,Li,pn=(e=ut())=>Pi?true:(typeof e.inject=="function"&&(Li=e.inject.toString()),!!Li?.includes("(injected)")),jn=new Set,Lt=new Set,$i=e=>{let t=new Map,n=0,r={_instrumentationIsActive:false,_instrumentationSource:Un,checkDCE:Oi,hasUnsupportedRendererAttached:false,inject(i){let o=++n;return t.set(o,i),Lt.add(i),r._instrumentationIsActive||(r._instrumentationIsActive=true,jn.forEach(a=>a())),o},on:mn,onCommitFiberRoot:mn,onCommitFiberUnmount:mn,onPostCommitFiberRoot:mn,renderers:t,supportsFiber:true,supportsFlight:true};try{Ri(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__",{configurable:!0,enumerable:!0,get(){return r},set(a){if(a&&typeof a=="object"){let l=r.renderers;r=a,l.size>0&&(l.forEach((c,u)=>{Lt.add(c),a.renderers.set(u,c);}),Vn(e));}}});let i=window.hasOwnProperty,o=!1;Ri(window,"hasOwnProperty",{configurable:!0,value:function(...a){try{if(!o&&a[0]==="__REACT_DEVTOOLS_GLOBAL_HOOK__")return globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__=void 0,o=!0,-0}catch{}return i.apply(this,a)},writable:!0});}catch{Vn(e);}return r},Vn=e=>{try{let t=globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t)return;if(!t._instrumentationSource){t.checkDCE=Oi,t.supportsFiber=!0,t.supportsFlight=!0,t.hasUnsupportedRendererAttached=!1,t._instrumentationSource=Un,t._instrumentationIsActive=!1;let n=Gn(t);if(n||(t.on=mn),t.renderers.size){t._instrumentationIsActive=!0,jn.forEach(o=>o());return}let r=t.inject,i=pn(t);i&&!n&&(Pi=!0,t.inject({scheduleRefresh(){}})&&(t._instrumentationIsActive=!0)),t.inject=o=>{let a=r(o);return Lt.add(o),i&&t.renderers.set(a,o),t._instrumentationIsActive=!0,jn.forEach(l=>l()),a};}(t.renderers.size||t._instrumentationIsActive||pn())&&e?.();}catch{}},Er=()=>Vl.call(globalThis,"__REACT_DEVTOOLS_GLOBAL_HOOK__"),ut=e=>Er()?(Vn(e),globalThis.__REACT_DEVTOOLS_GLOBAL_HOOK__):$i(e),Fi=()=>!!(typeof window<"u"&&(window.document?.createElement||window.navigator?.product==="ReactNative")),kr=()=>{try{Fi()&&ut();}catch{}};var Tr=0,Ar=1;var _r=5;var Nr=11,Ir=13;var Rr=15,Lr=16;var Mr=19;var Or=26,Pr=27,$r=28,Fr=30;function Dr(e,t,n=false){if(!e)return null;let r=t(e);if(r instanceof Promise)return (async()=>{if(await r===true)return e;let o=n?e.return:e.child;for(;o;){let a=await Hr(o,t,n);if(a)return a;o=n?null:o.sibling;}return null})();if(r===true)return e;let i=n?e.return:e.child;for(;i;){let o=Br(i,t,n);if(o)return o;i=n?null:i.sibling;}return null}var Br=(e,t,n=false)=>{if(!e)return null;if(t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=Br(r,t,n);if(i)return i;r=n?null:r.sibling;}return null},Hr=async(e,t,n=false)=>{if(!e)return null;if(await t(e)===true)return e;let r=n?e.return:e.child;for(;r;){let i=await Hr(r,t,n);if(i)return i;r=n?null:r.sibling;}return null};var zr=e=>{let t=e;return typeof t=="function"?t:typeof t=="object"&&t?zr(t.type||t.render):null},gn=e=>{let t=e;if(typeof t=="string")return t;if(typeof t!="function"&&!(typeof t=="object"&&t))return null;let n=t.displayName||t.name||null;if(n)return n;let r=zr(t);return r&&(r.displayName||r.name)||null};var hn=()=>!!ut()._instrumentationIsActive||Gn()||pn();var jr=e=>{let t=ut();for(let n of t.renderers.values())try{let r=n.findFiberByHostInstance?.(e);if(r)return r}catch{}if(typeof e=="object"&&e){if("_reactRootContainer"in e)return e._reactRootContainer?._internalRoot?.current?.child;for(let n in e)if(n.startsWith("__reactContainer$")||n.startsWith("__reactInternalInstance$")||n.startsWith("__reactFiber"))return e[n]||null}return null};var Jl=Object.create,Gi=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,ec=Object.getOwnPropertyNames,tc=Object.getPrototypeOf,nc=Object.prototype.hasOwnProperty,rc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=ec(t),o=0,a=i.length,l;o<a;o++)l=i[o],!nc.call(e,l)&&l!==n&&Gi(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(r=Ql(t,l))||r.enumerable});return e},ic=(e,t,n)=>(n=e==null?{}:Jl(tc(e)),oc(Gi(n,"default",{value:e,enumerable:true}),e)),Di=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,sc=["rsc://","file:///","webpack://","webpack-internal://","node:","turbopack://","metro://","/app-pages-browser/"],Bi="about://React/",ac=["<anonymous>","eval",""],lc=/\.(jsx|tsx|ts|js)$/,cc=/(\.min|bundle|chunk|vendor|vendors|runtime|polyfill|polyfills)\.(js|mjs|cjs)$|(chunk|bundle|vendor|vendors|runtime|polyfill|polyfills|framework|app|main|index)[-_.][A-Za-z0-9_-]{4,}\.(js|mjs|cjs)$|[\da-f]{8,}\.(js|mjs|cjs)$|[-_.][\da-f]{20,}\.(js|mjs|cjs)$|\/dist\/|\/build\/|\/.next\/|\/out\/|\/node_modules\/|\.webpack\.|\.vite\.|\.turbopack\./i,uc=/^\?[\w~.\-]+(?:=[^&#]*)?(?:&[\w~.\-]+(?:=[^&#]*)?)*$/,Ki="(at Server)",dc=/(^|@)\S+:\d+/,Xi=/^\s*at .*(\S+:\d+|\(native\))/m,fc=/^(eval@)?(\[native code\])?$/;var Wi=(e,t)=>{{let n=e.split(`
|
|
11
|
+
`),r=[];for(let i of n)if(/^\s*at\s+/.test(i)){let o=Hi(i,void 0)[0];o&&r.push(o);}else if(/^\s*in\s+/.test(i)){let o=i.replace(/^\s*in\s+/,"").replace(/\s*\(at .*\)$/,"");r.push({functionName:o,source:i});}else if(i.match(dc)){let o=zi(i,void 0)[0];o&&r.push(o);}return Gr(r,t)}},Yi=e=>{if(!e.includes(":"))return [e,void 0,void 0];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/,n=t.exec(e.replace(/[()]/g,""));return [n[1],n[2]||void 0,n[3]||void 0]},Gr=(e,t)=>t&&t.slice!=null?Array.isArray(t.slice)?e.slice(t.slice[0],t.slice[1]):e.slice(0,t.slice):e;var Hi=(e,t)=>Gr(e.split(`
|
|
12
|
+
`).filter(r=>!!r.match(Xi)),t).map(r=>{let i=r;i.includes("(eval ")&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let o=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),a=o.match(/ (\(.+\)$)/);o=a?o.replace(a[0],""):o;let l=Yi(a?a[1]:o),c=a&&o||void 0,u=["eval","<anonymous>"].includes(l[0])?void 0:l[0];return {functionName:c,fileName:u,lineNumber:l[1]?+l[1]:void 0,columnNumber:l[2]?+l[2]:void 0,source:i}});var zi=(e,t)=>Gr(e.split(`
|
|
13
|
+
`).filter(r=>!r.match(fc)),t).map(r=>{let i=r;if(i.includes(" > eval")&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!i.includes("@")&&!i.includes(":"))return {functionName:i};{let o=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,a=i.match(o),l=a&&a[1]?a[1]:void 0,c=Yi(i.replace(o,""));return {functionName:l,fileName:c[0],lineNumber:c[1]?+c[1]:void 0,columnNumber:c[2]?+c[2]:void 0,source:i}}});var mc=rc((e,t)=>{(function(n,r){typeof e=="object"&&t!==void 0?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.sourcemapCodec={}));})(void 0,function(n){let r=44,i=59,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(64),l=new Uint8Array(128);for(let h=0;h<o.length;h++){let m=o.charCodeAt(h);a[h]=m,l[m]=h;}function c(h,m){let f=0,b=0,L=0;do{let ne=h.next();L=l[ne],f|=(L&31)<<b,b+=5;}while(L&32);let j=f&1;return f>>>=1,j&&(f=-2147483648|-f),m+f}function u(h,m,f){let b=m-f;b=b<0?-b<<1|1:b<<1;do{let L=b&31;b>>>=5,b>0&&(L|=32),h.write(a[L]);}while(b>0);return m}function g(h,m){return h.pos>=m?false:h.peek()!==r}let p=1024*16,k=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(h){return Buffer.from(h.buffer,h.byteOffset,h.byteLength).toString()}}:{decode(h){let m="";for(let f=0;f<h.length;f++)m+=String.fromCharCode(h[f]);return m}};class y{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(p);}write(m){let{buffer:f}=this;f[this.pos++]=m,this.pos===p&&(this.out+=k.decode(f),this.pos=0);}flush(){let{buffer:m,out:f,pos:b}=this;return b>0?f+k.decode(m.subarray(0,b)):f}}class x{constructor(m){this.pos=0,this.buffer=m;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(m){let{buffer:f,pos:b}=this,L=f.indexOf(m,b);return L===-1?f.length:L}}let _=[];function H(h){let{length:m}=h,f=new x(h),b=[],L=[],j=0;for(;f.pos<m;f.pos++){j=c(f,j);let ne=c(f,0);if(!g(f,m)){let Y=L.pop();Y[2]=j,Y[3]=ne;continue}let te=c(f,0),se=c(f,0),S=se&1,F=S?[j,ne,0,0,te,c(f,0)]:[j,ne,0,0,te],X=_;if(g(f,m)){X=[];do{let Y=c(f,0);X.push(Y);}while(g(f,m))}F.vars=X,b.push(F),L.push(F);}return b}function V(h){let m=new y;for(let f=0;f<h.length;)f=C(h,f,m,[0]);return m.flush()}function C(h,m,f,b){let L=h[m],{0:j,1:ne,2:te,3:se,4:S,vars:F}=L;m>0&&f.write(r),b[0]=u(f,j,b[0]),u(f,ne,0),u(f,S,0);let X=L.length===6?1:0;u(f,X,0),L.length===6&&u(f,L[5],0);for(let Y of F)u(f,Y,0);for(m++;m<h.length;){let Y=h[m],{0:G,1:U}=Y;if(G>te||G===te&&U>=se)break;m=C(h,m,f,b);}return f.write(r),b[0]=u(f,te,b[0]),u(f,se,0),m}function $(h){let{length:m}=h,f=new x(h),b=[],L=[],j=0,ne=0,te=0,se=0,S=0,F=0,X=0,Y=0;do{let G=f.indexOf(";"),U=0;for(;f.pos<G;f.pos++){if(U=c(f,U),!g(f,G)){let Se=L.pop();Se[2]=j,Se[3]=U;continue}let ae=c(f,0),ee=ae&1,fe=ae&2,me=ae&4,we=null,pe=_,Te;if(ee){let Se=c(f,ne);te=c(f,ne===Se?te:0),ne=Se,Te=[j,U,0,0,Se,te];}else Te=[j,U,0,0];if(Te.isScope=!!me,fe){let Se=se,rt=S;se=c(f,se);let Fe=Se===se;S=c(f,Fe?S:0),F=c(f,Fe&&rt===S?F:0),we=[se,S,F];}if(Te.callsite=we,g(f,G)){pe=[];do{X=j,Y=U;let Se=c(f,0),rt;if(Se<-1){rt=[[c(f,0)]];for(let Fe=-1;Fe>Se;Fe--){let Ve=X;X=c(f,X),Y=c(f,X===Ve?Y:0);let Jt=c(f,0);rt.push([Jt,X,Y]);}}else rt=[[Se]];pe.push(rt);}while(g(f,G))}Te.bindings=pe,b.push(Te),L.push(Te);}j++,f.pos=G+1;}while(f.pos<m);return b}function Z(h){if(h.length===0)return "";let m=new y;for(let f=0;f<h.length;)f=v(h,f,m,[0,0,0,0,0,0,0]);return m.flush()}function v(h,m,f,b){let L=h[m],{0:j,1:ne,2:te,3:se,isScope:S,callsite:F,bindings:X}=L;b[0]<j?(M(f,b[0],j),b[0]=j,b[1]=0):m>0&&f.write(r),b[1]=u(f,L[1],b[1]);let Y=(L.length===6?1:0)|(F?2:0)|(S?4:0);if(u(f,Y,0),L.length===6){let{4:G,5:U}=L;G!==b[2]&&(b[3]=0),b[2]=u(f,G,b[2]),b[3]=u(f,U,b[3]);}if(F){let{0:G,1:U,2:ae}=L.callsite;G===b[4]?U!==b[5]&&(b[6]=0):(b[5]=0,b[6]=0),b[4]=u(f,G,b[4]),b[5]=u(f,U,b[5]),b[6]=u(f,ae,b[6]);}if(X)for(let G of X){G.length>1&&u(f,-G.length,0);let U=G[0][0];u(f,U,0);let ae=j,ee=ne;for(let fe=1;fe<G.length;fe++){let me=G[fe];ae=u(f,me[1],ae),ee=u(f,me[2],ee),u(f,me[0],0);}}for(m++;m<h.length;){let G=h[m],{0:U,1:ae}=G;if(U>te||U===te&&ae>=se)break;m=v(h,m,f,b);}return b[0]<te?(M(f,b[0],te),b[0]=te,b[1]=0):f.write(r),b[1]=u(f,se,b[1]),m}function M(h,m,f){do h.write(i);while(++m<f)}function W(h){let{length:m}=h,f=new x(h),b=[],L=0,j=0,ne=0,te=0,se=0;do{let S=f.indexOf(";"),F=[],X=true,Y=0;for(L=0;f.pos<S;){let G;L=c(f,L),L<Y&&(X=false),Y=L,g(f,S)?(j=c(f,j),ne=c(f,ne),te=c(f,te),g(f,S)?(se=c(f,se),G=[L,j,ne,te,se]):G=[L,j,ne,te]):G=[L],F.push(G),f.pos++;}X||z(F),b.push(F),f.pos=S+1;}while(f.pos<=m);return b}function z(h){h.sort(q);}function q(h,m){return h[0]-m[0]}function O(h){let m=new y,f=0,b=0,L=0,j=0;for(let ne=0;ne<h.length;ne++){let te=h[ne];if(ne>0&&m.write(i),te.length===0)continue;let se=0;for(let S=0;S<te.length;S++){let F=te[S];S>0&&m.write(r),se=u(m,F[0],se),F.length!==1&&(f=u(m,F[1],f),b=u(m,F[2],b),L=u(m,F[3],L),F.length!==4&&(j=u(m,F[4],j)));}}return m.flush()}n.decode=W,n.decodeGeneratedRanges=$,n.decodeOriginalScopes=H,n.encode=O,n.encodeGeneratedRanges=Z,n.encodeOriginalScopes=V,Object.defineProperty(n,"__esModule",{value:true});});}),qi=ic(mc()),Zi=/^[a-zA-Z][a-zA-Z\d+\-.]*:/,pc=/^data:application\/json[^,]+base64,/,gc=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*(?:\*\/)[ \t]*$)/,Ji=typeof WeakRef<"u",bn=new Map,Kn=new Map,hc=e=>Ji&&e instanceof WeakRef,ji=(e,t,n,r)=>{if(n<0||n>=e.length)return null;let i=e[n];if(!i||i.length===0)return null;let o=null;for(let g of i)if(g[0]<=r)o=g;else break;if(!o||o.length<4)return null;let[,a,l,c]=o;if(a===void 0||l===void 0||c===void 0)return null;let u=t[a];return u?{columnNumber:c,fileName:u,lineNumber:l+1}:null},bc=(e,t,n)=>{if(e.sections){let r=null;for(let a of e.sections)if(t>a.offset.line||t===a.offset.line&&n>=a.offset.column)r=a;else break;if(!r)return null;let i=t-r.offset.line,o=t===r.offset.line?n-r.offset.column:n;return ji(r.map.mappings,r.map.sources,i,o)}return ji(e.mappings,e.sources,t-1,n)},yc=(e,t)=>{let n=t.split(`
|
|
14
|
+
`),r;for(let o=n.length-1;o>=0&&!r;o--){let a=n[o].match(gc);a&&(r=a[1]||a[2]);}if(!r)return null;let i=Zi.test(r);if(!(pc.test(r)||i||r.startsWith("/"))){let o=e.split("/");o[o.length-1]=r,r=o.join("/");}return r},wc=e=>({file:e.file,mappings:(0, qi.decode)(e.mappings),names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,version:3}),xc=e=>{let t=e.sections.map(({map:r,offset:i})=>({map:{...r,mappings:(0, qi.decode)(r.mappings)},offset:i})),n=new Set;for(let r of t)for(let i of r.map.sources)n.add(i);return {file:e.file,mappings:[],names:[],sections:t,sourceRoot:void 0,sources:Array.from(n),sourcesContent:void 0,version:3}},Vi=e=>{if(!e)return false;let t=e.trim();if(!t)return false;let n=t.match(Zi);if(!n)return true;let r=n[0].toLowerCase();return r==="http:"||r==="https:"},vc=async(e,t=fetch)=>{if(!Vi(e))return null;let n;try{n=await(await t(e)).text();}catch{return null}if(!n)return null;let r=yc(e,n);if(!r||!Vi(r))return null;try{let i=await t(r),o=await i.json();return "sections"in o?xc(o):wc(o)}catch{return null}},Sc=async(e,t=true,n)=>{if(t&&bn.has(e)){let o=bn.get(e);if(o==null)return null;if(hc(o)){let a=o.deref();if(a)return a;bn.delete(e);}else return o}if(t&&Kn.has(e))return Kn.get(e);let r=vc(e,n);t&&Kn.set(e,r);let i=await r;return t&&Kn.delete(e),t&&(i===null?bn.set(e,null):bn.set(e,Ji?new WeakRef(i):i)),i},Cc=async(e,t=true,n)=>await Promise.all(e.map(async r=>{if(!r.fileName)return r;let i=await Sc(r.fileName,t,n);if(!i||typeof r.lineNumber!="number"||typeof r.columnNumber!="number")return r;let o=bc(i,r.lineNumber,r.columnNumber);return o?{...r,source:o.fileName&&r.source?r.source.replace(r.fileName,o.fileName):r.source,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,isSymbolicated:true}:r})),Ec=e=>e._debugStack instanceof Error&&typeof e._debugStack?.stack=="string",kc=()=>{let e=ut();for(let t of [...Array.from(Lt),...Array.from(e.renderers.values())]){let n=t.currentDispatcherRef;if(n&&typeof n=="object")return "H"in n?n.H:n.current}return null},Ui=e=>{for(let t of Lt){let n=t.currentDispatcherRef;n&&typeof n=="object"&&("H"in n?n.H=e:n.current=e);}},dt=e=>`
|
|
15
|
+
in ${e}`,Tc=(e,t)=>{let n=dt(e);return t&&(n+=` (at ${t})`),n},Vr=false,Ur=(e,t)=>{if(!e||Vr)return "";let n=Error.prepareStackTrace;Error.prepareStackTrace=void 0,Vr=true;let r=kc();Ui(null);let i=console.error,o=console.warn;console.error=()=>{},console.warn=()=>{};try{let c={DetermineComponentFrameRoot(){let k;try{if(t){let y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[]);}catch(x){k=x;}Reflect.construct(e,[],y);}else {try{y.call();}catch(x){k=x;}e.call(y.prototype);}}else {try{throw Error()}catch(x){k=x;}let y=e();y&&typeof y.catch=="function"&&y.catch(()=>{});}}catch(y){if(y instanceof Error&&k instanceof Error&&typeof y.stack=="string")return [y.stack,k.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot",Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name")?.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});let[g,p]=c.DetermineComponentFrameRoot();if(g&&p){let k=g.split(`
|
|
16
|
+
`),y=p.split(`
|
|
17
|
+
`),x=0,_=0;for(;x<k.length&&!k[x].includes("DetermineComponentFrameRoot");)x++;for(;_<y.length&&!y[_].includes("DetermineComponentFrameRoot");)_++;if(x===k.length||_===y.length)for(x=k.length-1,_=y.length-1;x>=1&&_>=0&&k[x]!==y[_];)_--;for(;x>=1&&_>=0;x--,_--)if(k[x]!==y[_]){if(x!==1||_!==1)do if(x--,_--,_<0||k[x]!==y[_]){let H=`
|
|
18
|
+
${k[x].replace(" at new "," at ")}`,V=gn(e);return V&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",V)),H}while(x>=1&&_>=0);break}}}finally{Vr=false,Error.prepareStackTrace=n,Ui(r),console.error=i,console.warn=o;}let a=e?gn(e):"";return a?dt(a):""},Ac=(e,t)=>{let n=e.tag,r="";switch(n){case $r:r=dt("Activity");break;case Ar:r=Ur(e.type,true);break;case Nr:r=Ur(e.type.render,false);break;case Tr:case Rr:r=Ur(e.type,false);break;case _r:case Or:case Pr:r=dt(e.type);break;case Lr:r=dt("Lazy");break;case Ir:r=e.child!==t&&t!==null?dt("Suspense Fallback"):dt("Suspense");break;case Mr:r=dt("SuspenseList");break;case Fr:r=dt("ViewTransition");break;default:return ""}return r},_c=e=>{try{let t="",n=e,r=null;do{t+=Ac(n,r);let i=n._debugInfo;if(i&&Array.isArray(i))for(let o=i.length-1;o>=0;o--){let a=i[o];typeof a.name=="string"&&(t+=Tc(a.name,a.env));}r=n,n=n.return;}while(n);return t}catch(t){return t instanceof Error?`
|
|
19
|
+
Error generating stack: ${t.message}
|
|
20
|
+
${t.stack}`:""}},Nc=e=>{let t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;let n=e;if(!n)return "";Error.prepareStackTrace=t,n.startsWith(`Error: react-stack-top-frame
|
|
21
|
+
`)&&(n=n.slice(29));let r=n.indexOf(`
|
|
22
|
+
`);if(r!==-1&&(n=n.slice(r+1)),r=Math.max(n.indexOf("react_stack_bottom_frame"),n.indexOf("react-stack-bottom-frame")),r!==-1&&(r=n.lastIndexOf(`
|
|
23
|
+
`,r)),r!==-1)n=n.slice(0,r);else return "";return n},Ic=e=>!!(e.fileName?.startsWith("rsc://")&&e.functionName),Rc=(e,t)=>e.fileName===t.fileName&&e.lineNumber===t.lineNumber&&e.columnNumber===t.columnNumber,Lc=e=>{let t=new Map;for(let n of e)for(let r of n.stackFrames){if(!Ic(r))continue;let i=r.functionName,o=t.get(i)??[];o.some(l=>Rc(l,r))||(o.push(r),t.set(i,o));}return t},Mc=(e,t,n)=>{if(!e.functionName)return {...e,isServer:true};let r=t.get(e.functionName);if(!r||r.length===0)return {...e,isServer:true};let i=n.get(e.functionName)??0,o=r[i%r.length];return n.set(e.functionName,i+1),{...e,isServer:true,fileName:o.fileName,lineNumber:o.lineNumber,columnNumber:o.columnNumber,source:e.source?.replace(Ki,`(${o.fileName}:${o.lineNumber}:${o.columnNumber})`)}},Oc=e=>{let t=[];return Dr(e,n=>{if(!Ec(n))return;let r=typeof n.type=="string"?n.type:gn(n.type)||"<anonymous>";t.push({componentName:r,stackFrames:Wi(Nc(n._debugStack?.stack))});},true),t},Qi=async(e,t=true,n)=>{let r=Oc(e),i=Wi(_c(e)),o=Lc(r),a=new Map,l=i.map(u=>u.source?.includes(Ki)??false?Mc(u,o,a):u),c=l.filter((u,g,p)=>{if(g===0)return true;let k=p[g-1];return u.functionName!==k.functionName});return Cc(c,t,n)};var yn=e=>{if(!e||ac.some(i=>i===e))return "";let t=e;if(t.startsWith("http://")||t.startsWith("https://"))try{t=new URL(t).pathname;}catch{}if(t.startsWith(Bi)){let i=t.slice(Bi.length),o=i.indexOf("/"),a=i.indexOf(":");t=o!==-1&&(a===-1||o<a)?i.slice(o+1):i;}let n=true;for(;n;){n=false;for(let i of sc)if(t.startsWith(i)){t=t.slice(i.length),i==="file:///"&&(t=`/${t.replace(/^\/+/,"")}`),n=true;break}}if(Di.test(t)){let i=t.match(Di);i&&(t=t.slice(i[0].length));}if(t.startsWith("//")){let i=t.indexOf("/",2);t=i===-1?"":t.slice(i);}let r=t.indexOf("?");if(r!==-1){let i=t.slice(r);uc.test(i)&&(t=t.slice(0,r));}return t},Xn=e=>{let t=yn(e);return !(!t||!lc.test(t)||cc.test(t))};var es=e=>e.length>0&&/^[A-Z]/.test(e);kr();var Pc=new Set(["InnerLayoutRouter","RedirectErrorBoundary","RedirectBoundary","HTTPAccessFallbackErrorBoundary","HTTPAccessFallbackBoundary","LoadingBoundary","ErrorBoundary","InnerScrollAndFocusHandler","ScrollAndFocusHandler","RenderFromTemplateContext","OuterLayoutRouter","body","html","DevRootHTTPAccessFallbackBoundary","AppDevOverlayErrorBoundary","AppDevOverlay","HotReload","Router","ErrorBoundaryHandler","AppRouter","ServerRoot","SegmentStateProvider","RootErrorBoundary","LoadableComponent","MotionDOMComponent"]),$c=()=>typeof document>"u"?false:!!(document.getElementById("__NEXT_DATA__")||document.querySelector("nextjs-portal")),Fc=e=>!!(e.startsWith("_")||Pc.has(e)),Kr=e=>!(Fc(e)||!es(e)||e.startsWith("Primitive.")||e.includes("Provider")&&e.includes("Context")),wn=async e=>{if(!hn())return [];let t=jr(e);return t?await Qi(t):null},Ze=async e=>{if(!hn())return null;let t=await wn(e);if(!t)return null;for(let n of t)if(n.functionName&&Kr(n.functionName))return n.functionName;return null},Xr=async(e,t={})=>{let{maxLines:n=3}=t,r=Dc(e),i=await wn(e),o=$c(),a=[];if(i)for(let l of i){if(a.length>=n)break;if(l.isServer&&(!l.functionName||Kr(l.functionName))){a.push(`
|
|
24
|
+
in ${l.functionName||"<anonymous>"} (at Server)`);continue}if(l.fileName&&Xn(l.fileName)){let c=`
|
|
25
|
+
in `,u=l.functionName&&Kr(l.functionName);u&&(c+=`${l.functionName} (at `),c+=yn(l.fileName),o&&l.lineNumber&&l.columnNumber&&(c+=`:${l.lineNumber}:${l.columnNumber}`),u&&(c+=")"),a.push(c);}}return `${r}${a.join("")}`},Dc=e=>{let t=e.tagName.toLowerCase();if(!(e instanceof HTMLElement))return `<${t} />`;let n=e.innerText?.trim()??e.textContent?.trim()??"",r="",i=Array.from(e.attributes);for(let y of i){let x=y.name,_=y.value;_.length>20&&(_=`${_.slice(0,20)}...`),r+=` ${x}="${_}"`;}let o=[],a=[],l=false,c=Array.from(e.childNodes);for(let y of c)y.nodeType!==Node.COMMENT_NODE&&(y.nodeType===Node.TEXT_NODE?y.textContent&&y.textContent.trim().length>0&&(l=true):y instanceof Element&&(l?a.push(y):o.push(y)));let u=y=>y.length===0?"":y.length<=2?y.map(x=>`<${x.tagName.toLowerCase()} ...>`).join(`
|
|
26
|
+
`):`(${y.length} elements)`,g="",p=u(o);if(p&&(g+=`
|
|
27
|
+
${p}`),n.length>0){let y=n.length>100?`${n.slice(0,100)}...`:n;g+=`
|
|
28
|
+
${y}`;}let k=u(a);return k&&(g+=`
|
|
29
|
+
${k}`),g.length>0?`<${t}${r}>${g}
|
|
30
|
+
</${t}>`:`<${t}${r} />`};var Wr=e=>({activate:()=>{},deactivate:()=>{},toggle:()=>{},isActive:()=>false,dispose:()=>{},copyElement:()=>Promise.resolve(false),getState:()=>({isActive:false,isDragging:false,isCopying:false,isInputMode:false,targetElement:null,dragBounds:null}),updateTheme:()=>{},getTheme:()=>e,setAgent:()=>{},updateOptions:()=>{}});var ts=()=>{let e=new AbortController,t=(r,i,o={})=>{window.addEventListener(r,i,{...o,signal:e.signal});},n=(r,i,o={})=>{document.addEventListener(r,i,{...o,signal:e.signal});};return {signal:e.signal,abort:()=>e.abort(),addWindowListener:t,addDocumentListener:n}};var ns=e=>({createLabelInstance:(i,o,a,l,c,u)=>{let g=`label-${Date.now()}-${Math.random().toString(36).slice(2)}`;return e(p=>[...p,{id:g,bounds:i,tagName:o,componentName:a,status:l,createdAt:Date.now(),element:c,mouseX:u}]),g},updateLabelInstance:(i,o)=>{e(a=>a.map(l=>l.id===i?{...l,status:o}:l));},removeLabelInstance:i=>{e(o=>o.filter(a=>a.id!==i));}});var Bc="application/x-react-grab",qt=(e,t)=>{let n=JSON.stringify({version:ri,content:e,timestamp:Date.now(),...t?.prompt&&{prompt:t.prompt}}),r=o=>{o.preventDefault(),o.clipboardData?.setData("text/plain",e),o.clipboardData?.setData(Bc,n);};document.addEventListener("copy",r);let i=document.createElement("textarea");i.value=e,i.style.position="fixed",i.style.left="-9999px",i.ariaHidden="true",document.body.appendChild(i),i.select();try{let o=document.execCommand("copy");return o&&t?.onSuccess?.(),o}finally{document.removeEventListener("copy",r),i.remove();}};var xn=async(e,t={})=>{let r=(await Promise.allSettled(e.map(i=>Xr(i,t)))).map(i=>i.status==="fulfilled"?i.value:"").filter(i=>i.trim());return r.length===0?"":r.join(`
|
|
31
|
+
|
|
32
|
+
`)};var Hc=e=>"innerText"in e,zc=e=>Hc(e)?e.innerText:e.textContent??"",rs=e=>e.map(t=>zc(t).trim()).filter(t=>t.length>0).join(`
|
|
33
|
+
|
|
34
|
+
`),os=async(e,t,n)=>{let r=false,i="";await e.onBeforeCopy?.(t);try{if(e.getContent){let o=await e.getContent(t);if(o.trim()){let a=n?`${n}
|
|
35
|
+
|
|
36
|
+
${o}`:o;i=a,r=qt(a,{prompt:n});}}else {let o=await xn(t,{maxLines:e.maxContextLines});if(o.trim()){let a=n?`${n}
|
|
37
|
+
|
|
38
|
+
${o}`:o;i=a,r=qt(a,{prompt:n});}if(!r){let a=rs(t);if(a.length>0){let l=n?`${n}
|
|
39
|
+
|
|
40
|
+
${a}`:a;i=l,r=qt(l,{prompt:n});}}}}catch(o){let a=o instanceof Error?o:new Error(String(o));e.onCopyError?.(a);let l=rs(t);if(l.length>0){let c=n?`${n}
|
|
41
|
+
|
|
42
|
+
${l}`:l;i=c,r=qt(c,{prompt:n});}}return r&&e.onCopySuccess?.(t,i),e.onAfterCopy?.(t,r),r};var is=(e,t=window.getComputedStyle(e))=>t.display!=="none"&&t.visibility!=="hidden"&&t.opacity!=="0";var Je=e=>{if(e.closest(`[${Gt}]`))return false;let t=window.getComputedStyle(e);return !(!is(e,t)||t.pointerEvents==="none")};var Yr=(e,t)=>{let n=document.elementsFromPoint(e,t);for(let r of n)if(Je(r))return r;return null};var jc=(e,t)=>{let n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),i=Math.min(e.right,t.right),o=Math.min(e.bottom,t.bottom),a=Math.max(0,i-n),l=Math.max(0,o-r);return a*l},Vc=(e,t)=>e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top,Zt=(e,t,n)=>Math.min(n,Math.max(t,e)),Uc=e=>e.sort((t,n)=>{if(t===n)return 0;let r=t.compareDocumentPosition(n);return r&Node.DOCUMENT_POSITION_FOLLOWING?-1:r&Node.DOCUMENT_POSITION_PRECEDING?1:0}),Gc=e=>{if(e.width<=0||e.height<=0)return [];let t=window.innerWidth,n=window.innerHeight,r=e.x,i=e.y,o=e.x+e.width,a=e.y+e.height,l=r+e.width/2,c=i+e.height/2,u=Zt(Math.ceil(e.width/24),3,30),g=Zt(Math.ceil(e.height/24),3,30),p=u*g,k=p>600?Math.sqrt(600/p):1,y=Zt(Math.floor(u*k),3,30),x=Zt(Math.floor(g*k),3,30),_=new Set,H=[],V=($,Z)=>{let v=Zt(Math.round($),0,t-1),M=Zt(Math.round(Z),0,n-1),W=`${v}:${M}`;_.has(W)||(_.add(W),H.push({x:v,y:M}));},C=1;V(r+C,i+C),V(o-C,i+C),V(r+C,a-C),V(o-C,a-C),V(l,i+C),V(l,a-C),V(r+C,c),V(o-C,c),V(l,c);for(let $=0;$<y;$+=1){let Z=r+($+.5)/y*e.width;for(let v=0;v<x;v+=1){let M=i+(v+.5)/x*e.height;V(Z,M);}}return H},ss=(e,t,n)=>{let r={left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height},i=new Set,o=Gc(e);for(let l of o){let c=document.elementsFromPoint(l.x,l.y);for(let u of c)i.add(u);}let a=[];for(let l of i){if(!n){let g=(l.tagName||"").toUpperCase();if(g==="HTML"||g==="BODY")continue}if(!t(l))continue;let c=l.getBoundingClientRect();if(c.width<=0||c.height<=0)continue;let u={left:c.left,top:c.top,right:c.left+c.width,bottom:c.top+c.height};if(n){let g=jc(r,u),p=c.width*c.height;p>0&&g/p>=.75&&a.push(l);}else Vc(u,r)&&a.push(l);}return Uc(a)},as=e=>e.filter(t=>!e.some(n=>n!==t&&n.contains(t))),ls=(e,t)=>{let n=ss(e,t,true);return as(n)},cs=(e,t)=>{let n=ss(e,t,false);return as(n)};var Kc=e=>typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e),Xc=e=>{let t=e.trim();if(!t)return null;let n=parseFloat(t);return Kc(n)?n:null},us=(e,t)=>{let n=e.split(",");if(n.length!==t)return null;let r=[];for(let i of n){let o=Xc(i);if(o===null)return null;r.push(o);}return r},Wc=(e,t,n,r)=>e===1&&t===0&&n===0&&r===1,Yc=e=>e[0]===1&&e[1]===0&&e[2]===0&&e[3]===0&&e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0&&e[8]===0&&e[9]===0&&e[10]===1&&e[11]===0&&e[15]===1,Wn=e=>{try{if(!(e instanceof Element))return "none";let t=window.getComputedStyle(e);if(!t)return "none";let n=t.transform;if(!n||n==="none")return "none";let r=n.match(/^matrix3d\(([^)]+)\)$/);if(r){let o=us(r[1],16);if(o&&o.length===16){let a=[...o];return a[12]=0,a[13]=0,a[14]=0,Yc(a)?"none":`matrix3d(${a.join(", ")})`}}let i=n.match(/^matrix\(([^)]+)\)$/);if(i){let o=us(i[1],6);if(o&&o.length===6){let[a,l,c,u]=o;return Wc(a,l,c,u)?"none":`matrix(${a}, ${l}, ${c}, ${u}, 0, 0)`}}return "none"}catch{return "none"}};var ke=e=>{let t=e.getBoundingClientRect();return {borderRadius:window.getComputedStyle(e).borderRadius||"0px",height:t.height,transform:Wn(e),width:t.width,x:t.left,y:t.top}};var qc=new Set(["c","C","\u0441","\u0421","\u023C","\u023B","\u2184","\u2183","\u1D04","\u1D9C","\u2C7C","\u217D","\u216D","\xE7","\xC7","\u0107","\u0106","\u010D","\u010C","\u0109","\u0108","\u010B","\u010A"]),Yn=(e,t)=>t==="KeyC"?true:!e||e.length!==1?false:qc.has(e);var qr=(e,t)=>{let n=e.toLowerCase();return t.startsWith("Key")?t.slice(3).toLowerCase()===n:t.startsWith("Digit")?t.slice(5)===n:false},Zr=(e,t)=>{if(t.activationShortcut)return t.activationShortcut(e);if(t.activationKey){let{key:r,metaKey:i,ctrlKey:o,shiftKey:a,altKey:l}=t.activationKey;if(!r){if(!Hn.includes(e.key))return false;let k=i?e.metaKey||e.key==="Meta":true,y=o?e.ctrlKey||e.key==="Control":true,x=a?e.shiftKey||e.key==="Shift":true,_=l?e.altKey||e.key==="Alt":true,H=k&&y&&x&&_,V=[i,o,a,l].filter(Boolean).length,C=[e.metaKey||e.key==="Meta",e.ctrlKey||e.key==="Control",e.shiftKey||e.key==="Shift",e.altKey||e.key==="Alt"].filter(Boolean).length;return H&&C>=V}let u=e.key?.toLowerCase()===r.toLowerCase()||qr(r,e.code),p=i||o||a||l?(i?e.metaKey:true)&&(o?e.ctrlKey:true)&&(a?e.shiftKey:true)&&(l?e.altKey:true):e.metaKey||e.ctrlKey;return u&&p}let n=(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey;return !!(e.key&&n&&Yn(e.key,e.code))};var ft=(e,t)=>{try{return e.composedPath().some(n=>n instanceof HTMLElement&&n.hasAttribute(t))}catch{return false}};var Jr={enabled:true,hue:0,selectionBox:{enabled:true},dragBox:{enabled:true},grabbedBoxes:{enabled:true},elementLabel:{enabled:true},crosshair:{enabled:true}},ds=(e,t)=>({enabled:t.enabled??e.enabled,hue:t.hue??e.hue,selectionBox:{enabled:t.selectionBox?.enabled??e.selectionBox.enabled},dragBox:{enabled:t.dragBox?.enabled??e.dragBox.enabled},grabbedBoxes:{enabled:t.grabbedBoxes?.enabled??e.grabbedBoxes.enabled},elementLabel:{enabled:t.elementLabel?.enabled??e.elementLabel.enabled},crosshair:{enabled:t.crosshair?.enabled??e.crosshair.enabled}}),Qr=e=>e?ds(Jr,e):Jr,fs=ds;var eo="react-grab:agent-sessions",Zc=()=>`session-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,ms=(e,t,n,r,i)=>{let o=Date.now();return {id:Zc(),context:e,lastStatus:"",isStreaming:true,createdAt:o,lastUpdatedAt:o,position:t,selectionBounds:n,tagName:r,componentName:i}},to=e=>e||null,Mt=new Map,qn=(e,t)=>{let n=to(t);if(!n){Mt.clear(),e.forEach((r,i)=>Mt.set(i,r));return}try{let r=Object.fromEntries(e);n.setItem(eo,JSON.stringify(r));}catch{Mt.clear(),e.forEach((r,i)=>Mt.set(i,r));}},Zn=(e,t)=>{let n=Jn(t);n.set(e.id,e),qn(n,t);},Jn=e=>{let t=to(e);if(!t)return new Map(Mt);try{let n=t.getItem(eo);if(!n)return new Map;let r=JSON.parse(n);return new Map(Object.entries(r))}catch{return new Map}};var Qn=e=>{let t=to(e);if(!t){Mt.clear();return}try{t.removeItem(eo);}catch{Mt.clear();}},no=(e,t)=>{let n=Jn(t);n.delete(e),qn(n,t);},Ot=(e,t,n)=>{let r={...e,...t,lastUpdatedAt:Date.now()};return Zn(r,n),r};var ps=e=>{let[t,n]=N(new Map),r=new Map,i=new Map,o=e,a=v=>{o=v;},l=()=>o,c=()=>Array.from(t().values()).some(v=>v.isStreaming),u=async(v,M)=>{let W=o?.storage,z=false;try{for await(let h of M){let f=t().get(v.id);if(!f)break;let b=Ot(f,{lastStatus:h},W);n(L=>new Map(L).set(v.id,b)),o?.onStatus?.(h,b);}let O=t().get(v.id);if(O){let h=o?.provider?.getCompletionMessage?.(),m=Ot(O,{isStreaming:!1,...h?{lastStatus:h}:{}},W);n(L=>new Map(L).set(v.id,m));let f=i.get(v.id),b=await o?.onComplete?.(m,f);if(b?.error){let L=Ot(m,{error:b.error},W);n(j=>new Map(j).set(v.id,L));}}}catch(q){let h=t().get(v.id);if(q instanceof Error&&q.name==="AbortError"){if(z=true,h){let m=i.get(v.id);o?.onAbort?.(h,m);}}else {let m=q instanceof Error?q.message:"Unknown error";if(h){let f=Ot(h,{error:m,isStreaming:false},W);n(b=>new Map(b).set(v.id,f)),q instanceof Error&&o?.onError?.(q,f);}}}finally{r.delete(v.id),z&&(i.delete(v.id),no(v.id,W),n(q=>{let O=new Map(q);return O.delete(v.id),O}));}},g=v=>{let{selectionBounds:M,tagName:W}=v;if(!M)return;let z=M.x+M.width/2,q=M.y+M.height/2,O=document.elementFromPoint(z,q);if(O&&!(W&&O.tagName.toLowerCase()!==W))return O},p=()=>{let v=o?.storage;if(!v)return;let M=Jn(v);if(M.size===0)return;let W=Date.now(),z=Array.from(M.values()).filter(O=>{if(O.isStreaming)return true;let h=O.lastUpdatedAt??O.createdAt;return W-h<1e4&&!!O.error});if(z.length===0){Qn(v);return}if(!o?.provider?.supportsResume||!o.provider.resume){Qn(v);return}let q=new Map(z.map(O=>[O.id,O]));n(q),qn(q,v);for(let O of z){let h=g(O);h&&i.set(O.id,h);let m={...O,isStreaming:true,error:void 0,lastStatus:O.lastStatus||"Resuming...",position:O.position??{x:window.innerWidth/2,y:window.innerHeight/2}};n(L=>new Map(L).set(O.id,m)),o?.onResume?.(m);let f=new AbortController;r.set(O.id,f);let b=o.provider.resume(O.id,f.signal,v);u(O,b);}},k=async v=>{let{element:M,prompt:W,position:z,selectionBounds:q,sessionId:O}=v,h=o?.storage;if(!o?.provider)return;let m=O?t().get(O):void 0,f=!!O,L={content:m?m.context.content:await xn([M],{maxLines:1/0}),prompt:W,options:o?.getOptions?.(),sessionId:f?O:void 0},j;if(m)j=Ot(m,{context:L,isStreaming:true,lastStatus:"Thinking\u2026"},h);else {let S=(M.tagName||"").toLowerCase()||void 0,F=await Ze(M)||void 0;j=ms(L,z,q,S,F),j.lastStatus="Thinking\u2026",i.set(j.id,M);}n(S=>new Map(S).set(j.id,j)),Zn(j,h),o.onStart?.(j,M);let ne=new AbortController;r.set(j.id,ne);let te={...L,sessionId:O??j.id},se=o.provider.send(te,ne.signal);u(j,se);},y=v=>{let M=r.get(v);M&&M.abort();},x=()=>{r.forEach(v=>v.abort()),r.clear(),n(new Map),Qn(o?.storage);},_=v=>{let M=o?.storage;i.delete(v),no(v,M),n(W=>{let z=new Map(W);return z.delete(v),z});};return {sessions:t,isProcessing:c,tryResumeSessions:p,startSession:k,abortSession:y,abortAllSessions:x,dismissSession:_,undoSession:v=>{let W=t().get(v);if(W){let z=i.get(v);o?.onUndo?.(W,z),o?.provider?.undo?.();}_(v);},acknowledgeSessionError:v=>{let z=t().get(v)?.context.prompt;return _(v),z},retrySession:v=>{let W=t().get(v);if(!W||!o?.provider)return;let z=o.storage,q=i.get(v),O=Ot(W,{error:void 0,isStreaming:true,lastStatus:"Retrying\u2026"},z);n(b=>new Map(b).set(v,O)),Zn(O,z),q&&o.onStart?.(O,q);let h=new AbortController;r.set(v,h);let m={...O.context,sessionId:v},f=o.provider.send(m,h.signal);u(O,f);},updateSessionBoundsOnViewportChange:()=>{let v=t();if(v.size===0)return;let M=new Map(v),W=false;for(let[z,q]of v){let O=i.get(z);if(O&&document.contains(O)){let h=ke(O);if(h){let m=q.selectionBounds,f=q.position;if(m){let b=m.x+m.width/2,L=q.position.x-b,j=h.x+h.width/2;f={...q.position,x:j+L};}M.set(z,{...q,selectionBounds:h,position:f}),W=true;}}}W&&n(M);},getSessionElement:v=>i.get(v),setOptions:a,getOptions:l}};var gs=K('<span class="tabular-nums align-middle">'),hs=K('<span class="font-mono tabular-nums align-middle"><<!>>'),au=K('<span class="tabular-nums ml-1 align-middle"> in '),lu=e=>"scheduler"in globalThis?globalThis.scheduler.postTask(e,{priority:"background"}):"requestIdleCallback"in window?requestIdleCallback(e):setTimeout(e,0),oo=false,cu=()=>{if(typeof window>"u")return null;try{let e=document.currentScript?.getAttribute("data-options");return e?JSON.parse(e):null}catch{return null}},Dp=e=>{let t=Qr(e?.theme);if(typeof window>"u")return Wr(t);let n=cu(),r={enabled:true,activationMode:"toggle",keyHoldDuration:200,allowActivationInsideInput:true,maxContextLines:3,...n,...e},i=Qr(r.theme);return r.enabled===false||oo?Wr(i):(oo=true,(()=>{try{let a="0.0.90",l=`data:image/svg+xml;base64,${btoa(oi)}`;console.log(`%cReact Grab${a?` v${a}`:""}%c
|
|
43
|
+
https://react-grab.com`,`background: #330039; color: #ffffff; border: 1px solid #d75fcb; padding: 4px 4px 4px 24px; border-radius: 4px; background-image: url("${l}"); background-size: 16px 16px; background-repeat: no-repeat; background-position: 4px center; display: inline-block; margin-bottom: 4px;`,""),navigator.onLine&&a&&fetch(`https://www.react-grab.com/api/version?source=browser&t=${Date.now()}`,{referrerPolicy:"origin",keepalive:!0,priority:"low",cache:"no-store"}).then(c=>c.text()).then(c=>{c&&c!==a&&console.warn(`[React Grab] v${a} is outdated (latest: v${c})`);}).catch(()=>null);}catch{}})(),lt(a=>{let[l,c]=N(i),[u,g]=N(false),[p,k]=N(-1e3),[y,x]=N(-1e3),[_,H]=N(null),V=0,[C,$]=N(false),[Z,v]=N(-1e3),[M,W]=N(-1e3),[z,q]=N(false),[O,h]=N("idle"),[m,f]=N([]),[b,L]=N(null),[j,ne]=N(null),[te,se]=N(null),[S,F]=N([]),[X,Y]=N(false),[G,U]=N(false),[ae,ee]=N(false),[fe,me]=N(false),[we,pe]=N(-1e3),[Te,Se]=N(-1e3),[rt,Fe]=N(0),[Ve,Jt]=N(0),[ge,Ke]=N(false),[rr,Xe]=N(""),[bs,or]=N(false),[io,so]=N(void 0),[ao,lo]=N(void 0),[Pt,De]=N(false),[co,Qe]=N(false),[St,mt]=N(null),[ot,ys]=N(!!r.agent?.provider),[ws,xs]=N(false),[vs,Ss]=N(!!r.agent?.provider?.undo),[Cs,Es]=N(!!r.agent?.provider?.supportsFollowUp),[ks,Ts]=N(r.agent?.provider?.dismissButtonText),[As,vn]=N(null),[_s,uo]=N(null),[fo,$t]=N(false),[ir,Sn]=N(false),pt=new WeakMap,[sr,ar]=N(-1e3),[lr,cr]=N(-1e3),[Qt,en]=N(false),[Ft,mo]=N([]),it=s=>(s.tagName||"").toLowerCase(),po=ce(()=>{let s=Ft();if(!(s.length===0||!s[0]))return it(s[0])||void 0}),[go]=Mn(()=>{let s=Ft();return s.length===0||!s[0]?null:s[0]},async s=>{if(s)return await Ze(s)||void 0}),We=()=>{en(false),ar(-1e3),cr(-1e3),mo([]);},Ns=()=>{let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0)return;let w=s.getRangeAt(0).getClientRects();if(w.length===0)return;let T=(()=>{if(!s.anchorNode||!s.focusNode)return false;let D=s.anchorNode.compareDocumentPosition(s.focusNode);return D&Node.DOCUMENT_POSITION_FOLLOWING?false:D&Node.DOCUMENT_POSITION_PRECEDING?true:s.anchorOffset>s.focusOffset})(),I=T?w[0]:w[w.length-1],R=T?I.left:I.right,P=I.top+I.height/2;ar(R),cr(P);};oe(Pe(()=>Ve(),()=>{Qt()&&Ns();}));let ur=ce(()=>{Ve();let s=Ft();if(!(s.length===0||!s[0]))return ke(s[0])}),st=null,Cn=null,En=null,Be=null,Ct=null,tn=null,et=null,Et=null,Ye=ce(()=>X()&&!z()),ho=(s,d)=>({top:d<25,bottom:d>window.innerHeight-25,left:s<25,right:s>window.innerWidth-25}),bo=(s,d)=>{let w=`grabbed-${Date.now()}-${Math.random()}`,T=Date.now(),I={id:w,bounds:s,createdAt:T,element:d},R=S();F([...R,I]),r.onGrabbedBox?.(s,d),setTimeout(()=>{F(P=>P.filter(D=>D.id!==w));},1700);},yo=s=>{let d=s.map(w=>({tagName:it(w)}));window.dispatchEvent(new CustomEvent("react-grab:element-selected",{detail:{elements:d}}));},{createLabelInstance:Is,updateLabelInstance:wo,removeLabelInstance:Rs}=ns(f),kt=async(s,d,w,T,I,R,P,D)=>{if(pe(s),Se(d),T){let Ae=T.x+T.width/2;Fe(s-Ae);}else Fe(0);q(true),Os();let ie=T&&I?Is(T,I,R,"copying",P,s):null;await w().finally(()=>{q(false),me(true),P&&ne(P),kn(),ie&&(wo(ie,"copied"),setTimeout(()=>{wo(ie,"fading"),setTimeout(()=>{Rs(ie);},350);},1500)),(G()||D)&&Oe();});},dr=(s,d)=>os(r,s,d),nn=async(s,d)=>{r.onElementSelect?.(s),l().grabbedBoxes.enabled&&bo(ke(s),s),await new Promise(w=>requestAnimationFrame(w)),await dr([s],d),yo([s]);},xo=async s=>{if(s.length!==0){for(let d of s)r.onElementSelect?.(d);if(l().grabbedBoxes.enabled)for(let d of s)bo(ke(d),d);await new Promise(d=>requestAnimationFrame(d)),await dr(s),yo(s);}},Ne=ce(()=>{if(!Ye()||C())return null;let s=_();return s&&!document.contains(s)?null:s}),Dt=ce(()=>Pt()?St():Ne());oe(()=>{let s=_();if(!s)return;let d=setInterval(()=>{document.contains(s)||H(null);},100);be(()=>clearInterval(d));}),oe(()=>{if(Pt())return;let s=Ne();s&&mt(s);});let vo=ce(()=>{Ve();let s=Dt();if(s)return ke(s)}),So=(s,d)=>{let w=s+window.scrollX,T=d+window.scrollY;return {x:Math.abs(w-Z()),y:Math.abs(T-M())}},Co=ce(()=>{if(!C())return false;let s=So(p(),y());return s.x>2||s.y>2}),Eo=(s,d)=>{let w=s+window.scrollX,T=d+window.scrollY,I=Math.min(Z(),w),R=Math.min(M(),T),P=Math.abs(w-Z()),D=Math.abs(T-M());return {x:I-window.scrollX,y:R-window.scrollY,width:P,height:D}},gt=ce(()=>{if(!Co())return;let s=Eo(p(),y());return {borderRadius:"0px",height:s.height,transform:"none",width:s.width,x:s.x,y:s.y}}),[Ls]=Mn(()=>Ne(),async s=>s?Ze(s):null),Ms=ce(()=>{let s=Ne(),d=z();if(!s)return (()=>{var I=gs();return B(I,d?"Processing\u2026":"1 element"),I})();let w=it(s),T=Ls();return w&&T?[(()=>{var I=hs(),R=I.firstChild,P=R.nextSibling;P.nextSibling;return B(I,w,P),I})(),(()=>{var I=au();I.firstChild;return B(I,T,null),I})()]:w?(()=>{var I=hs(),R=I.firstChild,P=R.nextSibling;P.nextSibling;return B(I,w,P),I})():(()=>{var I=gs();return B(I,d?"Processing\u2026":"1 element"),I})()}),fr=ce(()=>{if(z()||co()){Ve();let s=St()||Ne();if(s){let d=ke(s);return {x:d.x+d.width/2+rt(),y:Te()}}return {x:we(),y:Te()}}return {x:p(),y:y()}});oe(Pe(()=>[Ne(),b()],([s,d])=>{d&&s&&d!==s&&L(null),s&&r.onElementHover?.(s);})),oe(Pe(()=>Ne(),s=>{let d=()=>{so(void 0),lo(void 0);};if(!s){d();return}wn(s).then(w=>{if(w){for(let T of w)if(T.fileName&&Xn(T.fileName)){so(yn(T.fileName)),lo(T.lineNumber);return}d();}}).catch(d);})),oe(Pe(()=>Ve(),()=>Ce.updateSessionBoundsOnViewportChange())),oe(Pe(()=>[X(),C(),z(),ge(),Ne(),gt()],([s,d,w,T,I,R])=>{r.onStateChange?.({isActive:s,isDragging:d,isCopying:w,isInputMode:T,targetElement:I,dragBounds:R?{x:R.x,y:R.y,width:R.width,height:R.height}:null});})),oe(Pe(()=>[ge(),p(),y(),Ne()],([s,d,w,T])=>{r.onInputModeChange?.(s,{x:d,y:w,targetElement:T});})),oe(Pe(()=>[Io(),vo(),Ne()],([s,d,w])=>{r.onSelectionBox?.(!!s,d??null,w);})),oe(Pe(()=>[Ro(),gt()],([s,d])=>{r.onDragBox?.(!!s,d??null);})),oe(Pe(()=>[Lo(),p(),y()],([s,d,w])=>{r.onCrosshair?.(!!s,{x:d,y:w});})),oe(Pe(()=>[Qs(),Js(),Ms(),fr()],([s,d,w,T])=>{let I=typeof w=="string"?w:"";r.onElementLabel?.(!!s,d,{x:T.x,y:T.y,content:I});}));let ht=null,Tt=s=>{s?(ht||(ht=document.createElement("style"),ht.setAttribute("data-react-grab-cursor",""),document.head.appendChild(ht)),ht.textContent=`* { cursor: ${s} !important; }`):ht&&(ht.remove(),ht=null);};oe(Pe(()=>[X(),z(),C(),ge(),Ne()],([s,d,w,T,I])=>{Tt(d?"progress":T?null:s&&w?"crosshair":s&&I?"default":s?"crosshair":null);}));let Os=s=>{let d=Date.now(),w=r.keyHoldDuration??200;se(d);let T=()=>{let I=te();if(I===null)return;let P=(Date.now()-I)/w,D=1-Math.exp(-P);(z()?Math.min(D,.95):1)<1&&(En=requestAnimationFrame(T));};T();},kn=()=>{En!==null&&(cancelAnimationFrame(En),En=null),se(null);},Ps=()=>{let s=()=>{if(!C()){rn();return}let d=ho(p(),y());d.top&&window.scrollBy(0,-10),d.bottom&&window.scrollBy(0,10),d.left&&window.scrollBy(-10,0),d.right&&window.scrollBy(10,0),d.top||d.bottom||d.left||d.right?Ct=requestAnimationFrame(s):Ct=null;};s();},rn=()=>{Ct!==null&&(cancelAnimationFrame(Ct),Ct=null);},at=()=>{kn(),tn=document.activeElement,Cn=Date.now(),Y(true),r.onActivate?.();},Oe=()=>{if(U(false),g(false),Y(false),Ke(false),Xe(""),De(false),Qe(false),$t(false),mt(null),h("idle"),me(false),C()&&($(false),document.body.style.userSelect=""),st&&window.clearTimeout(st),Be&&window.clearTimeout(Be),et){window.clearTimeout(et),et=null;let s=Et;if(Et=null,s){L(s.element);let d=ke(s.element),w=it(s.element);Ze(s.element).then(T=>{kt(s.clientX,s.clientY,()=>nn(s.element),d,w,T??void 0,s.element);});}}rn(),kn(),Cn=null,tn instanceof HTMLElement&&document.contains(tn)&&tn.focus(),tn=null,r.onDeactivate?.();},Tn=(s,d)=>{if(d&&document.contains(d)){let w=d.getBoundingClientRect(),T=w.top+w.height/2;k(s.position.x),x(T),mt(d),Xe(s.context.prompt),Qe(true),Ke(true),U(true),De(true),X()||at();}},$s=r.agent?{...r.agent,onAbort:(s,d)=>{r.agent?.onAbort?.(s,d),Tn(s,d);},onUndo:(s,d)=>{r.agent?.onUndo?.(s,d),Tn(s,d);}}:void 0,Ce=ps($s),Fs=s=>{Xe(s);},Ds=()=>{ne(null);let s=St()||Ne(),d=ge()?rr().trim():"";if(!s){Oe();return}let w=ke(s),T=p(),I=w.x+w.width/2,R=w.y+w.height/2;if(ot()&&d){pt.delete(s),Oe();let D=As();vn(null),uo(null),Ce.startSession({element:s,prompt:d,position:{x:T,y:R},selectionBounds:w,sessionId:D??void 0});return}k(I),x(R),Ke(false),Xe(""),d?pt.set(s,d):pt.delete(s);let P=it(s);Ze(s).then(D=>{kt(I,R,()=>nn(s,d||void 0),w,P,D??void 0,s).then(()=>{Oe();});});},mr=()=>{if(ne(null),!ge())return;let s=rr().trim();if(s&&!fo()){$t(true);return}let d=St()||Ne();d&&s&&pt.set(d,s),$t(false),vn(null),Oe();},Bs=()=>{$t(false),vn(null),Oe();},Hs=()=>{$t(false);},zs=()=>{Sn(false),Ce.abortAllSessions();},js=()=>{Sn(false);},Vs=()=>{if(!ot())return;let s=St()||Ne();if(s){let d=ke(s),w=d.x+d.width/2;pe(p()),Se(y()),Fe(p()-w);let T=pt.get(s);T&&Xe(T);}U(true),De(true),Qe(true),Ke(true);},Us=async()=>{let s=Ft();if(s.length===0)return;let d=sr(),w=lr(),T=ur(),I=po();en(false),We(),window.getSelection()?.removeAllRanges();let R=go();s.length===1?await kt(d,w,()=>nn(s[0]),T,I,R):await kt(d,w,()=>xo(s),T,I,R);},Gs=()=>{if(!ot()||Ft().length===0)return;let d=ur(),w=d?d.x+d.width/2:sr(),T=d?d.y+d.height/2:lr();en(false),We(),window.getSelection()?.removeAllRanges(),k(w),x(T),U(true),De(true),Qe(true),at(),Ke(true);},ko=(s,d)=>{if(ge()||Pt())return;me(false),k(s),x(d);let w=performance.now();if(w-V>=32&&(V=w,lu(()=>{let T=Yr(s,d);H(T);})),C()){let T=ho(s,d),I=T.top||T.bottom||T.left||T.right;I&&Ct===null?Ps():!I&&Ct!==null&&rn();}},To=(s,d)=>{if(!Ye()||z())return false;$(true);let w=s+window.scrollX,T=d+window.scrollY;return v(w),W(T),document.body.style.userSelect="none",r.onDragStart?.(w,T),true},Ao=(s,d)=>{if(!C())return;let w=So(s,d),T=w.x>2||w.y>2;if($(false),rn(),document.body.style.userSelect="",T){ee(true);let I=Eo(s,d),R=ls(I,Je),P=R.length>0?R:cs(I,Je);if(P.length>0){r.onDragEnd?.(P,I);let D=P[0],ie=D.getBoundingClientRect(),Ae={x:ie.left,y:ie.top,width:ie.width,height:ie.height,borderRadius:"0px",transform:Wn(D)},Ie=it(D),Re=Ae.x+Ae.width/2,Ue=Ae.y+Ae.height/2;ot()?(k(Re),x(Ue),mt(D),U(true),De(true),Qe(true),X()||at(),Ke(true)):Ze(D).then(qe=>{kt(Re,Ue,()=>xo(P),Ae,Ie,qe??void 0,D,true);});}}else {let I=Yr(s,d);if(!I)return;if(ot()){if(et!==null){window.clearTimeout(et),et=null;let R=Et?.element??I;Et=null;let P=ke(R),D=P.x+P.width/2;pe(s),Se(d),Fe(s-D);let ie=pt.get(R);ie&&Xe(ie),k(s),x(d),mt(R),U(true),De(true),Qe(true),Ke(true);return}Et={clientX:s,clientY:d,element:I},et=window.setTimeout(()=>{et=null;let R=Et;if(Et=null,!R)return;L(R.element);let P=ke(R.element),D=it(R.element);Ze(R.element).then(ie=>{kt(R.clientX,R.clientY,()=>nn(R.element),P,D,ie??void 0,R.element);});},250);}else {L(I);let R=ke(I),P=it(I);Ze(I).then(D=>{kt(s,d,()=>nn(I),R,P,D??void 0,I);});}}},xe=ts(),_o=new WeakSet,At=s=>s==="Enter"||s==="NumpadEnter",_t=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key"),No=false;if(_t?.get&&!_t.get.__reactGrabPatched){No=true;let s=_t.get,d=function(){return _o.has(this)?"":s.call(this)};d.__reactGrabPatched=true,Object.defineProperty(KeyboardEvent.prototype,"key",{get:d,configurable:true});}let Bt=s=>{let d;try{d=_t?.get?_t.get.call(s):s.key;}catch{return false}let w=d==="Enter"||At(s.code),T=X()||u();return w&&T&&!ge()&&!G()?(_o.add(s),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation(),true):false};xe.addDocumentListener("keydown",Bt,{capture:true}),xe.addDocumentListener("keyup",Bt,{capture:true}),xe.addDocumentListener("keypress",Bt,{capture:true}),xe.addWindowListener("keydown",s=>{Bt(s);let d=At(s.code)&&u()&&!ge();if(ge()&&Zr(s,r)&&!s.repeat){s.preventDefault(),s.stopPropagation(),Ke(false),Xe(""),De(false),Qe(false),$t(false);return}if(ge()||ft(s,"data-react-grab-ignore-events")&&!d){s.key==="Escape"&&Ce.isProcessing()&&!ir()&&(s.preventDefault(),s.stopPropagation(),Sn(true));return}if(s.key==="Escape"){if(Ce.isProcessing()){ir()||(s.preventDefault(),s.stopPropagation(),Sn(true));return}if(u()){Oe();return}}if(u()&&!ge()){let R=St()||Ne();if(!R)return;let P=null;switch(s.key){case "ArrowUp":case "ArrowDown":{let D=ke(R),ie=document.elementsFromPoint(D.x+D.width/2,D.y+D.height/2).filter(Je),Ae=ie.indexOf(R);if(Ae!==-1){let Ie=s.key==="ArrowUp"?1:-1;P=ie[Ae+Ie]??null;}break}case "ArrowRight":case "ArrowLeft":{let D=s.key==="ArrowRight",ie=Ie=>{let Re=Array.from(Ie.children),Ue=D?Re:Re.reverse();for(let qe of Ue)if(D){if(Je(qe))return qe;let on=ie(qe);if(on)return on}else {let on=ie(qe);if(on)return on;if(Je(qe))return qe}return null},Ae=Ie=>D?Ie.nextElementSibling:Ie.previousElementSibling;if(D&&(P=ie(R)),!P){let Ie=R;for(;Ie;){let Re=Ae(Ie);for(;Re;){let qe=ie(Re);if(qe){P=qe;break}if(Je(Re)){P=Re;break}Re=Ae(Re);}if(P)break;let Ue=Ie.parentElement;if(!D&&Ue&&Je(Ue)){P=Ue;break}Ie=Ue;}}break}}if(P){s.preventDefault(),s.stopPropagation(),mt(P),De(true);let D=ke(P);k(D.x+D.width/2),x(D.y+D.height/2);return}}let w=j();if(At(s.code)&&!u()&&!ge()&&!X()&&w&&document.contains(w)&&ot()&&!m().some(R=>R.status==="copied"||R.status==="fading")){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let R=ke(w),P=R.x+R.width/2,D=R.y+R.height/2;k(P),x(D),pe(P),Se(D),Fe(0),mt(w),ne(null),f([]);let ie=pt.get(w);ie&&Xe(ie),U(true),De(true),Qe(true),at(),Ke(true);return}if(At(s.code)&&u()&&!ge()&&ot()){s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation();let R=St()||Ne();if(R){let P=ke(R),D=P.x+P.width/2;pe(p()),Se(y()),Fe(p()-D);let ie=pt.get(R);ie&&Xe(ie);}U(true),De(true),Qe(true),Be!==null&&(window.clearTimeout(Be),Be=null),X()||(st&&window.clearTimeout(st),at()),Ke(true);return}if(s.key?.toLowerCase()==="o"&&!ge()&&X()&&(s.metaKey||s.ctrlKey)){let R=io(),P=ao();if(R)if(s.preventDefault(),s.stopPropagation(),r.onOpenFile)r.onOpenFile(R,P);else {let D=Bn(R,P);window.open(D,"_blank");}return}if(!r.allowActivationInsideInput&&tt(s)||!Zr(s,r)&&(X()&&!G()&&(s.metaKey||s.ctrlKey)&&!Hn.includes(s.key)&&!At(s.code)&&Oe(),!At(s.code)||!u()))return;if((X()||u())&&!ge()&&(s.preventDefault(),At(s.code)&&(s.stopPropagation(),s.stopImmediatePropagation())),X()){if(G()&&r.activationMode!=="hold"||s.repeat)return;Be!==null&&window.clearTimeout(Be),Be=window.setTimeout(()=>{Oe();},200);return}if(u()&&s.repeat)return;st!==null&&window.clearTimeout(st),u()||g(true);let T=r.keyHoldDuration??200,I=tt(s)?T+150:T;st=window.setTimeout(()=>{r.activationMode!=="hold"&&U(true),at();},I);},{capture:true}),xe.addWindowListener("keyup",s=>{if(Bt(s)||!u()&&!X()||ge())return;let d=!!(r.activationShortcut||r.activationKey),T=(()=>{if(r.activationKey){let{metaKey:P,ctrlKey:D,shiftKey:ie,altKey:Ae}=r.activationKey;return {metaKey:!!P,ctrlKey:!!D,shiftKey:!!ie,altKey:!!Ae}}return {metaKey:true,ctrlKey:true,shiftKey:false,altKey:false}})(),I=T.metaKey||T.ctrlKey?!s.metaKey&&!s.ctrlKey:T.shiftKey&&!s.shiftKey||T.altKey&&!s.altKey,R=r.activationShortcut?!r.activationShortcut(s):r.activationKey?r.activationKey.key?s.key?.toLowerCase()===r.activationKey.key.toLowerCase()||qr(r.activationKey.key,s.code):false:Yn(s.key,s.code);if(X()){if(I){if(G()&&r.activationMode!=="hold")return;Oe();}else !d&&R&&Be!==null&&(window.clearTimeout(Be),Be=null);return}if(R||I){if(G()&&r.activationMode!=="hold")return;Oe();}},{capture:true}),xe.addWindowListener("keypress",Bt,{capture:true}),xe.addWindowListener("mousemove",s=>{or(false),!ft(s,"data-react-grab-ignore-events")&&(u()&&!ge()&&Pt()&&De(false),ko(s.clientX,s.clientY));}),xe.addWindowListener("mousedown",s=>{if(s.button!==0||ft(s,"data-react-grab-ignore-events"))return;if(ge()){mr();return}To(s.clientX,s.clientY)&&(s.preventDefault(),s.stopPropagation());},{capture:true}),xe.addWindowListener("pointerdown",s=>{s.button===0&&(ft(s,"data-react-grab-ignore-events")||!Ye()||z()||ge()||s.stopPropagation());},{capture:true}),xe.addWindowListener("mouseup",s=>{s.button===0&&Ao(s.clientX,s.clientY);}),xe.addWindowListener("touchmove",s=>{s.touches.length!==0&&(or(true),!ft(s,"data-react-grab-ignore-events")&&(u()&&!ge()&&Pt()&&De(false),ko(s.touches[0].clientX,s.touches[0].clientY)));},{passive:true}),xe.addWindowListener("touchstart",s=>{if(s.touches.length===0||(or(true),ft(s,"data-react-grab-ignore-events")))return;if(ge()){mr();return}To(s.touches[0].clientX,s.touches[0].clientY)&&s.preventDefault();},{passive:false}),xe.addWindowListener("touchend",s=>{s.changedTouches.length!==0&&Ao(s.changedTouches[0].clientX,s.changedTouches[0].clientY);}),xe.addWindowListener("click",s=>{ft(s,"data-react-grab-ignore-events")||(Ye()||z()||ae())&&(s.preventDefault(),s.stopPropagation(),ae()&&ee(false),G()&&!z()&&!ge()&&(u()?U(false):Oe()));},{capture:true}),xe.addDocumentListener("visibilitychange",()=>{document.hidden&&(F([]),X()&&!ge()&&Cn!==null&&Date.now()-Cn>500&&Oe());}),xe.addWindowListener("scroll",()=>{Jt(s=>s+1);},{capture:true}),xe.addWindowListener("resize",()=>{Jt(s=>s+1);}),xe.addWindowListener("popstate",()=>{We();});let Nt=null,Ks=()=>{let s=l().enabled&&(Qt()||X()||z()||m().length>0||S().length>0||Ce.sessions().size>0);s&&Nt===null?Nt=window.setInterval(()=>{if(Jt(d=>d+1),Qt()){let d=Ft();d.length>0&&d[0]&&document.body.contains(d[0])||We();}},100):!s&&Nt!==null&&(window.clearInterval(Nt),Nt=null);};oe(()=>{l().enabled,Qt(),X(),z(),m().length,S().length,Ce.sessions().size,Ks();}),be(()=>{Nt!==null&&window.clearInterval(Nt);}),xe.addDocumentListener("copy",s=>{ge()||ft(s,"data-react-grab-ignore-events")||(Ye()||z())&&s.preventDefault();},{capture:true});let An=null;xe.addDocumentListener("selectionchange",()=>{if(Ye())return;An!==null&&window.clearTimeout(An),en(false);let s=window.getSelection();if(!s||s.isCollapsed||s.rangeCount===0){We();return}An=window.setTimeout(()=>{An=null;let d=window.getSelection();if(!d||d.isCollapsed||d.rangeCount===0){We();return}let w=d.getRangeAt(0),T=w.getBoundingClientRect();if(T.width===0&&T.height===0){We();return}if(!d.toString().trim()){We();return}let R=(()=>{if(!d.anchorNode||!d.focusNode)return false;let Ue=d.anchorNode.compareDocumentPosition(d.focusNode);return Ue&Node.DOCUMENT_POSITION_FOLLOWING?false:Ue&Node.DOCUMENT_POSITION_PRECEDING?true:d.anchorOffset>d.focusOffset})(),P=w.getClientRects();if(P.length===0){We();return}let D=R?P[0]:P[P.length-1],ie=R?D.left:D.right,Ae=D.top+D.height/2;if(ti(ie,Ae)){We();return}let Ie=w.commonAncestorContainer,Re=Ie.nodeType===Node.ELEMENT_NODE?Ie:Ie.parentElement;Re&&Je(Re)?(ar(ie),cr(Ae),mo([Re]),en(true)):We();},150);}),be(()=>{xe.abort(),st&&window.clearTimeout(st),Be&&window.clearTimeout(Be),et&&window.clearTimeout(et),rn(),kn(),document.body.style.userSelect="",Tt(null),No&&_t&&Object.defineProperty(KeyboardEvent.prototype,"key",_t);});let pr=ni(Qo),Io=ce(()=>!l().selectionBox.enabled||fe()?false:Ye()&&!C()&&!!Dt()),Xs=ce(()=>{let s=Dt();if(s)return it(s)||void 0}),[Ws]=Mn(()=>Dt(),async s=>s?await Ze(s)??void 0:void 0),Ys=ce(()=>!l().elementLabel.enabled||fe()?false:Ye()&&!C()&&!!Dt()),qs=ce(()=>(Ve(),m().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:ke(s.element)}))),Zs=ce(()=>(Ve(),S().map(s=>!s.element||!document.body.contains(s.element)?s:{...s,bounds:ke(s.element)}))),Ro=ce(()=>l().dragBox.enabled&&Ye()&&Co()),Js=ce(()=>z()?"processing":"hover"),Qs=ce(()=>!l().elementLabel.enabled||ge()?false:z()?true:Ye()&&!C()&&!!Dt()),Lo=ce(()=>l().crosshair.enabled&&Ye()&&!C()&&!bs()&&!Pt()),ea=ce(()=>l().grabbedBoxes.enabled);return oe(Pe(l,s=>{s.hue!==0?pr.style.filter=`hue-rotate(${s.hue}deg)`:pr.style.filter="";})),l().enabled&&Zo(()=>A(Ii,{get selectionVisible(){return Io()},get selectionBounds(){return vo()},get selectionFilePath(){return io()},get selectionLineNumber(){return ao()},get selectionTagName(){return Xs()},get selectionComponentName(){return Ws()},get selectionLabelVisible(){return Ys()},get selectionLabelStatus(){return O()},get labelInstances(){return qs()},get dragVisible(){return Ro()},get dragBounds(){return gt()},get grabbedBoxes(){return ye(()=>!!ea())()?Zs():[]},labelZIndex:2147483647,get mouseX(){return fr().x},get mouseY(){return fr().y},get crosshairVisible(){return Lo()},get inputValue(){return rr()},get isInputExpanded(){return co()},get replyToPrompt(){return _s()??void 0},get hasAgent(){return ot()},get isAgentConnected(){return ws()},get agentSessions(){return Ce.sessions()},get supportsUndo(){return vs()},get supportsFollowUp(){return Cs()},get dismissButtonText(){return ks()},onAbortSession:s=>Ce.abortSession(s),onDismissSession:s=>Ce.dismissSession(s),onUndoSession:s=>Ce.undoSession(s),onReplySession:s=>{let d=Ce.sessions().get(s),w=Ce.getSessionElement(s);if(d&&w){let T=d.position.x,I=w.getBoundingClientRect(),R=I.top+I.height/2,P=d.context.prompt;Ce.dismissSession(s),k(T),x(R),mt(w),Xe(""),Qe(true),Ke(true),U(true),De(true),vn(d.context.sessionId??s),uo(P),X()||at();}},onAcknowledgeSessionError:s=>{let d=Ce.acknowledgeSessionError(s);d&&Xe(d);},onRetrySession:s=>{Ce.retrySession(s);},onInputChange:Fs,onInputSubmit:()=>void Ds(),onInputCancel:mr,onToggleExpand:Vs,get isPendingDismiss(){return fo()},onConfirmDismiss:Bs,onCancelDismiss:Hs,get isPendingAgentAbort(){return ir()},onConfirmAgentAbort:zs,onCancelAgentAbort:js,get nativeSelectionCursorVisible(){return Qt()},get nativeSelectionCursorX(){return sr()},get nativeSelectionCursorY(){return lr()},get nativeSelectionTagName(){return po()},get nativeSelectionComponentName(){return go()},get nativeSelectionBounds(){return ur()},onNativeSelectionCopy:()=>void Us(),onNativeSelectionEnter:Gs,get theme(){return l()}}),pr),ot()&&Ce.tryResumeSessions(),{activate:()=>{X()||(U(true),at());},deactivate:()=>{X()&&Oe();},toggle:()=>{X()?Oe():(U(true),at());},isActive:()=>X(),dispose:()=>{oo=false,a();},copyElement:async s=>{let d=Array.isArray(s)?s:[s];return d.length===0?false:await dr(d)},getState:()=>({isActive:X(),isDragging:C(),isCopying:z(),isInputMode:ge(),targetElement:Ne(),dragBounds:gt()?{x:gt().x,y:gt().y,width:gt().width,height:gt().height}:null}),updateTheme:s=>{let d=l(),w=fs(d,s);c(w);},getTheme:()=>l(),setAgent:s=>{let d=Ce.getOptions(),w={...d,...s,provider:s.provider??d?.provider,onAbort:(T,I)=>{s?.onAbort?.(T,I),Tn(T,I);},onUndo:(T,I)=>{s?.onUndo?.(T,I),Tn(T,I);}};Ce.setOptions(w),ys(!!w.provider),Ss(!!w.provider?.undo),Es(!!w.provider?.supportsFollowUp),Ts(w.provider?.dismissButtonText),w.provider?.checkConnection&&w.provider.checkConnection().then(T=>{xs(T);}),Ce.tryResumeSessions();},updateOptions:s=>{r={...r,...s};}}}))};/*! Bundled license information:
|
|
44
|
+
|
|
45
|
+
bippy/dist/rdt-hook-CqLYUkwN.js:
|
|
46
|
+
(**
|
|
47
|
+
* @license bippy
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Aiden Bai
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*)
|
|
54
|
+
|
|
55
|
+
bippy/dist/core-BmxLxXeu.js:
|
|
56
|
+
(**
|
|
57
|
+
* @license bippy
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) Aiden Bai
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE file in the root directory of this source tree.
|
|
63
|
+
*)
|
|
64
|
+
|
|
65
|
+
bippy/dist/source.js:
|
|
66
|
+
(**
|
|
67
|
+
* @license bippy
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) Aiden Bai
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license found in the
|
|
72
|
+
* LICENSE file in the root directory of this source tree.
|
|
73
|
+
*)
|
|
74
|
+
|
|
75
|
+
bippy/dist/install-hook-only-B8zA_JcI.js:
|
|
76
|
+
(**
|
|
77
|
+
* @license bippy
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Aiden Bai
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE file in the root directory of this source tree.
|
|
83
|
+
*)
|
|
84
|
+
|
|
85
|
+
bippy/dist/index.js:
|
|
86
|
+
(**
|
|
87
|
+
* @license bippy
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Aiden Bai
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*)
|
|
94
|
+
*/export{hn as a,wn as b,Xr as c,qt as d,xn as e,Jr as f,Dp as g};
|