PageSourceSearch

https://supergemma.ai/_next/static/chunks/4002.63de94b85c8d9e43.js

js supergemma.ai collected 2026-10-05 12:43:51 UTC 17,486 bytes, 386 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4002],{3390:(e,r,t)=>{t.d(r,{A:()=>i});let i=(0,t(42407).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},8489:(e,r,t)=>{t.d(r,{A:()=>i});let i=(0,t(42407).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},13333:(e,r,t)=>{t.d(r,{A:()=>i});let i=(0,t(42407).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},31095:(e,r,t)=>{t.d(r,{S:()=>j});var i=t(95155),n=t(12115),o=t(20031),a=t(57691),l=t(37942),s=t(95204);let c=o.I4.div`
2  /* spacing tokens */
3  --screen-space: 16px; /* base 1x = 16 */
4  --screen-space-lg: calc(var(--screen-space) * 1.5); /* 24px */
5
6  position: relative;
7  overflow: hidden;
8  margin: 0 calc(-1 * var(--screen-space)); /* extends over modal padding */
9  height: 100%;
10  border-radius: var(--privy-border-radius-lg);
11`,d=o.I4.div`
12  display: flex;
13  flex-direction: column;
14  gap: calc(var(--screen-space) * 1.5);
15  width: 100%;
16  background: var(--privy-color-background);
17  padding: 0 var(--screen-space-lg) var(--screen-space);
18  height: 100%;
19  border-radius: var(--privy-border-radius-lg);
20`,p=o.I4.div`
21  position: relative;
22  display: flex;
23  flex-direction: column;
24`,h=(0,o.I4)(l.M)`
25  margin: 0 -8px;
26`,u=o.I4.div`
27  flex: 1 1 auto;
28  display: flex;
29  flex-direction: column;
30
31  /* Enable scrolling */
32  overflow-y: auto;
33
34  /* Hide scrollbar but keep functionality when scrollable */
35  /* Add padding for focus outline space, offset with negative margin */
36  padding: 3px;
37  margin: -3px;
38
39  &::-webkit-scrollbar {
40    display: none;
41  }
42  scrollbar-gutter: stable both-edges;
43  scrollbar-width: none;
44  -ms-overflow-style: none;
45
46  /* Gradient effect for scroll indication */
47  ${({$colorScheme:e})=>"light"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===e?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0}
48
49  background-repeat: no-repeat;
50  background-size:
51    100% 32px,
52    100% 16px;
53  background-attachment: local, scroll;
54`,g=o.I4.div`
55  display: flex;
56  flex-direction: column;
57  gap: var(--screen-space-lg);
58  margin-top: 1.5rem;
59`,v=o.I4.div`
60  text-align: center;
61  display: flex;
62  flex-direction: column;
63  align-items: center;
64  gap: var(--screen-space);
65`,x=o.I4.div`
66  display: flex;
67  flex-direction: column;
68  gap: 4px;
69`,f=o.I4.h3`
70  && {
71    font-size: 20px;
72    line-height: 32px;
73    font-weight: 500;
74    color: var(--privy-color-foreground);
75    margin: 0;
76  }
77`,m=o.I4.p`
78  && {
79    margin: 0;
80    font-size: 16px;
81    font-weight: 300;
82    line-height: 24px;
83    color: var(--privy-color-foreground);
84  }
85`,y=o.I4.div`
86  background: ${({$variant:e})=>{switch(e){case"success":return"var(--privy-color-success-bg, #EAFCEF)";case"warning":return"var(--privy-color-warn, #FEF3C7)";case"error":return"var(--privy-color-error-bg, #FEE2E2)";case"loading":case"logo":return"transparent";default:return"var(--privy-color-background-2)"}}};
87
88  border-radius: 50%;
89  width: 64px;
90  height: 64px;
91  display: flex;
92  align-items: center;
93  justify-content: center;
94`,b=o.I4.div`
95  display: flex;
96  align-items: center;
97  justify-content: center;
98
99  img,
100  svg {
101    max-height: 90px;
102    max-width: 180px;
103  }
104`,w=o.I4.div`
105  display: flex;
106  flex-direction: column;
107  justify-content: center;
108  align-items: center;
109  width: 100%;
110  height: 82px;
111
112  > div {
113    position: relative;
114  }
115
116  > div > :first-child {
117    position: relative;
118  }
119
120  > div > :last-child {
121    position: absolute;
122    left: 50%;
123    top: 50%;
124    transform: translate(-50%, -50%);
125  }
126`,j=({children:e,...r})=>(0,i.jsx)(c,{children:(0,i.jsx)(d,{...r,children:e})}),k=o.I4.div`
127  position: absolute;
128  top: 0;
129  left: calc(-1 * var(--screen-space-lg));
130  width: calc(100% + calc(var(--screen-space-lg) * 2));
131  height: 4px;
132  background: var(--privy-color-background-2);
133  border-top-left-radius: inherit;
134  border-top-right-radius: inherit;
135  overflow: hidden;
136`,I=(0,o.I4)(l.B)`
137  padding: 0;
138  && a {
139    padding: 0;
140    color: var(--privy-color-foreground-3);
141  }
142`,C=o.I4.div`
143  height: 100%;
144  width: ${({pct:e})=>e}%;
145  background: var(--privy-color-foreground-3);
146  border-radius: 2px;
147  transition: width 300ms ease-in-out;
148`,z=({step:e})=>e?(0,i.jsx)(k,{children:(0,i.jsx)(C,{pct:Math.min(100,e.current/e.total*100)})}):null;j.Header=({title:e,subtitle:r,icon:t,iconVariant:n,iconLoadingStatus:o,showBack:a,onBack:l,showInfo:s,onInfo:c,showClose:d,onClose:u,step:g,headerTitle:y,eyebrow:b,...w})=>(0,i.jsxs)(p,{...w,children:[(0,i.jsx)(h,{backFn:a?l:void 0,infoFn:s?c:void 0,onClose:d?u:void 0,title:y,eyebrow:b,closeable:d}),(t||n||e||r)&&(0,i.jsxs)(v,{children:[t||n?(0,i.jsx)(j.Icon,{icon:t,variant:n,loadingStatus:o}):null,!(!e&&!r)&&(0,i.jsxs)(x,{children:[e&&(0,i.jsx)(f,{children:e}),r&&(0,i.jsx)(m,{children:r})]})]}),g&&(0,i.jsx)(z,{step:g})]}),(j.Body=n.forwardRef(({children:e,...r},t)=>(0,i.jsx)(u,{ref:t,...r,children:e}))).displayName="Screen.Body",j.Footer=({children:e,...r})=>(0,i.jsx)(g,{id:"privy-content-footer-container",...r,children:e}),j.Actions=({children:e,...r})=>(0,i.jsx)(A,{...r,children:e}),j.HelpText=({children:e,...r})=>(0,i.jsx)(S,{...r,children:e}),j.FooterText=({children:e,...r})=>(0,i.jsx)(E,{...r,children:e}),j.Watermark=()=>(0,i.jsx)(I,{}),j.Icon=({icon:e,variant:r="subtle",loadingStatus:t})=>"logo"===r&&e?(0,i.jsx)(b,"string"==typeof e?{children:(0,i.jsx)("img",{src:e,alt:""})}:n.isValidElement(e)?{children:e}:{children:n.createElement(e)}):"loading"===r?e?(0,i.jsx)(w,{children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,i.jsx)(a.C,{success:t?.success,fail:t?.fail}),"string"==typeof e?(0,i.jsx)("span",{style:{background:`url('${e}') 0 0 / contain`,height:"38px",width:"38px",borderRadius:"6px",margin:"auto",backgroundSize:"contain"}}):n.isValidElement(e)?n.cloneElement(e,{style:{width:"38px",height:"38px"}}):n.createElement(e,{style:{width:"38px",height:"38px"}})]})}):(0,i.jsx)(y,{$variant:r,children:(0,i.jsx)(s.N,{size:"64px"})}):(0,i.jsx)(y,{$variant:r,children:e&&("string"==typeof e?(0,i.jsx)("img",{src:e,alt:"",style:{width:"32px",height:"32px",borderRadius:"6px"}}):n.isValidElement(e)?e:n.createElement(e,{width:32,height:32,stroke:(()=>{switch(r){case"success":return"var(--privy-color-icon-success)";case"warning":return"var(--privy-color-icon-warning)";case"error":return"var(--privy-color-icon-error)";default:return"var(--privy-color-icon-muted)"}})(),strokeWidth:2}))});let A=o.I4.div`
149  width: 100%;
150  display: flex;
151  flex-direction: column;
152  gap: calc(var(--screen-space) / 2);
153`,S=o.I4.div`
154  && {
155    margin: 0;
156    width: 100%;
157    text-align: center;
158    color: var(--privy-color-foreground-2);
159    font-size: 13px;
160    line-height: 20px;
161
162    & a {
163      text-decoration: underline;
164    }
165  }
166`,E=o.I4.div`
167  && {
168    margin-top: -1rem;
169    width: 100%;
170    text-align: center;
171    color: var(--privy-color-foreground-2);
172    font-size: 0.6875rem; // 11px
173    line-height: 1rem; // 16px
174  }
175`},31334:(e,r,t)=>{t.d(r,{A:()=>i});
175let i=(0,t(42407).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},42407:(e,r,t)=>{t.d(r,{A:()=>s});var i=t(12115);let n=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},o=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,i.forwardRef)((e,r)=>{let{color:t="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:c="",children:d,iconNode:p,...h}=e;return(0,i.createElement)("svg",{ref:r,...a,width:n,height:n,stroke:t,strokeWidth:s?24*Number(l)/Number(n):l,className:o("lucide",c),...!d&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(h)&&{"aria-hidden":"true"},...h},[...p.map(e=>{let[r,t]=e;return(0,i.createElement)(r,t)}),...Array.isArray(d)?d:[d]])}),s=(e,r)=>{let t=(0,i.forwardRef)((t,a)=>{let{className:s,...c}=t;return(0,i.createElement)(l,{ref:a,iconNode:r,className:o("lucide-".concat(n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),s),...c})});return t.displayName=n(e),t}},54874:(e,r,t)=>{t.d(r,{w:()=>n});var i=t(44604);let n=async({operation:e,until:r,delay:t,interval:n,attempts:o,signal:a})=>{let l,s;t&&await (0,i.y)(t);let c=0;for(;c<o;){if(a?.aborted)return{status:"aborted",result:l,attempts:c,error:s};c++;try{if(s=void 0,l=await e(),r(l))return{status:"success",result:l,attempts:c};c<o&&await (0,i.y)(n)}catch(e){e instanceof Error&&(s=e),c<o&&await (0,i.y)(n)}}return{status:"max_attempts",result:l,attempts:c,error:s}}},69222:(e,r,t)=>{t.d(r,{S:()=>a});var i=t(95155),n=t(37942),o=t(31095);let a=({primaryCta:e,secondaryCta:r,helpText:t,footerText:a,watermark:l=!0,children:s,...c})=>{let d=e||r?(0,i.jsxs)(i.Fragment,{children:[e&&(()=>{let{label:r,...t}=e,o=t.variant||"primary";return(0,i.jsx)(n.a,{...t,variant:o,style:{width:"100%",...t.style},children:r})})(),r&&(()=>{let{label:e,...t}=r,o=t.variant||"secondary";return(0,i.jsx)(n.a,{...t,variant:o,style:{width:"100%",...t.style},children:e})})()]}):null;return(0,i.jsxs)(o.S,{id:c.id,className:c.className,children:[(0,i.jsx)(o.S.Header,{...c}),s?(0,i.jsx)(o.S.Body,{children:s}):null,t||d||l?(0,i.jsxs)(o.S.Footer,{children:[t?(0,i.jsx)(o.S.HelpText,{children:t}):null,d?(0,i.jsx)(o.S.Actions,{children:d}):null,l?(0,i.jsx)(o.S.Watermark,{}):null]}):null,a?(0,i.jsx)(o.S.FooterText,{children:a}):null]})}},73862:(e,r,t)=>{t.d(r,{C:()=>h,a:()=>u});var i=t(95155),n=t(8489),o=t(31334),a=t(12115),l=t(20031);let s=l.I4.button`
176  display: flex;
177  align-items: center;
178  justify-content: end;
179  gap: 0.5rem;
180
181  svg {
182    width: 0.875rem;
183    height: 0.875rem;
184  }
185`,c=l.I4.span`
186  display: flex;
187  align-items: center;
188  gap: 0.25rem;
189  font-size: 0.875rem;
190  color: var(--privy-color-foreground-2);
191`,d=(0,l.I4)(n.A)`
192  color: var(--privy-color-icon-success);
193  flex-shrink: 0;
194`,p=(0,l.I4)(o.A)`
195  color: var(--privy-color-icon-muted);
196  flex-shrink: 0;
197`;function h({children:e,iconOnly:r,value:t,hideCopyIcon:n,iconSize:o=14,...l}){let[h,u]=(0,a.useState)(!1);return(0,i.jsxs)(s,{...l,onClick:()=>{navigator.clipboard.writeText(t||("string"==typeof e?e:"")).catch(console.error),u(!0),setTimeout(()=>u(!1),1500)},children:[e," ",h?(0,i.jsxs)(c,{children:[(0,i.jsx)(d,{size:o})," ",!r&&"Copied"]}):!n&&(0,i.jsx)(p,{size:o})]})}let u=({value:e,includeChildren:r,children:t,...n})=>{let[o,l]=(0,a.useState)(!1),h=()=>{navigator.clipboard.writeText(e).catch(console.error),l(!0),setTimeout(()=>l(!1),1500)};return(0,i.jsxs)(i.Fragment,{children:[r?(0,i.jsx)(s,{...n,onClick:h,children:t}):(0,i.jsx)(i.Fragment,{children:t}),(0,i.jsx)(s,{...n,onClick:h,children:o?(0,i.jsx)(c,{children:(0,i.jsx)(d,{})}):(0,i.jsx)(p,{})})]})}},89219:(e,r,t)=>{t.d(r,{A:()=>c,C:()=>d,S:()=>f});var i=t(95155),n=t(13333),o=t(12115),a=t(20031),l=t(38144),s=t(69222);let c=({currency:e="usd",value:r,onChange:t,inputMode:n="decimal",autoFocus:a})=>{let[s,c]=(0,o.useState)("0"),d=(0,o.useRef)(null),u=r??s,g=l.w[e]?.symbol??"$",v=(0,o.useCallback)(e=>{let r=e.target.value,i=(r=r.replace(/[^\d.]/g,"")).split(".");i.length>2&&(r=i[0]+"."+i.slice(1).join("")),2===i.length&&i[1].length>2&&(r=`${i[0]}.${i[1].slice(0,2)}`),r.length>1&&"0"===r[0]&&"."!==r[1]&&(r=r.slice(1)),(""===r||"."===r)&&(r="0"),t?t(r):c(r)},[t]),x=(0,o.useCallback)(e=>{!(["Delete","Backspace","Tab","Escape","Enter",".","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.ke
197y)||(e.ctrlKey||e.metaKey)&&["a","c","v","x"].includes(e.key.toLowerCase()))&&(e.key>="0"&&e.key<="9"||e.preventDefault())},[]),f=(0,o.useMemo)(()=>(u.includes("."),u),[u]);return(0,i.jsxs)(p,{onClick:()=>d.current?.focus(),children:[(0,i.jsx)(h,{children:g}),f,(0,i.jsx)("input",{ref:d,type:"text",inputMode:n,value:f,onChange:v,onKeyDown:x,autoFocus:a,placeholder:"0",style:{width:1,height:"1rem",opacity:0,alignSelf:"center",fontSize:"1rem"}}),(0,i.jsx)(h,{style:{opacity:0},children:g})]})},d=({selectedAsset:e,onEditSourceAsset:r})=>{let{icon:t}=l.w[e];return(0,i.jsxs)(u,{onClick:r,children:[(0,i.jsx)(g,{children:t}),(0,i.jsx)(v,{children:e.toLocaleUpperCase()}),(0,i.jsx)(x,{children:(0,i.jsx)(n.A,{})})]})},p=a.I4.span`
198  background-color: var(--privy-color-background);
199  width: 100%;
200  text-align: center;
201  border: none;
202  font-kerning: none;
203  font-feature-settings: 'calt' off;
204  display: flex;
205  justify-content: center;
206  align-items: flex-start;
207  cursor: pointer;
208
209  &:focus {
210    outline: none !important;
211    border: none !important;
212    box-shadow: none !important;
213  }
214
215  && {
216    color: var(--privy-color-foreground);
217    font-size: 3.75rem;
218    font-style: normal;
219    font-weight: 600;
220    line-height: 5.375rem;
221  }
222`,h=a.I4.span`
223  color: var(--privy-color-foreground);
224  font-kerning: none;
225  font-feature-settings: 'calt' off;
226  font-size: 1rem;
227  font-style: normal;
228  font-weight: 600;
229  line-height: 1.5rem;
230  margin-top: 0.75rem;
231`,u=a.I4.button`
232  display: flex;
233  align-items: center;
234  justify-content: space-between;
235  width: auto;
236  gap: 0.5rem;
237  border: 1px solid var(--privy-color-border-default);
238  border-radius: var(--privy-border-radius-full);
239
240  && {
241    margin: auto;
242    padding: 0.5rem 1rem;
243  }
244`,g=a.I4.div`
245  svg {
246    width: 1rem;
247    height: 1rem;
248    border-radius: var(--privy-border-radius-full);
249    overflow: hidden;
250    border: solid 0.1px var(--privy-color-border-default);
251  }
252`,v=a.I4.span`
253  color: var(--privy-color-foreground);
254  font-kerning: none;
255  font-feature-settings: 'calt' off;
256  font-size: 0.875rem;
257  font-style: normal;
258  font-weight: 500;
259  line-height: 1.375rem;
260`,x=a.I4.div`
261  color: var(--privy-color-foreground);
262
263  svg {
264    width: 1.25rem;
265    height: 1.25rem;
266  }
267`,f=({opts:e,isLoading:r,onSelectSource:t})=>(0,i.jsx)(s.S,{showClose:!1,showBack:!0,onBack:()=>t(e.source.selectedAsset),title:"Select currency",children:(0,i.jsx)(m,{children:e.source.assets.map(e=>{let{icon:n,name:o}=l.w[e];return(0,i.jsx)(y,{onClick:()=>t(e),disabled:r,children:(0,i.jsxs)(b,{children:[(0,i.jsx)(w,{children:n}),(0,i.jsxs)(j,{children:[(0,i.jsx)(k,{children:o}),(0,i.jsx)(I,{children:e.toLocaleUpperCase()})]})]})},e)})})}),m=a.I4.div`
268  display: flex;
269  flex-direction: column;
270  gap: 0.75rem;
271  width: 100%;
272  max-height: 20.875rem;
273  overflow-y: auto;
274  scrollbar-width: none;
275
276  &::-webkit-scrollbar {
277    display: none;
278  }
279`,y=a.I4.button`
280  border-color: var(--privy-color-border-default);
281  border-width: 1px;
282  border-radius: var(--privy-border-radius-mdlg);
283  border-style: solid;
284  display: flex;
285
286  && {
287    padding: 0.75rem 1rem;
288  }
289`,b=a.I4.div`
290  display: flex;
291  align-items: center;
292  gap: 1rem;
293  width: 100%;
294`,w=a.I4.div`
295  svg {
296    width: 2.25rem;
297    height: 2.25rem;
298    border-radius: var(--privy-border-radius-full);
299    overflow: hidden;
300    border: solid 0.1px var(--privy-color-border-default);
301  }
302`,j=a.I4.div`
303  display: flex;
304  flex-direction: column;
305  align-items: flex-start;
306  gap: 0.125rem;
307`,k=a.I4.span`
308  color: var(--privy-color-foreground);
309  font-size: 0.875rem;
310  font-weight: 600;
311  line-height: 1.25rem;
312`,I=a.I4.span`
313  color: var(--privy-color-foreground-3);
314  font-size: 0.75rem;
315  font-weight: 400;
316  line-height: 1.125rem;
317`},95204:(e,r,t)=>{t.d(r,{N:()=>o});var i=t(95155),n=t(20031);let o=({size:e,centerIcon:r})=>(0,i.jsx)(a,{$size:e,children:(0,i.jsxs)(l,{children:[(0,i.jsx)(c,{}),(0,i.jsx)(d,{}),r?(0,i.jsx)(s,{children:r}):null]})}),a=n.I4.div`
318  --spinner-size: ${e=>e.$size?e.$size:"96px"};
319
320  display: inline-flex;
321  justify-content: center;
322  align-items: center;
323
324  @media all and (display-mode: standalone) {
325    margin-bottom: 30px;
326  }
327`,l=n.I4.div`
328  position: relative;
329  height: var(--spinner-size);
330  width: var(--spinner-size);
331
332  opacity: 1;
333  animation: fadein 200ms ease;
334`,s=n.I4.div`
335  position: absolute;
336  top: 0;
337  right: 0;
338  bottom: 0;
339  left: 0;
340  display: flex;
341  align-items: center;
342  justify-content: center;
343  svg,
344  img {
345    width: calc(var(--spinner-size) * 0.4);
346    height: calc(var(--spinner-size) * 0.4);
347    border-radius: var(--privy-border-radius-full);
348  }
349`,c=n.I4.div`
350  position: absolute;
351  top: 0;
352  right: 0;
353  bottom: 0;
354  left: 0;
355  width: var(--spinner-size);
356  height: var(--spinner-size);
357
358  && {
359    border: 4px solid var(--privy-color-border-default);
360    border-radius: 50%;
361  }
362`,d=n.I4.div`
363  position: absolute;
364  top: 0;
365  right: 0;
366  bottom: 0;
367  left: 0;
368  width: var(--spinner-size);
369  height: var(--spinner-size);
370  animation: spin 1200ms linear infinite;
371
372  && {
373    border: 4px solid;
374    border-color: var(--privy-color-icon-subtle) transparent transparent transparent;
375    border-radius: 50%;
376  }
377
378  @keyframes spin {
379    from {
380      transform: rotate(0deg);
381    }
382    to {
383      transform: rotate(360deg);
384    }
385  }
386`}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.