suplo6669 commited on
Commit
03ae9b9
·
verified ·
1 Parent(s): 1d8be9a

Publish prebuilt static Sharpify frontend

Browse files
404.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/3-vxe91e-zk3u.js" async=""></script><meta name="robots" content="noindex"/><title>Sharpify AI — Image enhancement, with more detail</title><meta name="description" content="Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/12aruqaur5huj.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[23384,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"HfOAuthProvider\"]\n3:I[39756,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n5:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"ViewportBoundary\"]\nb:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"MetadataBoundary\"]\nd:I[68027,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/3mnriig4puhpm.css\",\"style\"]\n8:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$8\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"GG2BNxemV0hcg8Nj315Fn\"}\n8:C\na:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\ne:I[27201,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"IconMark\"]\n7:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"Sharpify AI — Image enhancement, with more detail\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"3\",{}]]\n"])</script></body></html>
README.md CHANGED
@@ -4,8 +4,7 @@ emoji: 🖼️
4
  colorFrom: green
5
  colorTo: yellow
6
  sdk: static
7
- app_file: out/index.html
8
- app_build_command: npm ci && npm run build
9
  hf_oauth: true
10
  hf_oauth_expiration_minutes: 120
11
  short_description: Compare and download AI-enhanced images
@@ -13,6 +12,7 @@ short_description: Compare and download AI-enhanced images
13
 
14
  # Sharpify AI
15
 
16
- The static Next.js export connects to the public Sharpify ZeroGPU inference
17
- Space configured at build time. Hugging Face OAuth is used only to sign in and
18
- forward the visitor's short-lived token for inference and quota attribution.
 
 
4
  colorFrom: green
5
  colorTo: yellow
6
  sdk: static
7
+ app_file: index.html
 
8
  hf_oauth: true
9
  hf_oauth_expiration_minutes: 120
10
  short_description: Compare and download AI-enhanced images
 
12
 
13
  # Sharpify AI
14
 
15
+ This Space serves a locally built Next.js static export. The export connects
16
+ to the public Sharpify ZeroGPU inference Space configured at build time.
17
+ Hugging Face OAuth is used only to sign in and forward the visitor's short-lived
18
+ token for inference and quota attribution.
__next.__PAGE__.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"AppHeader"]
3
+ 3:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"default"]
4
+ 4:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"EnhancerStudio"]
5
+ 5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"OutletBoundary"]
6
+ 6:"$Sreact.suspense"
7
+ a:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"ViewportBoundary"]
8
+ 9:X
9
+ 0:{"buildId":"GG2BNxemV0hcg8Nj315Fn","data":[{"rsc":["$","$1","c",{"children":[["$","main",null,{"id":"top","children":[["$","$L2",null,{}],["$","section",null,{"className":"hero-shell","aria-labelledby":"hero-title","children":[["$","div",null,{"className":"hero-copy","children":[["$","div",null,{"className":"eyebrow","children":[["$","span",null,{"className":"status-dot"}]," AI IMAGE STUDIO"]}],["$","h1",null,{"id":"hero-title","children":["A clearer version",["$","br",null,{}],"of ",["$","span",null,{"children":"your favorite moments."}]]}],["$","p",null,{"className":"hero-description","children":"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling."}],["$","a",null,{"className":"hero-link","href":"#studio","children":["Open the enhancer ",["$","$L3",null,{"icon":{"name":"arrow-right","size":24,"node":[["path",{"d":"M5 12h14","key":"1ays0h"}],["path",{"d":"m12 5 7 7-7 7","key":"xquz4c"}]]},"size":16}]]}]]}],["$","div",null,{"className":"hero-art","aria-hidden":"true","children":[["$","div",null,{"className":"hero-art-glow"}],["$","div",null,{"className":"hero-photo photo-back","children":[["$","div",null,{"className":"sun"}],["$","div",null,{"className":"ridge ridge-back"}],["$","div",null,{"className":"ridge ridge-front"}],["$","div",null,{"className":"field-lines"}]]}],["$","div",null,{"className":"hero-photo-photo-label","children":[["$","$L3",null,{"icon":{"name":"sparkles","size":24,"node":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z","key":"1s2grr"}],["path",{"d":"M20 2v4","key":"1rf3ol"}],["path",{"d":"M22 4h-4","key":"gwowj6"}],["circle",{"cx":"4","cy":"20","r":"2","key":"6kqj1y"}]],"aliases":["stars"]},"size":14}]," RESTORED IN DETAIL"]}],["$","div",null,{"className":"hero-art-stamp","children":[["$","span",null,{"children":"SHARPIFY"}],["$","strong",null,{"children":"AI"}]]}]]}]]}],["$","section",null,{"className":"studio-section","id":"studio","aria-labelledby":"studio-title","children":[["$","div",null,{"className":"section-heading","children":[["$","div",null,{"children":[["$","p",null,{"className":"section-kicker","children":"THE WORKSPACE"}],["$","h2",null,{"id":"studio-title","children":"Make it feel new again."}]]}],["$","p",null,{"className":"section-aside","children":"Uploaded images are used only for enhancement and are not permanently stored."}]]}],["$","$L4",null,{}]]}],["$","section",null,{"className":"how-section","id":"how-it-works","aria-labelledby":"how-title","children":[["$","div",null,{"className":"how-heading","children":[["$","p",null,{"className":"section-kicker","children":"SIMPLE BY DESIGN"}],["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]]}],["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]]}],["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L3",null,{"icon":"$0:data:0:rsc:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L3",null,{"icon":"$0:data:0:rsc:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","size":14}]]}]]}]]}],[["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/37mvkrz0kpeh3.js","async":true}]],["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],"isPartial":"$@8","staleTime":"$9","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$La",null,{"children":"$Lb"}],"$Lc",null]}],"isPartial":"$@d","staleTime":"$9","varyParams":null},{"rsc":"$Le","isPartial":"$@f","staleTime":"$9","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@10","rootVaryParams":null,"needsRuntimeRequest":"$@11"}
10
+ 12:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"MetadataBoundary"]
11
+ 13:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"IconMark"]
12
+ 14:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"HfOAuthProvider"]
13
+ 15:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
14
+ 16:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
15
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
16
+ 7:null
17
+ b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
18
+ c:["$","div",null,{"hidden":true,"children":["$","$L12",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L13","3",{}]]}]}]}]
19
+ e:["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/3-vxe91e-zk3u.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L14",null,{"children":["$","$L15",null,{"parallelRouterKey":"children","template":["$","$L16",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]]}]
20
+ 9:300
21
+ 11:true
22
+ 9:C
23
+ 10:0
24
+ d:"$undefined"
25
+ f:"$undefined"
26
+ 8:"$undefined"
__next._full.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"HfOAuthProvider"]
3
+ 3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
4
+ 4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
5
+ 5:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"AppHeader"]
6
+ 6:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"default"]
7
+ 7:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"EnhancerStudio"]
8
+ f:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default",1]
9
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
10
+ 0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/3-vxe91e-zk3u.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","main",null,{"id":"top","children":[["$","$L5",null,{}],["$","section",null,{"className":"hero-shell","aria-labelledby":"hero-title","children":[["$","div",null,{"className":"hero-copy","children":[["$","div",null,{"className":"eyebrow","children":[["$","span",null,{"className":"status-dot"}]," AI IMAGE STUDIO"]}],["$","h1",null,{"id":"hero-title","children":["A clearer version",["$","br",null,{}],"of ",["$","span",null,{"children":"your favorite moments."}]]}],["$","p",null,{"className":"hero-description","children":"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling."}],["$","a",null,{"className":"hero-link","href":"#studio","children":["Open the enhancer ",["$","$L6",null,{"ref":"$undefined","icon":{"name":"arrow-right","size":24,"node":[["path",{"d":"M5 12h14","key":"1ays0h"}],["path",{"d":"m12 5 7 7-7 7","key":"xquz4c"}]]},"className":"$undefined","size":16}]]}]]}],["$","div",null,{"className":"hero-art","aria-hidden":"true","children":[["$","div",null,{"className":"hero-art-glow"}],["$","div",null,{"className":"hero-photo photo-back","children":[["$","div",null,{"className":"sun"}],["$","div",null,{"className":"ridge ridge-back"}],["$","div",null,{"className":"ridge ridge-front"}],["$","div",null,{"className":"field-lines"}]]}],["$","div",null,{"className":"hero-photo-photo-label","children":[["$","$L6",null,{"ref":"$undefined","icon":{"name":"sparkles","size":24,"node":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z","key":"1s2grr"}],["path",{"d":"M20 2v4","key":"1rf3ol"}],["path",{"d":"M22 4h-4","key":"gwowj6"}],["circle",{"cx":"4","cy":"20","r":"2","key":"6kqj1y"}]],"aliases":["stars"]},"className":"$undefined","size":14}]," RESTORED IN DETAIL"]}],["$","div",null,{"className":"hero-art-stamp","children":[["$","span",null,{"children":"SHARPIFY"}],["$","strong",null,{"children":"AI"}]]}]]}]]}],["$","section",null,{"className":"studio-section","id":"studio","aria-labelledby":"studio-title","children":[["$","div",null,{"className":"section-heading","children":[["$","div",null,{"children":[["$","p",null,{"className":"section-kicker","children":"THE WORKSPACE"}],["$","h2",null,{"id":"studio-title","children":"Make it feel new again."}]]}],["$","p",null,{"className":"section-aside","children":"Uploaded images are used only for enhancement and are not permanently stored."}]]}],["$","$L7",null,{}]]}],["$","section",null,{"className":"how-section","id":"how-it-works","aria-labelledby":"how-title","children":[["$","div",null,{"className":"how-heading","children":[["$","p",null,{"className":"section-kicker","children":"SIMPLE BY DESIGN"}],"$L8"]}],"$L9"]}],"$La"]}],["$Lb","$Lc"],"$Ld"]}],{},null,false,null]},null,false,null],"$Le",false]],"m":"$undefined","G":["$f",["$L10"]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"GG2BNxemV0hcg8Nj315Fn"}
11
+ 11:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"OutletBoundary"]
12
+ 12:"$Sreact.suspense"
13
+ 14:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"ViewportBoundary"]
14
+ 16:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"MetadataBoundary"]
15
+ 8:["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]
16
+ 9:["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]
17
+ a:["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","className":"$undefined","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","className":"$undefined","size":14}]]}]]}]
18
+ b:["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true,"nonce":"$undefined"}]
19
+ c:["$","script","script-1",{"src":"/_next/static/chunks/37mvkrz0kpeh3.js","async":true,"nonce":"$undefined"}]
20
+ d:["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]
21
+ e:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],null]}]
22
+ 10:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
23
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
24
+ 18:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"IconMark"]
25
+ 13:null
26
+ 17:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L18","3",{}]]
__next._tree.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
2
+ 0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}},"staleTime":300,"buildId":"GG2BNxemV0hcg8Nj315Fn"}
_next/static/GG2BNxemV0hcg8Nj315Fn/_buildManifest.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ self.__BUILD_MANIFEST = {
2
+ "__rewrites": {
3
+ "afterFiles": [],
4
+ "beforeFiles": [],
5
+ "fallback": []
6
+ },
7
+ "sortedPages": [
8
+ "/_app",
9
+ "/_error"
10
+ ]
11
+ };self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()
_next/static/GG2BNxemV0hcg8Nj315Fn/_clientMiddlewareManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__MIDDLEWARE_MATCHERS = [];self.__MIDDLEWARE_MATCHERS_CB && self.__MIDDLEWARE_MATCHERS_CB()
_next/static/GG2BNxemV0hcg8Nj315Fn/_ssgManifest.js ADDED
@@ -0,0 +1 @@
 
 
1
+ self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
_next/static/chunks/0cz1d0mv5g_q7.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/0f8bek7psp5me.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93586,e=>{e.v(t=>Promise.all(["static/chunks/1t4cbqusqp71t.js"].map(t=>e.l(t))).then(()=>t(16466)))},23587,e=>{"use strict";var t=e.i(47167),n=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,c=(e,t,c)=>(c=null==e?{}:n(s(e)),((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,c=r(t),l=0,p=c.length;l<p;l++)s=c[l],o.call(e,s)||void 0===s||i(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=a(t,s))||n.enumerable});return e})(!t&&e&&e.__esModule?c:i(c,"default",{value:e,enumerable:!0}),e)),l="queue/data",p="upload",u="config",d="This application is currently busy. Please try again. ",h="Connection errored out. ",f="Could not resolve app config. ",g="Could not get API info. ",_="Space metadata could not be loaded. ",m="Invalid credentials. Could not login. ",w="Root URL not found in client config";async function y(e,t,n){try{return(await (await fetch(`https://huggingface.co/api/spaces/${e}/jwt`,{headers:{Authorization:`Bearer ${t}`,...n?{Cookie:n}:{}}})).json()).token||!1}catch{return!1}}function b(e){e.hf_token&&!e.token&&(e.token=e.hf_token,console.warn("The `hf_token` option has been renamed to `token`. Support for `hf_token` will be removed in a future version of @gradio/client."))}function v(e){let t={};return e.forEach(({api_name:e,id:n})=>{e&&(t[e]=n)}),t}async function k(e,t=!0){let n=this.options.token?{Authorization:`Bearer ${this.options.token}`}:{};if("u">typeof window&&window.gradio_config&&"http://localhost:9876"!==location.origin){if(t&&window.gradio_config.current_page&&(e=e.substring(0,e.lastIndexOf("/"))),window.gradio_config.dev_mode||"u">typeof window&&window?.BUILD_MODE==="dev"){let t=new URL(T(e,u));this.deep_link&&t.searchParams.set("deep_link",this.deep_link),null!==this.page&&t.searchParams.set("page",this.page);let i=await $(await this.fetch(t,{headers:n,credentials:this.options.credentials??"same-origin"}),!!this.options.auth);i.root=e||i.root,window.gradio_config={...i,current_page:window.gradio_config.current_page}}let i={...window.gradio_config};return i.root=function(e,t,n=!1){let i=new URL(t),a=new URL(e,i),r=a.hostname.endsWith(".colab-user-runtimes.internal")||a.hostname.endsWith(".codatalab-user-runtimes.internal");return n||r?new URL(new URL(e,i).pathname,i).toString().replace(/\/$/,""):a.hostname===i.hostname?(a.protocol=i.protocol,a.host=i.host,a.toString().replace(/\/$/,"")):e}(i.root,location.href,i.is_colab),i}if(e){let t=new URL(T(e,u));this.deep_link&&t.searchParams.set("deep_link",this.deep_link),null!==this.page&&t.searchParams.set("page",this.page);let i=await $(await this.fetch(t,{headers:n,credentials:this.options.credentials??"same-origin"}),!!this.options.auth);return i.root||=e,i}throw Error(f)}async function $(e,t){if(e?.status!==401||t){if(e?.status===401&&t)throw Error(m)}else{let t=null;try{t=await e.json()}catch{throw Error("Could not access this app (received a 401 response). If it is a private Hugging Face Space, pass a valid Hugging Face token to the `token` option of `Client.connect`. You can generate a token at https://huggingface.co/settings/tokens.")}throw Error(t?.detail?.auth_message||"Login credentials are required to access this space.")}if(e?.status===200){let t=await e.json();return t.dependencies?.forEach((e,t)=>{void 0===e.id&&(e.id=t)}),t}if(e?.status===401)throw Error("Not authorized to access this space. ");throw Error(`${f}(received status ${e?.status} when fetching the app config)`)}async function S(){let{http_protocol:e,host:t}=await D(this.app_reference,this.options.token);try{if(this.options.auth){let n=await E(e,t,this.options.auth,this.fetch,this.options.token,this.options.credentials);n&&this.set_cookies(n)}}catch(e){throw Error(e.message)}}async function E(e,t,n,i,a,r){let s=new FormData;s.append("username",n?.[0]),s.append("password",n?.[1]);let o={};a&&(o.Authorization=`Bearer ${a}`);let c=await i(`${e}//${t}/login`,{headers:o,method:"POST",body:s,credentials:r??"same-origin"});if(200===c.status)return c.headers.get("set-cookie");throw 401===c.status?Error(m):Error(_)}function x(e){if(e.startsWith("http")){let{protocol:t,host:n,pathname:i}=new URL(e);return{ws_protocol:"https:"===t?"wss":"ws",http_protocol:t,host:n+("/"===i?"":i)}}return{ws_protocol:"wss",http_protocol:"https:",host:new URL(e).host}}var j=e=>{let t=[];return e.split(/,(?=\s*[^\s=;]+=[^\s=;]+)/).forEach(e=>{let[n,i]=e.split(";")[0].split("=");n&&i&&t.push(`${n.trim()}=${i.trim()}`)}),t},O=/^[a-zA-Z0-9_\-\.]+\/[a-zA-Z0-9_\-\.]+$/,P=/.*hf\.space\/{0,1}.*$/;async function D(e,t){let n={};t&&(n.Authorization=`Bearer ${t}`);let i=e.trim().replace(/\/$/,"");if(O.test(i)){let e,t;try{e=await fetch(`https://huggingface.co/api/spaces/${i}/host`,{headers:n})}catch{throw Error(_)}if(401===e.status||404===e.status){let t;throw Error((t=e.status,`Space "${i}" could not be accessed (received a ${t} response from the Hugging Face API). Check that the Space name is spelled correctly and that the Space exists. If the Space is private, pass a valid Hugging Face token to the \`token\` option of \`Client.connect\`. You can generate a token at https://huggingface.co/settings/tokens.`))}try{t=(await e.json()).host}catch{throw Error(_)}if(!t)throw Error(_);return{space_id:i,...x(t)}}if(P.test(i)){let{ws_protocol:e,http_protocol:t,host:n}=x(i);return{space_id:n.split("/")[0].replace(".hf.space",""),ws_protocol:e,http_protocol:t,host:n}}return{space_id:!1,...x(i)}}var T=(...e)=>{try{return e.reduce((e,t)=>(e=e.replace(/\/+$/,""),t=t.replace(/^\/+/,""),new URL(t,e+"/").toString()))}catch{throw Error("Invalid URL. A full URL path is required.")}};function A(e,t){switch(e.msg){case"send_data":return{type:"data"};case"send_hash":return{type:"hash"};case"queue_full":return{type:"update",status:{queue:!0,message:d,stage:"error",code:e.code,success:e.success}};case"heartbeat":return{type:"heartbeat"};case"unexpected_error":return{type:"unexpected_error",status:{queue:!0,message:e.message,session_not_found:e.session_not_found,stage:"error",success:!1}};case"broken_connection":return{type:"broken_connection",status:{queue:!0,message:e.message,stage:"error",success:!1}};case"estimation":return{type:"update",status:{queue:!0,stage:t||"pending",code:e.code,size:e.queue_size,position:e.rank,eta:e.rank_eta,success:e.success}};case"progress":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,progress_data:e.progress_data,success:e.success}};case"log":return{type:"log",data:e};case"process_generating":return{type:"generating",status:{queue:!0,message:e.success?null:e.output.error,stage:e.success?"generating":"error",code:e.code,progress_data:e.progress_data,eta:e.average_duration,changed_state_ids:e.success?e.output.changed_state_ids:void 0},data:e.success?e.output:null};case"process_streaming":return{type:"streaming",status:{queue:!0,message:e.output.error,stage:"streaming",time_limit:e.time_limit,code:e.code,progress_data:e.progress_data,changed_state_ids:e.output.changed_state_ids,eta:e.eta},data:e.output};case"process_completed":return"error"in e.output?{type:"update",status:{queue:!0,title:e.output.title??"Error",message:e.output.error??"An error occurred",visible:e.output.visible,duration:e.output.duration,stage:"error",code:e.code,success:e.success}}:{type:"complete",status:{queue:!0,message:e.success?void 0:e.output.error,stage:e.success?"complete":"error",code:e.code,progress_data:e.progress_data,changed_state_ids:e.success?e.output.changed_state_ids:void 0,used_cache:e.used_cache,cache_duration:e.cache_duration,avg_time:e.avg_time},data:e.success?e.output:null};case"process_starts":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,size:e.rank,position:0,success:e.success,eta:e.eta},original_msg:"process_starts"}}return{type:"none",status:{stage:"error",queue:!0}}}async function C(){if(this.api_info)return this.api_info;let{token:e}=this.options,{config:t}=this,n={};if(e&&(n.Authorization=`Bearer ${e}`),t)try{var i,a;let e,r,s;if("u">typeof window&&window.gradio_api_info)r=window.gradio_api_info;else{let i=new URL(T(t.root,this.api_prefix,"info"));if(null!==this.page&&i.searchParams.set("page",this.page),!(e=await this.fetch(i,{headers:n,credentials:this.options.credentials??"same-origin"})).ok)throw Error(h);r=await e.json()}return"api"in r&&(r=r.api),r.named_endpoints["/predict"]&&!r.unnamed_endpoints[0]&&(r.unnamed_endpoints[0]=r.named_endpoints["/predict"]),i=r,a=this.api_map,s={named_endpoints:{},unnamed_endpoints:{}},Object.keys(i).forEach(e=>{("named_endpoints"===e||"unnamed_endpoints"===e)&&(s[e]={},Object.entries(i[e]).forEach(([n,i])=>{let r=i?.parameters??[],o=i?.returns??[],c=t.dependencies.find(e=>e.api_name===n||e.api_name===n.replace("/",""))?.id||a[n.replace("/","")]||-1,l=-1===c?void 0:t.dependencies.find(e=>e.id==c),p=-1===c?{generator:!1,cancel:!1}:l?.types;if(l&&Array.isArray(l.inputs)&&l.inputs.length!==r.length){let e=l.inputs.map(e=>t.components.find(t=>t.id===e)?.type);try{e.forEach((e,t)=>{"state"===e&&r.splice(t,0,{component:"state",example:null,parameter_default:null,parameter_has_default:!0,parameter_name:null,hidden:!0})})}catch(e){console.error(e)}}let u=(e,t,n,i)=>{var a,r;return{...e,description:(a=e?.type,r=n,"GallerySerializable"===r?"array of [file, label] tuples":"ListStringSerializable"===r?"array of strings":"FileSerializable"===r?"array of files or single file":a?.description),type:function(e,t,n,i){if("Api"===t)return e.type;switch(e?.type){case"string":return"string";case"boolean":return"boolean";case"number":return"number"}return"JSONSerializable"===n||"StringSerializable"===n?"any":"ListStringSerializable"===n?"string[]":"Image"===t?"parameter"===i?"Blob | File | Buffer":"string":"FileSerializable"===n?e?.type==="array"?"parameter"===i?"(Blob | File | Buffer)[]":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}[]":"parameter"===i?"Blob | File | Buffer":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}":"GallerySerializable"===n?"parameter"===i?"[(Blob | File | Buffer), (string | null)][]":"[{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}, (string | null))][]":void 0}(e?.type,t,n,i)||""}};s[e][n]={parameters:r.map(e=>u(e,e?.component,e?.serializer,"parameter")),returns:o.map(e=>u(e,e?.component,e?.serializer,"return")),type:p,...i?.oauth_token?{oauth_token:i.oauth_token}:{}}}))}),s}catch(e){throw Error("Could not get API info. "+e.message)}}async function q(e,t,n){let i={};this?.options?.token&&(i.Authorization=`Bearer ${this.options.token}`);let a=[],r;for(let s=0;s<t.length;s+=1e3){let o=t.slice(s,s+1e3),c=new FormData;o.forEach(e=>{c.append("files",e)});try{let t=n?`${e}${this.api_prefix}/${p}?upload_id=${n}`:`${e}${this.api_prefix}/${p}`;r=await this.fetch(t,{method:"POST",body:c,headers:i,credentials:this.options.credentials??"same-origin"})}catch(e){throw Error(h+e.message)}if(!r.ok){let e=await r.text();return{error:`HTTP ${r.status}: ${e}`}}let l=await r.json();l&&a.push(...l)}return{files:a}}var N={si:{radix:1e3,unit:["b","kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"]},iec:{radix:1024,unit:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"]},jedec:{radix:1024,unit:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"]}};async function U(e,t,n,i){let a=(Array.isArray(e)?e:[e]).map(e=>e.blob),r=a.filter(e=>e.size>(i??1/0));if(r.length)throw Error(`File(s) exceed the maximum allowed size of ${function(e,t=1,n="jedec"){e=Math.abs(e);let{radix:i,unit:a}=N[n]||N.jedec,r=0;for(;e>=i;)e/=i,++r;return`${e.toFixed(t)} ${a[r]}`}(i||1/0)}: ${r.map(e=>`"${e.name}"`).join(", ")}`);return await Promise.all(await this.upload_files(t,a,n).then(async n=>{if(n.error)throw Error(n.error);return n.files?n.files.map((n,i)=>{let a=n.split("/").map(e=>encodeURIComponent(e)).join("/");return new I({...e[i],path:n,url:`${t}${this.api_prefix}/file=${a}`})}):[]}))}var I=class{path;url;orig_name;size;blob;is_stream;mime_type;alt_text;b64;meta={_type:"gradio.FileData"};constructor({path:e,url:t,orig_name:n,size:i,blob:a,is_stream:r,mime_type:s,alt_text:o,b64:c}){this.path=e,this.url=t,this.orig_name=n,this.size=i,this.blob=t?void 0:a,this.is_stream=r,this.mime_type=s,this.alt_text=o,this.b64=c}},z=class{type;command;meta;fileData;constructor(e,t){this.type="command",this.command=e,this.meta=t}},L="u">typeof t.default&&t.default.versions&&t.default.versions.node;function R(e,t,n){for(;n.length>1;){let t=n.shift();if("string"==typeof t||"number"==typeof t)e=e[t];else throw Error("Invalid key type")}let i=n.shift();if("string"==typeof i||"number"==typeof i)e[i]=t;else throw Error("Invalid key type")}async function B(e,t,n=[],i=!1,a){if(Array.isArray(e)){let r=[];return await Promise.all(e.map(async(s,o)=>{let c=n.slice();c.push(String(o));let l=await B(e[o],i?a?.parameters[o]?.component||void 0:t,c,!1,a);r=r.concat(l)})),r}if(globalThis.Buffer&&e instanceof globalThis.Buffer||e instanceof Blob)return[{path:n,blob:e instanceof Blob?e:new Blob([e]),type:t}];if("object"==typeof e&&e){let t=[];for(let i of Object.keys(e)){let r=[...n,i],s=e[i];t=t.concat(await B(s,void 0,r,!1,a))}return t}return[]}function F(e,t){let n=t?.dependencies?.find(t=>t.id==e)?.queue;return null==n?!t.enable_queue:!n}function M(e,t,n,i,a=!1){if("input"===i&&!a)throw Error("Invalid code path. Cannot skip state inputs for input.");if("output"===i&&a)return e;let r=[],s=0,o="input"===i?t.inputs:t.outputs;for(let t=0;t<o.length;t++){let i=o[t];if(n.find(e=>e.id===i)?.type==="state"){if(a)if(e.length===o.length){let t=e[s];r.push(t),s++}else r.push(null);else s++;continue}{let t=e[s];r.push(t),s++}}return r}var J=["/file=","/file/","/stream/","/proxy="];function W(e,t,n,i){if(!i||"object"!=typeof e||!e)return;let a=new URL(t),r=a.pathname.replace(/\/+$/,""),s=n?`/${n.replace(/^\/+|\/+$/g,"")}`:"",o=new Set([`${r}${s}`,s]);s||(o.add(`${r}/gradio_api`),o.add("/gradio_api")),!function e(t){if("object"==typeof t&&t){if(t.meta?._type==="gradio.FileData"&&"string"==typeof t.url){let e=new URL(t.url,`${a.toString().replace(/\/$/,"")}/`),n=[...o].some(t=>J.some(n=>e.pathname.startsWith(`${t}${n}`)));("http:"===e.protocol||"https:"===e.protocol)&&e.origin===a.origin&&n&&(e.searchParams.set("__sign",i),t.url=e.toString())}for(let n of Object.values(t))e(n)}}(e)}function G(e,t){for(let n of e.components||[])W(n.props?.value,e.root,e.api_prefix||"",t)}async function H(e,t,n){let i=this;await K(i,t);let a=await B(t,void 0,[],!0,n);return(await Promise.all(a.map(async({path:t,blob:n,type:a})=>{if(!n)return{path:t,type:a};let r=await i.upload_files(e,[n]);return{path:t,file_url:r.files&&r.files[0],type:a,name:"u">typeof File&&n instanceof File?n?.name:void 0}}))).forEach(({path:e,file_url:n,type:i,name:a})=>{"Gallery"===i?R(t,n,e):n&&R(t,new I({path:n,orig_name:a}),e)}),t}async function K(e,t){if(!(e.config?.root||e.config?.root_url))throw Error(w);await Y(e,t)}async function Y(e,t,n=[]){for(let i in t)t[i]instanceof z?await Z(e,t,i):"object"==typeof t[i]&&null!==t[i]&&await Y(e,t[i],[...n,i])}async function Z(n,i,a){let r=i[a],s=n.config?.root||n.config?.root_url;if(!s)throw Error(w);try{let o,l;if("u">typeof t.default&&t.default.versions&&t.default.versions.node){let n=await e.A(93586).then(e=>c(e.default,1));l=(await e.A(93586).then(e=>c(e.default,1))).resolve(t.default.cwd(),r.meta.path),o=await n.readFile(l)}else throw Error("File system access is only available in Node.js environments");let p=new Blob([o],{type:"application/octet-stream"}),u=await n.upload_files(s,[p]),d=u.files&&u.files[0];d&&(i[a]=new I({path:d,orig_name:r.meta.name||""}))}catch(e){console.error("Error uploading file",e)}}async function V(e,t,n){let i,a,r={"Content-Type":"application/json"};this.options.token&&(r.Authorization=`Bearer ${this.options.token}`);try{var s=await this.fetch(e,{method:"POST",body:JSON.stringify(t),headers:{...r,...n},credentials:this.options.credentials??"same-origin"})}catch{return[{error:h},500]}try{i=await s.json(),a=s.status}catch(e){i={error:`Could not parse server response: ${e}`},a=500}return[i,a]}async function Q(e,t={}){let n,i=!1,a=!1;if(!this.config)throw Error("Could not resolve app config");if("number"==typeof e)this.config.dependencies.find(t=>t.id==e);else{let t=e.replace(/^\//,"");this.config.dependencies.find(e=>e.id==this.api_map[t])}for await(let r of this.submit(e,t,null,null,!0)){if("data"===r.type&&(i=!0,n=r,a))break;if("status"===r.type){if("error"===r.stage){let{message:e,...t}=r,n=Error(("string"==typeof e?e:e&&JSON.stringify(e))||"An unknown error occurred while making a prediction.");throw Object.assign(n,t),n}if("complete"===r.stage&&(a=!0,i))break}}return n}async function X(e,t,n){let i="subdomain"===t?`https://huggingface.co/api/spaces/by-subdomain/${e}`:`https://huggingface.co/api/spaces/${e}`,a,r;try{if(r=(a=await fetch(i)).status,200!==r)throw Error();a=await a.json()}catch{n({status:"error",load_status:"error",message:"Could not get space status. ",detail:"NOT_FOUND"});return}if(!a||200!==r)return;let{runtime:{stage:s},id:o}=a;switch(s){case"STOPPED":case"SLEEPING":n({status:"sleeping",load_status:"pending",message:"Space is asleep. Waking it up...",detail:s}),setTimeout(()=>{X(e,t,n)},1e3);break;case"PAUSED":n({status:"paused",load_status:"error",message:"This space has been paused by the author. If you would like to try this demo, consider duplicating the space.",detail:s,discussions_enabled:await en(o)});break;case"RUNNING":case"RUNNING_BUILDING":n({status:"running",load_status:"complete",message:"Space is running.",detail:s});break;case"BUILDING":n({status:"building",load_status:"pending",message:"Space is building...",detail:s}),setTimeout(()=>{X(e,t,n)},1e3);break;case"APP_STARTING":n({status:"starting",load_status:"pending",message:"Space is starting...",detail:s}),setTimeout(()=>{X(e,t,n)},1e3);break;default:n({status:"space_error",load_status:"error",message:"This space is experiencing an issue.",detail:s,discussions_enabled:await en(o)})}}var ee=async(e,t)=>{let n=0;return new Promise(i=>{X(e,O.test(e)?"space_name":"subdomain",a=>{t(a),"running"===a.status||"error"===a.status||"paused"===a.status||"space_error"===a.status?i():("sleeping"===a.status||"building"===a.status)&&(n<12?(n++,setTimeout(()=>{ee(e,t).then(i)},5e3)):i())})})},et=/^(?=[^]*\b[dD]iscussions{0,1}\b)(?=[^]*\b[dD]isabled\b)[^]*$/;async function en(e){try{let t=await fetch(`https://huggingface.co/api/spaces/${e}/discussions`,{method:"HEAD"}),n=t.headers.get("x-error-message");return!(!t.ok||n&&et.test(n))}catch{return!1}}async function ei(e,t){let n={};t&&(n.Authorization=`Bearer ${t}`);try{let t=await fetch(`https://huggingface.co/api/spaces/${e}/runtime`,{headers:n});if(200!==t.status)throw Error("Space hardware could not be obtained.");let{hardware:i}=await t.json();return i.current}catch(e){throw Error(e.message)}}async function ea(e,t,n){let i={};n&&(i.Authorization=`Bearer ${n}`);try{let n=await fetch(`https://huggingface.co/api/spaces/${e}/sleeptime`,{method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify({seconds:t})});if(200!==n.status)throw Error("Could not set sleep timeout on duplicated Space. Please visit *ADD HF LINK TO SETTINGS* to set a timeout manually to reduce billing charges.");return await n.json()}catch(e){throw Error(e.message)}}var er=["cpu-basic","cpu-upgrade","cpu-xl","t4-small","t4-medium","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","zero-a10g","h100","h100x8"];async function es(e,t){let n;b(t);let{token:i,private:a,hardware:r,timeout:s,auth:o}=t;if(r&&!er.includes(r))throw Error(`Invalid hardware type provided. Valid types are: ${er.map(e=>`"${e}"`).join(",")}.`);let{http_protocol:c,host:l}=await D(e,i),p=null;if(o){let e=await E(c,l,o,fetch,void 0,t.credentials);e&&(p=j(e))}let u={Authorization:`Bearer ${i}`,"Content-Type":"application/json",...p?{Cookie:p.join("; ")}:{}},d=(await (await fetch("https://huggingface.co/api/whoami-v2",{headers:u})).json()).name,h=e.split("/")[1],f={repository:`${d}/${h}`};a&&(f.private=!0);try{r||(n=await ei(e,i))}catch(e){throw Error(_+e.message)}f.hardware=r||n||"cpu-basic";try{let n=await fetch(`https://huggingface.co/api/spaces/${e}/duplicate`,{method:"POST",headers:u,body:JSON.stringify(f)});if(409===n.status)try{return await eC.connect(`${d}/${h}`,t)}catch(e){throw console.error("Failed to connect Client instance:",e),e}if(200!==n.status)throw Error(n.statusText);let a=await n.json();return await ea(`${d}/${h}`,s||300,i),await eC.connect(function(e){let t=e.match(/https:\/\/huggingface.co\/spaces\/([^/]+\/[^/]+)/);if(t)return t[1]}(a.url),t)}catch(e){throw Error(e)}}var eo="supports-zerogpu-headers",ec=!1;function el(e){return e.includes(".dev.")?`https://moon-${e.split(".")[1]}.dev.spaces.huggingface.tech`:e.endsWith(".hf.space")?"https://huggingface.co":null}var ep=class extends TransformStream{#e="";constructor(e={allowCR:!1}){super({transform:(t,n)=>{for(t=this.#e+t;;){let i=t.indexOf("\n"),a=e.allowCR?t.indexOf("\r"):-1;if(-1!==a&&a!==t.length-1&&(-1===i||i-1>a)){n.enqueue(t.slice(0,a)),t=t.slice(a+1);continue}if(-1===i)break;let r="\r"===t[i-1]?i-1:i;n.enqueue(t.slice(0,r)),t=t.slice(i+1)}this.#e=t},flush:t=>{if(""===this.#e)return;let n=e.allowCR&&this.#e.endsWith("\r")?this.#e.slice(0,-1):this.#e;t.enqueue(n)}})}};function eu(e,t,n){e.get(t)||e.set(t,n)}async function*ed(e,t){var n;let i,a;if(!e.body)return;let r,s=(n=e.body,i=new TextDecoderStream,a=new ep({allowCR:!0}),n.pipeThrough(i).pipeThrough(a)).getReader(),o;for(;;){if(t&&t.aborted)return s.cancel();if((r=await s.read()).done)return;if(!r.value){o&&(yield o),o=void 0;continue}let[e,n]=function(e){let t=/[:]\s*/.exec(e),n=t&&t.index;if(n)return[e.substring(0,n),e.substring(n+t[0].length)]}(r.value)||[];"data"===e?(o||={})[e]=o[e]?o[e]+"\n"+n:n:"event"===e?(o||={})[e]=n:"id"===e?(o||={})[e]=String(+n)===n?+n:n:"retry"===e&&((o||={})[e]=+n||void 0)}}async function eh(e,t){let n=new Request(e,t);eu(n.headers,"Accept","text/event-stream"),eu(n.headers,"Content-Type","application/json");let i=await fetch(n);if(!i.ok)throw i;return ed(i,n.signal)}async function ef(){let{event_callbacks:e,unclosed_events:t,pending_stream_messages:n,stream_status:i,config:a,jwt:r}=this,s=this;if(!a)throw Error("Could not resolve app config");i.open=!0;let o=null,c=new URLSearchParams({session_hash:this.session_hash}).toString(),p=new URL(`${a.root}${this.api_prefix}/${l}?${c}`);(r&&p.searchParams.set("__sign",r),o=this.stream(p))?(o.onmessage=async function(r){let o=JSON.parse(r.data);if("close_stream"===o.msg)return void eg(i,s.abort_controller);let c=o.event_id;if(c)if(e[c]&&a){"process_completed"===o.msg&&["sse","sse_v1","sse_v2","sse_v2.1","sse_v3"].includes(a.protocol)&&t.delete(c);let n=e[c];"u">typeof window&&"u">typeof document&&"hidden"!==document.visibilityState?setTimeout(n,0,o):n(o)}else n[c]||(n[c]=[]),n[c].push(o);else await Promise.all(Object.keys(e).map(t=>e[t](o)))},o.onerror=async function(t){console.error(t),await Promise.all(Object.keys(e).map(t=>e[t]({msg:"broken_connection",message:h})))}):console.warn("Cannot connect to SSE endpoint: "+p.toString())}function eg(e,t){e&&(e.open=!1,t?.abort())}var e_="gradio:run-history:",em=`${e_}v2:`,ew=`${e_}replay:v2:`,ey=`${e_}destination:v1:`;function eb(e,t){try{return e()}catch(e){return console.warn("Could not update the run history.",e),t}}function ev(e){if(typeof window>"u")return null;let t=e?.app_id;if(null==t||""===t)return null;try{return window.localStorage?`${em}${t}${e?.username?`:user:${encodeURIComponent(e.username)}`:""}`:null}catch{return null}}function ek(e){let t,n=(t=ev(e))?t.replace(em,ey):null;if(!n)return{type:"browser"};try{let e=JSON.parse(window.localStorage.getItem(n)||"null");return"string"==typeof e?.bucket_id?"bucket"===e.type?{type:"bucket",bucket_id:e.bucket_id}:{type:"browser",bucket_id:e.bucket_id}:{type:"browser"}}catch{return{type:"browser"}}}function e$(e){try{let t=JSON.parse(window.localStorage.getItem(e)||"[]");return Array.isArray(t)&&t.length&&Date.parse(t[0]?.started_at)||0}catch{return 0}}function eS(e){let t=Object.keys(window.localStorage).filter(e=>e.startsWith(e_));for(let n of[...t.filter(e=>!e.startsWith(em)&&!e.startsWith(ew)&&!e.startsWith(ey)),...t.filter(t=>t.startsWith(em)&&t!==e).sort((e,t)=>e$(t)-e$(e)).slice(7)])try{window.localStorage.removeItem(n),window.sessionStorage.removeItem(n.replace(em,ew))}catch{}}function eE(e){let t=new WeakSet;try{return JSON.parse(JSON.stringify(e,(e,n)=>{if("bigint"==typeof n)return n.toString();if("object"==typeof n&&n){if(t.has(n))return"[Circular]";t.add(n)}return n}))}catch{return"[Unserializable value]"}}function ex(e){let t=ev(e);if(!t)return[];try{let e=JSON.parse(window.localStorage.getItem(t)||"[]");return Array.isArray(e)?e:[]}catch{return[]}}function ej(e,t){let n=ev(e);if(!n)return;let i=t.slice(0,100),a=!1;for(;i.length>0;)try{window.localStorage.setItem(n,JSON.stringify(i));return}catch{if(!a){a=!0,eS(n);continue}i=i.slice(0,-1)}try{window.localStorage.removeItem(n)}catch{}}function eO(){if(!(typeof window>"u"))try{window.dispatchEvent(new Event("gradio:run-history-change"))}catch{}}var eP=new Map,eD=new Map;function eT(e,t){let n=t.time||new Date;e.completed_at=n.toISOString(),e.duration_ms=(!e.streamed&&"number"==typeof t.cache_duration&&t.cache_duration>=0?1e3*t.cache_duration:null)??Math.max(0,n.getTime()-Date.parse(e.process_started_at||e.started_at))}function eA(e,t={},n,i,a,r){try{var s;let{token:_}=this.options,{fetch:m,app_reference:w,config:y,session_hash:b,api_info:v,api_map:k,stream_status:$,pending_stream_messages:S,pending_diff_streams:E,event_callbacks:x,unclosed_events:j,post_data:O,options:P,api_prefix:D}=this,T=this;if(!v)throw Error("No API information is available for this app. This can happen when the app's `/info` endpoint cannot be reached, or when the app is running a legacy version of Gradio that is not supported by this client. ");if(!y)throw Error("Could not resolve app config");let C=y.root,{fn_index:q,endpoint_info:N,dependency:U}=function(e,t,n,i){let a,r,s;if("number"==typeof t)a=t,r=e.unnamed_endpoints[a],s=i.dependencies.find(e=>e.id==t);else{let o=t.replace(/^\//,"");a=n[o],r=e.named_endpoints[t.trim()]??e.named_endpoints[`/${o}`],s=i.dependencies.find(e=>e.id==n[o])}if("number"!=typeof a||!s){let e=i.dependencies.filter(e=>e.api_name).map(e=>`"/${e.api_name}"`).join(", ");throw Error(`No endpoint matching ${JSON.stringify(t)} was found. `+(e?`Valid named endpoints are: ${e}. `:"This app exposes no named endpoints. ")+"An fn_index (number) of an existing dependency can also be used.")}return{fn_index:a,endpoint_info:r,dependency:s}}(v,e,k,y),I=((e=[],t)=>{let n=t?t.parameters:[];if(Array.isArray(e))return t&&n.length>0&&e.length>n.length&&console.warn("Too many arguments provided for the endpoint."),e;let i=[],a=Object.keys(e);return n.forEach((t,n)=>{if(e.hasOwnProperty(t.parameter_name))i[n]=e[t.parameter_name];else if(t.parameter_has_default)i[n]=t.parameter_default;else throw Error(`No value provided for required parameter: ${t.parameter_name}`)}),a.forEach(e=>{if(!n.some(t=>t.parameter_name===e))throw Error(`Parameter \`${e}\` is not a valid keyword argument. Please refer to the API for usage.`)}),i.forEach((e,t)=>{if(void 0===e&&!n[t].parameter_has_default)throw Error(`No value provided for required parameter: ${n[t].parameter_name}`)}),i})(t,N),z=y.protocol??"ws";if("ws"===z)throw Error("This app appears to be running a legacy version of Gradio (3.x or earlier) that communicates over WebSockets, which is not supported by this version of @gradio/client. Please upgrade the app to a newer version of Gradio, or connect to it with @gradio/client version 0.x.");let L="string"==typeof U.api_name?`/${U.api_name}`:e,R="string"==typeof U.api_name?`/${U.api_name}`:`Function ${q}`,B=e=>{let t=y.components.find(t=>t.id===e);return t?{type:t.type,component_class_id:t.component_class_id,props:t.props}:null},J="public"===U.api_visibility,G=!1!==y.run_history&&!1!==this.options.record_history,H={app_id:y.app_id,username:y.username},K=eb(()=>ek(H),{type:"browser"}),Y={...r||{"x-gradio-user":"api"},...G&&"bucket"===K.type?{"x-gradio-history-bucket":K.bucket_id}:{}},Z=G&&J?(s={...H,endpoint:L,api_name:R,fn_index:q,inputs:M(I,U,y.components,"input",!0),input_components:U.inputs.map(B),output_components:U.outputs.map(B)},eb(()=>(function(e){if("bucket"===ek(e).type)return null;let t=ev(e);if(!t)return null;eS(t);let n={id:"u">typeof crypto&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`,endpoint:e.endpoint,api_name:e.api_name,fn_index:e.fn_index,page:`${window.location.pathname}${window.location.search}`,inputs:eE(e.inputs),outputs:null,...e.input_components?{input_components:eE(e.input_components)}:{},...e.output_components?{output_components:eE(e.output_components)}:{},status:"running",started_at:new Date().toISOString()};return ej(e,[n,...ex(e)]),eO(),n.id})(s),null)):null,V,Q="",X="number"==typeof e?"/predict":e,ee,et=null,en=!1,ei={},ea="u">typeof window&&"u">typeof document?new URLSearchParams(window.location.search).toString():"",er=P?.events?.reduce((e,t)=>(e[t]=!0,e),{})||{};function o(e){var t;eb(()=>(function(e,t,n){if(!t)return;let i=ex(e),a=i.find(e=>e.id===t);if(!a)return;let r=!1;if("data"===n.type)a.outputs=eE(n.data),eD.set(t,a.outputs);else if("status"===n.type&&"process_starts"===n.original_msg)!function(e,t){if(e.process_started_at)return;let n=t||new Date;e.process_started_at=n.toISOString(),e.queued_ms=Math.max(0,n.getTime()-Date.parse(e.started_at))}(a,n.time);else if("status"===n.type&&("generating"===n.stage||"streaming"===n.stage))a.streamed=!0;else if("status"===n.type&&"complete"===n.stage)a.status="completed",eT(a,n),r=!0;else{if("status"!==n.type||"error"!==n.stage)return;a.status="failed",a.error="string"==typeof n.message?n.message:JSON.stringify(n.message||"Unknown error"),eT(a,n),r=!0}if(r)eD.has(t)&&(a.outputs=eD.get(t)),eD.delete(t),eP.delete(t);else if(a.streamed){if(Date.now()-(eP.get(t)??0)<500)return;eP.set(t,Date.now()),eD.delete(t)}ej(e,i)})(H,Z,e),void 0),("data"===e.type||"render"===e.type)&&W(e.data,C,D,T.jwt),(a||er[e.type])&&(t=e,f({value:t,done:!1}))}async function c(){let e={},t={};e={event_id:et},t={event_id:et,session_hash:b,fn_index:q};try{if(!y)throw Error("Could not resolve app config");"event_id"in t&&await m(`${y.root}${D}/cancel`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(t)}),await m(`${y.root}${D}/reset`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(e)})}catch{console.warn("The `/reset` endpoint could not be called. Subsequent endpoint results may be unreliable.")}}let es=async e=>{await this._resolve_heartbeat(e)};async function p(e){if(!y)return;let t=e.render_id;y.components=[...y.components.filter(e=>e.props.rendered_in!==t),...e.components],y.dependencies=[...y.dependencies.filter(e=>e.rendered_in!==t),...e.dependencies];let n=y.components.some(e=>"state"===e.type),i=y.dependencies.some(e=>e.targets.some(e=>"unload"===e[1]));y.connect_heartbeat=n||i,await es(y),o({type:"render",data:e,endpoint:X,fn_index:q})}let eo=this.handle_blob(y.root,I,N).then(async e=>{let t=M(e,U,y.components,"input",!0);if(a=t||[],eb(()=>(function(e,t,n){if(!t)return;let i=ex(e),a=i.find(e=>e.id===t);a&&(a.inputs=eE(n),ej(e,i))})(H,Z,a),void 0),ee={data:t||[],event_data:n,fn_index:q,trigger_id:i,...P.oauth_token&&N?.oauth_token?{oauth_token:P.oauth_token}:{}},F(q,y))o({type:"status",endpoint:X,stage:"pending",queue:!1,fn_index:q,time:new Date}),O(`${y.root}${D}/run${X.startsWith("/")?X:`/${X}`}${ea?"?"+ea:""}`,{...ee,session_hash:b},Y).then(async([e,t])=>{let a=e.data;if(200==t)o({type:"data",endpoint:X,fn_index:q,data:M(a,U,y.components,"output",P.with_null_state),time:new Date,event_data:n,trigger_id:i}),e.render_config&&await p(e.render_config),o({type:"status",endpoint:X,fn_index:q,stage:"complete",eta:e.average_duration,queue:!1,time:new Date});else{let t=e?.error===h;o({type:"status",stage:"error",endpoint:X,fn_index:q,message:e.error,broken:t,queue:!1,time:new Date})}}).catch(e=>{o({type:"status",stage:"error",message:e.message,endpoint:X,fn_index:q,queue:!1,time:new Date})});else if("sse"==z){o({type:"status",stage:"pending",queue:!0,endpoint:X,fn_index:q,time:new Date});var a,r=new URLSearchParams({fn_index:q.toString(),session_hash:b}).toString();let e=new URL(`${y.root}${D}/${l}?${ea?ea+"&":""}${r}`);if(this.jwt&&e.searchParams.set("__sign",this.jwt),!(V=this.stream(e)))return Promise.reject(Error("Cannot connect to SSE endpoint: "+e.toString()));V.onmessage=async function(e){let{type:t,status:a,data:r}=A(JSON.parse(e.data),ei[q]);if("update"===t&&a&&!en)o({type:"status",endpoint:X,fn_index:q,time:new Date,...a}),"error"===a.stage&&(V?.close(),u());else if("data"===t){let[e,t]=await O(`${y.root}${D}/queue/data`,{...ee,session_hash:b,event_id:et},Y);200!==t&&(o({type:"status",stage:"error",message:h,queue:!0,endpoint:X,fn_index:q,time:new Date}),V?.close(),u())}else"complete"===t?en=a:"log"===t?o({type:"log",title:r.title,log:r.log,level:r.level,endpoint:X,duration:r.duration,visible:r.visible,fn_index:q}):("generating"===t||"streaming"===t)&&o({type:"status",time:new Date,...a,stage:a?.stage,queue:!0,endpoint:X,fn_index:q});r&&(o({type:"data",time:new Date,data:M(r.data,U,y.components,"output",P.with_null_state),endpoint:X,fn_index:q,event_data:n,trigger_id:i}),en&&(o({type:"status",time:new Date,...en,stage:a?.stage,queue:!0,endpoint:X,fn_index:q}),V?.close(),u()))}}else if("sse_v1"==z||"sse_v2"==z||"sse_v2.1"==z||"sse_v3"==z){o({type:"status",stage:"pending",queue:!0,endpoint:X,fn_index:q,time:new Date});let e="";"u">typeof window&&"u">typeof document&&(e=window?.location?.hostname);let t=el(e);return("u">typeof window&&"u">typeof document&&window.parent!=window&&t&&window.supports_zerogpu_headers?new Promise((e,n)=>{let i=new MessageChannel;i.port1.onmessage=({data:t})=>{i.port1.close(),e(t)},window.parent.postMessage("zerogpu-headers",t,[i.port2])}):Promise.resolve(null)).then(e=>{let t={...Y,...e||{}};return O(`${y.root}${D}/queue/join?${ea}`,{...ee,session_hash:b},t)}).then(async([e,t])=>{if(e.event_id&&(Q=e.event_id),503===t)o({type:"status",stage:"error",message:d,queue:!0,endpoint:X,fn_index:q,time:new Date,visible:!0}),u();else if(422===t)o({type:"status",stage:"error",message:e.detail,queue:!0,endpoint:X,fn_index:q,code:"validation_error",time:new Date,visible:!0}),u();else if(200!==t){let t=e?.error===h;o({type:"status",stage:"error",broken:t,message:t?h:e.detail||e.error,queue:!0,endpoint:X,fn_index:q,time:new Date,visible:!0}),u()}else{Q=et=e.event_id;let t=async function(e){try{let{type:n,status:i,data:a,original_msg:r}=A(e,ei[q]);if("heartbeat"==n)return;if("update"===n&&i&&!en)o({type:"status",endpoint:X,fn_index:q,time:new Date,original_msg:r,...i});else if("complete"===n)en=i;else if("unexpected_error"==n||"broken_connection"==n)console.error("Unexpected error",i?.message),o({type:"status",stage:"error",message:i?.message||"An Unexpected Error Occurred!",queue:!0,endpoint:X,broken:"broken_connection"===n,session_not_found:i?.session_not_found,fn_index:q,time:new Date});else{var t;if("log"===n)return void o({type:"log",title:a.title,log:a.log,level:a.level,endpoint:X,duration:a.duration,visible:a.visible,fn_index:q});("generating"===n||"streaming"===n)&&(o({type:"status",time:new Date,...i,stage:i?.stage,queue:!0,endpoint:X,fn_index:q}),a&&"stream"!==U.connection&&["sse_v2","sse_v2.1","sse_v3"].includes(z)&&(t=et,E[t]?a.data.forEach((e,n)=>{var i;let r=(i=n<E[t].length?E[t][n]:null,e.forEach(([e,t,n])=>{i=function(e,t,n,i){if(0===t.length){if("replace"===n)return i;if("append"===n)return e+i;throw Error(`Unsupported action: ${n}`)}let a=e;for(let e=0;e<t.length-1;e++)a=a[t[e]];let r=t[t.length-1];switch(n){case"replace":a[r]=i;break;case"append":a[r]+=i;break;case"add":Array.isArray(a)?a.splice(Number(r),0,i):a[r]=i;break;case"delete":Array.isArray(a)?a.splice(Number(r),1):delete a[r];break;default:throw Error(`Unknown action: ${n}`)}return e}(i,t,e,n)}),i);E[t][n]=r,a.data[n]=r}):(E[t]=[],a.data.forEach((e,n)=>{E[t][n]=e}))))}a&&(o({type:"data",time:new Date,data:M(a.data,U,y.components,"output",P.with_null_state),endpoint:X,fn_index:q}),a.render_config&&await p(a.render_config),en&&(o({type:"status",time:new Date,...en,stage:i?.stage,queue:!0,endpoint:X,fn_index:q}),u())),(i?.stage==="complete"||i?.stage==="error")&&(x[et]&&delete x[et],et in E&&delete E[et],u())}catch(e){console.error("Unexpected client exception",e),o({type:"status",stage:"error",message:"An Unexpected Error Occurred!",queue:!0,endpoint:X,fn_index:q,time:new Date}),["sse_v2","sse_v2.1","sse_v3"].includes(z)&&(eg($,T.abort_controller),$.open=!1,u())}};et in S&&(S[et].forEach(e=>t(e)),delete S[et]),x[et]=t,j.add(et),$.open||await this.open_stream()}})}});eo.catch(e=>{o({type:"status",stage:"error",message:e instanceof Error?e.message:String(e),queue:!F(q,y),endpoint:X,fn_index:q,time:new Date}),u()});let ec=!1,ep=[],eu=[];function u(){for(ec=!0;eu.length>0;)eu.shift()({value:void 0,done:!0})}function f(e){eu.length>0?eu.shift()(e):ep.push(e)}function g(){return ep.length>0?Promise.resolve(ep.shift()):ec?Promise.resolve({value:void 0,done:!0}):new Promise(e=>eu.push(e))}let ed=(e,t)=>{eo.then(()=>{Q&&this.post_data(`${y.root}${D}/stream/${Q}${e}`,t)},()=>{})},eh={[Symbol.asyncIterator]:()=>eh,next:g,throw:async e=>{var t;return f((t=e,{then:(e,n)=>n(t)})),u(),g()},return:async()=>(u(),{value:void 0,done:!0}),cancel:c,send_chunk:e=>{ed("",{...e,session_hash:this.session_hash})},close_stream:()=>{u(),ed("/close",{})},event_id:()=>Q,wait_for_id:async()=>(await eo,et)};return eh}catch(e){throw console.error("Submit function encountered an error:",e),e}}var eC=class{app_reference;options;deep_link=null;page=null;config;api_prefix="";api_info;api_map={};session_hash=Math.random().toString(36).substring(2);jwt=!1;last_status={};cookies=null;stream_status={open:!1};closed=!1;pending_stream_messages={};pending_diff_streams={};event_callbacks={};unclosed_events=new Set;heartbeat_event=null;abort_controller=null;stream_instance=null;current_payload;get_url_config(e=null){if(!this.config)throw Error(f);null===e&&(e=window.location.href);let t=new URL(this.config.root).pathname.replace(/^\/+|\/+$/g,""),n=new URL(e).pathname.replace(/^\/+|\/+$/g,""),i;return i=n.startsWith(t)?n.substring(t.length).replace(/^\/+|\/+$/g,""):"",this.get_page_config(i)}get_page_config(e){if(!this.config)throw Error(f);let t=this.config;return e in t.page||(e=""),{...t,current_page:e,layout:t.page[e].layout,components:t.components.filter(n=>t.page[e].components.includes(n.id)),dependencies:this.config.dependencies.filter(n=>t.page[e].dependencies.includes(n.id))}}fetch(e,t){let n=new Headers(t?.headers||{});return this&&this.cookies&&n.append("Cookie",this.cookies),this&&this.options.headers&&new Headers(this.options.headers).forEach((e,t)=>{n.append(t,e)}),fetch(e,{...t,headers:n})}stream(e){let t=new Headers;return this&&this.cookies&&t.append("Cookie",this.cookies),this&&this.options.headers&&new Headers(this.options.headers).forEach((e,n)=>{t.append(n,e)}),this&&this.options.token&&t.append("Authorization",`Bearer ${this.options.token}`),this.abort_controller=new AbortController,this.stream_instance=function(e,t={}){let n={close:()=>{console.warn("Method not implemented.")},onerror:null,onmessage:null,onopen:null,readyState:0,url:e.toString(),withCredentials:!1,CONNECTING:0,OPEN:1,CLOSED:2,addEventListener:()=>{throw Error("Method not implemented.")},dispatchEvent:()=>{throw Error("Method not implemented.")},removeEventListener:()=>{throw Error("Method not implemented.")}};return eh(e,t).then(async e=>{n.readyState=n.OPEN;try{for await(let t of e)n.onmessage&&n.onmessage(t);n.readyState=n.CLOSED}catch(e){n.onerror&&n.onerror(e),n.readyState=n.CLOSED}}).catch(e=>{console.error(e),n.onerror&&n.onerror(e),n.readyState=n.CLOSED}),n}(e.toString(),{credentials:this.options.credentials??"same-origin",headers:t,signal:this.abort_controller.signal}),this.stream_instance}view_api;upload_files;upload;handle_blob;post_data;submit;predict;open_stream;resolve_config;resolve_cookies;constructor(e,t={events:["data"]}){this.app_reference=e,this.deep_link=t.query_params?.deep_link||null,this.page=t.query_params?.page??null,t.events||=["data"],b(t),this.options=t,this.current_payload={},t.cookies&&(this.cookies=t.cookies),this.view_api=C.bind(this),this.upload_files=q.bind(this),this.handle_blob=H.bind(this),this.post_data=V.bind(this),this.submit=eA.bind(this),this.predict=Q.bind(this),this.open_stream=ef.bind(this),this.resolve_config=k.bind(this),this.resolve_cookies=S.bind(this),this.upload=U.bind(this),this.fetch=this.fetch.bind(this),this.handle_space_success=this.handle_space_success.bind(this),this.stream=this.stream.bind(this)}async init(){(function(){if(!("u">typeof window&&"u">typeof document&&"function"==typeof window.addEventListener)||ec)return;window.addEventListener("message",e=>{e.data===eo&&(window.supports_zerogpu_headers=!0)}),ec=!0;let e=el(window.location.hostname);e&&window.parent!==window&&window.parent.postMessage(eo,e)})(),this.options.auth&&await this.resolve_cookies(),await this._resolve_config().then(e=>e?.config&&this._resolve_heartbeat(e.config));try{this.api_info=await this.view_api()}catch(e){console.error(e.message)}this.api_map=v(this.config?.dependencies||[])}async _resolve_heartbeat(e){if(this.config=e,this.api_prefix=e.api_prefix||"",e.space_id&&this.options.token&&(this.jwt=await y(e.space_id,this.options.token,this.cookies)),G(this.config,this.jwt),this.config&&this.config.connect_heartbeat){let e=new URL(`${this.config.root}${this.api_prefix}/heartbeat/${this.session_hash}`);this.jwt&&e.searchParams.set("__sign",this.jwt),this.heartbeat_event||=this.stream(e)}}static async connect(e,t={events:["data"]}){let n=new this(e,t);return t.session_hash&&(n.session_hash=t.session_hash),await n.init(),n}async reconnect(){let e=new URL(`${this.config.root}${this.api_prefix}/app_id`),t;try{let n=await this.fetch(e);if(!n.ok)throw Error();t=(await n.json()).app_id}catch{return"broken"}return t===this.config.app_id?"connected":"changed"}close(){this.closed=!0,eg(this.stream_status,this.abort_controller)}async refresh(){if(!this.config)throw Error(f);let e=await this.resolve_config(this.config.root,!1);if(!e)throw Error(f);this.config=e,this.api_prefix=e.api_prefix||"",this.api_map=v(e.dependencies||[]),G(this.config,this.jwt);try{this.api_info=await this.view_api()}catch(e){console.error(g+e.message)}return this.get_url_config()}set_current_payload(e){this.current_payload=e}static async duplicate(e,t={events:["data"]}){return es(e,t)}async _resolve_config(){let e,{http_protocol:t,host:n,space_id:i}=await D(this.app_reference,this.options.token),{status_callback:a}=this.options;i&&a&&await ee(i,a);try{let i=`${t}//${n}`;if(!(e=await this.resolve_config(i)))throw Error(f);return this.config_success(e)}catch(e){if(i&&a)X(i,O.test(i)?"space_name":"subdomain",this.handle_space_success);else throw a&&a({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),e instanceof Error?e:Error(String(e))}}async config_success(e){var t;if(this.config=e,this.api_prefix=e.api_prefix||"",!1===e.run_history&&(t={app_id:e.app_id,username:e.username},eb(()=>(function(e){let t=ev(e);if(t){try{window.localStorage.removeItem(t)}catch{}eO()}})(t),void 0)),this.config.auth_required)return this.prepare_return_obj();try{this.api_info=await this.view_api()}catch(e){console.error(g+e.message)}return this.prepare_return_obj()}async handle_space_success(e){if(!this)throw Error(f);let{status_callback:t}=this.options;if(t&&t(e),"running"===e.status)try{if(this.config=await this._resolve_config(),this.api_prefix=this?.config?.api_prefix||"",!this.config)throw Error(f);return await this.config_success(this.config)}catch(e){throw t&&t({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),e}}async component_server(e,t,n){let i;if(!this.config)throw Error(f);let a={},{token:r}=this.options,{session_hash:s}=this;r&&(a.Authorization=`Bearer ${this.options.token}`);let o,c=this.config.components.find(t=>t.id===e);if(o=c?.props?.root_url?c.props.root_url:this.config.root,"object"==typeof n&&n&&"binary"in n){for(let e in i=new FormData,n.data)"binary"!==e&&i.append(e,n.data[e]);i.set("component_id",e.toString()),i.set("fn_name",t),i.set("session_hash",s)}else i=JSON.stringify({data:n,component_id:e,fn_name:t,session_hash:s}),a["Content-Type"]="application/json";r&&(a.Authorization=`Bearer ${r}`);try{let e=await this.fetch(`${o}${this.api_prefix}/component_server/`,{method:"POST",body:i,headers:a,credentials:this.options.credentials??"same-origin"});if(!e.ok)throw Error("Could not connect to component server: "+e.statusText);let t=await e.json();return W(t,this.config.root,this.config.api_prefix||"",this.jwt),t}catch(e){console.warn(e)}}set_cookies(e){this.cookies=j(e).join("; ")}prepare_return_obj(){return{config:this.config,predict:this.predict,submit:this.submit,view_api:this.view_api,component_server:this.component_server}}};e.s(["Client",0,eC,"handle_file",0,function(e){if("string"==typeof e){if(e.startsWith("http://")||e.startsWith("https://"))return{path:e,url:e,orig_name:e.split("/").pop()??"unknown",meta:{_type:"gradio.FileData"}};if(L)return new z("upload_file",{path:e,name:e,orig_path:e})}else if("u">typeof File&&e instanceof File)return e;else if(globalThis.Buffer&&e instanceof globalThis.Buffer)return new Blob([e]);else if(e instanceof Blob)return e;throw Error("Invalid input: must be a URL, File, Blob, or Buffer object.")},"t",0,(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports)])}]);
_next/static/chunks/0ti9ckwa4zszn.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16545,A=>{"use strict";var I=A.i(47167),g=({get url(){return A.F("node_modules/@huggingface/hub/dist/browser/sha256-wrapper-DYTB3MXW.mjs")},env:{DEV:!1,PROD:!0,MODE:"production",BASE_URL:"/",SSR:!1}}.url,function(A={}){A.ready=new Promise((A,I)=>{g=A,B=I});var g,B,E,i,n,C,a,t=Object.assign({},A),Q="object"==typeof window,c="function"==typeof importScripts;"object"==typeof I.default&&"object"==typeof I.default.versions&&I.default.versions.node;var o="";(Q||c)&&(c?o=self.location.href:"u">typeof document&&document.currentScript&&(o=document.currentScript.src),o=o.startsWith("blob:")?"":o.substr(0,o.replace(/[?#].*/,"").lastIndexOf("/")+1),c&&(E=A=>{var I=new XMLHttpRequest;return I.open("GET",A,!1),I.responseType="arraybuffer",I.send(null),new Uint8Array(I.response)})),A.print||console.log.bind(console);var e=A.printErr||console.error.bind(console);Object.assign(A,t),t=null,A.arguments&&A.arguments,A.thisProgram&&A.thisProgram,A.quit&&A.quit,A.wasmBinary&&(i=A.wasmBinary),"object"!=typeof WebAssembly&&D("no native wasm support detected");var d=!1,r=[],s=[],y=[],h=0,H=null;function D(I){A.onAbort?.(I),e(I="Aborted("+I+")"),d=!0,I+=". Build with -sASSERTIONS for more info.";var g=new WebAssembly.RuntimeError(I);throw B(g),g}var R="data:application/octet-stream;base64,";(n="data:application/octet-stream;base64,AGFzbQEAAAABHQZgAX8AYAABf2AAAGABfwF/YAJ/fwBgA39/fwF/Aw0MAgAEAgMBBQABAQADBAUBcAEBAQUGAQGAAoACBg4CfwFB8IuEBAt/AUEACweYAQoGbWVtb3J5AgARX193YXNtX2NhbGxfY3RvcnMAAAtIYXNoX1VwZGF0ZQABCkhhc2hfRmluYWwAAwlIYXNoX0luaXQABAxHZXRCdWZmZXJQdHIABRlfX2luZGlyZWN0X2Z1bmN0aW9uX3RhYmxlAQAJc3RhY2tTYXZlAAkMc3RhY2tSZXN0b3JlAAoKc3RhY2tBbGxvYwALCossDAIAC+4CAgV/AX5BACgCwAoiASABKQNAIgYgAK18NwNAAkACQAJAIAanQT9xIgINAEGACyEBIAAhAgwBC0HAACACayEDAkAgAEUNACADIAAgAyAASRshBCABIAJqIQVBACEBA0AgBSABIgFqQYALIAFqLQAAOgAAIAFBAWoiAiEBIAIgBEcNAAsLAkACQCAAIANJIgRFDQBBgAshASAAIQIMAQtBACgCwAoiAUHIAGogARACQYALIANqIQEgACADayECCyABIQEgAiECIAQNAQsgASEBAkACQCACIgJBwABPDQAgASEFIAIhAAwBCyACIQIgASEEA0BBACgCwApByABqIAQiBBACIAJBQGoiASECIARBwABqIgUhBCAFIQUgASEAIAFBP0sNAAsLIAUhBSAAIgBFDQBBACEBQQAhAgNAQQAoAsAKIAEiAWogBSABai0AADoAACACQQFqIgJB/wFxIgQhASACIQIgACAESw0ACwsLqCEBK38gACgCCCICIAAoAgQiAyAAKAIAIgRzcSADIARxcyAEQR53IARBE3dzIARBCndzaiAAKAIQIgVBGncgBUEVd3MgBUEHd3MgACgCHCIGaiAAKAIYIgcgACgCFCIIcyAFcSAHc2ogASgCACIJQRh0IAlBgP4DcUEIdHIgCUEIdkGA/gNxIAlBGHZyciIKakGY36iUBGoiC2oiCSAEcyADcSAJIARxcyAJQR53IAlBE3dzIAlBCndzaiAHIAEoAgQiDEEYdCAMQYD+A3FBCHRyIAxBCHZBgP4DcSAMQRh2cnIiDWogCyAAKAIMIg5qIg8gCCAFc3EgCHNqIA9BGncgD0EVd3MgD0EHd3NqQZGJ3YkHaiIQaiIMIAlzIARxIAwgCXFzIAxBHncgDEETd3MgDEEKd3NqIAggASgCCCILQRh0IAtBgP4DcUEIdHIgC0EIdkGA/gNxIAtBGHZyciIRaiAQIAJqIhIgDyAFc3EgBXNqIBJBGncgEkEVd3MgEkEHd3NqQc/3g657aiITaiILIAxzIAlxIAsgDHFzIAtBHncgC0ETd3MgC0EKd3NqIAUgASgCDCIQQRh0IBBBgP4DcUEIdHIgEEEIdkGA/gNxIBBBGHZyciIUaiATIANqIhMgEiAPc3EgD3NqIBNBGncgE0EVd3MgE0EHd3NqQaW3181+aiIVaiIQIAtzIAxxIBAgC3FzIBBBHncgEEETd3MgEEEKd3NqIA8gASgCECIWQRh0IBZBgP4DcUEIdHIgFkEIdkGA/gNxIBZBGHZyciIXaiAVIARqIhYgEyASc3EgEnNqIBZBGncgFkEVd3MgFkEHd3NqQduE28oDaiIYaiIPIBBzIAtxIA8gEHFzIA9BHncgD0ETd3MgD0EKd3NqIAEoAhQiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiGSASaiAYIAlqIhIgFiATc3EgE3NqIBJBGncgEkEVd3MgEkEHd3NqQfGjxM8FaiIYaiIJIA9zIBBxIAkgD3FzIAlBHncgCUETd3MgCUEKd3NqIAEoAhgiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiGiATaiAYIAxqIhMgEiAWc3EgFnNqIBNBGncgE0EVd3MgE0EHd3NqQaSF/pF5aiIYaiIMIAlzIA9xIAwgCXFzIAxBHncgDEETd3MgDEEKd3NqIAEoAhwiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiGyAWaiAYIAtqIhYgEyASc3EgEnNqIBZBGncgFkEVd3MgFkEHd3NqQdW98dh6aiIYaiILIAxzIAlxIAsgDHFzIAtBHncgC0ETd3MgC0EKd3NqIAEoAiAiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiHCASaiAYIBBqIhIgFiATc3EgE3NqIBJBGncgEkEVd3MgEkEHd3NqQZjVnsB9aiIYaiIQIAtzIAxxIBAgC3FzIBBBHncgEEETd3MgEEEKd3NqIAEoAiQiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiHSATaiAYIA9qIhMgEiAWc3EgFnNqIBNBGncgE0EVd3MgE0EHd3NqQYG2jZQBaiIYaiIPIBBzIAtxIA8gEHFzIA9BHncgD0ETd3MgD0EKd3NqIAEoAigiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiHiAWaiAYIAlqIhYgEyASc3EgEnNqIBZBGncgFkEVd3MgFkEHd3NqQb6LxqECaiIYaiIJIA9zIBBxIAkgD3FzIAlBHncgCUETd3MgCUEKd3NqIAEoAiwiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiHyASaiAYIAxqIhIgFiATc3EgE3NqIBJBGncgEkEVd3MgEkEHd3NqQcP7sagFaiIYaiIMIAlzIA9xIAwgCXFzIAxBHncgDEETd3MgDEEKd3NqIAEoAjAiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiICATaiAYIAtqIhMgEiAWc3EgFnNqIBNBGncgE0EVd3MgE0EHd3NqQfS6+ZUHaiIYaiILIAxzIAlxIAsgDHFzIAtBHncgC0ETd3MgC0EKd3NqIAEoAjQiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiISAWaiAYIBBqIhAgEyASc3EgEnNqIBBBGncgEEEVd3MgEEEHd3NqQf7j+oZ4aiIYaiIWIAtzIAxxIBYgC3FzIBZBHncgFkETd3MgFkEKd3NqIAEoAjgiFUEYdCAVQYD+A3FBCHRyIBVBCHZBgP4DcSAVQRh2cnIiIiASaiAYIA9qIg8gECATc3EgE3NqIA9BGncgD0EVd3MgD0EHd3NqQaeN8N55aiIVaiISIBZzIAtxIBIgFnFzIBJBHncgEkETd3MgEkEKd3NqIAEoAjwiAUEYdCABQYD+A3FBCHRyIAFBCHZBgP4DcSABQRh2cnIiIyATaiAVIAlqIgEgDyAQc3EgEHNqIAFBGncgAUEVd3MgAUEHd3NqQfTi74x8aiIJaiEVIBIhGCAWISQgCyElIAkgDGohJiABIScgDyEoIBAhKSAjISMgIiEiICEhISAgISAgHyEfIB4hHiAdIR0gHCEcIBshGyAaIRogGSEZIBchFyAUIRQgESERIA0hECAKIQxBgAkhAUEQISoDQCAVIgkgGCIKcyAkIitxIAkgCnFzIAlBHncgCUETd3MgCUEKd3NqIBAiEEEZdyAQQQ53cyAQQQN2cyAMaiAdIh1qICIiFkEPdyAWQQ13cyAWQQp2c2oiDCApaiAmIhIgJyIPICgiE3NxIBNzaiASQRp3IBJBFXdzIBJBB3dzaiABIgEoAgBqIiRqIgsgCXMgCnEgCyAJcXMgC0EedyALQRN3cyALQQp3c2ogESIYQRl3IBhBDndzIBhBA3ZzIBBqIB4iHmogIyIVQQ93IBVBDXdzIBVBCnZzaiINIBNqIAEoAgRqICQgJWoiEyASIA9zcSAPc2ogE0EadyATQRV3cyATQQd3c2oiJWoiECALcyAJcSAQIAtxcyAQQR53IBBBE3dzIBBBCndzaiAUIiRBGXcgJEEOd3MgJEEDdnMgGGogHyIfaiAMQQ93IAxBDXdzIAxBCnZzaiIRIA9qIAEoAghqICUgK2oiGCATIBJzcSASc2ogGEEadyAYQRV3cyAYQQd3c2oiJWoiDyAQcyALcSAPIBBxcyAPQR53IA9BE3dzIA9BCndzaiAXIhdBGXcgF0EOd3MgF0EDdnMgJGogICIgaiANQQ93IA1BDXdzIA1BCnZzaiIUIBJqIAEoAgxqICUgCmoiCiAYIBNzcSATc2ogCkEadyAKQRV3cyAKQQd3c2oiJWoiEiAPcyAQcSASIA9xcyASQR53IBJBE3dzIBJBCndzaiATIBkiJEEZdyAkQQ53cyAkQQN2cyAXaiAhIiFqIBFBD3cgEUENd3MgEUEKdnNqIhdqIAEoAhBqICUgCWoiEyAKIBhzcSAYc2ogE0EadyATQRV3cyATQQd3c2oiJWoiCSAScyAPcSAJIBJxcyAJQR53IAlBE3dzIAlBCndzaiABKAIUIBoiGkEZdyAaQQ53cyAaQQN2cyAkaiAWaiAUQQ93IBRBDXdzIBRBCnZzaiIZaiAYaiAlIAtqIhggEyAKc3EgCnNqIBhBGncgGEEVd3MgGEEHd3NqIiVqIgsgCXMgEnEgCyAJcXMgC0EedyALQRN3cyALQQp3c2ogASgCGCAbIiRBGXcgJEEOd3MgJEEDdnMgGmogFWogF0EPdyAXQQ13cyAXQQp2c2oiGmogCmogJSAQaiIKIBggE3NxIBNzaiAKQRp3IApBFXdzIApBB3dzaiIlaiIQIAtzIAlxIBAgC3FzIBBBHncgEEETd3MgEEEKd3NqIAEoAhwgHCIcQRl3IBxBDndzIBxBA3ZzICRqIAxqIBlBD3cgGUENd3MgGUEKdnNqIhtqIBNqICUgD2oiJCAKIBhzcSAYc2ogJEEadyAkQRV3cyAkQQd3c2oiE2oiDyAQcyALcSAPIBBxcyAPQR53IA9BE3dzIA9BCndzaiABKAIgIB1BGXcgHUEOd3MgHUEDdnMgHGogDWogGkEPdyAaQQ13cyAaQQp2c2oiHGogGGogEyASaiIYICQgCnNxIApzaiAYQRp3IBhBFXdzIBhBB3dzaiITaiISIA9zIBBxIBIgD3FzIBJBHncgEkETd3MgEkEKd3NqIAEoAiQgHkEZdyAeQQ53cyAeQQN2cyAdaiARaiAbQQ93IBtBDXdzIBtBCnZzaiIdaiAKaiATIAlqIgkgGCAkc3EgJHNqIAlBGncgCUEVd3MgCUEHd3NqIgpqIhMgEnMgD3EgEyAScXMgE0EedyATQRN3cyATQQp3c2ogASgCKCAfQRl3IB9BDndzIB9BA3ZzIB5qIBRqIBxBD3cgHEENd3MgHEEKdnNqIh5qICRqIAogC2oiCiAJIBhzcSAYc2ogCkEadyAKQRV3cyAKQQd3c2oiJGoiCyATcyAScSALIBNxcyALQR53IAtBE3dzIAtBCndzaiABKAIsICBBGXcgIEEOd3MgIEEDdnMgH2ogF2ogHUEPdyAdQQ13cyAdQQp2c2oiH2ogGGogJCAQaiIYIAogCXNxIAlzaiAYQRp3IBhBFXdzIBhBB3dzaiIkaiIQIAtzIBNxIBAgC3FzIBBBHncgEEETd3MgEEEKd3NqIAEoAjAgIUEZdyAhQQ53cyAhQQN2cyAgaiAZaiAeQQ93IB5BDXdzIB5BCnZzaiIgaiAJaiAkIA9qIiQgGCAKc3EgCnNqICRBGncgJEEVd3MgJEEHd3NqIg9qIgkgEHMgC3EgCSAQcXMgCUEedyAJQRN3cyAJQQp3c2ogASgCNCAWQRl3IBZBDndzIBZBA3ZzICFqIBpqIB9BD3cgH0ENd3MgH0EKdnNqIiFqIApqIA8gEmoiDyAkIBhzcSAYc2ogD0EadyAPQRV3cyAPQQd3c2oiCmoiEiAJcyAQcSASIAlxcyASQR53IBJBE3dzIBJBCndzaiABKAI4IBVBGXcgFUEOd3MgFUEDdnMgFmogG2ogIEEPdyAgQQ13cyAgQQp2c2oiImogGGogCiATaiITIA8gJHNxICRzaiATQRp3IBNBFXdzIBNBB3dzaiIYaiIWIBJzIAlxIBYgEnFzIBZBHncgFkETd3MgFkEKd3NqIAEoAjwgDEEZdyAMQQ53cyAMQQN2cyAVaiAcaiAhQQ93ICFBDXdzICFBCnZzaiIKaiAkaiAYIAtqIgsgEyAPc3EgD3NqIAtBGncgC0EVd3MgC0EHd3NqIiZqIishFSAWIRggEiEkIAkhJSAmIBBqIiwhJiALIScgEyEoIA8hKSAKISMgIiEiICEhISAgISAgHyEfIB4hHiAdIR0gHCEcIBshGyAaIRogGSEZIBchFyAUIRQgESERIA0hECAMIQwgAUHAAGohASAqIgpBEGohKiAKQTBJDQALIAAgDyAGajYCHCAAIBMgB2o2AhggACALIAhqNgIUIAAgLCAFajYCECAAIAkgDmo2AgwgACASIAJqNgIIIAAgFiADajYCBCAAICsgBGo2AgAL1AMDBX8BfgF7QQAoAsAKIgAgACgCQCIBQQJ2QQ9xIgJBAnRqIgMgAygCAEF/IAFBA3QiAXRBf3NxQYABIAF0czYCAAJAAkAgAkEOTw0AIAJBAWohAAwBCwJAIAJBDkcNACAAQQA2AjwLIABByABqIAAQAkEAIQALAkAgACIAQQ1LDQBBACgCwAogAEECdCIAakEAQTggAGsQBhoLQQAoAsAKIgAgACkDQCIFpyICQRt0IAJBC3RBgID8B3FyIAJBBXZBgP4DcSACQQN0QRh2cnI2AjwgACAFQh2IpyICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZycjYCOCAAQcgAaiAAEAJBACgCwApBPGohAUEAIQADQCABQQcgACIAa0ECdGoiAiAC/QACACAG/Q0MDQ4PCAkKCwQFBgcAAQIDIAb9DQMCAQAHBgUECwoJCA8ODQwgBv0NDA0ODwgJCgsEBQYHAAECA/0LAgAgAEEEaiICIQAgAkEIRw0ACwJAQQAoAsAKIgMoAmhFDQAgA0HIAGohBEEAIQBBACECA0BBgAsgACIAaiAEIABqLQAAOgAAIAJBAWoiAkH/AXEiASEAIAIhAiADKAJoIAFLDQALCwtxAQJ/QQAoAsAKIgFCADcDQCABQcgAaiECAkAgAEHgAUcNACABQRw2AmggAkEQakEA/QAEsAj9CwIAIAJBAP0ABKAI/QsCAEEADwsgAUEgNgJoIAJBEGpBAP0ABJAI/QsCACACQQD9AASACP0LAgBBAAsFAEGACwvyAgIDfwF+AkAgAkUNACAAIAE6AAAgACACaiIDQX9qIAE6AAAgAkEDSQ0AIAAgAToAAiAAIAE6AAEgA0F9aiABOgAAIANBfmogAToAACACQQdJDQAgACABOgADIANBfGogAToAACACQQlJDQAgAEEAIABrQQNxIgRqIgMgAUH/AXFBgYKECGwiATYCACADIAIgBGtBfHEiBGoiAkF8aiABNgIAIARBCUkNACADIAE2AgggAyABNgIEIAJBeGogATYCACACQXRqIAE2AgAgBEEZSQ0AIAMgATYCGCADIAE2AhQgAyABNgIQIAMgATYCDCACQXBqIAE2AgAgAkFsaiABNgIAIAJBaGogATYCACACQWRqIAE2AgAgBCADQQRxQRhyIgVrIgJBIEkNACABrUKBgICAEH4hBiADIAVqIQEDQCABIAY3AxggASAGNwMQIAEgBjcDCCABIAY3AwAgAUEgaiEBIAJBYGoiAkEfSw0ACwsgAAsGACAAJAELBAAjAQsEACMACwYAIAAkAAsSAQJ/IwAgAGtBcHEiASQAIAELC9ICAgBBgAgLwAJn5glqha5nu3Lzbjw69U+lf1IOUYxoBZur2YMfGc3gW9ieBcEH1Xw2F91wMDlZDvcxC8D/ERVYaKeP+WSkT/q+mC+KQpFEN3HP+8C1pdu16VvCVjnxEfFZpII/ktVeHKuYqgfYAVuDEr6FMSTDfQxVdF2+cv6x3oCnBtybdPGbwcFpm+SGR77vxp3BD8yhDCRvLOktqoR0StypsFzaiPl2UlE+mG3GMajIJwOwx39Zv/ML4MZHkafVUWPKBmcpKRSFCrcnOCEbLvxtLE0TDThTVHMKZbsKanYuycKBhSxykqHov6JLZhqocItLwqNRbMcZ6JLRJAaZ1oU1DvRwoGoQFsGkGQhsNx5Md0gntbywNLMMHDlKqthOT8qcW/NvLmjugo90b2OleBR4yIQIAseM+v++kOtsUKT3o/m+8nhxxgBBwAoLBIAFgAA=").startsWith(R)||(a=n,n=A.locateFile?A.locateFile(a,o):o+a);var F=I=>{for(;I.length>0;)I.shift()(A)};A.noExitRuntime;var N={},q=function(){var I,g,C={env:N,wasi_snapshot_preview1:N};function a(I,g){if(A.HEAP8=new Int8Array(B=(q=I.exports).memory.buffer),A.HEAP16=new Int16Array(B),A.HEAPU8=new Uint8Array(B),A.HEAPU16=new Uint16Array(B),A.HEAP32=new Int32Array(B),A.HEAPU32=new Uint32Array(B),A.HEAPF32=new Float32Array(B),A.HEAPF64=new Float64Array(B),E=q.__wasm_call_ctors,s.unshift(E),h--,A.monitorRunDependencies?.(h),0==h&&H){var B,E,i=H;H=null,i()}return q}if(h++,A.monitorRunDependencies?.(h),A.instantiateWasm)try{return A.instantiateWasm(C,a)}catch(A){e(`Module.instantiateWasm callback failed with error: ${A}`),B(A)}return(I=n,g=function(A){a(A.instance)},Promise.resolve().then(()=>(function(A){if(A==n&&i)return new Uint8Array(i);var I=function(A){if(A.startsWith(R))return function(A){for(var I=atob(A),g=new Uint8Array(I.length),B=0;B<I.length;++B)g[B]=I.charCodeAt(B);return g}(A.slice(R.length))}(A);if(I)return I;if(E)return E(A);throw"both async and sync fetching of the wasm failed"})(I)).then(A=>WebAssembly.instantiate(A,C)).then(g,A=>{e(`failed to asynchronously prepare wasm: ${A}`),D(A)})).catch(B),{}}();function S(){if(!(h>0)){if(A.preRun)for("function"==typeof A.preRun&&(A.preRun=[A.preRun]);A.preRun.length;){var I;I=A.preRun.shift(),r.unshift(I)}F(r),h>0||(A.setStatus?(A.setStatus("Running..."),setTimeout(function(){setTimeout(function(){A.setStatus("")},1),B()},1)):B())}function B(){if(!C&&(C=!0,A.calledRun=!0,!d)){if(F(s),g(A),A.onRuntimeInitialized&&A.onRuntimeInitialized(),A.postRun)for("function"==typeof A.postRun&&(A.postRun=[A.postRun]);A.postRun.length;){var I;I=A.postRun.shift(),y.unshift(I)}F(y)}}}if(A._Hash_Update=I=>(A._Hash_Update=q.Hash_Update)(I),A._Hash_Final=()=>(A._Hash_Final=q.Hash_Final)(),A._Hash_Init=I=>(A._Hash_Init=q.Hash_Init)(I),A._GetBufferPtr=()=>(A._GetBufferPtr=q.GetBufferPtr)(),H=function A(){C||S(),C||(H=A)},A.preInit)for("function"==typeof A.preInit&&(A.preInit=[A.preInit]);A.preInit.length>0;)A.preInit.pop()();return S(),A.ready});async function B(A=!1){let I=A?await self.SHA256WasmModule():await g(),E=I.HEAPU8.subarray(I._GetBufferPtr());return{init(){I._Hash_Init(256)},update(A){let g=0;for(;g<A.byteLength;){let B=Math.min(A.byteLength-g,8388608);E.set(A.subarray(g,g+B)),I._Hash_Update(B),g+=B}},digest(A){if("hex"!==A)throw Error("Only digest hex is supported");return I._Hash_Final(),Array.from(E.slice(0,32)).map(A=>A.toString(16).padStart(2,"0")).join("")}}}A.s(["createSHA256",0,B,"createSHA256WorkerCode",0,function(){return`
2
+ self.addEventListener('message', async (event) => {
3
+ const { file } = event.data;
4
+ const sha256 = await self.createSHA256(true);
5
+ sha256.init();
6
+ const reader = file.stream().getReader();
7
+ const total = file.size;
8
+ let bytesDone = 0;
9
+ while (true) {
10
+ const { done, value } = await reader.read();
11
+ if (done) {
12
+ break;
13
+ }
14
+ sha256.update(value);
15
+ bytesDone += value.length;
16
+ postMessage({ progress: bytesDone / total });
17
+ }
18
+ postMessage({ sha256: sha256.digest('hex') });
19
+ });
20
+ self.SHA256WasmModule = ${g.toString()};
21
+ self.createSHA256 = ${B.toString()};
22
+ `}])}]);
_next/static/chunks/12aruqaur5huj.js ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,55682,(e,t,r)=>{"use strict";r._=function(e){return e&&e.__esModule?e:{default:e}}},90809,(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}r._=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=i?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(o,u,s):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o}},18576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={WarningIcon:function(){return a},errorStyles:function(){return u},errorThemeCss:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});e.r(55682);let i=e.r(43476);e.r(71645);let u={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},s=`
2
+ :root {
3
+ --next-error-bg: #fff;
4
+ --next-error-text: #171717;
5
+ --next-error-title: #171717;
6
+ --next-error-message: #171717;
7
+ --next-error-digest: #666666;
8
+ --next-error-btn-text: #fff;
9
+ --next-error-btn-bg: #171717;
10
+ --next-error-btn-border: none;
11
+ --next-error-btn-secondary-text: #171717;
12
+ --next-error-btn-secondary-bg: transparent;
13
+ --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
14
+ }
15
+ @media (prefers-color-scheme: dark) {
16
+ :root {
17
+ --next-error-bg: #0a0a0a;
18
+ --next-error-text: #ededed;
19
+ --next-error-title: #ededed;
20
+ --next-error-message: #ededed;
21
+ --next-error-digest: #a0a0a0;
22
+ --next-error-btn-text: #0a0a0a;
23
+ --next-error-btn-bg: #ededed;
24
+ --next-error-btn-border: none;
25
+ --next-error-btn-secondary-text: #ededed;
26
+ --next-error-btn-secondary-bg: transparent;
27
+ --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
28
+ }
29
+ }
30
+ body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
31
+ `.replace(/\n\s*/g,"");function a(){return(0,i.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:u.icon,children:(0,i.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68027,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u}}),e.r(55682);let n=e.r(43476);e.r(71645);let o=e.r(12354),i=e.r(18576),u=function({error:e}){let t=e?.digest,r=!!t;return(0,o.handleISRError)({error:e}),(0,n.jsxs)("html",{id:"__next_error__",children:[(0,n.jsx)("head",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:i.errorThemeCss}})}),(0,n.jsxs)("body",{children:[(0,n.jsx)("div",{style:i.errorStyles.container,children:(0,n.jsxs)("div",{style:i.errorStyles.card,children:[(0,n.jsx)(i.WarningIcon,{}),(0,n.jsx)("h1",{style:i.errorStyles.title,children:"This page couldn’t load"}),(0,n.jsx)("p",{style:i.errorStyles.message,children:r?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,n.jsxs)("div",{style:i.errorStyles.buttonGroup,children:[(0,n.jsx)("form",{style:i.errorStyles.form,children:(0,n.jsx)("button",{type:"submit",style:i.errorStyles.button,children:"Reload"})}),!r&&(0,n.jsx)("button",{type:"button",style:i.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),t&&(0,n.jsxs)("p",{style:i.errorStyles.digestFooter,children:["ERROR ",t]})]})]})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},12354,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleISRError",{enumerable:!0,get:function(){return o}});let n=e.r(1425);function o({error:e}){if(n.workAsyncStorage){let t=n.workAsyncStorage.getStore();if(t?.isStaticGeneration)throw e&&console.error(e),e}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},1425,(e,t,r)=>{"use strict";let n,o,i;Object.defineProperty(r,"__esModule",{value:!0});var u={actionAsyncStorage:function(){return n},workAsyncStorage:function(){return o},workUnitAsyncStorage:function(){return i}};for(var s in u)Object.defineProperty(r,s,{enumerable:!0,get:u[s]});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},35451,(e,t,r)=>{var n={156:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var a=[],c=!1,l=-1;function f(){c&&n&&(c=!1,n.length?a=n.concat(a):l=-1,a.length&&d())}function d(){if(!c){var e=s(f);c=!0;for(var t=a.length;t;){for(n=a,a=[];++l<t;)n&&n[l].run();l=-1,t=a.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];a.push(new p(e,t)),1!==a.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}},u=!0;try{n[e](r,r.exports,i),u=!1}finally{u&&delete o[e]}return r.exports}i.ab="/ROOT/node_modules/next/dist/compiled/process/",t.exports=i(156)},47167,(e,t,r)=>{"use strict";var n,o;t.exports=(null==(n=e.g.process)?void 0:n.env)&&"object"==typeof(null==(o=e.g.process)?void 0:o.env)?e.g.process:e.r(35451)},18800,(e,t,r)=>{"use strict";var n=e.r(71645);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal"),a=Symbol.for("react.recoverable"),c=Symbol.for("react.optimistic_key"),l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,r.browser=function(){var e=Error(o(603));return Object.defineProperty(e,"$$typeof",{value:a}),e},r.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==n?null:n===c?c:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},r.flushSync=function(e){var t=l.T,r=u.p;try{if(l.T=null,u.p=2,e)return e()}finally{l.T=t,u.p=r,u.d.f()}},r.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,u.d.C(e,t))},r.prefetchDNS=function(e){"string"==typeof e&&u.d.D(e)},r.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var r=t.as,n=f(r,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,i="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===r?u.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:i}):"script"===r&&u.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:i,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},r.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var r=f(t.as,t.crossOrigin);u.d.M(e,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0})}}else null==t&&u.d.M(e)},r.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var r=t.as,n=f(r,t.crossOrigin);u.d.L(e,r,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},r.preloadModule=function(e,t){if("string"==typeof e)if(t){var r=f(t.as,t.crossOrigin);u.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0})}else u.d.m(e)},r.requestFormReset=function(e){u.d.r(e)},r.unstable_batchedUpdates=function(e,t){return e(t)},r.useFormState=function(e,t,r){return l.H.useFormState(e,t,r)},r.useFormStatus=function(){return l.H.useHostTransitionStatus()},r.version="19.3.0-canary-cbb046ab-20260731"},74080,(e,t,r)=>{"use strict";e.i(47167),!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(18800)},45689,(e,t,r)=>{"use strict";var n=Symbol.for("react.transitional.element");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return{$$typeof:n,type:e,key:o,ref:void 0!==(t=r.ref)?t:null,props:r}}r.Fragment=Symbol.for("react.fragment"),r.jsx=o,r.jsxs=o},43476,(e,t,r)=>{"use strict";e.i(47167),t.exports=e.r(45689)},50740,(e,t,r)=>{"use strict";var n=e.i(47167),o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),h=Symbol.for("react.view_transition"),b=Symbol.iterator,v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function x(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||v}function S(){}function O(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||v}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=x.prototype;var j=O.prototype=new S;j.constructor=O,m(j,x.prototype),j.isPureReactComponent=!0;var E=Array.isArray;function T(){}var w={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function P(e,t,r){var n=r.ref;return{$$typeof:o,type:e,key:t,ref:void 0!==n?n:null,props:r}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function H(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function A(e,t,r){if(null==e)return e;var n=[],u=0;return!function e(t,r,n,u,s){var a,c,l,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case i:d=!0;break;case y:return e((d=t._init)(t._payload),r,n,u,s)}}if(d)return s=s(t),d=""===u?"."+H(t,0):u,E(s)?(n="",null!=d&&(n=d.replace(k,"$&/")+"/"),e(s,r,n,"",function(e){return e})):null!=s&&(C(s)&&(a=s,c=n+(null==s.key||t&&t.key===s.key?"":(""+s.key).replace(k,"$&/")+"/")+d,s=P(a.type,c,a.props)),r.push(s)),1;d=0;var p=""===u?".":u+":";if(E(t))for(var g=0;g<t.length;g++)f=p+H(u=t[g],g),d+=e(u,r,n,f,s);else if("function"==typeof(g=null===(l=t)||"object"!=typeof l?null:"function"==typeof(l=b&&l[b]||l["@@iterator"])?l:null))for(t=g.call(t),g=0;!(u=t.next()).done;)f=p+H(u=u.value,g++),d+=e(u,r,n,f,s);else if("object"===f){if("function"==typeof t.then)return e(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(T,T):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),r,n,u,s);throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}(e,n,"","",function(e){return t.call(r,e,u++)}),n}function M(e){if(-1===e._status){var t=(0,e._result)();t.then(function(r){(0===e._status||-1===e._status)&&(e._status=1,e._result=r,void 0===t.status&&(t.status="fulfilled",t.value=r))},function(r){(0===e._status||-1===e._status)&&(e._status=2,e._result=r,void 0===t.status&&(t.status="rejected",t.reason=r))}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof n.default&&"function"==typeof n.default.emit)return void n.default.emit("uncaughtException",e);console.error(e)};function L(e){var t=w.T,r={};r.types=null!==t?t.types:null,w.T=r;try{var n=e(),o=w.S;null!==o&&o(r,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then(T,I)}catch(e){I(e)}finally{null!==t&&null!==r.types&&(t.types=r.types),w.T=t}}function $(e){var t=w.T;if(null!==t){var r=t.types;null===r?t.types=[e]:-1===r.indexOf(e)&&r.push(e)}else L($.bind(null,e))}r.Activity=g,r.Children={map:A,forEach:function(e,t,r){A(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=x,r.Fragment=u,r.Profiler=a,r.PureComponent=O,r.StrictMode=s,r.Suspense=d,r.ViewTransition=h,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,r.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},r.addTransitionType=$,r.cache=function(e){return function(){return e.apply(null,arguments)}},r.cacheSignal=function(){return null},r.cloneElement=function(e,t,r){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=m({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)R.call(t,i)&&"key"!==i&&"__self"!==i&&"__source"!==i&&("ref"!==i||void 0!==t.ref)&&(n[i]=t[i]);var i=arguments.length-2;if(1===i)n.children=r;else if(1<i){for(var u=Array(i),s=0;s<i;s++)u[s]=arguments[s+2];n.children=u}return P(e.type,o,n)},r.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:c,_context:e},e},r.createElement=function(e,t,r){var n,o={},i=null;if(null!=t)for(n in void 0!==t.key&&(i=""+t.key),t)R.call(t,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return P(e,i,o)},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:f,render:e}},r.isValidElement=C,r.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:M}},r.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},r.startTransition=L,r.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},r.use=function(e){return w.H.use(e)},r.useActionState=function(e,t,r){return w.H.useActionState(e,t,r)},r.useCallback=function(e,t){return w.H.useCallback(e,t)},r.useContext=function(e){return w.H.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},r.useEffect=function(e,t){return w.H.useEffect(e,t)},r.useEffectEvent=function(e){return w.H.useEffectEvent(e)},r.useId=function(){return w.H.useId()},r.useImperativeHandle=function(e,t,r){return w.H.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},r.useMemo=function(e,t){return w.H.useMemo(e,t)},r.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},r.useReducer=function(e,t,r){return w.H.useReducer(e,t,r)},r.useRef=function(e){return w.H.useRef(e)},r.useState=function(e){return w.H.useState(e)},r.useSyncExternalStore=function(e,t,r){return w.H.useSyncExternalStore(e,t,r)},r.useTransition=function(){return w.H.useTransition()},r.version="19.3.0-canary-cbb046ab-20260731"},71645,(e,t,r)=>{"use strict";e.i(47167),t.exports=e.r(50740)},43369,(e,t,r)=>{"use strict";let n;e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var o={getAssetToken:function(){return a},getAssetTokenQuery:function(){return c},getDeploymentId:function(){return u},getDeploymentIdQuery:function(){return s}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});function u(){return n}function s(e=!1){let t=n;return t?`${e?"&":"?"}dpl=${t}`:""}function a(){return!1}function c(e=!1){return""}"u">typeof window?(n=document.documentElement.dataset.dplId,delete document.documentElement.dataset.dplId):n=void 0},42732,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=e.r(55682)._(e.r(71645)).default.createContext({})}]);
_next/static/chunks/13yxs8tvcajse.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/1habozizzlj9h.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,82702,t=>{"use strict";t.s([])}]);
_next/static/chunks/1hxeq3bv8jtz0.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22462,t=>{"use strict";t.s([])}]);
_next/static/chunks/1t4cbqusqp71t.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,16466,t=>{"use strict";let e=(0,t.i(23587).t)((t,e)=>{e.exports={}})();t.s(["default",0,e])}]);
_next/static/chunks/2guqcj1xa9qrm.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27613,t=>{"use strict";t.s([])}]);
_next/static/chunks/3-vxe91e-zk3u.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86860,e=>{"use strict";var t,r=e.i(47167);function n(e,t,r,n,a,s,i,o,l,h){let c=0|r[n],u=0|r[n+1],f=0|r[n+2],d=0|r[n+3],g=0|r[n+4],p=0|r[n+5],y=0|r[n+6],w=0|r[n+7],b=0|r[n+8],m=0|r[n+9],k=0|r[n+10],v=0|r[n+11],U=0|r[n+12],L=0|r[n+13],A=0|r[n+14],x=0|r[n+15],E=0|e[t],S=0|e[t+1],T=0|e[t+2],$=0|e[t+3],C=0|e[t+4],_=0|e[t+5],R=0|e[t+6],I=0|e[t+7],B=0x6a09e667,M=0xbb67ae85,W=0x3c6ef372,z=0xa54ff53a,O=0|o,D=o/0x100000000|0,F=0|l,P=0|h;O^=E=(E+C|0)+c|0,C^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(C=C>>>12|C<<20)|0)+u|0,C^=B=B+(O=O>>>8|O<<24)|0,C=C>>>7|C<<25,D^=S=(S+_|0)+f|0,_^=M=M+(D=D>>>16|D<<16)|0,D^=S=(S+(_=_>>>12|_<<20)|0)+d|0,_^=M=M+(D=D>>>8|D<<24)|0,_=_>>>7|_<<25,F^=T=(T+R|0)+g|0,R^=W=W+(F=F>>>16|F<<16)|0,F^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(F=F>>>8|F<<24)|0,R=R>>>7|R<<25,P^=$=($+I|0)+y|0,I^=z=z+(P=P>>>16|P<<16)|0,P^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(P=P>>>8|P<<24)|0,I=I>>>7|I<<25,P^=E=(E+_|0)+b|0,_^=W=W+(P=P>>>16|P<<16)|0,P^=E=(E+(_=_>>>12|_<<20)|0)+m|0,_^=W=W+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,D^=T=(T+I|0)+U|0,I^=B=B+(D=D>>>16|D<<16)|0,D^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,F^=$=($+C|0)+A|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=$=($+(C=C>>>12|C<<20)|0)+x|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+C|0)+c|0,C^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(C=C>>>12|C<<20)|0)+u|0,C^=B=B+(O=O>>>8|O<<24)|0,C=C>>>7|C<<25,D^=S=(S+_|0)+f|0,_^=M=M+(D=D>>>16|D<<16)|0,D^=S=(S+(_=_>>>12|_<<20)|0)+d|0,_^=M=M+(D=D>>>8|D<<24)|0,_=_>>>7|_<<25,F^=T=(T+R|0)+g|0,R^=W=W+(F=F>>>16|F<<16)|0,F^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(F=F>>>8|F<<24)|0,R=R>>>7|R<<25,P^=$=($+I|0)+y|0,I^=z=z+(P=P>>>16|P<<16)|0,P^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(P=P>>>8|P<<24)|0,I=I>>>7|I<<25,P^=E=(E+_|0)+b|0,_^=W=W+(P=P>>>16|P<<16)|0,P^=E=(E+(_=_>>>12|_<<20)|0)+m|0,_^=W=W+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,D^=T=(T+I|0)+U|0,I^=B=B+(D=D>>>16|D<<16)|0,D^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,F^=$=($+C|0)+A|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=$=($+(C=C>>>12|C<<20)|0)+x|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+C|0)+c|0,C^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(C=C>>>12|C<<20)|0)+u|0,C^=B=B+(O=O>>>8|O<<24)|0,C=C>>>7|C<<25,D^=S=(S+_|0)+f|0,_^=M=M+(D=D>>>16|D<<16)|0,D^=S=(S+(_=_>>>12|_<<20)|0)+d|0,_^=M=M+(D=D>>>8|D<<24)|0,_=_>>>7|_<<25,F^=T=(T+R|0)+g|0,R^=W=W+(F=F>>>16|F<<16)|0,F^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(F=F>>>8|F<<24)|0,R=R>>>7|R<<25,P^=$=($+I|0)+y|0,I^=z=z+(P=P>>>16|P<<16)|0,P^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(P=P>>>8|P<<24)|0,I=I>>>7|I<<25,P^=E=(E+_|0)+b|0,_^=W=W+(P=P>>>16|P<<16)|0,P^=E=(E+(_=_>>>12|_<<20)|0)+m|0,_^=W=W+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,D^=T=(T+I|0)+U|0,I^=B=B+(D=D>>>16|D<<16)|0,D^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,F^=$=($+C|0)+A|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=$=($+(C=C>>>12|C<<20)|0)+x|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+C|0)+c|0,C^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(C=C>>>12|C<<20)|0)+u|0,C^=B=B+(O=O>>>8|O<<24)|0,C=C>>>7|C<<25,D^=S=(S+_|0)+f|0,_^=M=M+(D=D>>>16|D<<16)|0,D^=S=(S+(_=_>>>12|_<<20)|0)+d|0,_^=M=M+(D=D>>>8|D<<24)|0,_=_>>>7|_<<25,F^=T=(T+R|0)+g|0,R^=W=W+(F=F>>>16|F<<16)|0,F^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(F=F>>>8|F<<24)|0,R=R>>>7|R<<25,P^=$=($+I|0)+y|0,I^=z=z+(P=P>>>16|P<<16)|0,P^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(P=P>>>8|P<<24)|0,I=I>>>7|I<<25,P^=E=(E+_|0)+b|0,_^=W=W+(P=P>>>16|P<<16)|0,P^=E=(E+(_=_>>>12|_<<20)|0)+m|0,_^=W=W+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,D^=T=(T+I|0)+U|0,I^=B=B+(D=D>>>16|D<<16)|0,D^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,F^=$=($+C|0)+A|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=$=($+(C=C>>>12|C<<20)|0)+x|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+C|0)+c|0,C^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(C=C>>>12|C<<20)|0)+u|0,C^=B=B+(O=O>>>8|O<<24)|0,C=C>>>7|C<<25,D^=S=(S+_|0)+f|0,_^=M=M+(D=D>>>16|D<<16)|0,D^=S=(S+(_=_>>>12|_<<20)|0)+d|0,_^=M=M+(D=D>>>8|D<<24)|0,_=_>>>7|_<<25,F^=T=(T+R|0)+g|0,R^=W=W+(F=F>>>16|F<<16)|0,F^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(F=F>>>8|F<<24)|0,R=R>>>7|R<<25,P^=$=($+I|0)+y|0,I^=z=z+(P=P>>>16|P<<16)|0,P^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(P=P>>>8|P<<24)|0,I=I>>>7|I<<25,P^=E=(E+_|0)+b|0,_^=W=W+(P=P>>>16|P<<16)|0,P^=E=(E+(_=_>>>12|_<<20)|0)+m|0,_^=W=W+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,D^=T=(T+I|0)+U|0,I^=B=B+(D=D>>>16|D<<16)|0,D^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,F^=$=($+C|0)+A|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=$=($+(C=C>>>12|C<<20)|0)+x|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+C|0)+c|0,C^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(C=C>>>12|C<<20)|0)+u|0,C^=B=B+(O=O>>>8|O<<24)|0,C=C>>>7|C<<25,D^=S=(S+_|0)+f|0,_^=M=M+(D=D>>>16|D<<16)|0,D^=S=(S+(_=_>>>12|_<<20)|0)+d|0,_^=M=M+(D=D>>>8|D<<24)|0,_=_>>>7|_<<25,F^=T=(T+R|0)+g|0,R^=W=W+(F=F>>>16|F<<16)|0,F^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(F=F>>>8|F<<24)|0,R=R>>>7|R<<25,P^=$=($+I|0)+y|0,I^=z=z+(P=P>>>16|P<<16)|0,P^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(P=P>>>8|P<<24)|0,I=I>>>7|I<<25,P^=E=(E+_|0)+b|0,_^=W=W+(P=P>>>16|P<<16)|0,P^=E=(E+(_=_>>>12|_<<20)|0)+m|0,_^=W=W+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,D^=T=(T+I|0)+U|0,I^=B=B+(D=D>>>16|D<<16)|0,D^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,F^=$=($+C|0)+A|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=$=($+(C=C>>>12|C<<20)|0)+x|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25;{let e=c,t=u;c=f,f=d,d=k,k=U,U=m,m=v,v=p,p=e,u=y,y=g,g=w,w=L,L=A,A=x,x=b,b=t}O^=E=(E+C|0)+c|0,C^=B=B+(O=O>>>16|O<<16)|0,O^=E=(E+(C=C>>>12|C<<20)|0)+u|0,C^=B=B+(O=O>>>8|O<<24)|0,C=C>>>7|C<<25,D^=S=(S+_|0)+f|0,_^=M=M+(D=D>>>16|D<<16)|0,D^=S=(S+(_=_>>>12|_<<20)|0)+d|0,_^=M=M+(D=D>>>8|D<<24)|0,_=_>>>7|_<<25,F^=T=(T+R|0)+g|0,R^=W=W+(F=F>>>16|F<<16)|0,F^=T=(T+(R=R>>>12|R<<20)|0)+p|0,R^=W=W+(F=F>>>8|F<<24)|0,R=R>>>7|R<<25,P^=$=($+I|0)+y|0,I^=z=z+(P=P>>>16|P<<16)|0,P^=$=($+(I=I>>>12|I<<20)|0)+w|0,I^=z=z+(P=P>>>8|P<<24)|0,I=I>>>7|I<<25,P^=E=(E+_|0)+b|0,_^=W=W+(P=P>>>16|P<<16)|0,P^=E=(E+(_=_>>>12|_<<20)|0)+m|0,_^=W=W+(P=P>>>8|P<<24)|0,_=_>>>7|_<<25,O^=S=(S+R|0)+k|0,R^=z=z+(O=O>>>16|O<<16)|0,O^=S=(S+(R=R>>>12|R<<20)|0)+v|0,R^=z=z+(O=O>>>8|O<<24)|0,R=R>>>7|R<<25,D^=T=(T+I|0)+U|0,I^=B=B+(D=D>>>16|D<<16)|0,D^=T=(T+(I=I>>>12|I<<20)|0)+L|0,I^=B=B+(D=D>>>8|D<<24)|0,I=I>>>7|I<<25,F^=$=($+C|0)+A|0,C^=M=M+(F=F>>>16|F<<16)|0,F^=$=($+(C=C>>>12|C<<20)|0)+x|0,C^=M=M+(F=F>>>8|F<<24)|0,C=C>>>7|C<<25,i&&(a[s+8]=B^e[t],a[s+9]=M^e[t+1],a[s+10]=W^e[t+2],a[s+11]=z^e[t+3],a[s+12]=O^e[t+4],a[s+13]=D^e[t+5],a[s+14]=F^e[t+6],a[s+15]=P^e[t+7]),a[s]=E^B,a[s+1]=S^M,a[s+2]=T^W,a[s+3]=$^z,a[s+4]=C^O,a[s+5]=_^D,a[s+6]=R^F,a[s+7]=I^P}let a=new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]);new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8,3,4,10,12,13,2,7,14,6,5,9,0,11,15,8,1,10,7,12,9,14,3,13,15,4,0,11,2,5,8,1,6,12,13,9,11,15,10,14,8,7,2,5,3,0,1,6,4,9,14,11,5,8,12,15,1,13,3,0,10,2,6,4,7,11,15,5,0,1,9,8,6,14,10,2,12,3,4,7,13]);let s=4===new Uint8Array(new Uint32Array([0x1020304]).buffer)[0];function i(e,t,r,n,a){let s=a>>>2,i=0;for(;i<s;++i,n+=4){let a=e[t+i];r[n]=255&a,r[n+1]=a>>>8&255,r[n+2]=a>>>16&255,r[n+3]=a>>>24&255}let o=3&a;if(o>0){let a=e[t+i];r[n]=255&a,o>1&&(r[n+1]=a>>>8&255),o>2&&(r[n+2]=a>>>16&255)}}function o(e){return[127&e|128,e>>>7&127]}function l(e){return[127&e|128,e>>>7&127|128,e>>>14&127|128,e>>>21&127|128,e>>>28&15]}function h(e){let t=[],r=0|e,n=!0;for(;n;){let e=127&r;0==(r>>=7)&&(64&e)==0||-1===r&&(64&e)!=0?n=!1:e|=128,t.push(e)}return t}new Uint8Array([0,1,28,2,29,14,24,3,30,22,20,15,25,17,4,8,31,27,13,23,21,19,16,7,26,12,18,6,11,5,10,9]);let c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8,3,4,10,12,13,2,7,14,6,5,9,0,11,15,8,1,10,7,12,9,14,3,13,15,4,0,11,2,5,8,1,6,12,13,9,11,15,10,14,8,7,2,5,3,0,1,6,4,9,14,11,5,8,12,15,1,13,3,0,10,2,6,4,7,11,15,5,0,1,9,8,6,14,10,2,12,3,4,7,13],u=null,f=null,d=null,g=832,p=4928,y=5056,w=5072,b=5088,m=5216,k=7264,v=7328,U=7360;new Uint32Array(512);let L=new Uint32Array(512),A=[];for(let e=0;e<64;e++)A.push(L.subarray(8*e,8*e+8));let x=!1;new Uint32Array(32),new Uint32Array(8),new Uint32Array(8),new Uint32Array(16),new Uint32Array(8),new Uint32Array(32),new Uint32Array(16),new Uint32Array(8),new Uint32Array(4),new Uint32Array(4),new Uint32Array(4),new Uint32Array(4),new Uint8Array(new Uint32Array(8).buffer,0,32),new Uint32Array(4);class E{inputCv;blockWords;counter;blockLen;flags;outputBlock;outputBlockOffset;constructor(e,t,r,n,a){this.inputCv=e,this.blockWords=t,this.counter=r,this.blockLen=n,this.flags=8|a,this.outputBlock=new Uint32Array(16),this.outputBlockOffset=64}read(e){let t=new Uint8Array(e),r=0;for(;r<e;){this.outputBlockOffset>=64&&(n(this.inputCv,0,this.blockWords,0,this.outputBlock,0,!0,this.counter++,this.blockLen,this.flags),this.outputBlockOffset=0);let a=Math.min(64-this.outputBlockOffset,e-r),s=this.outputBlockOffset>>>2;if(0==(3&this.outputBlockOffset)&&a>=4){let e=a>>>2;i(this.outputBlock,s,t,r,e<<2);let n=e<<2;r+=n,this.outputBlockOffset+=n}else{for(let e=0;e<a;e++){let n=this.outputBlockOffset+e>>>2,a=this.outputBlockOffset+e&3;t[r+e]=this.outputBlock[n]>>>(a<<3)&255}r+=a,this.outputBlockOffset+=a}}return t}}class S{chainingValue;chunkCounter;blockWords;blockLen;blocksCompressed;flags;constructor(e,t,r){this.chainingValue=new Uint32Array(e),this.chunkCounter=t,this.blockWords=new Uint32Array(16),this.blockLen=0,this.blocksCompressed=0,this.flags=r}resetTo(e,t,r){this.chainingValue.set(e),this.chunkCounter=t,this.blockLen=0,this.blocksCompressed=0,this.flags=r}startFlag(){return+(0===this.blocksCompressed)}update(e,t,r){let a=0;for(;r>0;){64===this.blockLen&&(n(this.chainingValue,0,this.blockWords,0,this.chainingValue,0,!1,this.chunkCounter,64,this.flags|this.startFlag()),this.blocksCompressed++,this.blockLen=0);let o=Math.min(64-this.blockLen,r);if(0===this.blockLen&&64===o){var s=t,i=this.blockWords;for(let t=0;t<16;++t,s+=4)i[t]=e[s]|e[s+1]<<8|e[s+2]<<16|e[s+3]<<24}else for(let r=0;r<o;r++){let n=this.blockLen+r,a=n>>>2,s=3&n;0===s?this.blockWords[a]=e[t+r]:this.blockWords[a]|=e[t+r]<<(s<<3)}this.blockLen+=o,t+=o,r-=o,a+=o}return a}output(){let e=this.blockLen+3>>>2;for(let t=e;t<16;t++)this.blockWords[t]=0;return{inputCv:this.chainingValue,blockWords:this.blockWords,blockLen:this.blockLen,counter:this.chunkCounter,flags:this.flags|this.startFlag()|2}}len(){return 64*this.blocksCompressed+this.blockLen}}class T{chunkState;keyWords;cvStack;cvStackLen;flags;parentBlock;parentCv;chunkCv;outWords;finalizeCv;constructor(e,t){this.keyWords=new Uint32Array(e||a),this.flags=t??0,this.chunkState=new S(this.keyWords,0,this.flags),this.cvStack=new Uint32Array(432),this.cvStackLen=0,this.parentBlock=new Uint32Array(16),this.parentCv=new Uint32Array(8),this.chunkCv=new Uint32Array(8),this.outWords=new Uint32Array(16),this.finalizeCv=new Uint32Array(8)}reset(){return this.chunkState.resetTo(this.keyWords,0,this.flags),this.cvStackLen=0,this}static newKeyed(e){if(32!==e.length)throw Error(`Key must be 32 bytes, got ${e.length}`);let t=new Uint32Array(8);if(s){let r=new Uint32Array(e.buffer,e.byteOffset,8);t.set(r)}else for(let r=0;r<8;r++){let n=4*r;t[r]=e[n]|e[n+1]<<8|e[n+2]<<16|e[n+3]<<24}return new T(t,16)}static newDeriveKey(e){let t=function(e){if("u">typeof TextEncoder)return new TextEncoder().encode(e);let t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return new Uint8Array(t)}(e),r=new T(new Uint32Array(a),32);r.update(t);let s=new Uint32Array(8),i=r.finalizeOutput();return n(i.inputCv,0,i.blockWords,0,s,0,!1,i.counter,i.blockLen,8|i.flags),new T(s,64)}pushCv(e,t){this.cvStack.set(e.subarray(t,t+8),8*this.cvStackLen),this.cvStackLen++}popCv(e,t){this.cvStackLen--,e.set(this.cvStack.subarray(8*this.cvStackLen,(this.cvStackLen+1)*8),t)}addChunkCv(e,t,r){let a=this.parentBlock,s=this.parentCv;for(;(1&r)==0;)this.popCv(a,0),a.set(e.subarray(t,t+8),8),n(this.keyWords,0,a,0,s,0,!1,0,64,4|this.flags),e=s,t=0,r>>>=1;this.pushCv(e,t)}update(e){let t=0,r=e.length;for(;r>0;){if(1024===this.chunkState.len()){let e=this.chunkState.output(),t=this.chunkCv;n(e.inputCv,0,e.blockWords,0,t,0,!1,e.counter,e.blockLen,e.flags);let r=this.chunkState.chunkCounter+1;this.addChunkCv(t,0,r),this.chunkState.resetTo(this.keyWords,r,this.flags)}let a=Math.min(1024-this.chunkState.len(),r);this.chunkState.update(e,t,a),t+=a,r-=a}return this}finalizeOutput(){let e=this.chunkState.output(),t=this.parentBlock,r=this.finalizeCv;if(this.cvStackLen>0)for(n(e.inputCv,0,e.blockWords,0,r,0,!1,e.counter,e.blockLen,e.flags);this.cvStackLen>0;){if(this.cvStackLen--,t.set(this.cvStack.subarray(8*this.cvStackLen,(this.cvStackLen+1)*8),0),t.set(r,8),!(this.cvStackLen>0))return{inputCv:this.keyWords,blockWords:t,blockLen:64,counter:0,flags:4|this.flags};n(this.keyWords,0,t,0,r,0,!1,0,64,4|this.flags)}return e}finalize(e=32){let t=this.finalizeOutput(),r=new Uint8Array(e);if(e<=64){let a=this.outWords;if(n(t.inputCv,0,t.blockWords,0,a,0,e>32,t.counter,t.blockLen,8|t.flags),s){let t=new Uint8Array(a.buffer);r.set(t.subarray(0,e))}else i(a,0,r,0,e)}else{let t=this.finalizeXof().read(e);r.set(t)}return r}finalizeXof(){let e=this.finalizeOutput();return new E(new Uint32Array(e.inputCv),new Uint32Array(e.blockWords),e.counter,e.blockLen,e.flags)}}"u">typeof globalThis&&void 0!==globalThis.document&&queueMicrotask(()=>{x||(x=function(){if(u)return!0;if(!function(){try{let e=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,22,1,20,0,253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11]);return WebAssembly.validate(e)}catch{return!1}}())return!1;try{let e=d||function(){let e=[];function t(t){e.push(...t)}t([0,97,115,109]),t([1,0,0,0]),t([1]),t([4]),t([1]),t([96,0,0]),t([2]),t([11]),t([1]),t([2,106,115]),t([3,109,101,109]),t([2,0,1]),t([3]),t([4]),t([3]),t([0]),t([0]),t([0]),t([7]),t([50]),t([3]),t([10]),t([99,111,109,112,114,101,115,115,52,120]),t([0,0]),t([16]),t([99,111,109,112,114,101,115,115,67,104,117,110,107,115,52,120]),t([0,1]),t([14]),t([99,111,109,112,114,101,115,115,80,97,114,101,110,116]),t([0,2]),t([10]);let r=e.length;t([0,0,0,0,0]),t([3]);let n=e.length;t([0,0,0,0,0]);let a=e.length;t([1]),t([32,123]);for(let e=0;e<16;e++)t([65,...o(16*e)]),t([253,0,2,0]),t([33,e]);for(let e=0;e<8;e++)t([65,...o(512+16*e)]),t([253,0,2,0]),t([33,16+e]);let s=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a];for(let e=0;e<4;e++){let r=[];for(let t=0;t<4;t++)r.push(255&s[e]),r.push(s[e]>>>8&255),r.push(s[e]>>>16&255),r.push(s[e]>>>24&255);t([253,12,...r]),t([33,24+e])}t([65,...o(768)]),t([253,0,2,0]),t([33,28]),t([65,...o(784)]),t([253,0,2,0]),t([33,29]),t([65,...o(800)]),t([253,0,2,0]),t([33,30]),t([65,...o(816)]),t([253,0,2,0]),t([33,31]);let i=0;function u(e,r,n,a){let s=c[i++],o=c[i++];t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,s]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,12]),t([253,173,1]),t([32,16+r]),t([65,20]),t([253,171,1]),t([253,80]),t([33,16+r]),t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,o]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,1,2,3,0,5,6,7,4,9,10,11,8,13,14,15,12]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,7]),t([253,173,1]),t([32,16+r]),t([65,25]),t([253,171,1]),t([253,80]),t([33,16+r])}for(let e=0;e<7;e++)u(0,4,8,12),u(1,5,9,13),u(2,6,10,14),u(3,7,11,15),u(0,5,10,15),u(1,6,11,12),u(2,7,8,13),u(3,4,9,14);for(let e=0;e<8;e++)t([65,...o(640+16*e)]),t([32,16+e]),t([32,24+e]),t([253,81]),t([253,11,2,0]);t([11]);let f=l(e.length-a);for(let t=0;t<5;t++)e[n+t]=f[t];let d=e.length;t([0,0,0,0,0]);let m=e.length;t(function(){let e=[];function t(t){e.push(...t)}t([2]),t([32,123]),t([1,127]);let r=g,n=p,a=b,s=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a];for(let e=0;e<8;e++)t([65,...o(n+16*e)]),t([253,0,2,0]),t([33,16+e]);t([65,0]),t([33,32]),t([2,64]),t([3,64]);for(let e=0;e<16;e++)t([32,32]),t([65,...o(256)]),t([108]),t([65,...o(r+16*e)]),t([106]),t([253,0,2,0]),t([33,e]);for(let e=0;e<4;e++){let r=[];for(let t=0;t<4;t++)r.push(255&s[e]),r.push(s[e]>>>8&255),r.push(s[e]>>>16&255),r.push(s[e]>>>24&255);t([253,12,...r]),t([33,24+e])}t([65,...o(y)]),t([253,0,2,0]),t([33,28]),t([253,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t([33,29]);let i=[];for(let e=0;e<4;e++)i.push(64,0,0,0);t([253,12,...i]),t([33,30]),t([65,...o(w)]),t([253,0,2,0]),t([32,32]),t([69]),t([32,32]),t([65,15]),t([70]),t([65,1]),t([116]),t([114]),t([253,17]),t([253,80]),t([33,31]);let l=0;function h(e,r,n,a){let s=c[l++],i=c[l++];t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,s]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,12]),t([253,173,1]),t([32,16+r]),t([65,20]),t([253,171,1]),t([253,80]),t([33,16+r]),t([32,16+e]),t([32,16+r]),t([253,174,1]),t([32,i]),t([253,174,1]),t([33,16+e]),t([32,16+a]),t([32,16+e]),t([253,81]),t([34,16+a]),t([32,16+a]),t([253,13,1,2,3,0,5,6,7,4,9,10,11,8,13,14,15,12]),t([33,16+a]),t([32,16+n]),t([32,16+a]),t([253,174,1]),t([33,16+n]),t([32,16+r]),t([32,16+n]),t([253,81]),t([34,16+r]),t([65,7]),t([253,173,1]),t([32,16+r]),t([65,25]),t([253,171,1]),t([253,80]),t([33,16+r])}for(let e=0;e<7;e++)h(0,4,8,12),h(1,5,9,13),h(2,6,10,14),h(3,7,11,15),h(0,5,10,15),h(1,6,11,12),h(2,7,8,13),h(3,4,9,14);for(let e=0;e<8;e++)t([32,16+e]),t([32,24+e]),t([253,81]),t([33,16+e]);t([32,32]),t([65,1]),t([106]),t([34,32]),t([65,16]),t([73]),t([13,0]),t([11]),t([11]);for(let e=0;e<8;e++)t([65,...o(a+16*e)]),t([32,16+e]),t([253,11,2,0]);return t([11]),e}());let U=l(e.length-m);for(let t=0;t<5;t++)e[d+t]=U[t];let L=e.length;t([0,0,0,0,0]);let A=e.length;t(function(){let e=[];function t(t){e.push(...t)}t([1]),t([32,127]);let r=k,n=v,a=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19];for(let e=0;e<16;e++)t([65,...o(r+4*e)]),t([40,2,0]),t([33,e]);for(let e=0;e<8;e++)t([65,...h(a[e])]),t([33,16+e]);for(let e=0;e<4;e++)t([65,...h(a[e])]),t([33,24+e]);function s(e,r,n,a,s,i){let o=16+e,l=16+r,h=16+n,c=16+a;t([32,o]),t([32,l]),t([106]),t([32,s]),t([106]),t([33,o]),t([32,c]),t([32,o]),t([115]),t([65,16]),t([120]),t([33,c]),t([32,h]),t([32,c]),t([106]),t([33,h]),t([32,l]),t([32,h]),t([115]),t([65,12]),t([120]),t([33,l]),t([32,o]),t([32,l]),t([106]),t([32,i]),t([106]),t([33,o]),t([32,c]),t([32,o]),t([115]),t([65,8]),t([120]),t([33,c]),t([32,h]),t([32,c]),t([106]),t([33,h]),t([32,l]),t([32,h]),t([115]),t([65,7]),t([120]),t([33,l])}t([65,0]),t([33,28]),t([65,0]),t([33,29]),t([65,192,0]),t([33,30]),t([65,4]),t([33,31]);let i=0;for(let e=0;e<7;e++)s(0,4,8,12,c[i],c[i+1]),s(1,5,9,13,c[i+=2],c[i+1]),s(2,6,10,14,c[i+=2],c[i+1]),s(3,7,11,15,c[i+=2],c[i+1]),s(0,5,10,15,c[i+=2],c[i+1]),s(1,6,11,12,c[i+=2],c[i+1]),s(2,7,8,13,c[i+=2],c[i+1]),s(3,4,9,14,c[i+=2],c[i+1]),i+=2;for(let e=0;e<8;e++)t([65,...o(n+4*e)]),t([32,16+e]),t([32,24+e]),t([115]),t([54,2,0]);return t([11]),e}());let x=l(e.length-A);for(let t=0;t<5;t++)e[L+t]=x[t];let E=l(e.length-r-5);for(let t=0;t<5;t++)e[r+t]=E[t];return new Uint8Array(e)}();d=e;let t={js:{mem:f=new WebAssembly.Memory({initial:1})}},r=new WebAssembly.Module(e.buffer);return(u=new WebAssembly.Instance(r,t)).exports.compress4x,u.exports.compressChunks4x,u.exports.compressParent,new Uint8Array(f.buffer),new Uint32Array(f.buffer),!function(){if(!f)return;let e=f.buffer;new Uint32Array(e,m,512),new Uint32Array(e,k,16),new Uint32Array(e,v,8),new Uint32Array(e,U,32),new Uint32Array(e,g,1024),new Uint32Array(e,p,32),new Uint32Array(e,y,4),new Uint32Array(e,w,4),new Uint32Array(e,b,32)}(),!0}catch(e){return console.warn("Failed to initialize WASM SIMD:",e),!1}}())}),new Uint8Array([102,151,245,119,91,149,80,222,49,53,203,172,165,151,24,28,157,228,33,16,155,235,43,88,180,208,176,75,147,173,242,41]);let $=new Uint8Array([1,126,197,199,165,71,41,150,253,148,102,102,180,138,2,230,93,221,83,111,55,199,109,210,248,99,82,230,74,83,113,63]);T.newKeyed($);let C=new Uint8Array(32),_=new Uint8Array([127,24,87,214,206,86,237,102,18,127,249,19,231,165,195,243,164,205,38,213,181,219,73,230,65,36,152,127,40,251,148,195]);T.newKeyed(C),T.newKeyed(_);var R="https://huggingface.co";async function I(e,t){let r=new B(e.url,e.status,e.headers.get("X-Request-Id")??t?.requestId);r.message=`Api error with status ${r.statusCode}${t?.message?`. ${t.message}`:""}`;let n=[`URL: ${r.url}`,r.requestId?`Request ID: ${r.requestId}`:void 0].filter(Boolean).join(". ");if(e.headers.get("Content-Type")?.startsWith("application/json")){let t=await e.json();r.message=t.error||t.message||r.message,t.error_description&&(r.message=r.message?r.message+`: ${t.error_description}`:t.error_description),r.data=t}else r.data={message:await e.text()};throw r.message+=`. ${n}`,r}var B=class extends Error{statusCode;url;requestId;data;constructor(e,t,r,n){super(n),this.statusCode=t,this.requestId=r,this.url=e}};function M(e){if(!e.startsWith("hf_"))throw TypeError("Your access token must start with 'hf_'")}var W="u">typeof window&&void 0!==window.document,z="object"==typeof self&&self.constructor&&"DedicatedWorkerGlobalScope"===self.constructor.name,O=!(!W&&!z);new Promise(e=>{});var D=class extends Blob{static async create(e,t){let r=t?.fetch??fetch,n=await r(e,{headers:{Range:"bytes=0-0",...t?.accessToken&&{Authorization:`Bearer ${t.accessToken}`}}});if(!n.ok)throw await I(n);let a=n.headers.get("content-type")||"";if(206===n.status){let s=Number(n.headers.get("content-range")?.split("/").pop());if(await n.body?.cancel(),Number.isFinite(s)&&s>=(t?.cacheBelow??1e6))return new D(e,0,s,a,!0,r,t?.accessToken);let i=await r(e,{...t?.accessToken&&{headers:{Authorization:`Bearer ${t.accessToken}`}}});if(!i.ok)throw await I(i);return i.blob()}return n.blob()}url;start;end;contentType;full;fetch;accessToken;constructor(e,t,r,n,a,s,i){super([]),this.url=e,this.start=t,this.end=r,this.contentType=n,this.full=a,this.fetch=s,this.accessToken=i}get size(){return this.end-this.start}get type(){return this.contentType}slice(e=0,t=this.size){if(e<0||t<0)throw TypeError("Unsupported negative start/end on WebBlob.slice");return new D(this.url,this.start+e,Math.min(this.start+t,this.end),this.contentType,0===e&&t===this.size&&this.full,this.fetch,this.accessToken)}async arrayBuffer(){return(await this.fetchRange()).arrayBuffer()}async text(){return(await this.fetchRange()).text()}stream(){let e=new TransformStream;return this.fetchRange().then(t=>t.body?.pipeThrough(e)).catch(t=>e.writable.abort(t.message)),e.readable}fetchRange(){let e=this.fetch;return this.full?e(this.url,{...this.accessToken&&{headers:{Authorization:`Bearer ${this.accessToken}`}}}).then(e=>e.ok?e:I(e)):e(this.url,{headers:{Range:`bytes=${this.start}-${this.end-1}`,...this.accessToken&&{Authorization:`Bearer ${this.accessToken}`}}}).then(e=>e.ok?e:I(e))}};function F(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function P(e,t){return e[t++]|e[t++]<<8|e[t++]<<16|e[t++]<<24}N(5242880),function(){try{new Uint32Array(65536)}catch(t){let e=Array(65536);for(let t=0;t<65536;t++)e[t]=0;return e}}();var H={4:65536,5:262144,6:1048576,7:4194304};function N(e){return new Uint8Array(e)}function j(e,t){let r,n;return void 0===t&&(t=function(e){let t=0;if(0x184d2204!==P(e,0))throw Error("invalid magic number");t+=4;let r=e[t++];if((192&r)!=64)throw Error("incompatible descriptor version "+(192&r));let n=(16&r)!=0,a=e[t++]>>4&7;if(void 0===H[a])throw Error("invalid block size "+a);let s=H[a];if((8&r)!=0){var i;return i=t,e[i++]|e[i++]<<8|e[i++]<<16|e[i++]<<24|e[i++]<<32|e[i++]<<40|e[i++]<<48|e[i++]<<56}t++;let o=0;for(;;){let r=P(e,t);if(t+=4,0x80000000&r?(r&=0x7fffffff,o+=r):r>0&&(o+=s),0===r)return o;n&&(t+=4),t+=r}}(e)),(n=function(e,t){let r,n,a=0,s=0;if(0x184d2204!==P(e,0))throw Error("invalid magic number");if(a+=4,(192&(n=e[a++]))!=64)throw Error("incompatible descriptor version");if(r=(16&n)!=0,void 0===H[e[a++]>>4&7])throw Error("invalid block size");for((8&n)!=0&&(a+=8),a++;;){var i;if(i=P(e,a),a+=4,0===i)break;if(r&&(a+=4),(0x80000000&i)!=0){i&=0x7fffffff;for(let r=0;r<i;r++)t[s++]=e[a++]}else s=function(e,t,r,n,a){let s,i,o,l,h,c=void 0!==t.copyWithin&&void 0!==t.fill;for(o=r+n;r<o;){let n=e[r++],u=n>>4;if(u>0){if(15===u)for(;u+=e[r],255===e[r++];);for(l=r+u;r<l;)t[a++]=e[r++]}if(r>=o)break;if(s=15&n,i=e[r++]|e[r++]<<8,15===s)for(;s+=e[r],255===e[r++];);if(s+=4,c&&1===i)t.fill(0|t[a-1],a,a+s),a+=s;else if(c&&i>s&&s>31)t.copyWithin(a,a-i,a-i+s),a+=s;else for(l=(h=a-i)+s;h<l;)t[a++]=0|t[h++]}return a}(e,t,a,i,s),a+=i}return(4&n)!=0&&(a+=4),s}(e,r=N(t)))!==t&&(r=r.slice(0,n)),r}var V=class{ranges=[];add(e,t){if(t<=e)throw TypeError("End must be greater than start");let r=[];for(let n=0;n<this.ranges.length;n++){let a=this.ranges[n];if(e<a.end&&t>a.start&&r.push({index:n,range:a}),null!==a.data)throw Error("Overlapping range already has data")}if(0===r.length){this.ranges.push({start:e,end:t,refCount:1,data:null}),this.ranges.sort((e,t)=>e.start-t.start);return}let n=[],a=e;for(let e=0;e<r.length;e++){let{range:s}=r[e];a<s.start?n.push({start:a,end:s.start,refCount:1,data:null}):s.start<a&&n.push({start:s.start,end:a,refCount:s.refCount,data:null}),n.push({start:Math.max(a,s.start),end:Math.min(t,s.end),refCount:s.refCount+1,data:null}),s.end>t&&n.push({start:t,end:s.end,refCount:s.refCount,data:null}),a=Math.max(a,s.end)}a<t&&n.push({start:a,end:t,refCount:1,data:null});let s=r[0].index,i=r[r.length-1].index;this.ranges.splice(s,i-s+1,...n),this.ranges.sort((e,t)=>e.start-t.start)}remove(e,t){if(t<=e)throw TypeError("End must be greater than start");let r=[];for(let n=0;n<this.ranges.length;n++){let a=this.ranges[n];e<a.end&&t>a.start&&r.push({index:n,range:a})}if(0===r.length)throw Error("No ranges found to remove");if(e!==r[0].range.start||t!==r[r.length-1].range.end)throw Error("Range boundaries must match existing boundaries");for(let e=0;e<r.length;e++){let{range:t}=r[e];t.refCount--}this.ranges=this.ranges.filter(e=>e.refCount>0)}getRanges(e,t){if(t<=e)throw TypeError("End must be greater than start");return this.ranges.filter(r=>e<r.end&&t>r.start)}getAllRanges(){return[...this.ranges]}};function q(e,t,r=0){let n=t.length;if(0===n)return r<=e.length?r:-1;let a=n-1,s=e.length-n,i=new Uint16Array(256).fill(n);for(let e=0;e<a;e++)i[t[e]]=a-e;let o=r;for(;o<=s;){let r=a;for(;r>=0&&e[o+r]===t[r];)r--;if(r<0)return o;o+=i[e[o+a]]}return -1}var K=new TextEncoder,G=K.encode("\r\n"),J=K.encode("\r\n\r\n"),Q=class{#e;#t=G;#r=[];#n=0;#a;#s=0;#i=0;#o=!1;constructor(e){const t=function(e){for(let t of e.split(";")){let e=t.trim();if(e.toLowerCase().startsWith("boundary="))return e.slice(9).replace(/^"|"$/g,"")}return null}(e);if(!t)throw Error(`No boundary found in Content-Type: ${e}`);this.#e=K.encode(`\r
2
+ --${t}`)}push(e){if(this.#o)return[];let t=e&&e.byteLength?F(this.#t,e):this.#t;this.#t=new Uint8Array(0);let r=[];for(;;){if(0===this.#i||2===this.#i){let e=q(t,this.#e,0);if(-1===e){let e=Math.max(0,t.byteLength-(this.#e.byteLength-1));2===this.#i&&e>0&&this.#l(t.subarray(0,e)),this.#t=t.slice(e);break}if(2===this.#i){this.#l(t.subarray(0,e));let n=this.#h(),a=q(n,J,0);if(-1===a)throw Error("Malformed multipart part: missing header/data separator");r.push(n.subarray(a+J.byteLength))}t=t.slice(e+this.#e.byteLength),this.#i=1;continue}if(t.byteLength<2){this.#t=t;break}if(45===t[0]&&45===t[1]){this.#o=!0;break}if(t[0]===G[0]&&t[1]===G[1]){t=t.slice(2),this.#i=2;continue}throw Error("Malformed multipart body: expected CRLF or closing delimiter after boundary")}return r}#l(e){if(this.#n+=e.byteLength,e.byteLength>=65536){this.#c(),this.#r.push(e);return}let t=0;for(;t<e.byteLength;){this.#a||(this.#a=new Uint8Array(65536),this.#s=0);let r=Math.min(65536-this.#s,e.byteLength-t);this.#a.set(e.subarray(t,t+r),this.#s),this.#s+=r,t+=r,65536===this.#s&&(this.#r.push(this.#a),this.#a=void 0)}}#c(){this.#a&&this.#s>0&&this.#r.push(this.#a.subarray(0,this.#s)),this.#a=void 0,this.#s=0}#h(){this.#c();let e=new Uint8Array(this.#n),t=0;for(let r of this.#r)e.set(r,t),t+=r.byteLength;return this.#r=[],this.#n=0,e}};function X(e){return e.reduce((e,t)=>e+t,0)}var Z=[Symbol.for("undici.globalDispatcher.2"),Symbol.for("undici.globalDispatcher.1")];async function Y(){let e=globalThis,r=()=>Z.map(t=>e[t]).find(e=>"function"==typeof e?.dispatch),n=r();if(void 0===n&&(await (await fetch("data:,")).arrayBuffer(),n=r()),void 0!==n){var a;return t?.base!==n&&(t={base:n,http1:(a=n,{dispatch:(e,t)=>a.dispatch({...e,allowH2:!1},t)})}),t.http1}}var ee=async(e,t)=>{let r=await Y();return r?fetch(e,{...t,dispatcher:r}):fetch(e,t)},et=!function(e=void 0!==r.default?r.default.versions:void 0,t=O){return!t&&!!e?.undici&&!e.bun&&Number(e.undici.split(".")[0])>=8}()?(e,t)=>fetch(e,t):ee,er=O?4:8,en=class{#u=[];wait(){return new Promise(e=>this.#u.push(e))}notifyAll(){let e=this.#u;for(let t of(this.#u=[],e))t()}};function ea(e){return new Promise(t=>setTimeout(t,e))}var es={0:"None",1:"LZ4",2:"ByteGroupingLZ4"};function ei(e){let t={version:e.getUint8(0),compressed_length:e.getUint8(1)|e.getUint8(2)<<8|e.getUint8(3)<<16,compression_scheme:e.getUint8(4),uncompressed_length:e.getUint8(5)|e.getUint8(6)<<8|e.getUint8(7)<<16};if(0!==t.version)throw Error(`Unsupported chunk version ${t.version}`);if(0!==t.compression_scheme&&1!==t.compression_scheme&&2!==t.compression_scheme)throw Error(`Unsupported compression scheme ${es[t.compression_scheme]??t.compression_scheme}`);return t}function eo(e,t){switch(e.compression_scheme){case 1:return j(t,e.uncompressed_length);case 2:return function(e){let t=Math.floor(e.byteLength/4),r=e.byteLength%4,n=t+ +(r>=1),a=n+t+ +(r>=2),s=a+t+ +(3==r),i=new Uint8Array(e.byteLength);for(let t=0,r=0;t<e.byteLength;t+=4,r++)i[t]=e[r];for(let t=1,r=n;t<e.byteLength;t+=4,r++)i[t]=e[r];for(let t=2,r=a;t<e.byteLength;t+=4,r++)i[t]=e[r];for(let t=3,r=s;t<e.byteLength;t+=4,r++)i[t]=e[r];return i}(j(t,e.uncompressed_length));default:return t.slice()}}function el(e,t,r){let n=r.getRanges(t.chunks.start,t.chunks.end),a=new Map,s=t.chunks.start,i=0;for(;i<e.byteLength;){if(s>=t.chunks.end)throw Error(`Multipart part for chunks ${t.chunks.start}-${t.chunks.end} contains more chunks than expected`);if(e.byteLength-i<8)throw Error("Truncated chunk header in multipart part");let r=ei(new DataView(e.buffer,e.byteOffset+i,8)),o=i+8,l=o+r.compressed_length;if(l>e.byteLength)throw Error("Truncated chunk data in multipart part");let h=eo(r,e.subarray(o,l)),c=n.find(e=>s>=e.start&&s<e.end);if(c){let e=a.get(c);e||(e=[],a.set(c,e)),e.push(h)}s++,i=l}if(s!==t.chunks.end)throw Error(`Multipart part decoded chunks ${t.chunks.start}-${s} but expected ${t.chunks.start}-${t.chunks.end}`);return a}function eh(e){let t=0;for(let[r,n]of e)r.data||(r.data=n,t+=X(n.map(e=>e.byteLength)));return t}var ec=class extends Blob{fetch;accessToken;refreshUrl;reconstructionUrl;hash;start=0;end=0;internalLogging=!1;reconstructionInfo;listener;parallelDownloads;constructor(e){if(super([]),this.fetch=e.fetch??et,this.accessToken=function(e){return e.accessToken?(M(e.accessToken),e.accessToken):e.credentials?.accessToken?(M(e.credentials.accessToken),e.credentials.accessToken):void 0}(e),this.refreshUrl=e.refreshUrl,this.end=e.size,this.reconstructionUrl=e.reconstructionUrl,this.hash=e.hash,this.listener=e.listener,this.internalLogging=e.internalLogging??!1,this.parallelDownloads=e.parallelDownloads,e.readToken){const t=ed({refreshUrl:this.refreshUrl,initialAccessToken:this.accessToken});ef.set(t,{accessToken:e.readToken.accessToken,expiresAt:new Date(1e3*e.readToken.exp),casUrl:e.readToken.casUrl})}}get size(){return this.end-this.start}#f(){let e=new ec({fetch:this.fetch,hash:this.hash,refreshUrl:this.refreshUrl,reconstructionUrl:this.reconstructionUrl,size:this.size});return e.accessToken=this.accessToken,e.start=this.start,e.end=this.end,e.reconstructionInfo=this.reconstructionInfo,e.listener=this.listener,e.internalLogging=this.internalLogging,e.parallelDownloads=this.parallelDownloads,e}slice(e=0,t=this.size){if(e<0||t<0)throw TypeError("Unsupported negative start/end on XetBlob.slice");let r=this.#f();return r.start=this.start+e,r.end=Math.min(this.start+t,this.end),(r.start!==this.start||r.end!==this.end)&&(r.reconstructionInfo=void 0),r}#d;#g(){return this.#d||(this.#d=(async()=>{let e=await eg(this.accessToken,this.fetch,this.refreshUrl),t=this.reconstructionUrl?this.reconstructionUrl.replace("/v1/reconstructions/","/v2/reconstructions/"):`${e.casUrl}/v2/reconstructions/${this.hash}`,r=await this.fetch(t,{headers:{Authorization:`Bearer ${e.accessToken}`,Range:`bytes=${this.start}-${this.end-1}`}});if(!r.ok)throw await I(r);return this.reconstructionInfo=await r.json(),this.reconstructionInfo})().finally(()=>this.#d=void 0)),this.#d}async #p(){if(0===this.size)return new ReadableStream({start(e){e.close()}});this.reconstructionInfo||await this.#g();let e=new Map;if(!this.reconstructionInfo)throw Error("Failed to load reconstruction info");for(let t of this.reconstructionInfo.terms){let r=e.get(t.hash);r||(r=new V,e.set(t.hash,r)),r.add(t.range.start,t.range.end)}let t=this.listener,r=this.internalLogging?(...e)=>console.log(...e):()=>{};async function*n(n,a,s,i){let o=0,l=n.offset_into_first_range;for(let h of n.terms){let c;if(o>=s)break;let u=e.get(h.hash);if(!u)throw Error(`Failed to find range list for term ${h.hash}`);let f=e=>{for(let t of e.xorbs[h.hash]??[]){let e=t.ranges.find(e=>e.chunks.start<=h.range.start&&e.chunks.end>=h.range.end);if(e)return{entry:t,descriptor:e}}},d=e=>`bytes=${e.ranges.map(e=>`${e.bytes.start}-${e.bytes.end}`).join(",")}`,g=async e=>{let r=await a(e.url,{headers:{Range:d(e)}});if(403===r.status){let t=f(n=await i());if(!t)throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end} after refresh`);e=t.entry,r=await a(e.url,{headers:{Range:d(e)}})}if(!r.ok)throw await I(r);let s=r.headers.get("content-type")??"";if(!s.includes("multipart/byteranges"))throw Error(`Expected multipart/byteranges response for multi-range request, got "${s}"`);let o=r.body?.getReader();if(!o)throw Error("Failed to get reader from response body");let l=new Q(s),c=[],g=0,p=t=>{for(let r of t){let t=e.ranges[g];if(!t)throw Error(`Received more multipart parts than the ${e.ranges.length} signed ranges`);c.push(el(r,t,u)),g++}};try{for(;;){let e=await o.read();if(t?.({event:"read"}),e.done)break;e.value&&p(l.push(e.value))}p(l.push())}finally{await o.cancel().catch(()=>{})}if(g!==e.ranges.length)throw Error(`Multi-range fetch produced ${g} parts but expected ${e.ranges.length} for term ${h.hash}`);for(let e of c)eh(e)},p=u.getRanges(h.range.start,h.range.end);if(!p.every(e=>e.data)){let e=f(n);if(!e)throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end}`);e.entry.ranges.length>1&&(await g(e.entry),p=u.getRanges(h.range.start,h.range.end))}if(p.every(e=>e.data)){r("all data available for term",h.hash,l);let e=X(p.map(e=>X(e.data.map(e=>e.byteLength))));if(e!==h.unpacked_length)throw Error(`Term ${h.hash} range ${h.range.start}-${h.range.end} decoded to ${e} bytes, expected ${h.unpacked_length}`);e:for(let e of p)for(let r of e.data){if(l){let e=Math.min(l,r.byteLength);if(r=r.slice(e),l-=e,!r.byteLength)continue}if(r.byteLength>s-o&&(r=r.slice(0,s-o)),o+=r.byteLength,yield e.refCount>1?r.slice():r,t?.({event:"progress",progress:{read:o,total:s}}),o>=s)break e}u.remove(h.range.start,h.range.end);continue}let y=f(n);if(!y)throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end}`);let w=y.descriptor;r("term",h),r("descriptor",w),r("readBytesToSkip",l);let b=await a(y.entry.url,{headers:{Range:`bytes=${w.bytes.start}-${w.bytes.end}`}});if(403===b.status){if(!(y=f(n=await i())))throw Error(`Failed to find fetch info for term ${h.hash} and range ${h.range.start}-${h.range.end} after refresh`);w=y.descriptor,b=await a(y.entry.url,{headers:{Range:`bytes=${w.bytes.start}-${w.bytes.end}`}})}if(!b.ok)throw await I(b);r("expected content length",b.headers.get("content-length"),"range",w.bytes,b.headers.get("content-range"));let m=b.body?.getReader();if(!m)throw Error("Failed to get reader from response body");let k=!1,v=w.chunks.start,U=u.getRanges(w.chunks.start,w.chunks.end),L=0;t:for(;!k&&o<s;){let e=await m.read();if(t?.({event:"read"}),k=e.done,r("read",e.value?.byteLength,"bytes","total read",o,"toSkip",l),!e.value){r("no data in result, cancelled",e);continue}for(L+=e.value.byteLength,c&&(e.value=F(c,e.value),c=void 0);o<s&&e.value?.byteLength;){if(e.value.byteLength<8){c=e.value;continue t}let n=ei(new DataView(e.value.buffer,e.value.byteOffset,8));if(r("chunk header",n,"to skip",l),e.value.byteLength<n.compressed_length+8){c=e.value;continue t}e.value=e.value.slice(8);let a=eo(n,e.value.subarray(0,n.compressed_length)),i=U.find(e=>v>=e.start&&v<e.end),u=v>=h.range.start&&v<h.range.end,f=u?2:1,d=!1;if(i&&i.refCount>=f&&(i.data??=[],i.data.push(a),d=!0),u){if(l){let e=Math.min(l,a.byteLength);a=a.slice(l),l-=e}a.byteLength>s-o&&(a=a.slice(0,s-o)),a.byteLength&&(r("yield",a.byteLength,"bytes",e.value.byteLength,"total read",o,d),o+=a.byteLength,yield d?a.slice():a,t?.({event:"progress",progress:{read:o,total:s}}))}v++,e.value=e.value.slice(n.compressed_length)}}if(k&&o<s&&L<w.bytes.end-w.bytes.start+1)throw r("done",k,"total read",o,s,L),r("failed to fetch all data for term",h.hash),Error(`Failed to fetch all data for term ${h.hash}, fetched ${L} bytes out of ${w.bytes.end-w.bytes.start+1}`);r("done",k,"total read",o,s,L),r("cancel reader"),await m.cancel()}}let a=!1===this.parallelDownloads?void 0:!0===this.parallelDownloads||void 0===this.parallelDownloads?{}:this.parallelDownloads;async function*s(n,a,s,i,o){let l=0,h=n.offset_into_first_range,c=n.terms,u=(e,t)=>{for(let r of e.xorbs[t.hash]??[])if(r.ranges.find(e=>e.chunks.start<=t.range.start&&e.chunks.end>=t.range.end))return r},f=[],d=new Map,g=[];for(let e of c){let t=u(n,e);if(!t)throw Error(`Failed to find fetch info for term ${e.hash} and range ${e.range.start}-${e.range.end}`);let r=d.get(t.url);void 0===r&&(r=f.length,f.push({hash:e.hash,ranges:t.ranges,url:t.url}),d.set(t.url,r)),g.push(r)}let p=Math.max(1,o.maxConcurrency??er),y=e=>X(e.ranges.map(e=>e.bytes.end-e.bytes.start+1)),w=f.length?Math.max(...f.map(y)):0,b=o.maxInFlightBytes??Math.min(0x10000000,Math.max(0x4000000,3*w)),m={nextEntry:0,neededEntry:0,target:1,error:void 0,finished:!1,inFlightBytes:0,decodedBytes:0,active:0,claimed:0,maxActive:0,activeHighWater:0,count429:0,targetHistory:[]},k=new en,v=async(e,t)=>{for(;!m.error&&!m.finished&&m.inFlightBytes+e>b&&t!==m.neededEntry;)await k.wait();m.inFlightBytes+=e},U=e=>{m.inFlightBytes-=e,k.notifyAll()},L=e=>{for(let t of f){let r=(e.xorbs[t.hash]??[]).find(e=>e.ranges.length===t.ranges.length&&e.ranges.every((e,r)=>e.chunks.start===t.ranges[r].chunks.start&&e.chunks.end===t.ranges[r].chunks.end));r&&(t.url=r.url,t.ranges=r.ranges)}},A=e=>`bytes=${e.ranges.map(e=>`${e.bytes.start}-${e.bytes.end}`).join(",")}`,x=async(r,s,o)=>{if(m.error||m.finished)return;let l=e.get(r.hash);if(!l)throw Error(`Failed to find range list for entry ${r.hash}`);let h=await a(r.url,{headers:{Range:A(r)}}),c=0,u=0;for(;403===h.status&&c<1||429===h.status&&u<3;)await h.body?.cancel().catch(()=>{}),403===h.status?(c++,L(n=await i())):(u++,m.count429++,k.notifyAll(),await ea(300*u)),h=await a(r.url,{headers:{Range:A(r)}});if(!h.ok)throw await I(h);let f=h.body?.getReader();if(!f)throw Error("Failed to get reader from response body");try{if(r.ranges.length>1){let e=h.headers.get("content-type")??"";if(!e.includes("multipart/byteranges"))throw Error(`Expected multipart/byteranges response for multi-range request, got "${e}"`);let n=new Q(e),a=0,s=async e=>{for(let t of e){let e=r.ranges[a];if(!e)throw Error(`Received more multipart parts than the ${r.ranges.length} signed ranges`);let n=el(t,e,l);o.committed+=eh(n),m.decodedBytes+=t.byteLength,a++,k.notifyAll()}};for(;;){if(m.error||m.finished)return;let e=await f.read();if(t?.({event:"read"}),e.done)break;e.value&&await s(n.push(e.value))}if(await s(n.push()),!m.finished&&a!==r.ranges.length)throw Error(`Multi-range fetch produced ${a} parts but expected ${r.ranges.length} for ${r.hash}`)}else{let e,n=r.ranges[0],a=l.getRanges(n.chunks.start,n.chunks.end),s=new Map,i=n.chunks.start,h=!1;for(;!h;){if(m.error||m.finished)return;let r=await f.read();t?.({event:"read"}),h=r.done;let n=r.value;if(n)for(e&&(n=F(e,n),e=void 0);n.byteLength;){if(n.byteLength<8){e=n;break}let t=ei(new DataView(n.buffer,n.byteOffset,8));if(n.byteLength<8+t.compressed_length){e=n;break}let r=eo(t,n.subarray(8,8+t.compressed_length)),l=a.find(e=>i>=e.start&&i<e.end);if(l){let e=s.get(l);e||(e=[],s.set(l,e)),e.push(r),i!==l.end-1||l.data||(l.data=e,o.committed+=X(e.map(e=>e.byteLength)),k.notifyAll())}m.decodedBytes+=r.byteLength,i++,n=n.slice(8+t.compressed_length)}}if(!m.finished){for(let e of a)if(!e.data)throw Error(`Failed to fetch all data for ${r.hash} chunks ${e.start}-${e.end} (stream ended early)`)}}}finally{await f.cancel().catch(()=>{})}},E=e=>e instanceof TypeError||/terminated|socket|network|ECONNRESET|fetch failed/i.test(String(e)),S=async e=>{for(;;){if(m.error||m.finished)return;if(e>=m.target){await k.wait();continue}let t=m.nextEntry;if(t>=f.length)return;m.nextEntry++,m.claimed++;let n=y(f[t]);try{let e;if(await v(n,t),m.error||m.finished)return void U(n);m.active++,m.maxActive=Math.max(m.maxActive,m.active),m.activeHighWater=Math.max(m.activeHighWater,m.active);let a={committed:0};for(let s=0;s<2;s++)try{await x(f[t],t,a),U(n-a.committed),e=void 0;break}catch(n){if(e=n,0===s&&!m.finished&&E(n)){r("retrying entry after transient error",f[t].hash,n),await ea(250);continue}}e&&(U(n),m.error??=e),m.active--}finally{m.claimed--,k.notifyAll()}}},T=Promise.allSettled(Array.from({length:p},(e,t)=>S(t))),$=new Map,C=0,_=0,R=1,B=0,M=setInterval(()=>{let e=m.decodedBytes-C;C=m.decodedBytes;let t=m.activeHighWater;if(m.activeHighWater=m.active,B=Math.max(0,B-1),m.count429>_)_=m.count429,m.target=Math.max(1,m.target-1),R=1,B=10;else if(0===e&&m.nextEntry<f.length)m.target=Math.min(p,m.target+1),R=1;else if(R>0)R--;else if(m.claimed>=m.target&&t<=m.target){let t=(($.get(m.target)??e)+e)/2;$.set(m.target,t);let r=$.get(m.target-1);m.target>1&&void 0===r?(m.target--,R=1):void 0!==r&&t<1.05*r?($.delete(m.target),m.target--,R=1,B=10):0===B&&m.target<p&&(m.target++,R=1)}m.targetHistory.push(m.target),k.notifyAll()},o.controllerTickMs??500);try{for(let n=0;n<c.length;n++){let a=c[n];if(l>=s)break;m.neededEntry=g[n],k.notifyAll();let i=e.get(a.hash);if(!i)throw Error(`Failed to find range list for term ${a.hash}`);let o=i.getRanges(a.range.start,a.range.end);for(;!o.every(e=>e.data);){if(m.error)throw m.error;if(0===m.claimed&&m.nextEntry>=f.length)throw Error(`Download workers finished without producing data for term ${a.hash} range ${a.range.start}-${a.range.end}`);await k.wait(),o=i.getRanges(a.range.start,a.range.end)}r("all data available for term",a.hash,h);let u=X(o.map(e=>X(e.data.map(e=>e.byteLength))));if(u!==a.unpacked_length)throw Error(`Term ${a.hash} range ${a.range.start}-${a.range.end} decoded to ${u} bytes, expected ${a.unpacked_length}`);e:for(let e of o)for(let r of e.data){if(h){let e=Math.min(h,r.byteLength);if(r=r.slice(e),h-=e,!r.byteLength)continue}if(r.byteLength>s-l&&(r=r.slice(0,s-l)),l+=r.byteLength,yield e.refCount>1?r.slice():r,t?.({event:"progress",progress:{read:l,total:s}}),l>=s)break e}let d=0;for(let e of o)1===e.refCount&&e.data&&(d+=X(e.data.map(e=>e.byteLength)));i.remove(a.range.start,a.range.end),U(d)}}finally{m.finished=!0,clearInterval(M),k.notifyAll(),await T,o.onStat?.({entries:f.length,maxActive:m.maxActive,finalTarget:m.target,count429:m.count429,targetHistory:m.targetHistory})}}let i=a&&(a.maxConcurrency??er)>1?s(this.reconstructionInfo,this.fetch,this.end-this.start,this.#g.bind(this),a):n(this.reconstructionInfo,this.fetch,this.end-this.start,this.#g.bind(this));return new ReadableStream({async pull(e){let t=await i.next();t.value&&e.enqueue(t.value),t.done&&e.close()},async cancel(){await i.return?.(void 0)},type:"bytes"},{highWaterMark:1e3})}async arrayBuffer(){let e=(await this.#p()).getReader(),t=[];for(;;){let{done:r,value:n}=await e.read();if(r)break;t.push(n)}return function(e){let t=new Uint8Array(X(e.map(e=>e.byteLength))),r=0;for(let n of e)t.set(n,r),r+=n.byteLength;return t}(t).buffer}async text(){return new TextDecoder().decode(await this.arrayBuffer())}async response(){return new Response(await this.#p())}stream(){let e=new TransformStream;return this.#p().then(t=>t.pipeThrough(e)).catch(t=>e.writable.abort(t.message)),e.readable}},eu=new Map,ef=new Map;function ed(e){return JSON.stringify([e.refreshUrl,e.initialAccessToken])}async function eg(e,t,r){let n=ed({refreshUrl:r,initialAccessToken:e}),a=ef.get(n);if(a&&a.expiresAt>new Date(Date.now()+6e4))return{accessToken:a.accessToken,casUrl:a.casUrl};let s=eu.get(n);if(s)return s;let i=(async()=>{let a=await t(r,{headers:{...e?{Authorization:`Bearer ${e}`}:{}}});if(!a.ok)throw Error(`Failed to get JWT token: ${a.status} ${await a.text()}`);let s=await a.json(),i={accessToken:s.accessToken,expiresAt:new Date(1e3*s.exp),casUrl:s.casUrl};for(let[e,t]of ef.entries())if(t.expiresAt<new Date(Date.now()+6e4))ef.delete(e);else break;if(ef.size>=1e3){let e=ef.keys().next().value;e&&ef.delete(e)}return ef.set(n,i),{accessToken:s.accessToken,casUrl:s.casUrl}})().finally(()=>{eu.delete(n)});return eu.set(n,i),i}"ff".repeat(32);var ep=class extends Blob{originalBlob;spliceOperations;constructor(e,t){super(),this.originalBlob=e,this.spliceOperations=t}static create(e,t){for(let r of(Array.isArray(t)||(t=[t]),t))if(r.start<0||r.end<0||r.start>e.size||r.end>e.size||r.start>r.end)throw Error("Invalid start/end positions for SplicedBlob");let r=[...t].sort((e,t)=>e.start-t.start);for(let e=0;e<r.length-1;e++)if(r[e].end>r[e+1].start)throw Error("Overlapping splice operations are not supported");return new ep(e,r)}get size(){let e=0,t=0;for(let r of this.spliceOperations)e+=r.end-r.start,t+=r.insert.size;return this.originalBlob.size-e+t}get type(){return this.originalBlob.type}slice(e=0,t=this.size){if(e<0||t<0)throw TypeError("Unsupported negative start/end on SplicedBlob.slice");if(e=Math.min(e,this.size),t=Math.min(t,this.size),e>=t)return new Blob([]);let r=this.segments,n=[0],a=0;for(let e of r)a+=e.size,n.push(a);let s=[];for(let a=0;a<r.length;a++){let i=n[a];if(n[a+1]<=e)continue;if(i>=t)break;let o=Math.max(0,e-i),l=Math.min(r[a].size,t-i);o<l&&s.push(r[a].slice(o,l))}return new Blob(s)}get firstSpliceIndex(){return this.spliceOperations[0]?.start??1/0}async arrayBuffer(){let e=this.segments,t=await Promise.all(e.map(e=>e.arrayBuffer())),r=new Uint8Array(X(t.map(e=>e.byteLength))),n=0;for(let e of t)r.set(new Uint8Array(e),n),n+=e.byteLength;return r.buffer}async text(){let e=await this.arrayBuffer();return new TextDecoder().decode(e)}stream(){return new ReadableStream({start:async e=>{try{for(let t of this.segments){let r=t.stream().getReader();try{for(;;){let{done:t,value:n}=await r.read();if(t)break;e.enqueue(n)}}finally{r.releaseLock()}}e.close()}catch(t){e.error(t)}}})}get segments(){let e=[],t=0;for(let r of[...this.spliceOperations].sort((e,t)=>e.start-t.start))t<r.start&&e.push(this.originalBlob.slice(t,r.start)),r.insert.size>0&&e.push(r.insert),t=r.end;return t<this.originalBlob.size&&e.push(this.originalBlob.slice(t)),e}};async function ey(e){let t;if("u"<typeof window&&!e?.redirectedUrl)throw Error("oauthHandleRedirect is only available in the browser, unless you provide redirectedUrl");if("u"<typeof localStorage&&(!e?.nonce||!e?.codeVerifier))throw Error("oauthHandleRedirect requires localStorage to be available, unless you provide nonce and codeVerifier");let r=e?.redirectedUrl??window.location.href,n=(()=>{try{return new URL(r).searchParams}catch(e){throw Error("Failed to parse redirected URL: "+r)}})(),[a,s]=[n.get("error"),n.get("error_description")];if(a)throw Error(`${a}: ${s}`);let i=n.get("code"),o=e?.nonce??localStorage.getItem("huggingface.co:oauth:nonce");if(!i)throw Error("Missing oauth code from query parameters in redirected URL: "+r);if(!o)throw Error("Missing oauth nonce from localStorage");let l=e?.codeVerifier??localStorage.getItem("huggingface.co:oauth:code_verifier");if(!l)throw Error("Missing oauth code_verifier from localStorage");let h=n.get("state");if(!h)throw Error("Missing oauth state from query parameters in redirected URL");try{t=JSON.parse(h)}catch{throw Error("Invalid oauth state in redirected URL, unable to parse JSON: "+h)}if(t.nonce!==o)throw Error("Invalid oauth state in redirected URL");let c=e?.hubUrl||R,u=`${new URL(c).origin}/.well-known/openid-configuration`,f=await fetch(u,{headers:{Accept:"application/json"}});if(!f.ok)throw await I(f);let d=await f.json(),g=await fetch(d.token_endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:i,redirect_uri:t.redirectUri,code_verifier:l}).toString()});if(e?.codeVerifier||localStorage.removeItem("huggingface.co:oauth:code_verifier"),e?.nonce||localStorage.removeItem("huggingface.co:oauth:nonce"),!g.ok)throw await I(g);let p=await g.json(),y=new Date(Date.now()+1e3*p.expires_in),w=await fetch(d.userinfo_endpoint,{headers:{Authorization:`Bearer ${p.access_token}`}});if(!w.ok)throw await I(w);let b=await w.json();return{accessToken:p.access_token,accessTokenExpiresAt:y,userInfo:b,state:t.state,scope:p.scope}}async function ew(e){if("u"<typeof window&&!e?.redirectedUrl)throw Error("oauthHandleRedirect is only available in the browser, unless you provide redirectedUrl");if("u"<typeof localStorage&&(!e?.nonce||!e?.codeVerifier))throw Error("oauthHandleRedirect requires localStorage to be available, unless you provide nonce and codeVerifier");let t=new URLSearchParams(e?.redirectedUrl??window.location.search);return t.has("error")?ey(e):!!t.has("code")&&(localStorage.getItem("huggingface.co:oauth:nonce")?ey(e):(console.warn("Missing oauth nonce from localStorage. This can happen when the user refreshes the page after logging in, without changing the URL."),!1))}async function eb(e){if("u"<typeof window&&(!e?.redirectUrl||!e?.clientId))throw Error("oauthLogin is only available in the browser, unless you provide clientId and redirectUrl");if("u"<typeof localStorage&&!e?.localStorage)throw Error("oauthLogin requires localStorage to be available in the context, unless you provide a localStorage empty object as argument");let t=e?.hubUrl||R,r=`${new URL(t).origin}/.well-known/openid-configuration`,n=await fetch(r,{headers:{Accept:"application/json"}});if(!n.ok)throw await I(n);let a=await n.json(),s=globalThis.crypto.randomUUID(),i=globalThis.crypto.randomUUID()+globalThis.crypto.randomUUID();if(e?.localStorage){if(void 0!==e.localStorage.codeVerifier&&null!==e.localStorage.codeVerifier)throw Error("localStorage.codeVerifier must be initially set to null or undefined, and will be filled by oauthLoginUrl");if(void 0!==e.localStorage.nonce&&null!==e.localStorage.nonce)throw Error("localStorage.nonce must be initially set to null or undefined, and will be filled by oauthLoginUrl");e.localStorage.codeVerifier=i,e.localStorage.nonce=s}else localStorage.setItem("huggingface.co:oauth:nonce",s),localStorage.setItem("huggingface.co:oauth:code_verifier",i);let o=e?.redirectUrl||("u">typeof window?window.location.href:void 0);if(!o)throw Error("Missing redirectUrl");let l=JSON.stringify({nonce:s,redirectUri:o,state:e?.state}),h="u">typeof window?window.huggingface?.variables??null:null,c=e?.clientId||h?.OAUTH_CLIENT_ID;if(!c){if(h)throw Error("Missing clientId, please add hf_oauth: true to the README.md's metadata in your static Space");throw Error("Missing clientId")}let u=(function(e){if(globalThis.Buffer)return globalThis.Buffer.from(e).toString("base64");{let t=[];return e.forEach(e=>{t.push(String.fromCharCode(e))}),globalThis.btoa(t.join(""))}})(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",new TextEncoder().encode(i)))).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/=/g,"");return`${a.authorization_endpoint}?${new URLSearchParams({client_id:c,scope:e?.scopes||h?.OAUTH_SCOPES||"openid profile",response_type:"code",redirect_uri:o,state:l,code_challenge:u,code_challenge_method:"S256"}).toString()}`}new Uint8Array(32),new Uint8Array([72,70,82,101,112,111,77,101,116,97,68,97,116,97,0,85,105,103,69,106,123,129,87,131,165,189,217,92,205,209,74,169]),[...["transformer","unet"].map(e=>({single:`${e}/diffusion_pytorch_model.safetensors`,index:`${e}/diffusion_pytorch_model.safetensors.index.json`}))],e.s(["oauthHandleRedirectIfPresent",0,ew,"oauthLoginUrl",0,eb],86860)},23384,e=>{"use strict";var t=e.i(43476),r=e.i(86860),n=e.i(71645),a=e.i(96869);let s=(0,n.createContext)(null);e.s(["HfOAuthProvider",0,function({children:e}){let[i,o]=(0,n.useState)(null),[l,h]=(0,n.useState)(!a.REQUIRES_HF_SIGN_IN),[c,u]=(0,n.useState)(null),[f,d]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!a.REQUIRES_HF_SIGN_IN)return;let e=!0,t=new URLSearchParams(window.location.search),n=t.has("code")||t.has("error");return(0,r.oauthHandleRedirectIfPresent)().then(t=>{e&&t&&t.accessTokenExpiresAt.getTime()>Date.now()&&o(t)}).catch(()=>{e&&n&&u("Hugging Face sign-in did not finish. Please try again.")}).finally(()=>{e&&(n&&window.history.replaceState(window.history.state,"",`${window.location.pathname}${window.location.hash}`),h(!0))}),()=>{e=!1}},[]),(0,n.useEffect)(()=>{if(!i)return;let e=i.accessTokenExpiresAt.getTime()-Date.now(),t=window.setTimeout(()=>o(null),Math.max(0,e));return()=>window.clearTimeout(t)},[i]);let g=(0,n.useCallback)(async()=>{if(a.REQUIRES_HF_SIGN_IN&&!f){d(!0),u(null);try{let e=`${window.location.origin}${window.location.pathname}`;window.location.assign(await (0,r.oauthLoginUrl)({redirectUrl:e}))}catch{u("Hugging Face sign-in is unavailable right now."),d(!1)}}},[f]),p=(0,n.useCallback)(()=>{o(null),u(null)},[]),y=(0,n.useMemo)(()=>({required:a.REQUIRES_HF_SIGN_IN,ready:l,accessToken:i?.accessToken??null,username:i?.userInfo.preferred_username??null,error:c,isSigningIn:f,signIn:g,signOut:p}),[c,f,l,i,g,p]);return(0,t.jsx)(s.Provider,{value:y,children:e})},"useHfOAuth",0,function(){let e=(0,n.useContext)(s);if(!e)throw Error("useHfOAuth must be used within HfOAuthProvider.");return e}])},96869,e=>{"use strict";e.i(47167);let t="suplo6669/sharpify-ai-inference".trim()||"",r=t.length>0;e.s(["HF_INFERENCE_SPACE",0,t,"REQUIRES_HF_SIGN_IN",0,r])}]);
_next/static/chunks/37mvkrz0kpeh3.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5014,e=>{"use strict";var t=e.i(71645);let n=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},a=(0,t.createContext)({}),r=(0,t.forwardRef)(({color:e,size:r,width:s,height:l,strokeWidth:o,absoluteStrokeWidth:c,nonScalingStroke:u,className:d="",children:h,iconNode:f=[],icon:p={node:f,aliases:[],size:24},...m},g)=>{let{size:v=24,strokeWidth:b=2,absoluteStrokeWidth:y=!1,nonScalingStroke:x=!1,color:w="currentColor",className:j=""}=(0,t.useContext)(a)??{},k=!!h||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(m),[N,z,S=[]]=function(e,t={}){return function(e,t={}){let a=t.attributeNames??{},r=e=>a[e]??e,s=e.size??e.width??i.width,l=e.size??e.height??i.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],c=[...e.name?[`lucide-${e.name}`]:[],...o],u=t.className?.split(" ").filter(Boolean)??[],d=!1===t.includeDefaultClasses?n(...u):n("lucide",...c,...u),h=t.absoluteStrokeWidth?Number(t.strokeWidth??i["stroke-width"])*Number(e.size??e.width??i.width)/Number(t.size??t.width??i.width):t.strokeWidth??i["stroke-width"];return["svg",{...Object.entries(i).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),..."color"in t&&t.color&&{[r("stroke")]:t.color},..."size"in t&&null!=t.size&&{[r("width")]:t.size,[r("height")]:t.size},..."width"in t&&null!=t.width&&{[r("width")]:t.width},..."height"in t&&null!=t.height&&{[r("height")]:t.height},[r("stroke-width")]:h,...d&&{[r("class")]:d},[r("viewBox")]:`0 0 ${s} ${l}`,...!1===t.hasA11yProp?{[r("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,s=t.nonScalingStroke?{[r("vector-effect")]:"non-scaling-stroke",...i}:i;return a?[n,s,a]:[n,s]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(p,{color:e??w,width:s??r??v,height:l??r??v,strokeWidth:o??b,absoluteStrokeWidth:c??y,nonScalingStroke:u??x,className:n(j,d),hasA11yProp:k,attributes:m});return(0,t.createElement)(N,{ref:g,...z},[...S.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(h)?h:[h]])});e.s(["default",0,r],5014)},56420,75775,28623,e=>{"use strict";var t=e.i(71645),n=e.i(5014);function i(e,a=[],r=[]){let s,l="string"==typeof e?function(e,t,n=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...n.length>0?{aliases:n}:{}}}(e,a,r):e,o=(0,t.forwardRef)(({className:e,...i},a)=>(0,t.createElement)(n.default,{ref:a,icon:l,className:e,...i}));return l.name&&(o.displayName=(s=(e=>{let t="",n=!1;for(let i of e){if("-"===i||"_"===i||i<=" "){n=t.length>0;continue}0===t.length?t+=i.toLowerCase():t+=n?i.toUpperCase():i,n=!1}return t})(l.name)).charAt(0).toUpperCase()+s.slice(1)),o}e.s(["default",0,i],56420);let a={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};a.node;let r=i(a);e.s(["ArrowUpRight",0,r],75775);let s={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};s.node;let l=i(s);e.s(["Sparkles",0,l],28623)},25633,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var i={default:function(){return m},defaultHead:function(){return d}};for(var a in i)Object.defineProperty(n,a,{enumerable:!0,get:i[a]});let r=e.r(55682),s=e.r(90809),l=e.r(43476),o=s._(e.r(71645)),c=r._(e.r(98879)),u=e.r(42732);function d(){return[(0,l.jsx)("meta",{charSet:"utf-8"},"charset"),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let f=["name","httpEquiv","charSet","itemProp"];function p(e){let t,n,i,a;return e.reduce(h,[]).reverse().concat(d().reverse()).filter((t=new Set,n=new Set,i=new Set,a={},e=>{let r=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?r=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?r=!1:n.add(e.type);break;case"meta":for(let t=0,n=f.length;t<n;t++){let n=f[t];if(e.props.hasOwnProperty(n))if("charSet"===n)i.has(n)?r=!1:i.add(n);else{let t=e.props[n],i=a[n]||new Set;("name"!==n||!s)&&i.has(t)?r=!1:(i.add(t),a[n]=i)}}}return r})).reverse().map((e,t)=>{let n=e.key||t;return o.default.cloneElement(e,{key:n})})}let m=function({children:e}){let t=(0,o.useContext)(u.HeadManagerContext);return(0,l.jsx)(c.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},18556,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let i=e.r(55682)._(e.r(71645)),a=e.r(87690),r=i.default.createContext(a.imageConfigDefault)},65856,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return i}});let i=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,n)=>{"use strict";function i(e,t){let n=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,t.qualities[0]):n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findClosestQuality",{enumerable:!0,get:function(){return i}})},1948,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let i=e.r(70965),a=e.r(43369);function r({config:e,src:t,width:n,quality:s}){let l=(0,a.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,a.getAssetToken)())l=void 0;else{let e=t.indexOf("?");if(-1!==e){let n=new URLSearchParams(t.slice(e+1)),i=n.get("dpl");if(i){l=i,n.delete("dpl");let a=n.toString();t=t.slice(0,e)+(a?"?"+a:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
2
+ Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,i.findClosestQuality)(s,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${n}&q=${o}${t.startsWith("/")&&l?`&dpl=${l}`:""}`}r.__next_img_default=!0;let s=r},18581,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return a}});let i=e.r(71645);function a(e,t){let n=(0,i.useRef)(null),a=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=n.current;e&&(n.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(n.current=r(e,i)),t&&(a.current=r(t,i))},[e,t])}function r(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},5500,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return w}});let i=e.r(55682),a=e.r(90809),r=e.r(43476),s=a._(e.r(71645)),l=i._(e.r(74080)),o=i._(e.r(25633)),c=e.r(8927),u=e.r(87690),d=e.r(18556),h=e.r(65856),f=i._(e.r(1948)),p=e.r(18581),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,n,i,a,r,s){let l=e?.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&a(!0),n?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,a=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>a,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{a=!0,t.stopPropagation()}})}i?.current&&i.current(e)}}))}function v(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b="u"<typeof window?s.useEffect:s.useLayoutEffect,y=(0,s.forwardRef)(({src:e,srcSet:t,sizes:n,height:i,width:a,decoding:l,className:o,style:c,fetchPriority:u,placeholder:d,loading:h,unoptimized:f,fill:m,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:j,sizesInput:k,onLoad:N,onError:z,...S},E)=>{let R=(0,s.useRef)(!1),_=(0,s.useRef)(null);b(()=>{let{current:e}=R,{current:t}=_;e||null===t||(z&&(t.src=t.src),t.complete&&g(t,d,y,x,w,f,k),R.current=!0)},[e,d,y,x,z,f,k]);let C=(0,p.useMergedRef)(E,_);return(0,r.jsx)("img",{...S,...v(u),loading:h,width:a,height:i,decoding:l,"data-nimg":m?"fill":"1",className:o,style:c,sizes:n,srcSet:t,src:e,ref:C,onLoad:e=>{g(e.currentTarget,d,y,x,w,f,k)},onError:e=>{j(!0),"empty"!==d&&w(!0),z&&z(e)}})});function x({isAppRouter:e,imgAttributes:t}){let n={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...v(t.fetchPriority)};return e&&l.default.preload?(l.default.preload(t.src,n),null):(0,r.jsx)(o.default,{children:(0,r.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...n},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(h.RouterContext),i=(0,s.useContext)(d.ImageConfigContext),a=(0,s.useMemo)(()=>{let e=m||i||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t),a=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n,qualities:a,localPatterns:"u"<typeof window?i?.localPatterns:e.localPatterns}},[i]),{onLoad:l,onLoadingComplete:o}=e,p=(0,s.useRef)(l);(0,s.useEffect)(()=>{p.current=l},[l]);let g=(0,s.useRef)(o);(0,s.useEffect)(()=>{g.current=o},[o]);let[v,b]=(0,s.useState)(!1),[w,j]=(0,s.useState)(!1),{props:k,meta:N}=(0,c.getImgProps)(e,{defaultLoader:f.default,imgConf:a,blurComplete:v,showAltText:w});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{...k,unoptimized:N.unoptimized,placeholder:N.placeholder,fill:N.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:j,sizesInput:e.sizes,ref:t}),N.preload?(0,r.jsx)(x,{isAppRouter:!n,imgAttributes:k}):null]})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},94909,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0});var i={default:function(){return u},getImageProps:function(){return c}};for(var a in i)Object.defineProperty(n,a,{enumerable:!0,get:i[a]});let r=e.r(55682),s=e.r(8927),l=e.r(5500),o=r._(e.r(1948));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let u=l.Image},57688,(e,t,n)=>{t.exports=e.r(94909)},88143,(e,t,n)=>{"use strict";function i({widthInt:e,heightInt:t,blurWidth:n,blurHeight:a,blurDataURL:r,objectFit:s}){let l=n?40*n:e,o=a?40*a:t,c=l&&o?`viewBox='0 0 ${l} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${r}'/%3E%3C/svg%3E`}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},87690,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return s}};for(var a in i)Object.defineProperty(n,a,{enumerable:!0,get:i[a]});let r=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(e,t,n)=>{"use strict";e.i(47167),Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return c}});let i=e.r(43369),a=e.r(88143),r=e.r(87690),s=["-moz-initial","fill","none","scale-down",void 0];function l(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:n=!1,priority:u=!1,preload:d=!1,loading:h,className:f,quality:p,width:m,height:g,fill:v=!1,style:b,overrideSrc:y,onLoad:x,onLoadingComplete:w,placeholder:j="empty",blurDataURL:k,fetchPriority:N,decoding:z="async",layout:S,objectFit:E,objectPosition:R,lazyBoundary:_,lazyRoot:C,...P},M){var U;let O,A,T,{imgConf:L,showAltText:I,blurComplete:$,defaultLoader:D}=M,q=L||r.imageConfigDefault;if("allSizes"in q)O=q;else{let e=[...q.deviceSizes,...q.imageSizes].sort((e,t)=>e-t),t=q.deviceSizes.sort((e,t)=>e-t),n=q.qualities?.sort((e,t)=>e-t);O={...q,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===D)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let G=P.loader||D;delete P.loader,delete P.srcSet;let F="__next_img_default"in G;if(F){if("custom"===O.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
3
+ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=G;G=t=>{let{config:n,...i}=t;return e(i)}}if(S){"fill"===S&&(v=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(b={...b,...e});let n={responsive:"100vw",fill:"100vw"}[S];n&&!t&&(t=n)}let W="",B=o(m),H=o(g);if((U=e)&&"object"==typeof U&&(l(U)||void 0!==U.src)){let t=l(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(A=t.blurWidth,T=t.blurHeight,k=k||t.blurDataURL,W=t.src,!v)if(B||H){if(B&&!H){let e=B/t.width;H=Math.round(t.height*e)}else if(!B&&H){let e=H/t.height;B=Math.round(t.width*e)}}else B=t.width,H=t.height}let V=!u&&!d&&("lazy"===h||void 0===h);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(n=!0,V=!1),O.unoptimized&&(n=!0),F&&!O.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(n=!0);let Y=o(p),Z=Object.assign(v?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:E,objectPosition:R}:{},I?{}:{color:"transparent"},b),X=$||"empty"===j?null:"blur"===j?`url("data:image/svg+xml;charset=utf-8,${(0,a.getImageBlurSvg)({widthInt:B,heightInt:H,blurWidth:A,blurHeight:T,blurDataURL:k||"",objectFit:Z.objectFit})}")`:`url("${j}")`,J=s.includes(Z.objectFit)?"fill"===Z.objectFit?"100% 100%":"cover":Z.objectFit,K=X?{backgroundSize:J,backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Q=function({config:e,src:t,unoptimized:n,width:a,quality:r,sizes:s,loader:l}){if(n){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,i.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())e=void 0;else if(e){let n=t.indexOf("?");if(-1!==n){let i=new URLSearchParams(t.slice(n+1));i.get("dpl")||(i.append("dpl",e),t=t.slice(0,n)+"?"+i.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:o,kind:c}=function({deviceSizes:e,allSizes:t},n,i){if(i){let n=/(^|\s)(1?\d?\d)vw/g,a=[];for(let e;e=n.exec(i);)a.push(parseInt(e[2]));if(a.length){let n=.01*Math.min(...a);return{widths:t.filter(t=>t>=e[0]*n),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,a,s),u=o.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:o.map((n,i)=>`${l({config:e,src:t,quality:r,width:n})} ${"w"===c?n:i+1}${c}`).join(", "),src:l({config:e,src:t,quality:r,width:o[u]})}}({config:O,src:e,unoptimized:n,width:B,quality:Y,sizes:t,loader:G}),ee=V?"lazy":h;return{props:{...P,loading:ee,fetchPriority:N,width:B,height:H,decoding:z,className:f,style:{...Z,...K},sizes:Q.sizes,srcSet:Q.srcSet,src:y||Q.src},meta:{unoptimized:n,preload:d||u,placeholder:j,fill:v}}}},98879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return l}});let i=e.r(71645),a="u"<typeof window,r=a?()=>{}:i.useLayoutEffect,s=a?()=>{}:i.useEffect;function l(e){let{headManager:t,reduceComponentsToState:n}=e;function l(){if(t&&t.mountedInstances){let e=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return a&&(t?.mountedInstances?.add(e.children),l()),r(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),r(()=>(t&&(t._pendingUpdate=l),()=>{t&&(t._pendingUpdate=l)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},26564,e=>{"use strict";var t=e.i(43476),n=e.i(75775),i=e.i(56420);let a={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};a.node;let r=(0,i.default)(a),s={name:"log-out",size:24,node:[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]};s.node;let l=(0,i.default)(s);var o=e.i(28623),c=e.i(23384);e.s(["AppHeader",0,function(){let e=(0,c.useHfOAuth)();return(0,t.jsxs)("header",{className:"site-header",children:[(0,t.jsxs)("a",{className:"brand-lockup",href:"#top","aria-label":"Sharpify AI home",children:[(0,t.jsx)("span",{className:"brand-mark",children:(0,t.jsx)(o.Sparkles,{size:16,strokeWidth:2.2})}),(0,t.jsxs)("span",{children:["sharpify",(0,t.jsx)("span",{className:"brand-ai",children:".ai"})]})]}),(0,t.jsxs)("nav",{className:"main-nav","aria-label":"Main navigation",children:[(0,t.jsx)("a",{href:"#studio",children:"Enhance"}),(0,t.jsx)("a",{href:"#how-it-works",children:"How it works"}),(0,t.jsx)("a",{href:"#about",children:"About"})]}),(0,t.jsxs)("div",{className:"header-actions",children:[e.required&&(0,t.jsxs)("div",{className:"header-auth-wrap",children:[(0,t.jsxs)("button",{className:"header-cta header-auth-button",type:"button",disabled:!e.ready||e.isSigningIn,onClick:()=>{e.accessToken?e.signOut():e.signIn()},children:[e.accessToken?(0,t.jsx)(l,{size:14}):(0,t.jsx)(r,{size:14}),(0,t.jsx)("span",{children:e.ready?e.isSigningIn?"Connecting…":e.accessToken?`@${e.username??"signed in"} \xb7 Sign out`:"Sign in with HF":"Checking sign-in…"})]}),e.error&&(0,t.jsx)("span",{className:"header-auth-error",role:"status",children:e.error})]}),(0,t.jsxs)("a",{className:"header-cta",href:"#studio",children:["Open studio ",(0,t.jsx)(n.ArrowUpRight,{size:15})]})]})]})}],26564)},21342,e=>{"use strict";var t=e.i(43476),n=e.i(57688),i=e.i(71645),a=e.i(56420);let r={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};r.node;let s=(0,a.default)(r),l={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};l.node;let o=(0,a.default)(l),c={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};c.node;let u=(0,a.default)(c),d={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};d.node;let h=(0,a.default)(d),f={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};f.node;let p=(0,a.default)(f),m={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};m.node;let g=(0,a.default)(m),v={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["help-circle","circle-help"]};v.node;let b=(0,a.default)(v),y={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};y.node;let x=(0,a.default)(y),w={name:"file-image",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]};w.node;let j=(0,a.default)(w),k={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};k.node;let N=(0,a.default)(k),z={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};z.node;let S=(0,a.default)(z),E={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};E.node;let R=(0,a.default)(E),_={name:"wand-sparkles",size:24,node:[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],aliases:["wand-2"]};_.node;let C=(0,a.default)(_),P={name:"hand",size:24,node:[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]};P.node;let M=(0,a.default)(P),U={name:"minus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}]]};U.node;let O=(0,a.default)(U),A={name:"scan-line",size:24,node:[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]};A.node;let T=(0,a.default)(A),L=[1,2,4];function I(e,t,n,i,a){let r=Math.min(n,i*a),s=r*(t-1)/2,l=r/a*(t-1)/2;return{x:Math.max(-s,Math.min(s,e.x)),y:Math.max(-l,Math.min(l,e.y))}}function $({beforeUrl:e,afterUrl:a,metadata:r,zoom:s,onZoomChange:l}){let[o,c]=(0,i.useState)(50),[u,d]=(0,i.useState)(!1),[h,f]=(0,i.useState)({x:0,y:0}),p=(0,i.useRef)(null),m=(0,i.useRef)(null),g=r.enhancedWidth/r.enhancedHeight;function v(e){l(e);let t=m.current?.getBoundingClientRect();f(n=>t?I(n,e,t.width,t.height,g):{x:0,y:0}),1===e&&d(!1)}function b(e){p.current?.pointerId===e.pointerId&&(p.current=null)}(0,i.useEffect)(()=>{let e=m.current;if(!e)return;let t=new ResizeObserver(([e])=>{e&&f(t=>I(t,s,e.contentRect.width,e.contentRect.height,g))});return t.observe(e),()=>t.disconnect()},[g,s]);let y=`translate3d(${h.x}px, ${h.y}px, 0) scale(${s})`;return(0,t.jsxs)("div",{className:"comparison-card",children:[(0,t.jsxs)("div",{className:"comparison-toolbar",children:[(0,t.jsxs)("div",{className:"comparison-heading",children:[(0,t.jsx)(T,{size:16}),(0,t.jsx)("span",{children:"Detail comparison"})]}),(0,t.jsxs)("div",{className:"zoom-controls","aria-label":"Image zoom",children:[(0,t.jsx)("span",{children:"ZOOM"}),(0,t.jsx)("button",{"aria-label":u?"Exit image panning":"Pan image","aria-pressed":u,className:u?"is-active":"",disabled:1===s,onClick:()=>d(e=>!e),title:u?"Exit image panning":"Pan image",type:"button",children:(0,t.jsx)(M,{size:13})}),(0,t.jsx)("button",{"aria-label":"Zoom out",disabled:1===s,onClick:()=>v(Math.max(1,s/2)),type:"button",children:(0,t.jsx)(O,{size:14})}),L.map(e=>(0,t.jsxs)("button",{"aria-pressed":s===e,className:s===e?"is-active":"",onClick:()=>v(e),type:"button",children:[100*e,"%"]},e)),(0,t.jsx)("button",{"aria-label":"Zoom in",disabled:4===s,onClick:()=>v(Math.min(4,2*s)),type:"button",children:(0,t.jsx)(S,{size:14})})]})]}),(0,t.jsxs)("div",{className:`comparison-stage${u?" is-pan-mode":""}`,ref:m,onPointerCancel:b,onPointerDown:function(e){u&&1!==s&&(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),p.current={pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,...h})},onPointerMove:function(e){let t=p.current;if(!u||!t||t.pointerId!==e.pointerId)return;let n=e.currentTarget.getBoundingClientRect();f(I({x:t.x+e.clientX-t.clientX,y:t.y+e.clientY-t.clientY},s,n.width,n.height,g))},onPointerUp:b,children:[(0,t.jsx)("div",{className:"comparison-image before-image",style:{transform:y},children:(0,t.jsx)(n.default,{src:e,alt:"Original uploaded image",fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0})}),(0,t.jsx)("div",{className:"comparison-after",style:{clipPath:`inset(0 0 0 ${o}%)`},children:(0,t.jsx)("div",{className:"comparison-image after-image",style:{transform:y},children:(0,t.jsx)(n.default,{src:a,alt:"AI enhanced result",fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0})})}),(0,t.jsx)("span",{className:"comparison-label label-before",children:"ORIGINAL"}),(0,t.jsx)("span",{className:"comparison-label label-after",children:"AI ENHANCED"}),(0,t.jsx)("div",{className:"comparison-divider",style:{left:`${o}%`},"aria-hidden":"true",children:(0,t.jsx)("span",{className:"divider-knob",children:(0,t.jsx)("span",{})})}),(0,t.jsx)("input",{"aria-label":"Reveal more of the original or enhanced image",className:"comparison-range",max:100,min:0,onChange:e=>c(Number(e.currentTarget.value)),type:"range",value:o}),(0,t.jsx)("span",{className:"compare-hint",children:u?"DRAG TO MOVE":"DRAG TO COMPARE"})]}),(0,t.jsxs)("div",{className:"comparison-meta",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{children:"ORIGINAL"}),(0,t.jsxs)("strong",{children:[r.originalWidth.toLocaleString()," × ",r.originalHeight.toLocaleString()]})]}),(0,t.jsx)("div",{className:"comparison-meta-arrow",children:"→"}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("span",{children:["ENHANCED · ",r.scale,"×"]}),(0,t.jsxs)("strong",{children:[r.enhancedWidth.toLocaleString()," × ",r.enhancedHeight.toLocaleString()]})]}),(0,t.jsxs)("div",{className:"comparison-engine",children:[(0,t.jsx)("span",{children:"ENGINE"}),(0,t.jsx)("strong",{children:r.model})]})]})]})}var D=e.i(47167),q=e.i(23587),G=e.i(96869);let F=(D.default.env.NEXT_PUBLIC_API_URL||"http://localhost:8000").replace(/\/+$/,""),W={upload_too_large:"This image is larger than the 20 MB upload limit.",auth_required:"Sign in with Hugging Face before enhancing images.",gpu_quota_exceeded:"Your Hugging Face GPU time is used up for now. Try again after your quota resets.",queue_unavailable:"The shared AI queue is full right now. Please try again shortly.",resource_unavailable:"The AI service could not prepare this image. Try a smaller input.",unauthorized:"Your Hugging Face sign-in expired. Sign in again, then retry this image.",unsupported_media_type:"Choose a JPG, PNG, or WEBP image.",invalid_image:"This image is unsupported or exceeds the AI service's image limits. Try a supported still image with fewer pixels.",invalid_request:"Choose an upscale factor and output format, then try again.",model_not_ready:"The AI service is starting up. Please try again in a moment.",gpu_out_of_memory:"This image is too large for the available GPU memory. Try a smaller image.",enhancement_failed:"The AI service could not finish this image. Try a smaller image.",inference_failed:"The AI service could not enhance this image. Please try again.",encoding_failed:"The enhanced image could not be prepared for download.",internal_error:"Something went wrong while preparing the enhanced image."};function B(e){if(e.type.trim())return e;let t=e.name.split(".").pop()?.toLowerCase();return e.slice(0,e.size,"jpg"===t||"jpeg"===t?"image/jpeg":"png"===t?"image/png":"webp"===t?"image/webp":"application/octet-stream")}class H extends Error{status;code;constructor(e,t,n){super(e),this.status=t,this.code=n,this.name="EnhancementApiError"}}function V(e,t,n){let i=Number(e.get(t));return Number.isSafeInteger(i)&&i>0?i:n}async function Y(e){let t="";try{let n=await e.json();if("object"==typeof n&&null!==n&&"error"in n){let e=n.error;"object"==typeof e&&null!==e&&"code"in e&&(t="string"==typeof e.code?e.code:"")}}catch{}return new H(W[t]??(413===e.status?W.upload_too_large:e.status>=500?"The AI service is unavailable right now. Please try again shortly.":"The image could not be processed. Check the file and try again."),e.status,t||void 0)}function Z(){if(/^https?:\/\//i.test(G.HF_INFERENCE_SPACE))return new URL(G.HF_INFERENCE_SPACE).origin;let[e,t]=G.HF_INFERENCE_SPACE.split("/");if(!e||!t)throw new H("The hosted AI service is not configured correctly.",0,"invalid_configuration");return`https://${e}-${t}.hf.space`}function X(e){return"object"==typeof e&&null!==e?e:null}async function J(e,t){let n;if(e instanceof Blob)return new Blob([e],{type:t});let i=X(e);if(i?.blob instanceof Blob)return new Blob([i.blob],{type:t});let a="string"==typeof e?e:[i?.data,i?.url,i?.path].find(e=>"string"==typeof e&&e.length>0);if("string"!=typeof a)throw new H("The service did not return a downloadable image.",502,"invalid_response");try{n=a.startsWith("data:")||a.startsWith("blob:")?new URL(a):new URL(a,`${Z()}/`)}catch{throw new H("The service returned an invalid image reference.",502,"invalid_response")}if("data:"===n.protocol||"blob:"===n.protocol){let e=await fetch(n);if(!e.ok)throw new H("The generated image could not be read.",e.status,"invalid_response");return new Blob([await e.blob()],{type:t})}if(n.origin!==Z()||"https:"!==n.protocol)throw new H("The service returned an unexpected image location.",502,"invalid_response");let r=await fetch(n,{credentials:"omit"});if(!r.ok)throw new H(401===r.status||403===r.status?W.unauthorized:"The generated image could not be downloaded.",r.status,401===r.status||403===r.status?"unauthorized":"invalid_response");return new Blob([await r.blob()],{type:t})}function K(e,t,n){let i=e[t];return"number"==typeof i&&Number.isSafeInteger(i)&&i>0?i:n}function Q(e){if(e instanceof H)return e;let t=e instanceof Error?e.message:"";return/oauth|sign.?in|unauthori[sz]ed|401|expired token/i.test(t)?new H(W.unauthorized,401,"auth_required"):/quota|over.?quota|daily limit/i.test(t)?new H(W.gpu_quota_exceeded,429,"gpu_quota_exceeded"):/queue.*(full|limit)|queue is full/i.test(t)?new H(W.queue_unavailable,503,"queue_full"):/out of memory/i.test(t)?new H(W.gpu_out_of_memory,503,"gpu_out_of_memory"):new H("The AI service is unavailable right now. Please try again shortly.",503,"inference_failed")}async function ee(e,t,n,i,a){if(!i||!i.startsWith("hf_"))throw new H(W.auth_required,401,"auth_required");a?.({stage:"connecting"});try{let r=(await q.Client.connect(G.HF_INFERENCE_SPACE,{token:i,oauth_token:i,events:["data","status"],credentials:"omit",record_history:!1})).submit("/enhance",[(0,q.handle_file)(B(e)),e.name||"pasted-image.png",String(t.scale),t.outputFormat]),s=null,l="";for await(let e of r)"status"===e.type?"error"===e.stage?l="string"==typeof e.message?e.message:"":"pending"===e.stage?a?.({stage:"queued",position:e.position,etaSeconds:e.eta}):"generating"===e.stage&&a?.({stage:"working"}):"data"===e.type&&(s=Array.isArray(e.data)?e.data:null);if(l)throw Q(Error(l));if(!s||s.length<2)throw new H("The service returned an incomplete enhancement result.",502,"invalid_response");let o=X(s[1]),c=X(o?.error);if(c){let e="string"==typeof c.code?c.code:"inference_failed";throw new H(W[e]??"The image could not be processed. Check the file and try again.","auth_required"===e?401:422,e)}if(!o)throw new H("The service returned invalid image metadata.",502,"invalid_response");let u=new Set(["image/png","image/jpeg","image/webp"]),d=o.content_type,h="string"==typeof d&&u.has(d)?d:`image/${"jpeg"===t.outputFormat?"jpeg":t.outputFormat}`,f=await J(s[0],h),p="string"==typeof o.filename&&/^[A-Za-z0-9._-]{1,120}$/.test(o.filename)?o.filename:`${e.name.replace(/\.[^.]+$/,"")||"image"}-enhanced-${t.scale}x.${t.outputFormat}`,m={originalWidth:K(o,"original_width",n.width),originalHeight:K(o,"original_height",n.height),enhancedWidth:K(o,"enhanced_width",n.width*t.scale),enhancedHeight:K(o,"enhanced_height",n.height*t.scale),scale:t.scale,model:"string"==typeof o.model?o.model:"Real-ESRGAN",filename:p};return{blob:f,metadata:m}}catch(e){throw Q(e)}}async function et(e,t,n,i,a){var r,s;let l,o;if(G.REQUIRES_HF_SIGN_IN)return ee(e,t,n,i,a);let c=new FormData;c.append("file",B(e),e.name||"pasted-image.png"),c.append("scale",String(t.scale)),c.append("output_format",t.outputFormat);try{l=await fetch(`${F}/api/enhance`,{method:"POST",body:c})}catch{throw new H("Could not reach the AI service. Check that the backend is running and try again.",0,"network_error")}if(!l.ok)throw await Y(l);let u=l.headers.get("content-type")?.split(";",1)[0].trim();if(!u?.startsWith("image/"))throw new H("The service returned an unexpected result. Please try again.",l.status,"invalid_response");return{blob:await l.blob(),metadata:{originalWidth:V(l.headers,"x-original-width",n.width),originalHeight:V(l.headers,"x-original-height",n.height),enhancedWidth:V(l.headers,"x-enhanced-width",n.width*t.scale),enhancedHeight:V(l.headers,"x-enhanced-height",n.height*t.scale),scale:t.scale,model:l.headers.get("x-model")||"Real-ESRGAN",filename:(r=l.headers,s=`${e.name.replace(/\.[^.]+$/,"")||"image"}-enhanced-${t.scale}x.${t.outputFormat}`,(o=r.get("content-disposition")?.match(/filename="([^"]+)"/i)?.[1])&&o.replace(/[^A-Za-z0-9._-]/g,"").slice(0,120)||s)}}}let en=new Set(["image/jpeg","image/png","image/webp"]),ei=/\.(jpe?g|png|webp)$/i;function ea(e){if(0===e.size)return"This file is empty. Choose a JPG, PNG, or WEBP image.";if(e.size>2e7)return"This image is larger than the 20 MB upload limit.";let t=e.type.trim().toLowerCase(),n=en.has(t),i=ei.test(e.name);return n||""===t&&i?null:"Choose a JPG, PNG, or WEBP image."}function er(e){return e<1e6?`${Math.max(1,Math.round(e/1e3))} KB`:`${(e/1e6).toFixed(1)} MB`}var es={},el=function(e,t,n,i,a){var r=new Worker(es[t]||(es[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return r.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var i=Error(n[0]);i.code=n[1],i.stack=n[2],a(i,null)}else a(null,t)},r.postMessage(n,i),r},eo=Uint8Array,ec=Uint16Array,eu=Int32Array,ed=new eo([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),eh=new eo([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ef=new eo([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ep=function(e,t){for(var n=new ec(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var a=new eu(n[30]),i=1;i<30;++i)for(var r=n[i];r<n[i+1];++r)a[r]=r-n[i]<<5|i;return{b:n,r:a}},em=ep(ed,2),eg=em.b,ev=em.r;eg[28]=258,ev[258]=28;for(var eb=ep(eh,0),ey=eb.b,ex=eb.r,ew=new ec(32768),ej=0;ej<32768;++ej){var ek=(43690&ej)>>1|(21845&ej)<<1;ek=(61680&(ek=(52428&ek)>>2|(13107&ek)<<2))>>4|(3855&ek)<<4,ew[ej]=((65280&ek)>>8|(255&ek)<<8)>>1}for(var eN=function(e,t,n){for(var i,a=e.length,r=0,s=new ec(t);r<a;++r)e[r]&&++s[e[r]-1];var l=new ec(t);for(r=1;r<t;++r)l[r]=l[r-1]+s[r-1]<<1;if(n){i=new ec(1<<t);var o=15-t;for(r=0;r<a;++r)if(e[r])for(var c=r<<4|e[r],u=t-e[r],d=l[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)i[ew[d]>>o]=c}else for(i=new ec(a),r=0;r<a;++r)e[r]&&(i[r]=ew[l[e[r]-1]++]>>15-e[r]);return i},ez=new eo(288),ej=0;ej<144;++ej)ez[ej]=8;for(var ej=144;ej<256;++ej)ez[ej]=9;for(var ej=256;ej<280;++ej)ez[ej]=7;for(var ej=280;ej<288;++ej)ez[ej]=8;for(var eS=new eo(32),ej=0;ej<32;++ej)eS[ej]=5;var eE=eN(ez,9,0),eR=eN(ez,9,1),e_=eN(eS,5,0),eC=eN(eS,5,1),eP=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},eM=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(7&t)&n},eU=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},eO=function(e){return(e+7)/8|0},eA=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new eo(e.subarray(t,n))},eT=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],eL=function(e,t,n){var i=Error(t||eT[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,eL),!n)throw i;return i},eI=function(e,t,n,i){var a=e.length,r=i?i.length:0;if(!a||t.f&&!t.l)return n||new eo(0);var s=!n,l=s||2!=t.i,o=t.i;s&&(n=new eo(3*a));var c=function(e){var t=n.length;if(e>t){var i=new eo(Math.max(2*t,e));i.set(n),n=i}},u=t.f||0,d=t.p||0,h=t.b||0,f=t.l,p=t.d,m=t.m,g=t.n,v=8*a;do{if(!f){u=eM(e,d,1);var b=eM(e,d+1,3);if(d+=3,b)if(1==b)f=eR,p=eC,m=9,g=5;else if(2==b){var y=eM(e,d,31)+257,x=eM(e,d+10,15)+4,w=y+eM(e,d+5,31)+1;d+=14;for(var j=new eo(w),k=new eo(19),N=0;N<x;++N)k[ef[N]]=eM(e,d+3*N,7);d+=3*x;for(var z=eP(k),S=(1<<z)-1,E=eN(k,z,1),N=0;N<w;){var R=E[eM(e,d,S)];d+=15&R;var _=R>>4;if(_<16)j[N++]=_;else{var C=0,P=0;for(16==_?(P=3+eM(e,d,3),d+=2,C=j[N-1]):17==_?(P=3+eM(e,d,7),d+=3):18==_&&(P=11+eM(e,d,127),d+=7);P--;)j[N++]=C}}var M=j.subarray(0,y),U=j.subarray(y);m=eP(M),g=eP(U),f=eN(M,m,1),p=eN(U,g,1)}else eL(1);else{var _=eO(d)+4,O=e[_-4]|e[_-3]<<8,A=_+O;if(A>a){o&&eL(0);break}l&&c(h+O),n.set(e.subarray(_,A),h),t.b=h+=O,t.p=d=8*A,t.f=u;continue}if(d>v){o&&eL(0);break}}l&&c(h+131072);for(var T=(1<<m)-1,L=(1<<g)-1,I=d;;I=d){var C=f[eU(e,d)&T],$=C>>4;if((d+=15&C)>v){o&&eL(0);break}if(C||eL(2),$<256)n[h++]=$;else if(256==$){I=d,f=null;break}else{var D=$-254;if($>264){var N=$-257,q=ed[N];D=eM(e,d,(1<<q)-1)+eg[N],d+=q}var G=p[eU(e,d)&L],F=G>>4;G||eL(3),d+=15&G;var U=ey[F];if(F>3){var q=eh[F];U+=eU(e,d)&(1<<q)-1,d+=q}if(d>v){o&&eL(0);break}l&&c(h+131072);var W=h+D;if(h<U){var B=r-U,H=Math.min(U,W);for(B+h<0&&eL(3);h<H;++h)n[h]=i[B+h]}for(;h<W;++h)n[h]=n[h-U]}}t.l=f,t.p=I,t.b=h,t.f=u,f&&(u=1,t.m=m,t.d=p,t.n=g)}while(!u)return h!=n.length&&s?eA(n,0,h):n.subarray(0,h)},e$=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},eD=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},eq=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var a=n.length,r=n.slice();if(!a)return{t:eY,l:0};if(1==a){var s=new eo(n[0].s+1);return s[n[0].s]=1,{t:s,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var l=n[0],o=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:l.f+o.f,l:l,r:o};u!=a-1;)l=n[n[c].f<n[d].f?c++:d++],o=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:l.f+o.f,l:l,r:o};for(var h=r[0].s,i=1;i<a;++i)r[i].s>h&&(h=r[i].s);var f=new ec(h+1),p=eG(n[u-1],f,0);if(p>t){var i=0,m=0,g=p-t,v=1<<g;for(r.sort(function(e,t){return f[t.s]-f[e.s]||e.f-t.f});i<a;++i){var b=r[i].s;if(f[b]>t)m+=v-(1<<p-f[b]),f[b]=t;else break}for(m>>=g;m>0;){var y=r[i].s;f[y]<t?m-=1<<t-f[y]++-1:++i}for(;i>=0&&m;--i){var x=r[i].s;f[x]==t&&(--f[x],++m)}p=t}return{t:new eo(f),l:p}},eG=function(e,t,n){return -1==e.s?Math.max(eG(e.l,t,n+1),eG(e.r,t,n+1)):t[e.s]=n},eF=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new ec(++t),i=0,a=e[0],r=1,s=function(e){n[i++]=e},l=1;l<=t;++l)if(e[l]==a&&l!=t)++r;else{if(!a&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(a),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(a);r=1,a=e[l]}return{c:n.subarray(0,i),n:t}},eW=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},eB=function(e,t,n){var i=n.length,a=eO(t+2);e[a]=255&i,e[a+1]=i>>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var r=0;r<i;++r)e[a+r+4]=n[r];return(a+4+i)*8},eH=function(e,t,n,i,a,r,s,l,o,c,u){e$(t,u++,n),++a[256];for(var d,h,f,p,m=eq(a,15),g=m.t,v=m.l,b=eq(r,15),y=b.t,x=b.l,w=eF(g),j=w.c,k=w.n,N=eF(y),z=N.c,S=N.n,E=new ec(19),R=0;R<j.length;++R)++E[31&j[R]];for(var R=0;R<z.length;++R)++E[31&z[R]];for(var _=eq(E,7),C=_.t,P=_.l,M=19;M>4&&!C[ef[M-1]];--M);var U=c+5<<3,O=eW(a,ez)+eW(r,eS)+s,A=eW(a,g)+eW(r,y)+s+14+3*M+eW(E,C)+2*E[16]+3*E[17]+7*E[18];if(o>=0&&U<=O&&U<=A)return eB(t,u,e.subarray(o,o+c));if(e$(t,u,1+(A<O)),u+=2,A<O){d=eN(g,v,0),h=g,f=eN(y,x,0),p=y;var T=eN(C,P,0);e$(t,u,k-257),e$(t,u+5,S-1),e$(t,u+10,M-4),u+=14;for(var R=0;R<M;++R)e$(t,u+3*R,C[ef[R]]);u+=3*M;for(var L=[j,z],I=0;I<2;++I)for(var $=L[I],R=0;R<$.length;++R){var D=31&$[R];e$(t,u,T[D]),u+=C[D],D>15&&(e$(t,u,$[R]>>5&127),u+=$[R]>>12)}}else d=eE,h=ez,f=e_,p=eS;for(var R=0;R<l;++R){var q=i[R];if(q>255){var D=q>>18&31;eD(t,u,d[D+257]),u+=h[D+257],D>7&&(e$(t,u,q>>23&31),u+=ed[D]);var G=31&q;eD(t,u,f[G]),u+=p[G],G>3&&(eD(t,u,q>>5&8191),u+=eh[G])}else eD(t,u,d[q]),u+=h[q]}return eD(t,u,d[256]),u+h[256]},eV=new eu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),eY=new eo(0),eZ=function(e,t,n,i,a,r){var s=r.z||e.length,l=new eo(i+s+5*(1+Math.ceil(s/7e3))+a),o=l.subarray(i,l.length-a),c=r.l,u=7&(r.r||0);if(t){u&&(o[0]=r.r>>3);for(var d=eV[t-1],h=d>>13,f=8191&d,p=(1<<n)-1,m=r.p||new ec(32768),g=r.h||new ec(p+1),v=Math.ceil(n/3),b=2*v,y=function(t){return(e[t]^e[t+1]<<v^e[t+2]<<b)&p},x=new eu(25e3),w=new ec(288),j=new ec(32),k=0,N=0,z=r.i||0,S=0,E=r.w||0,R=0;z+2<s;++z){var _=y(z),C=32767&z,P=g[_];if(m[C]=P,g[_]=C,E<=z){var M=s-z;if((k>7e3||S>24576)&&(M>423||!c)){u=eH(e,o,0,x,w,j,N,S,R,z-R,u),S=k=N=0,R=z;for(var U=0;U<286;++U)w[U]=0;for(var U=0;U<30;++U)j[U]=0}var O=2,A=0,T=f,L=C-P&32767;if(M>2&&_==y(z-L))for(var I=Math.min(h,M)-1,$=Math.min(32767,z),D=Math.min(258,M);L<=$&&--T&&C!=P;){if(e[z+O]==e[z+O-L]){for(var q=0;q<D&&e[z+q]==e[z+q-L];++q);if(q>O){if(O=q,A=L,q>I)break;for(var G=Math.min(L,q-2),F=0,U=0;U<G;++U){var W=z-L+U&32767,B=m[W],H=W-B&32767;H>F&&(F=H,P=W)}}}P=m[C=P],L+=C-P&32767}if(A){x[S++]=0x10000000|ev[O]<<18|ex[A];var V=31&ev[O],Y=31&ex[A];N+=ed[V]+eh[Y],++w[257+V],++j[Y],E=z+O,++k}else x[S++]=e[z],++w[e[z]]}}for(z=Math.max(z,E);z<s;++z)x[S++]=e[z],++w[e[z]];u=eH(e,o,c,x,w,j,N,S,R,z-R,u),c||(r.r=7&u|o[u/8|0]<<3,u-=7,r.h=g,r.p=m,r.i=z,r.w=E)}else{for(var z=r.w||0;z<s+c;z+=65535){var Z=z+65535;Z>=s&&(o[u/8|0]=c,Z=s),u=eB(o,u+1,e.subarray(z,Z))}r.i=s}return eA(l,0,i+eO(u)+a)},eX=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&-0x12477ce0)^n>>>1;e[t]=n}return e}(),eJ=function(){var e=-1;return{p:function(t){for(var n=e,i=0;i<t.length;++i)n=eX[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}},eK=function(){var e=1,t=0;return{p:function(n){for(var i=e,a=t,r=0|n.length,s=0;s!=r;){for(var l=Math.min(s+2655,r);s<l;++s)a+=i+=n[s];i=(65535&i)+15*(i>>16),a=(65535&a)+15*(a>>16)}e=i,t=a},d:function(){return e%=65521,t%=65521,(255&e)<<24|(65280&e)<<8|(255&t)<<8|t>>8}}},eQ=function(e,t,n,i,a){if(!a&&(a={l:1},t.dictionary)){var r=t.dictionary.subarray(-32768),s=new eo(r.length+e.length);s.set(r),s.set(e,r.length),e=s,a.w=r.length}return eZ(e,null==t.level?6:t.level,null==t.mem?a.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,i,a)},e0=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},e1=function(e,t,n){for(var i=e(),a=e.toString(),r=a.slice(a.indexOf("[")+1,a.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<i.length;++s){var l=i[s],o=r[s];if("function"==typeof l){t+=";"+o+"=";var c=l.toString();if(l.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var d in t+=c,l.prototype)t+=";"+o+".prototype."+d+"="+l.prototype[d].toString();else t+=c}else n[o]=l}return t},e2=[],e5=function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},e4=function(e,t,n,i){if(!e2[n]){for(var a="",r={},s=e.length-1,l=0;l<s;++l)a=e1(e[l],a,r);e2[n]={c:e1(e[s],a,r),e:r}}var o=e0({},e2[n].e);return el(e2[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,o,e5(o),i)},e3=function(){return[eo,ec,eu,ed,eh,ef,eg,ey,eR,eC,ew,eT,eN,eP,eM,eU,eO,eA,eL,eI,ty,e9,te]},e8=function(){return[eo,ec,eu,ed,eh,ef,ev,ex,eE,ez,e_,eS,ew,eV,eY,eN,e$,eD,eq,eG,eF,eW,eB,eH,eO,eA,eZ,eQ,tg,e9]},e6=function(){return[to,tc]},e7=function(){return[th]},e9=function(e){return postMessage(e,[e.buffer])},te=function(e){return e&&{out:e.size&&new eo(e.size),dictionary:e.dictionary}},tt=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){t.data[0]?(e.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):e.flush(t.data[1])}},tn=function(e,t,n,i,a,r,s){var l,o=e4(e,i,a,function(e,n){e?(o.terminate(),t.ondata.call(t,e)):Array.isArray(n)?1==n.length?(t.queuedSize-=n[0],t.ondrain&&t.ondrain(n[0])):(n[1]&&o.terminate(),t.ondata.call(t,e,n[0],n[1])):s(n)});o.postMessage(n),t.queuedSize=0,t.push=function(e,n){t.ondata||eL(5),l&&t.ondata(eL(4,0,1),null,!!n),t.queuedSize+=e.length,o.postMessage([e,l=n],e.buffer instanceof ArrayBuffer?[e.buffer]:[])},t.terminate=function(){o.terminate()},r&&(t.flush=function(e){o.postMessage([0,e])})},ti=function(e,t){return e[t]|e[t+1]<<8},ta=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},tr=function(e,t){return ta(e,t)+0x100000000*ta(e,t+4)},ts=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},tl=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:2*(9==t.level),e[9]=3,0!=t.mtime&&ts(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}},to=function(e){(31!=e[0]||139!=e[1]||8!=e[2])&&eL(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(2&t)},tc=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},tu=function(e){return 10+(e.filename?e.filename.length+1:0)},td=function(e,t){var n=t.level;if(e[0]=120,e[1]=(0==n?0:n<6?1:9==n?3:2)<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=eK();i.p(t.dictionary),ts(e,2,i.d())}},th=function(e,t){return((15&e[0])!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&eL(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&eL(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function tf(e,t){return"function"==typeof e&&(t=e,e={}),this.ondata=t,e}var tp=function(){function e(e,t){if("function"==typeof e&&(t=e,e={}),this.ondata=t,this.o=e||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new eo(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return e.prototype.p=function(e,t){this.ondata(eQ(e,this.o,0,0,this.s),t)},e.prototype.push=function(e,t){this.ondata||eL(5),this.s.l&&eL(4);var n=e.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var i=new eo(-32768&n);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;this.b.set(e.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(e.subarray(a),32768),this.s.z=e.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(e,this.s.z),this.s.z+=e.length;this.s.l=1&t,(this.s.z>this.s.w+8191||t)&&(this.p(this.b,t||!1),this.s.w=this.s.i,this.s.i-=2),t&&(this.s=this.o={},this.b=eY)},e.prototype.flush=function(e){if(this.ondata||eL(5),this.s.l&&eL(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,e){var t=new eo(6);t[0]=this.s.r>>3;var n=eB(t,this.s.r,eY);this.s.r=0,this.ondata(t.subarray(0,n>>3),!1)}},e}(),tm=function(e,t){tn([e8,function(){return[tt,tp]}],this,tf.call(this,e,t),function(e){onmessage=tt(new tp(e.data))},6,1)};function tg(e,t){return eQ(e,t||{},0,0)}var tv=function(){function e(e,t){"function"==typeof e&&(t=e,e={}),this.ondata=t;var n=e&&e.dictionary&&e.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new eo(32768),this.p=new eo(0),n&&this.o.set(n)}return e.prototype.e=function(e){if(this.ondata||eL(5),this.d&&eL(4),this.p.length){if(e.length){var t=new eo(this.p.length+e.length);t.set(this.p),t.set(e,this.p.length),this.p=t}}else this.p=e},e.prototype.c=function(e){this.s.i=+(this.d=e||!1);var t=this.s.b,n=eI(this.p,this.s,this.o);this.ondata(eA(n,t,this.s.b),this.d),this.o=eA(n,this.s.b-32768),this.s.b=this.o.length,this.p=eA(this.p,this.s.p/8|0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),tb=function(e,t){tn([e3,function(){return[tt,tv]}],this,tf.call(this,e,t),function(e){onmessage=tt(new tv(e.data))},7,0)};function ty(e,t){return eI(e,{i:2},t&&t.out,t&&t.dictionary)}(function(){function e(e,t){this.c=eJ(),this.l=0,this.v=1,tp.call(this,e,t)}e.prototype.push=function(e,t){this.c.p(e),this.l+=e.length,tp.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=eQ(e,this.o,this.v&&tu(this.o),t&&8,this.s);this.v&&(tl(n,this.o),this.v=0),t&&(ts(n,n.length-8,this.c.d()),ts(n,n.length-4,this.l)),this.ondata(n,t)},e.prototype.flush=function(e){tp.prototype.flush.call(this,e)}})();var tx=function(){function e(e,t){this.v=1,this.r=0,tv.call(this,e,t)}return e.prototype.push=function(e,t){if(tv.prototype.e.call(this,e),this.r+=e.length,this.v){var n=this.p.subarray(this.v-1),i=n.length>3?to(n):4;if(i>n.length){if(!t)return}else this.v>1&&this.onmember&&this.onmember(this.r-n.length);this.p=n.subarray(i),this.v=0}tv.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=eO(this.s.p)+9,this.s={i:0},this.o=new eo(0),this.push(new eo(0),t)):t&&tv.prototype.c.call(this,t)},e}(),tw=function(e,t){var n=this;tn([e3,e6,function(){return[tt,tv,tx]}],this,tf.call(this,e,t),function(e){var t=new tx(e.data);t.onmember=function(e){return postMessage(e)},onmessage=tt(t)},9,0,function(e){return n.onmember&&n.onmember(e)})},tj=(function(){function e(e,t){this.c=eK(),this.v=1,tp.call(this,e,t)}e.prototype.push=function(e,t){this.c.p(e),tp.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){var n=eQ(e,this.o,this.v&&(this.o.dictionary?6:2),t&&4,this.s);this.v&&(td(n,this.o),this.v=0),t&&ts(n,n.length-4,this.c.d()),this.ondata(n,t)},e.prototype.flush=function(e){tp.prototype.flush.call(this,e)}}(),function(){function e(e,t){tv.call(this,e,t),this.v=e&&e.dictionary?2:1}return e.prototype.push=function(e,t){if(tv.prototype.e.call(this,e),this.v){if(this.p.length<6&&!t)return;this.p=this.p.subarray(th(this.p,this.v-1)),this.v=0}t&&(this.p.length<4&&eL(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),tv.prototype.c.call(this,t)},e}()),tk=function(e,t){tn([e3,e7,function(){return[tt,tv,tj]}],this,tf.call(this,e,t),function(e){onmessage=tt(new tj(e.data))},11,0)},tN=function(){function e(e,t){this.o=tf.call(this,e,t)||{},this.G=tx,this.I=tv,this.Z=tj}return e.prototype.i=function(){var e=this;this.s.ondata=function(t,n){e.ondata(t,n)}},e.prototype.push=function(e,t){if(this.ondata||eL(5),this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var n=new eo(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length)}else this.p=e;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,t),this.p=null)}},e}();function tz(e,t){tN.call(this,e,t),this.queuedSize=0,this.G=tw,this.I=tb,this.Z=tk}tz.prototype.i=function(){var e=this;this.s.ondata=function(t,n,i){e.ondata(t,n,i)},this.s.ondrain=function(t){e.queuedSize-=t,e.ondrain&&e.ondrain(t)}},tz.prototype.push=function(e,t){this.queuedSize+=e.length,tN.prototype.push.call(this,e,t)};var tS="u">typeof TextEncoder&&new TextEncoder,tE="u">typeof TextDecoder&&new TextDecoder,tR=0;try{tE.decode(eY,{stream:!0}),tR=1}catch(e){}var t_=function(e){for(var t="",n=0;;){var i=e[n++],a=(i>127)+(i>223)+(i>239);if(n+a>e.length)return{s:t,r:eA(e,n-1)};a?3==a?t+=String.fromCharCode(55296|(i=((15&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536)>>10,56320|1023&i):1&a?t+=String.fromCharCode((31&i)<<6|63&e[n++]):t+=String.fromCharCode((15&i)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(i)}};function tC(e,t){if(t){for(var n=new eo(e.length),i=0;i<e.length;++i)n[i]=e.charCodeAt(i);return n}if(tS)return tS.encode(e);for(var a=e.length,r=new eo(e.length+(e.length>>1)),s=0,l=function(e){r[s++]=e},i=0;i<a;++i){if(s+5>r.length){var o=new eo(s+8+(a-i<<1));o.set(r),r=o}var c=e.charCodeAt(i);c<128||t?l(c):(c<2048?l(192|c>>6):(c>55295&&c<57344?(l(240|(c=65536+(1047552&c)|1023&e.charCodeAt(++i))>>18),l(128|c>>12&63)):l(224|c>>12),l(128|c>>6&63)),l(128|63&c))}return eA(r,0,s)}(function(e){this.ondata=e,tR?this.t=new TextDecoder:this.p=eY}).prototype.push=function(e,t){if(this.ondata||eL(5),t=!!t,this.t){this.ondata(this.t.decode(e,{stream:!0}),t),t&&(this.t.decode().length&&eL(8),this.t=null);return}this.p||eL(4);var n=new eo(this.p.length+e.length);n.set(this.p),n.set(e,this.p.length);var i=t_(n),a=i.s,r=i.r;t?(r.length&&eL(8),this.p=null):this.p=r,this.ondata(a,t)},(function(e){this.ondata=e}).prototype.push=function(e,t){this.ondata||eL(5),this.d&&eL(4),this.ondata(tC(e),this.d=t||!1)};var tP=function(e){return 1==e?3:e<6?2:+(9==e)},tM=function(e,t,n,i,a,r,s){var l=0xffffffff==a,o=0xffffffff==r,c=0xffffffff==s,u=t+n;if(i&&l+o+c){for(;t+4<u;t+=4+ti(e,t+2))if(1==ti(e,t))return[l?tr(e,t+4+8*o):a,o?tr(e,t+4):r,c?tr(e,t+4+8*(o+l)):s,1];i<2&&eL(13)}return[a,r,s,0]},tU=function(e){var t=0;if(e)for(var n in e){var i=e[n].length;i>65535&&eL(9),t+=i+4}return t},tO=function(e,t,n,i,a,r,s,l){var o=i.length,c=n.extra,u=l&&l.length,d=tU(c);ts(e,t,null!=s?0x2014b50:0x4034b50),t+=4,null!=s&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(r<0&&8),e[t++]=a&&8,e[t++]=255&n.compression,e[t++]=n.compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),f=h.getFullYear()-1980;if((f<0||f>119)&&eL(10),ts(e,t,f<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=r&&(ts(e,t,n.crc),ts(e,t+4,r<0?-r-2:r),ts(e,t+8,n.size)),ts(e,t+12,o),ts(e,t+14,d),t+=16,null!=s&&(ts(e,t,u),ts(e,t+6,n.attrs),ts(e,t+10,s),t+=14),e.set(i,t),t+=o,d)for(var p in c){var m=c[p],g=m.length;ts(e,t,+p),ts(e,t+2,g),e.set(m,t+4),t+=4+g}return u&&(e.set(l,t),t+=u),t},tA=function(e,t,n,i,a){ts(e,t,0x6054b50),ts(e,t+8,n),ts(e,t+10,n),ts(e,t+12,i),ts(e,t+16,a)},tT=function(){function e(e){this.filename=e,this.c=eJ(),this.size=0,this.compression=0}return e.prototype.process=function(e,t){this.ondata(null,e,t)},e.prototype.push=function(e,t){this.ondata||eL(5),this.c.p(e),this.size+=e.length,t&&(this.crc=this.c.d()),this.process(e,t||!1)},e}();function tL(e,t){var n=this;t||(t={}),tT.call(this,e),this.d=new tp(t,function(e,t){n.ondata(null,e,t)}),this.compression=8,this.flag=tP(t.level)}function tI(e,t){var n=this;t||(t={}),tT.call(this,e),this.d=new tm(t,function(e,t,i){n.ondata(e,t,i)}),this.compression=8,this.flag=tP(t.level),this.terminate=this.d.terminate}tL.prototype.process=function(e,t){try{this.d.push(e,t)}catch(e){this.ondata(e,null,t)}},tL.prototype.push=function(e,t){tT.prototype.push.call(this,e,t)},tI.prototype.process=function(e,t){this.d.push(e,t)},tI.prototype.push=function(e,t){tT.prototype.push.call(this,e,t)};var t$=function(){function e(e){this.ondata=e,this.u=[],this.d=1}return e.prototype.add=function(e){var t=this;if(this.ondata||eL(5),2&this.d)this.ondata(eL(4+(1&this.d)*8,0,1),null,!1);else{var n=tC(e.filename),i=n.length,a=e.comment,r=a&&tC(a),s=i!=e.filename.length||r&&a.length!=r.length,l=i+tU(e.extra)+30;i>65535&&this.ondata(eL(11,0,1),null,!1);var o=new eo(l);tO(o,0,e,n,s,-1);var c=[o],u=function(){for(var e=0,n=c;e<n.length;e++){var i=n[e];t.ondata(null,i,!1)}c=[]},d=this.d;this.d=0;var h=this.u.length,f=e0(e,{f:n,u:s,o:r,t:function(){e.terminate&&e.terminate()},r:function(){if(u(),d){var e=t.u[h+1];e?e.r():t.d=1}d=1}}),p=0;e.ondata=function(n,i,a){if(n)t.ondata(n,i,a),t.terminate();else if(p+=i.length,c.push(i),a){var r=new eo(16);ts(r,0,0x8074b50),ts(r,4,e.crc),ts(r,8,p),ts(r,12,e.size),c.push(r),f.c=p,f.b=l+p+16,f.crc=e.crc,f.size=e.size,d&&f.r(),d=1}else d&&u()},this.u.push(f)}},e.prototype.end=function(){var e=this;2&this.d?this.ondata(eL(4+(1&this.d)*8,0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},e.prototype.e=function(){for(var e=0,t=0,n=0,i=0,a=this.u;i<a.length;i++){var r=a[i];n+=46+r.f.length+tU(r.extra)+(r.o?r.o.length:0)}for(var s=new eo(n+22),l=0,o=this.u;l<o.length;l++){var r=o[l];tO(s,e,r,r.f,r.u,-r.c-2,t,r.o),e+=46+r.f.length+tU(r.extra)+(r.o?r.o.length:0),t+=r.b}tA(s,e,this.u.length,n,t),this.ondata(null,s,!0),this.d=2},e.prototype.terminate=function(){for(var e=0,t=this.u;e<t.length;e++)t[e].t();this.d=2},e}(),tD=function(){function e(){}return e.prototype.push=function(e,t){this.ondata(null,e,t)},e.compression=0,e}();function tq(){var e=this;this.i=new tv(function(t,n){e.ondata(null,t,n)})}function tG(e,t){var n=this;t<32e4?this.i=new tv(function(e,t){n.ondata(null,e,t)}):(this.i=new tb(function(e,t,i){n.ondata(e,t,i)}),this.terminate=this.i.terminate)}function tF(e){this.onfile=e,this.k=[],this.o={0:tD},this.p=eY}async function tW(e,t){if(0===e.length)throw Error("There are no completed images to archive.");let n=[],i=null,a=!1,r=new t$((e,t,r)=>{if(e){i=e;return}if(t){let e=new ArrayBuffer(t.byteLength);new Uint8Array(e).set(t),n.push(e)}r&&(a=!0)});try{for(let[n,a]of e.entries()){let s=new tT(function(e,t){let n=e.split(/[\\/]/).pop()?.replace(/[^A-Za-z0-9._-]/g,"_").replace(/^\.+/,"")||`enhanced-image-${t+1}.png`;return`${String(t+1).padStart(2,"0")}-${n}`}(a.filename,n));if(r.add(s),"function"!=typeof a.blob.stream)s.push(new Uint8Array(await a.blob.arrayBuffer()),!0);else{let e=a.blob.stream().getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;if(s.push(n),i)throw i}s.push(new Uint8Array(0),!0)}catch(t){throw await e.cancel(t).catch(()=>void 0),t}finally{e.releaseLock()}}if(i)throw i;t?.(n+1,e.length)}if(r.end(),i)throw i;if(!a)throw Error("The image archive could not be finalized.");return new Blob(n,{type:"application/zip"})}catch(e){throw r.terminate(),e}}tq.prototype.push=function(e,t){try{this.i.push(e,t)}catch(e){this.ondata(e,null,t)}},tq.compression=8,tG.prototype.push=function(e,t){this.i.terminate&&(e=eA(e,0)),this.i.push(e,t)},tG.compression=8,tF.prototype.push=function(e,t){var n=this;if(this.onfile||eL(5),this.p||eL(4),this.c>0){var i=Math.min(this.c,e.length),a=e.subarray(0,i);if(this.c-=i,this.d?this.d.push(a,!this.c):this.k[0].push(a),(e=e.subarray(i)).length)return this.push(e,t)}else{var r=0,s=0,l=void 0,o=void 0;this.p.length?e.length?((o=new eo(this.p.length+e.length)).set(this.p),o.set(e,this.p.length)):o=this.p:o=e;for(var c=o.length,u=this.c,d=u&&this.d,h=this;s<c-4&&"break"!==function(){var e=ta(o,s);if(0x4034b50==e){r=1,l=s,h.d=null,h.c=0;var t=ti(o,s+6),i=ti(o,s+8),a=ti(o,s+26),d=ti(o,s+28);if(c>s+30+a+d){var f,p=[];h.k.unshift(p),r=2;var m=ta(o,s+18),g=ta(o,s+22),v=function(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}if(tE)return tE.decode(e);var a=t_(e),r=a.s,n=a.r;return n.length&&eL(8),r}(o.subarray(s+30,s+=30+a),!(2048&t)),b=tM(o,s,d,2,m,g,0),y=b[0],x=b[1],w=b[3];8&t&&(y=-1-w),s+=d,h.c=y;var j={name:v,compression:i,start:function(){if(j.ondata||eL(5),y){var e=n.o[i];e||j.ondata(eL(14,"unknown compression type "+i,1),null,!1),(f=y<0?new e(v):new e(v,y,x)).ondata=function(e,t,n){j.ondata(e,t,n)};for(var t=0;t<p.length;t++){var a=p[t];f.push(a,!1)}n.k[0]==p&&n.c?n.d=f:f.push(eY,!0)}else j.ondata(null,eY,!0)},terminate:function(){f&&f.terminate&&f.terminate()}};y>=0&&(j.size=y,j.originalSize=x),h.onfile(j)}return"break"}if(u){if(0x8074b50==e)return l=s+=12+(-2==u&&8),r=3,h.c=0,"break";else if(0x2014b50==e)return l=s-=4,r=3,h.c=0,"break"}}();++s);if(this.p=eY,u<0){var f=r?o.subarray(0,l-12-(-2==u&&8)-(0x8074b50==ta(o,l-16)&&4)):o.subarray(0,s);d?d.push(f,!!r):this.k[+(2==r)].push(f)}if(2&r)return this.push(o.subarray(s),t);this.p=o.subarray(s)}t&&(this.c&&eL(13),this.p=null)},tF.prototype.register=function(e){this.o[e.compression]=e},"function"==typeof queueMicrotask&&queueMicrotask;let tB={scale:4,outputFormat:"png"},tH=[{value:"png",label:"PNG",detail:"Lossless"},{value:"jpeg",label:"JPG",detail:"Smaller file"},{value:"webp",label:"WEBP",detail:"Modern"}];function tV(e){if(!e.result)return;let t=URL.createObjectURL(e.result.blob),n=document.createElement("a");n.href=t,n.download=e.result.metadata.filename,document.body.append(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(t),1e3)}function tY({accessToken:e,requiresAuth:a,onBusyChange:r}){let[s,l]=(0,i.useState)([]),[c,u]=(0,i.useState)(tB),[d,f]=(0,i.useState)(null),[m,v]=(0,i.useState)(!1),[y,w]=(0,i.useState)(!1),[k,z]=(0,i.useState)(!1),[E,_]=(0,i.useState)(!1),[P,M]=(0,i.useState)(!1),[U,O]=(0,i.useState)({current:0,total:0}),[A,T]=(0,i.useState)({current:0,total:0}),[L,I]=(0,i.useState)({itemId:null,value:1}),[D,q]=(0,i.useState)(null),[G,F]=(0,i.useState)(null),W=(0,i.useRef)(null),B=(0,i.useRef)(!1),V=(0,i.useRef)(!1),Y=(0,i.useRef)(!1),Z=(0,i.useRef)(s),X=(0,i.useRef)(null),J=(0,i.useRef)(null),K=m||y||E,Q=s.find(e=>e.id===d)??s[0]??null,ee=L.itemId===Q?.id?L.value:1,en=s.filter(e=>"complete"===e.status).length,ei=s.filter(e=>"failed"===e.status).length,es=s.filter(e=>"queued"===e.status||"failed"===e.status).length,el=s.reduce((e,t)=>e+(t.result?t.result.metadata.enhancedWidth*t.result.metadata.enhancedHeight:t.width*t.height*c.scale*c.scale),0),eo=el>64e6;function ec(){null!==J.current&&(window.clearTimeout(J.current),J.current=null),X.current&&(URL.revokeObjectURL(X.current),X.current=null)}async function eu(e){if(K||B.current||V.current||m)return;let t=Array.from(e);if(0===t.length)return;let n=10-s.length;if(n<=0)return void q("A batch can contain up to 10 images. Remove an image before adding more.");let i=[],a=[],o=!1;V.current=!0,_(!0),r(!0),q(null);try{for(let e of t){if(a.length>=n){o=!0;break}let t=ea(e);if(t){i.push(`${e.name||"Selected file"}: ${t}`);continue}let r=URL.createObjectURL(e);try{let t=new window.Image;if(t.src=r,await t.decode(),t.naturalWidth<1||t.naturalHeight<1)throw Error("The image has invalid dimensions.");a.push({id:globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2)}`,file:e,width:t.naturalWidth,height:t.naturalHeight,previewUrl:r,resultPreviewUrl:null,result:null,status:"queued",error:null})}catch{URL.revokeObjectURL(r),i.push(`${e.name||"Selected file"}: This image could not be previewed.`)}}a.length>0&&(ec(),l(e=>[...e,...a]),f(e=>e??a[0].id));let e=i.slice(0,o?2:3);o&&e.push("The 10-image batch limit was reached; some selected images were not added."),q(e.length>0?e.join(" "):null)}finally{V.current=!1,_(!1),r(!1)}}async function ed(){if(K||B.current||m||V.current||0===es)return;let t=s.filter(e=>"queued"===e.status||"failed"===e.status);if(0===t.length)return;ec(),Y.current=!1,z(!1),q(null),v(!0),O({current:0,total:t.length}),r(!0),F(null);let n=!1,i=!1,a=!1;try{for(let[r,s]of t.entries()){if(Y.current){i=!0;break}O({current:r+1,total:t.length}),f(s.id),l(e=>e.map(e=>e.id===s.id?{...e,status:"processing",error:null}:e));try{let t=await et(s.file,c,{width:s.width,height:s.height},e,e=>{"queued"===e.stage?F(e.position?`Waiting in shared GPU queue \xb7 position ${e.position}`:"Waiting for the shared GPU queue…"):"working"===e.stage&&F("Enhancing with Real-ESRGAN…")}),n=URL.createObjectURL(t.blob);l(e=>e.map(e=>e.id===s.id?{...e,result:t,resultPreviewUrl:n,status:"complete",error:null}:e))}catch(e){if(n=!0,l(t=>t.map(t=>t.id===s.id?{...t,status:"failed",error:e instanceof H?e.message:"Something went wrong while enhancing this image."}:t)),e instanceof H&&["auth_required","unauthorized"].includes(e.code??"")){a=!0,i=!0;break}}if(Y.current){i=n||r<t.length-1;break}r<t.length-1&&await new Promise(e=>window.setTimeout(e,0))}}finally{v(!1),z(!1),Y.current=!1,F(null),r(!1),a?q("Your Hugging Face sign-in expired. Sign in again, then retry the unfinished images."):i?q("Batch paused after the current image. Unfinished images remain available to continue or retry."):n&&q("Some images could not be enhanced. Their individual errors are shown in the queue; run the batch again to retry them.")}}async function eh(){if(K||B.current)return;let e=s.filter(e=>"complete"===e.status&&e.result);if(0!==e.length){B.current=!0,q(null),T({current:0,total:e.length}),w(!0),r(!0);try{var t;let n,i;t=await tW(e.map(e=>({filename:e.result.metadata.filename,blob:e.result.blob})),(e,t)=>T({current:e,total:t})),ec(),X.current=n=URL.createObjectURL(t),(i=document.createElement("a")).href=n,i.download=`sharpify-enhanced-${new Date().toISOString().replace(/[:.]/g,"-")}.zip`,document.body.append(i),i.click(),i.remove(),J.current=window.setTimeout(()=>{X.current===n&&(X.current=null),J.current=null,URL.revokeObjectURL(n)},6e4)}catch{q("The ZIP could not be prepared. You can still download each completed image individually.")}finally{B.current=!1,w(!1),r(!1)}}}function ef(e,t){u(n=>({...n,[e]:t}))}(0,i.useEffect)(()=>{r(K)},[K,r]),(0,i.useEffect)(()=>{Z.current=s},[s]),(0,i.useEffect)(()=>()=>{for(let e of Z.current)URL.revokeObjectURL(e.previewUrl),e.resultPreviewUrl&&URL.revokeObjectURL(e.resultPreviewUrl);null!==J.current&&window.clearTimeout(J.current),X.current&&URL.revokeObjectURL(X.current)},[]);let ep=Q?.result??null;return(0,t.jsxs)("div",{className:`studio-layout batch-layout${P?" is-dragging":""}`,onDragEnter:e=>{e.dataTransfer.types.includes("Files")&&M(!0)},onDragOver:e=>{e.dataTransfer.types.includes("Files")&&e.preventDefault()},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||M(!1)},onDrop:function(e){e.preventDefault(),M(!1),e.dataTransfer.files.length>0&&eu(e.dataTransfer.files)},children:[(0,t.jsx)("input",{ref:W,"aria-label":"Choose images for batch enhancement",className:"visually-hidden-input",accept:"image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp",disabled:K,multiple:!0,onChange:function(e){let t=Array.from(e.currentTarget.files??[]);e.currentTarget.value="",t.length>0&&eu(t)},type:"file"}),(0,t.jsxs)("section",{className:"image-workspace","aria-label":"Batch image workspace",children:[(0,t.jsxs)("div",{className:"workspace-toolbar",children:[(0,t.jsxs)("div",{className:"workspace-status",children:[(0,t.jsx)("span",{className:s.length>0?"status-dot":"status-dot status-dot-muted"}),m?`PROCESSING ${U.current} / ${U.total}`:s.length>0?`${en} OF ${s.length} COMPLETE`:"BATCH QUEUE"]}),(0,t.jsxs)("div",{className:"workspace-actions",children:[(0,t.jsxs)("span",{className:"local-badge",children:[(0,t.jsx)(o,{size:13})," UP TO ",10," IMAGES"]}),(0,t.jsxs)("button",{className:"text-button",onClick:()=>W.current?.click(),type:"button",disabled:K||s.length>=10,children:[(0,t.jsx)(S,{size:14})," Add images"]}),s.length>0&&(0,t.jsx)("button",{className:"icon-button","aria-label":"Clear batch",onClick:function(){if(!K&&!B.current){for(let e of(ec(),s))URL.revokeObjectURL(e.previewUrl),e.resultPreviewUrl&&URL.revokeObjectURL(e.resultPreviewUrl);l([]),f(null),q(null),W.current&&(W.current.value="")}},type:"button",disabled:K,children:(0,t.jsx)(R,{size:14})})]})]}),(0,t.jsx)("div",{className:"image-stage batch-image-stage",children:Q&&ep&&Q.resultPreviewUrl?(0,t.jsx)($,{afterUrl:Q.resultPreviewUrl,beforeUrl:Q.previewUrl,metadata:ep.metadata,onZoomChange:function(e){Q&&I({itemId:Q.id,value:e})},zoom:ee},Q.id):Q?(0,t.jsxs)("div",{className:"original-preview",children:[(0,t.jsxs)("div",{className:"original-preview-image",children:[(0,t.jsx)(n.default,{src:Q.previewUrl,alt:`Original image: ${Q.file.name}`,fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0}),(0,t.jsx)("span",{className:"comparison-label label-before",children:"ORIGINAL"})]}),(0,t.jsxs)("div",{className:"original-file-card",children:[(0,t.jsx)("span",{className:"file-card-icon",children:(0,t.jsx)(o,{size:16})}),(0,t.jsxs)("span",{className:"file-card-name",children:[(0,t.jsx)("strong",{children:Q.file.name}),(0,t.jsxs)("small",{children:[Q.width.toLocaleString()," × ",Q.height.toLocaleString()," px · ",er(Q.file.size)]})]}),(0,t.jsx)("span",{className:"file-card-ready",children:"processing"===Q.status?"WORKING":"failed"===Q.status?"FAILED":"QUEUED"})]})]}):(0,t.jsxs)("div",{className:`batch-dropzone${P?" is-dragging":""}`,children:[(0,t.jsx)("div",{className:"upload-icon-wrap",children:(0,t.jsx)(j,{size:24,strokeWidth:1.6})}),(0,t.jsx)("p",{className:"upload-kicker",children:"PROCESS A SMALL SET TOGETHER"}),(0,t.jsx)("h3",{children:"Add images to your batch"}),(0,t.jsxs)("p",{className:"upload-description",children:["Choose up to ",10," JPG, PNG, or WEBP images. Each image is enhanced in sequence."]}),(0,t.jsxs)("button",{className:"button button-dark upload-button",type:"button",onClick:()=>W.current?.click(),disabled:K,children:[(0,t.jsx)(h,{size:17})," Choose images"]}),(0,t.jsxs)("div",{className:"upload-file-types",children:[(0,t.jsx)("span",{children:"JPG"}),(0,t.jsx)("span",{children:"PNG"}),(0,t.jsx)("span",{children:"WEBP"}),(0,t.jsx)("i",{})," ",(0,t.jsx)("span",{children:"20 MB each"})]}),(0,t.jsxs)("div",{className:"upload-privacy",children:[(0,t.jsx)(g,{size:14})," Images stay in this session and are not permanently stored."]}),P&&(0,t.jsxs)("div",{className:"drop-overlay",children:[(0,t.jsx)(j,{size:19})," Drop images to add them"]})]})}),ep&&(0,t.jsxs)("div",{className:"result-file-row",children:[(0,t.jsxs)("div",{className:"result-file-label",children:[(0,t.jsx)("span",{className:"result-check",children:(0,t.jsx)(g,{size:13})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:ep.metadata.filename}),(0,t.jsxs)("small",{children:[er(ep.blob.size)," · Full-resolution output"]})]})]}),(0,t.jsxs)("button",{className:"text-button result-start-over",type:"button",onClick:()=>Q&&tV(Q),children:[(0,t.jsx)(x,{size:14})," Download"]})]}),s.length>0&&(0,t.jsxs)("div",{className:"batch-queue-section",children:[(0,t.jsxs)("div",{className:"batch-queue-heading",children:[(0,t.jsx)("strong",{children:"Image queue"}),(0,t.jsxs)("span",{children:[en," complete · ",es," remaining"]})]}),en>0&&(0,t.jsx)("div",{className:"batch-archive-row",children:(0,t.jsxs)("button",{className:"text-button batch-archive-button",onClick:()=>void eh(),type:"button",disabled:K,children:[y?(0,t.jsx)(N,{className:"spin",size:14}):(0,t.jsx)(x,{size:14}),(0,t.jsx)("span",{"aria-live":"polite",children:y?`Preparing ZIP \xb7 ${A.current} of ${A.total} images`:`Download ${en} completed ${1===en?"image":"images"} as ZIP`})]})}),m&&(0,t.jsxs)("div",{className:"batch-progress",children:[(0,t.jsxs)("div",{className:"batch-progress-status",role:"status","aria-live":"polite",children:[(0,t.jsx)(N,{className:"spin",size:15}),(0,t.jsx)("span",{children:G||`Enhancing image ${U.current} of ${U.total}. Images run one at a time to protect available memory.`})]}),(0,t.jsx)("button",{className:"batch-progress-stop",onClick:function(){m&&!k&&(Y.current=!0,z(!0))},type:"button",disabled:k,children:k?"Stopping…":"Stop after this image"})]}),(0,t.jsx)("ul",{className:"batch-queue-list","aria-label":"Batch enhancement progress",children:s.map(e=>(0,t.jsxs)("li",{className:`batch-queue-item${Q?.id===e.id?" is-selected":""}`,children:[(0,t.jsxs)("button",{"aria-pressed":Q?.id===e.id,className:"batch-queue-select",onClick:()=>f(e.id),type:"button",children:[(0,t.jsx)("span",{className:"batch-thumbnail",children:(0,t.jsx)(n.default,{src:e.previewUrl,alt:"",fill:!0,sizes:"52px",unoptimized:!0})}),(0,t.jsxs)("span",{className:"batch-file-copy",children:[(0,t.jsx)("strong",{title:e.file.name,children:e.file.name}),(0,t.jsxs)("small",{children:[er(e.file.size)," · ",e.width.toLocaleString()," × ",e.height.toLocaleString()]})]}),(0,t.jsxs)("span",{className:`batch-status batch-status-${e.status}`,children:["processing"===e.status&&(0,t.jsx)(N,{className:"spin",size:11}),"queued"===e.status?"QUEUED":"processing"===e.status?"WORKING":"complete"===e.status?"DONE":"FAILED"]})]}),e.error&&(0,t.jsx)("p",{className:"batch-item-error",children:e.error}),(0,t.jsxs)("div",{className:"batch-item-actions",children:[e.result&&(0,t.jsx)("button",{"aria-label":`Download ${e.result.metadata.filename}`,className:"icon-button",onClick:()=>tV(e),type:"button",children:(0,t.jsx)(x,{size:14})}),(0,t.jsx)("button",{"aria-label":`Remove ${e.file.name}`,className:"icon-button batch-remove-button",onClick:()=>(function(e){if(K||B.current)return;let t=s.find(t=>t.id===e);if(!t)return;ec(),URL.revokeObjectURL(t.previewUrl),t.resultPreviewUrl&&URL.revokeObjectURL(t.resultPreviewUrl);let n=s.filter(t=>t.id!==e);l(n),d===e&&f(n[0]?.id??null),W.current&&(W.current.value="")})(e.id),type:"button",disabled:K,children:(0,t.jsx)(p,{size:13})})]})]},e.id))})]}),D&&(0,t.jsxs)("div",{className:"error-notice",role:"alert",children:[(0,t.jsx)("span",{className:"error-mark",children:"!"}),(0,t.jsx)("span",{children:D}),(0,t.jsx)("button",{"aria-label":"Dismiss message",onClick:()=>q(null),type:"button",children:(0,t.jsx)(p,{size:14})})]})]}),(0,t.jsxs)("aside",{className:"settings-panel","aria-label":"Batch enhancement settings",children:[(0,t.jsxs)("div",{className:"settings-heading",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"section-kicker",children:"ONE SET OF SETTINGS"}),(0,t.jsx)("h3",{children:"Batch settings"})]}),(0,t.jsxs)("span",{className:"settings-step",children:["02 ",(0,t.jsx)("span",{children:"/ 02"})]})]}),(0,t.jsxs)("fieldset",{className:"settings-field",disabled:K,children:[(0,t.jsx)("legend",{children:"Upscale size"}),(0,t.jsx)("p",{className:"field-caption",children:"Applied to every image in the next run."}),(0,t.jsx)("div",{className:"scale-options",role:"group","aria-label":"Batch upscale factor",children:[2,4].map(e=>(0,t.jsxs)("button",{"aria-pressed":c.scale===e,className:`scale-option${c.scale===e?" is-selected":""}`,onClick:()=>ef("scale",e),type:"button",children:[(0,t.jsxs)("span",{className:"scale-option-top",children:[e,"×"]}),(0,t.jsx)("span",{className:"scale-option-bottom",children:2===e?"Balanced":"Maximum detail"}),c.scale===e&&(0,t.jsx)("span",{className:"selected-mark",children:(0,t.jsx)(g,{size:11})})]},e))})]}),(0,t.jsxs)("fieldset",{className:"settings-field format-field",disabled:K,children:[(0,t.jsx)("legend",{children:"Save format"}),(0,t.jsx)("p",{className:"field-caption",children:"Choose one output format for this run."}),(0,t.jsx)("div",{className:"format-options",role:"group","aria-label":"Batch output image format",children:tH.map(e=>(0,t.jsxs)("button",{"aria-pressed":c.outputFormat===e.value,className:`format-option${c.outputFormat===e.value?" is-selected":""}`,onClick:()=>ef("outputFormat",e.value),type:"button",children:[(0,t.jsx)("span",{className:"format-label",children:e.label}),(0,t.jsx)("span",{className:"format-detail",children:e.detail})]},e.value))})]}),(0,t.jsxs)("div",{className:"batch-settings-summary",children:[(0,t.jsxs)("strong",{children:[s.length," / ",10," images"]}),(0,t.jsxs)("span",{children:[en," enhanced",ei>0?` \xb7 ${ei} failed`:""]})]}),(0,t.jsxs)("p",{className:`batch-output-budget${eo?" is-over-limit":""}`,children:["Batch output budget: ",Math.ceil(el/1e6),"M / ",64,"M pixels"]}),(0,t.jsxs)("button",{className:"button button-dark enhance-button",type:"button",onClick:()=>void ed(),disabled:0===s.length||0===es||K||eo||a&&!e,children:[K?(0,t.jsx)(N,{className:"spin",size:17}):(0,t.jsx)(C,{size:17}),E?"Preparing images…":m?"Enhancing batch…":a&&!e?"Sign in to enhance":eo?"Reduce batch output size":es>0?`${ei>0?"Retry and enhance":"Enhance"} ${es} image${1===es?"":"s"}`:"Batch complete"]}),(0,t.jsxs)("p",{className:"settings-footnote",children:[(0,t.jsx)(b,{size:13})," Images run sequentially. A failed image won’t stop the rest."]}),(0,t.jsx)("p",{className:"batch-memory-note",children:"For stability, a batch is limited to 64 million total output pixels. Remove images or lower the upscale to stay within the limit. Completed files stay in this browser tab until removed or cleared."})]})]})}var tZ=e.i(75775);let tX=[{value:"png",label:"PNG",detail:"Lossless"},{value:"jpeg",label:"JPG",detail:"Smaller file"},{value:"webp",label:"WEBP",detail:"Modern"}];function tJ({settings:e,onChange:n,onEnhance:i,onDownload:a,hasImage:r,hasResult:s,isProcessing:l,isPreviewing:o,canEnhance:c,requiresAuth:u,processingStatus:d}){let h=l||o;return(0,t.jsxs)("aside",{className:"settings-panel","aria-label":"Enhancement settings",children:[(0,t.jsxs)("div",{className:"settings-heading",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"section-kicker",children:"MAKE IT YOURS"}),(0,t.jsx)("h3",{children:"Enhancement settings"})]}),(0,t.jsxs)("span",{className:"settings-step",children:["01 ",(0,t.jsx)("span",{children:"/ 02"})]})]}),(0,t.jsxs)("fieldset",{className:"settings-field",disabled:!r||h,children:[(0,t.jsx)("legend",{children:"Upscale size"}),(0,t.jsx)("p",{className:"field-caption",children:"Give your image more room to breathe."}),(0,t.jsx)("div",{className:"scale-options",role:"group","aria-label":"Upscale factor",children:[2,4].map(i=>(0,t.jsxs)("button",{"aria-pressed":e.scale===i,className:`scale-option${e.scale===i?" is-selected":""}`,onClick:()=>{n({...e,scale:i})},type:"button",children:[(0,t.jsxs)("span",{className:"scale-option-top",children:[i,"×"]}),(0,t.jsx)("span",{className:"scale-option-bottom",children:2===i?"Balanced":"Maximum detail"}),e.scale===i&&(0,t.jsx)("span",{className:"selected-mark",children:(0,t.jsx)(g,{size:11})})]},i))})]}),(0,t.jsxs)("fieldset",{className:"settings-field format-field",disabled:!r||h,children:[(0,t.jsx)("legend",{children:"Save format"}),(0,t.jsx)("p",{className:"field-caption",children:"Choose how your result is delivered."}),(0,t.jsx)("div",{className:"format-options",role:"group","aria-label":"Output image format",children:tX.map(i=>(0,t.jsxs)("button",{"aria-pressed":e.outputFormat===i.value,className:`format-option${e.outputFormat===i.value?" is-selected":""}`,onClick:()=>{var t;return t=i.value,void n({...e,outputFormat:t})},type:"button",children:[(0,t.jsx)("span",{className:"format-label",children:i.label}),(0,t.jsx)("span",{className:"format-detail",children:i.detail})]},i.value))})]}),(0,t.jsxs)("div",{className:"future-setting","aria-label":"Face restoration will be available later",children:[(0,t.jsx)("div",{className:"future-setting-icon",children:(0,t.jsx)(C,{size:15})}),(0,t.jsxs)("div",{className:"future-setting-copy",children:[(0,t.jsx)("strong",{children:"Face restoration"}),(0,t.jsx)("span",{children:"Coming in a future model"})]}),(0,t.jsx)("span",{className:"coming-soon",children:"SOON"})]}),l&&(0,t.jsxs)("div",{className:"processing-status",role:"status","aria-live":"polite",children:[(0,t.jsx)(N,{className:"spin",size:17}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:d?.startsWith("Waiting")?"Waiting for GPU":"Enhancing your image"}),(0,t.jsx)("small",{children:d??`AI is restoring detail at ${e.scale}\xd7.`})]})]}),o&&(0,t.jsxs)("div",{className:"processing-status",role:"status","aria-live":"polite",children:[(0,t.jsx)(N,{className:"spin",size:17}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:"Preparing your image"}),(0,t.jsx)("small",{children:"Loading the new preview."})]})]}),s?(0,t.jsxs)("button",{className:"button button-dark download-button",type:"button",onClick:a,disabled:h,children:[(0,t.jsx)(x,{size:17})," Download full-size image ",(0,t.jsx)(tZ.ArrowUpRight,{size:15,className:"button-tail"})]}):(0,t.jsxs)("button",{className:"button button-dark enhance-button",type:"button",onClick:i,disabled:!r||h||!c,children:[h?(0,t.jsx)(N,{className:"spin",size:17}):(0,t.jsx)(C,{size:17}),o?"Preparing your image…":l?"Working on your image…":u&&!c?"Sign in to enhance":"Enhance with AI",!h&&(0,t.jsx)(tZ.ArrowUpRight,{size:15,className:"button-tail"})]}),(0,t.jsxs)("p",{className:"settings-footnote",children:[(0,t.jsx)(b,{size:13})," ",u?"Processing uses your Hugging Face ZeroGPU quota.":"Processing time depends on image size and your device."]}),s&&(0,t.jsx)("button",{className:"enhance-again",type:"button",onClick:i,disabled:h,children:"Try these settings on the image"})]})}var tK=e.i(23384);let tQ={name:"folder-up",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m9 13 3-3 3 3",key:"1pxg3c"}]]};tQ.node;let t0=(0,a.default)(tQ),t1={name:"image-plus",size:24,node:[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]};t1.node;let t2=(0,a.default)(t1),t5={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};t5.node;let t4=(0,a.default)(t5);var t3=e.i(28623);function t8({onBrowse:e,isDragging:n}){return(0,t.jsxs)("div",{className:`upload-dropzone${n?" is-dragging":""}`,onDragOver:e=>e.preventDefault(),children:[(0,t.jsx)("div",{className:"upload-icon-wrap",children:(0,t.jsx)(t2,{size:24,strokeWidth:1.6})}),(0,t.jsx)("p",{className:"upload-kicker",children:"YOUR NEXT GREAT IMAGE STARTS HERE"}),(0,t.jsx)("h3",{children:"Enhance your image with AI"}),(0,t.jsx)("p",{className:"upload-description",children:"Upload a blurry or low-resolution image and let AI restore the details."}),(0,t.jsxs)("button",{className:"button button-dark upload-button",type:"button",onClick:e,children:[(0,t.jsx)(t0,{size:17})," Choose an image"]}),(0,t.jsxs)("div",{className:"upload-file-types","aria-label":"Supported formats and file size",children:[(0,t.jsx)("span",{children:"JPG"}),(0,t.jsx)("span",{children:"PNG"}),(0,t.jsx)("span",{children:"WEBP"}),(0,t.jsx)("i",{})," ",(0,t.jsx)("span",{children:"Up to 20 MB"})]}),(0,t.jsxs)("div",{className:"upload-privacy",children:[(0,t.jsx)(t4,{size:14})," Used only for enhancement, never permanently stored."]}),(0,t.jsxs)("div",{className:"drop-hint",children:[(0,t.jsx)(j,{size:14})," Drop a file anywhere in this panel"]}),n&&(0,t.jsxs)("div",{className:"drop-overlay",children:[(0,t.jsx)(t3.Sparkles,{size:20})," Drop to add your image"]})]})}let t6={scale:4,outputFormat:"png"};function t7({active:e,accessToken:a,requiresAuth:r,onBusyChange:l}){let[c,d]=(0,i.useState)(null),[f,m]=(0,i.useState)(null),[g,v]=(0,i.useState)(null),[b,y]=(0,i.useState)(t6),[x,w]=(0,i.useState)(null),[j,k]=(0,i.useState)(null),[N,z]=(0,i.useState)(!1),[S,E]=(0,i.useState)(!1),[R,_]=(0,i.useState)(!1),[C,P]=(0,i.useState)(1),M=(0,i.useRef)(null),U=(0,i.useRef)(null),O=(0,i.useRef)(null),A=(0,i.useRef)(0),T=(0,i.useRef)(!1);(0,i.useEffect)(()=>{l(N||S)},[N,S,l]);let L=(0,i.useCallback)(()=>{O.current&&URL.revokeObjectURL(O.current),O.current=null,v(null)},[]),I=(0,i.useCallback)(async e=>{let t=ea(e);if(t)return void w(t);let n=++A.current;T.current=!0,E(!0),w(null);let i="";try{i=URL.createObjectURL(e);let t=new window.Image;if(t.src=i,await t.decode(),n!==A.current)return void URL.revokeObjectURL(i);if(t.naturalWidth<1||t.naturalHeight<1)throw Error("Image dimensions are invalid.");U.current&&URL.revokeObjectURL(U.current),L(),U.current=i,d({file:e,width:t.naturalWidth,height:t.naturalHeight,previewUrl:i}),m(null),T.current=!1,E(!1),z(!1),P(1),w(null)}catch{i&&URL.revokeObjectURL(i),n===A.current&&(T.current=!1,E(!1),z(!1),w("This image could not be previewed. Try another JPG, PNG, or WEBP file."))}},[L]),D=(0,i.useCallback)(()=>{A.current+=1,T.current=!1,E(!1),U.current&&URL.revokeObjectURL(U.current),U.current=null,L(),d(null),m(null),w(null),z(!1),P(1),M.current&&(M.current.value="")},[L]);async function q(){if(!c||N||T.current)return;let e=A.current;z(!0),w(null),k("Connecting to the AI queue…");try{let t=await et(c.file,b,{width:c.width,height:c.height},a,e=>{"queued"===e.stage?k(e.position?`Waiting in the shared GPU queue \xb7 position ${e.position}`:"Waiting for the shared GPU queue…"):"working"===e.stage&&k("Enhancing with Real-ESRGAN…")});if(e!==A.current)return;L();let n=URL.createObjectURL(t.blob);O.current=n,v(n),m(t),P(1)}catch(t){if(e!==A.current)return;w(t instanceof H?t.message:"Something went wrong. Please try enhancing the image again.")}finally{e===A.current&&(z(!1),k(null))}}return(0,i.useEffect)(()=>()=>{U.current&&URL.revokeObjectURL(U.current),O.current&&URL.revokeObjectURL(O.current)},[]),(0,i.useEffect)(()=>{if(e)return window.addEventListener("paste",t),()=>window.removeEventListener("paste",t);function t(e){let t=e.target;if(t instanceof HTMLElement&&(t.isContentEditable||["INPUT","TEXTAREA"].includes(t.tagName)))return;let n=Array.from(e.clipboardData?.items??[]).find(e=>e.type.startsWith("image/")),i=n?.getAsFile();if(!i||N||T.current)return;e.preventDefault();let a="image/webp"===i.type?"webp":"image/jpeg"===i.type?"jpg":"png";I(i.name?i:new File([i],`pasted-image.${a}`,{type:i.type}))}},[e,N,I]),(0,t.jsxs)("div",{className:`studio-layout${R?" is-dragging":""}`,onDragEnter:e=>{e.dataTransfer.types.includes("Files")&&_(!0)},onDragOver:e=>{e.dataTransfer.types.includes("Files")&&e.preventDefault()},onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||_(!1)},onDrop:function(e){e.preventDefault(),_(!1);let t=e.dataTransfer.files.item(0);!t||N||T.current||I(t)},children:[(0,t.jsx)("input",{ref:M,"aria-label":"Choose an image to enhance",className:"visually-hidden-input",accept:"image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp",disabled:N||S,onChange:function(e){let t=e.currentTarget.files?.item(0);e.currentTarget.value="",!t||N||T.current||I(t)},type:"file"}),(0,t.jsxs)("section",{className:"image-workspace","aria-label":"Image workspace",children:[(0,t.jsxs)("div",{className:"workspace-toolbar",children:[(0,t.jsxs)("div",{className:"workspace-status",children:[(0,t.jsx)("span",{className:c?"status-dot":"status-dot status-dot-muted"}),f?"RESULT READY":c?"IMAGE READY":"YOUR CANVAS"]}),(0,t.jsxs)("div",{className:"workspace-actions",children:[(0,t.jsxs)("span",{className:"local-badge",children:[(0,t.jsx)(o,{size:13})," ",r?"HF ZERO-GPU":"LOCAL SESSION"]}),c&&(0,t.jsxs)("button",{className:"text-button",onClick:()=>M.current?.click(),type:"button",disabled:N||S,children:[(0,t.jsx)(h,{size:14})," Replace"]}),c&&(0,t.jsx)("button",{className:"icon-button","aria-label":"Remove current image",onClick:D,type:"button",disabled:N||S,children:(0,t.jsx)(p,{size:15})})]})]}),(0,t.jsx)("div",{className:"image-stage",children:c&&f&&g?(0,t.jsx)($,{afterUrl:g,beforeUrl:c.previewUrl,metadata:f.metadata,onZoomChange:e=>P(e),zoom:C},g):c?(0,t.jsxs)("div",{className:"original-preview",children:[(0,t.jsxs)("div",{className:"original-preview-image",children:[(0,t.jsx)(n.default,{src:c.previewUrl,alt:"Selected original image",fill:!0,sizes:"(max-width: 960px) 100vw, 65vw",unoptimized:!0}),(0,t.jsx)("span",{className:"comparison-label label-before",children:"ORIGINAL"})]}),(0,t.jsxs)("div",{className:"original-file-card",children:[(0,t.jsx)("span",{className:"file-card-icon",children:(0,t.jsx)(o,{size:16})}),(0,t.jsxs)("span",{className:"file-card-name",children:[(0,t.jsx)("strong",{children:c.file.name||"Pasted image"}),(0,t.jsxs)("small",{children:[c.width.toLocaleString()," × ",c.height.toLocaleString()," px · ",er(c.file.size)]})]}),(0,t.jsx)("span",{className:"file-card-ready",children:"READY"})]})]}):(0,t.jsx)(t8,{isDragging:R,onBrowse:()=>M.current?.click()})}),c&&f&&(0,t.jsxs)("div",{className:"result-file-row",children:[(0,t.jsxs)("div",{className:"result-file-label",children:[(0,t.jsx)("span",{className:"result-check",children:(0,t.jsx)(u,{size:13})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:f.metadata.filename}),(0,t.jsxs)("small",{children:[er(f.blob.size)," · Full-resolution output"]})]})]}),(0,t.jsxs)("button",{className:"text-button result-start-over",type:"button",onClick:D,disabled:N||S,children:["Start over ",(0,t.jsx)(s,{size:14})]})]}),x&&(0,t.jsxs)("div",{className:"error-notice",role:"alert",children:[(0,t.jsx)("span",{className:"error-mark",children:"!"}),(0,t.jsx)("span",{children:x}),(0,t.jsx)("button",{"aria-label":"Dismiss message",onClick:()=>w(null),type:"button",children:(0,t.jsx)(p,{size:14})})]}),!c&&(0,t.jsxs)("p",{className:"paste-tip",children:[(0,t.jsx)("span",{children:"QUICK TIP"})," You can also paste an image from your clipboard with ",(0,t.jsx)("kbd",{children:"Ctrl"})," ",(0,t.jsx)("b",{children:"+"})," ",(0,t.jsx)("kbd",{children:"V"}),"."]})]}),(0,t.jsx)(tJ,{hasImage:null!==c,hasResult:null!==f,isProcessing:N,isPreviewing:S,canEnhance:!r||null!==a,processingStatus:j,requiresAuth:r,onChange:y,onDownload:function(){if(!f)return;let e=URL.createObjectURL(f.blob),t=document.createElement("a");t.href=e,t.download=f.metadata.filename,document.body.append(t),t.click(),t.remove(),window.setTimeout(()=>URL.revokeObjectURL(e),1e3)},onEnhance:()=>void q(),settings:b})]})}e.s(["EnhancerStudio",0,function(){let e=(0,tK.useHfOAuth)(),[n,a]=(0,i.useState)("single"),[r,s]=(0,i.useState)({single:!1,batch:!1}),l=r.single||r.batch,o=(0,i.useCallback)(e=>{s(t=>({...t,single:e}))},[]),c=(0,i.useCallback)(e=>{s(t=>({...t,batch:e}))},[]);return(0,t.jsxs)("div",{className:"enhancer-shell",children:[(0,t.jsxs)("div",{className:"studio-mode-toggle",role:"group","aria-label":"Enhancement mode",children:[(0,t.jsx)("button",{"aria-pressed":"single"===n,className:"single"===n?"is-selected":"",disabled:l,onClick:()=>a("single"),type:"button",children:"Single image"}),(0,t.jsx)("button",{"aria-pressed":"batch"===n,className:"batch"===n?"is-selected":"",disabled:l,onClick:()=>a("batch"),type:"button",children:"Batch images"})]}),(0,t.jsx)("div",{hidden:"single"!==n,children:(0,t.jsx)(t7,{active:"single"===n,accessToken:e.accessToken,requiresAuth:e.required,onBusyChange:o})}),(0,t.jsx)("div",{hidden:"batch"!==n,children:(0,t.jsx)(tY,{accessToken:e.accessToken,requiresAuth:e.required,onBusyChange:c})})]})}],21342)}]);
_next/static/chunks/3fntmmi971322.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28298,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return l}});let n=e.r(71645);function l(e,t,r){let[l,u]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(l.tree===e)return l;let a={tree:e,cacheNode:t,stateKey:r,next:null},o=1,d=l,s=a;for(;null!==d&&o<1;){if(d.stateKey===r){s.next=d.next;break}{o++;let e={tree:d.tree,cacheNode:d.cacheNode,stateKey:d.stateKey,next:null};s.next=e,s=e}d=d.next}return u(a),a}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},47257,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return s}});let n=e.r(43476),l=e.r(8372),u=e.r(71645),a=e.r(33906),o=e.r(61994),d=e.r(15783);function s({Component:e,serverProvidedParams:t}){let r,i;if(null!==t)r=t.searchParams,i=t.params;else{let e=(0,u.use)(l.LayoutRouterContext);i=null!==e?e.parentParams:{},r=(0,a.urlSearchParamsToParsedUrlQuery)((0,u.use)(o.SearchParamsContext))}let c=(0,d.createClientSearchParams)(r),f=(0,d.createClientParams)(i);return(0,n.jsx)(e,{params:f,searchParams:c})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92825,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return o}});let n=e.r(43476),l=e.r(8372),u=e.r(71645),a=e.r(15783);function o({Component:e,slots:t,serverProvidedParams:r}){let d;if(null!==r)d=r.params;else{let e=(0,u.use)(l.LayoutRouterContext);d=null!==e?e.parentParams:{}}let s=(0,a.createClientParams)(d);return(0,n.jsx)(e,{...t,params:s})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68017,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return i}});let n=e.r(90809),l=e.r(43476),u=n._(e.r(71645)),a=e.r(90373),o=e.r(54394),d=e.r(8372);class s extends u.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,o.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,o.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:u}=this.state,a={[o.HTTPAccessErrorStatus.NOT_FOUND]:e,[o.HTTPAccessErrorStatus.FORBIDDEN]:t,[o.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(u){let d=u===o.HTTPAccessErrorStatus.NOT_FOUND&&e,s=u===o.HTTPAccessErrorStatus.FORBIDDEN&&t,i=u===o.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return d||s||i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{name:"robots",content:"noindex"}),!1,a[u]]}):n}return n}}function i({notFound:e,forbidden:t,unauthorized:r,children:n}){let o=(0,a.useUntrackedPathname)(),c=(0,u.useContext)(d.MissingSlotContext);return e||t||r?(0,l.jsx)(s,{pathname:o,notFound:e,forbidden:t,unauthorized:r,missingSlots:c,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},22976,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return u},PlaceValidationBoundaryBelowThisLevel:function(){return a},RenderValidationBoundaryAtThisLevel:function(){return o},SlotMarker:function(){return d}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=null,a=null,o=null,d=null;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77694,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return u.InstantValidationBoundaryContext},PlaceValidationBoundaryBelowThisLevel:function(){return u.PlaceValidationBoundaryBelowThisLevel},RenderValidationBoundaryAtThisLevel:function(){return u.RenderValidationBoundaryAtThisLevel},SlotMarker:function(){return u.SlotMarker}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=e.r(22976);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39756,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return C},default:function(){return T}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=e.r(55682),a=e.r(90809),o=e.r(43476),d=a._(e.r(71645)),s=u._(e.r(74080)),i=e.r(8372),c=e.r(1244),f=e.r(72383),p=e.r(91915),y=e.r(58442),m=e.r(68017);e.r(77694);let b=e.r(70725),_=e.r(28298);e.r(74180);let h=e.r(61994),P=e.r(33906),v=e.r(95871);s.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(e,t,r){let n=e.getClientRects();if(0===n.length)return 0;let l=1/0;for(let e=0;e<n.length;e++){let t=n[e];t.top<l&&(l=t.top)}return l>=r()&&l<=t?1:2}d.default.Component;let j=function(e){let t=d.default.useRef(null);return(0,d.useLayoutEffect)(()=>{let{focusAndScrollRef:r,cacheNode:n}=e,l=r.forceScroll?r.scrollRef:n.scrollRef;if(null===l||!l.current)return;let u=null,a=r.hashFragment;if(a){var o;if(null===(u="top"===(o=a)?document.body:document.getElementById(o)??document.getElementsByName(o)[0]??null)){l.current=!1,r.onlyHashChange=!1,r.hashFragment=null;return}}else u=t.current;if(null===u)return;let d=!1;(0,p.disableSmoothScrollDuringRouteTransition)(()=>{let e=document.documentElement,t=null,r=null,n=null,o=()=>{var r,l;let u,a;return null===n&&(r=e,l=t,n=!Number.isFinite(a=Number.parseFloat(u=getComputedStyle(r).scrollPaddingTop))||a<0?0:u.endsWith("px")?a:u.endsWith("%")?a/100*l:0),n};(a||(t=e.clientHeight,0!==(r=g(u,t,o))))&&((d=!0,l.current=!1,a)?u.scrollIntoView():1!==r&&(e.scrollTop=0,2===g(u,t,o)&&u.scrollIntoView()))},{dontForceLayout:!0,onlyHashChange:r.onlyHashChange}),d&&(r.onlyHashChange=!1,r.hashFragment=null)},void 0),(0,o.jsx)(d.Fragment,{ref:t,children:e.children})};function O({children:e,cacheNode:t}){let r=(0,d.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,o.jsx)(j,{focusAndScrollRef:r.focusAndScrollRef,cacheNode:t,children:e})}function x({tree:e,segmentPath:t,debugNameContext:r,cacheNode:n,params:l,url:u,isActive:a}){let s,f=(0,d.useContext)(i.GlobalLayoutRouterContext);if((0,d.useContext)(h.NavigationPromisesContext),!f)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let p=null!==n?n:(0,d.use)(c.unresolvedThenable),y=null!==p.prefetchRsc?p.prefetchRsc:p.rsc,m=(0,d.useDeferredValue)(p.rsc,y);if((0,v.isDeferredRsc)(m)){let e=(0,d.use)(m);null===e&&(0,d.use)(c.unresolvedThenable),s=e}else null===m&&(0,d.use)(c.unresolvedThenable),s=m;let b=s;return(0,o.jsx)(i.LayoutRouterContext.Provider,{value:{parentTree:e,parentCacheNode:p,parentSegmentPath:t,parentParams:l,parentLoadingData:null,debugNameContext:r,url:u,isActive:a},children:b})}function C({loading:e,children:t}){let r=(0,d.use)(i.LayoutRouterContext);return null===r?t:(0,o.jsx)(i.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentCacheNode:r.parentCacheNode,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function R({name:e,loading:t,children:r}){if(null!==t){let n=t[0],l=t[1],u=t[2];return(0,o.jsx)(d.Suspense,{name:e,fallback:(0,o.jsxs)(o.Fragment,{children:[l,u,n]}),children:r})}return(0,o.jsx)(o.Fragment,{children:r})}function T({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:l,templateScripts:u,template:a,notFound:s,forbidden:p,unauthorized:h,segmentViewBoundaries:v}){let g=(0,d.useContext)(i.LayoutRouterContext);if(!g)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:j,parentCacheNode:C,parentSegmentPath:S,parentParams:M,parentLoadingData:E,url:N,isActive:F,debugNameContext:A}=g,B=j[0],D=null===S?[e]:S.concat([B,e]),L=j[1][e],H=C.slots;(void 0===L||null===H)&&(0,d.use)(c.unresolvedThenable);let w=L[0],k=H[e]??null,U=(0,b.createRouterCacheKey)(w,!0),V=(0,_.useRouterBFCache)(L,k,U),I=[];do{let e=V.tree,d=V.cacheNode,c=V.stateKey,b=e[0],_=M;if(Array.isArray(b)){let e=b[0],t=b[1],r=b[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(_={...M,[e]:n})}let v=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(b),g=v??A,j=void 0===v?void 0:A,C=(0,o.jsxs)(O,{cacheNode:d,children:[(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,o.jsx)(R,{name:j,loading:E,children:(0,o.jsx)(m.HTTPAccessFallbackBoundary,{notFound:s,forbidden:p,unauthorized:h,children:(0,o.jsxs)(y.RedirectBoundary,{children:[(0,o.jsx)(x,{url:N,tree:e,params:_,cacheNode:d,segmentPath:D,debugNameContext:g,isActive:F&&c===U}),null]})})})}),null]}),T=(0,o.jsxs)(i.TemplateContext.Provider,{value:C,children:[l,u,a]},c);I.push(T),V=V.next}while(null!==V)return I}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},37457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(90809),l=e.r(43476),u=n._(e.r(71645)),a=e.r(8372);function o(){let e=(0,u.useContext)(a.TemplateContext);return(0,l.jsx)(l.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6831,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},97689,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(6831).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},93504,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},66996,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(93504).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15783,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createClientParams:function(){return u.createRenderParamsFromClient},createClientSearchParams:function(){return a.createRenderSearchParamsFromClient}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let u=e.r(97689),a=e.r(66996);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},27201,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return l}});let n=e.r(43476),l=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})},91915,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let l=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=l}e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}})}]);
_next/static/chunks/3g4px251sg85e.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/3mnriig4puhpm.css ADDED
@@ -0,0 +1 @@
 
 
1
+ @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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:Arial, Helvetica, sans-serif;--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-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:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){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{.visible{visibility:visible}.block{display:block}.hidden{display:none}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}}:root{--paper:#f5f4ef;--paper-deep:#eeede6;--surface:#fffefa;--ink:#20231f;--muted:#787c73;--line:#e7e7df;--line-dark:#d8d9d0;--accent:#c5e879;--accent-deep:#a6ce52;--shadow:0 18px 55px #1d231812}*{box-sizing:border-box}html{scroll-behavior:smooth}body{color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;font-family:Arial,Helvetica,sans-serif}button,input{font:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline-offset:3px;outline:3px solid #7c9e43}a{color:inherit;text-decoration:none}::selection{color:var(--ink);background:#d9edae}.site-header{border-bottom:1px solid #20231f14;justify-content:space-between;align-items:center;width:min(1320px,100% - 80px);height:84px;margin:0 auto;display:flex}.brand-lockup{letter-spacing:-1px;align-items:center;gap:10px;font-size:19px;font-weight:750;display:inline-flex}.brand-mark{color:#25321b;background:var(--accent);border-radius:9px;place-items:center;width:30px;height:30px;display:grid}.brand-ai{color:#8ca761;font-weight:600}.main-nav{color:#666a61;align-items:center;gap:38px;font-size:13px;display:flex}.main-nav a,.site-footer a{transition:color .18s}.main-nav a:hover,.site-footer a:hover{color:#648232}.header-cta{border:1px solid var(--line-dark);background:#fffefa8f;border-radius:9px;align-items:center;gap:12px;padding:11px 15px;font-size:12px;font-weight:650;transition:background .18s,border-color .18s;display:inline-flex}.header-cta:hover{background:#fbfff2;border-color:#b9cc91}.header-actions{align-items:center;gap:9px;display:flex}.header-auth-wrap{position:relative}.header-auth-button{cursor:pointer}.header-auth-button:disabled{cursor:wait;opacity:.65}.header-auth-button span{text-overflow:ellipsis;white-space:nowrap;max-width:180px;overflow:hidden}.header-auth-error{color:#975b46;z-index:8;background:#fff8f4;border:1px solid #efd6cb;border-radius:6px;width:max-content;max-width:260px;padding:7px 9px;font-size:10px;line-height:1.4;position:absolute;top:calc(100% + 5px);right:0}.hero-shell{grid-template-columns:.92fr 1.08fr;align-items:center;gap:42px;width:min(1180px,100% - 80px);min-height:510px;margin:0 auto;padding:46px 0 74px;display:grid}.hero-copy{padding:28px 0 32px}.eyebrow,.section-kicker{color:#778066;letter-spacing:.15em;align-items:center;gap:9px;font-size:10px;font-weight:760;display:flex}.status-dot{background:#8fb24a;border-radius:50%;width:7px;height:7px;display:inline-block;box-shadow:0 0 0 3px #8fb24a26}.status-dot-muted{background:#b7bbb0;box-shadow:0 0 0 3px #b7bbb02b}.hero-copy h1{letter-spacing:-.065em;margin:23px 0 17px;font-size:clamp(42px,5.2vw,66px);font-weight:650;line-height:1.04}.hero-copy h1 span{color:#858c78;letter-spacing:-.06em;font-family:Georgia,Times New Roman,serif;font-style:italic;font-weight:400}.hero-description{color:#72766d;max-width:400px;margin:0;font-size:15px;line-height:1.75}.hero-link{color:#41483a;border-bottom:1px solid #9cb86e;align-items:center;gap:12px;margin-top:27px;padding-bottom:5px;font-size:13px;font-weight:700;display:inline-flex}.hero-link svg{transition:transform .18s}.hero-link:hover svg{transform:translate(3px)}.hero-art{isolation:isolate;place-items:center;height:365px;display:grid;position:relative}.hero-art-glow{filter:blur(15px);background:radial-gradient(#bed19447,#f5f4ef00 70%);border-radius:50%;width:74%;height:75%;position:absolute;top:12%}.hero-photo{background:linear-gradient(#c9d5c5 0%,#dbe0d2 48%,#b2bca1 100%);border:7px solid #fffefa;border-radius:14px;width:min(430px,79%);height:284px;position:absolute;overflow:hidden;box-shadow:0 25px 60px #252b1e29}.photo-back{transform:rotate(3deg)translate(12px,-2px)}.photo-back:before{content:"";z-index:1;background:linear-gradient(90deg,#313a2a12,#0000 55%,#ffffff1f);position:absolute;inset:0}.sun{background:#eee1bd;border-radius:50%;width:66px;height:66px;position:absolute;top:31px;right:67px;box-shadow:0 0 60px 12px #f9e2b14d}.ridge{clip-path:polygon(0 83%,16% 28%,31% 61%,52% 10%,73% 63%,88% 30%,100% 74%,100% 100%,0 100%);width:110%;position:absolute;left:-5%}.ridge-back{opacity:.85;background:#81927d;height:160px;top:91px}.ridge-front{background:#667c6b;height:155px;top:147px;transform:scaleX(-1)}.field-lines{z-index:2;background:repeating-linear-gradient(171deg,#0000 0 13px,#e7e2c278 14px 16px,#0000 17px 26px);position:absolute;inset:211px 0 0;-webkit-mask-image:linear-gradient(#0000 0%,#000 30% 100%);mask-image:linear-gradient(#0000 0%,#000 30% 100%)}.hero-photo-photo-label{z-index:3;color:#566148;letter-spacing:.11em;background:#fffefaeb;border-radius:7px;align-items:center;gap:7px;padding:9px 11px;font-size:8px;font-weight:760;display:flex;position:absolute;bottom:25px;left:10%;box-shadow:0 6px 20px #21261b17}.hero-art-stamp{z-index:4;color:#525e40;background:#e2ebd0;border:1px solid #454d3a24;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:1px;width:75px;height:75px;display:flex;position:absolute;bottom:19px;right:2%;transform:rotate(-9deg)}.hero-art-stamp span{letter-spacing:.09em;font-size:7px;font-weight:800}.hero-art-stamp strong{font-family:Georgia,serif;font-size:24px;font-weight:500;line-height:1}.studio-section{border-top:1px solid #20231f17;width:min(1220px,100% - 80px);margin:0 auto;padding:59px 0 104px;scroll-margin-top:28px}.section-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px;display:flex}.section-heading .section-kicker,.how-heading .section-kicker{margin:0 0 10px}.section-heading h2,.how-heading h2{letter-spacing:-.045em;margin:0;font-size:clamp(26px,3vw,36px);font-weight:620;line-height:1.1}.section-aside{max-width:310px;color:var(--muted);text-align:right;margin:0 0 2px;font-size:11px;line-height:1.65}.studio-layout{grid-template-columns:minmax(0,1fr) 316px;align-items:stretch;gap:17px;display:grid;position:relative}.studio-layout.is-dragging:after{content:"Drop image to open";z-index:20;color:#4d6134;pointer-events:none;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#f5f4efd1;border:2px dashed #91af5f;border-radius:18px;place-items:center;font-size:18px;font-weight:700;display:grid;position:absolute;inset:7px}.image-workspace,.settings-panel{background:var(--surface);min-width:0;box-shadow:var(--shadow);border:1px solid #e6e6de;border-radius:15px}.image-workspace{padding:17px}.workspace-toolbar{justify-content:space-between;align-items:center;gap:12px;height:27px;margin-bottom:13px;display:flex}.workspace-status,.workspace-actions,.local-badge{align-items:center;display:flex}.workspace-status{color:#73776f;letter-spacing:.12em;gap:9px;font-size:9px;font-weight:770}.workspace-status .status-dot{width:6px;height:6px}.workspace-actions{gap:9px}.local-badge{color:#898d84;letter-spacing:.1em;gap:5px;font-size:8px;font-weight:700}.text-button,.icon-button{color:#585d53;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:7px;font-size:11px;font-weight:650;display:inline-flex}.text-button:hover:not(:disabled){color:#5f7b32}.text-button:disabled,.icon-button:disabled{opacity:.45;cursor:not-allowed}.icon-button{border:1px solid var(--line);border-radius:7px;width:28px;height:28px}.icon-button:hover:not(:disabled){background:#f5f5ef}.image-stage{background:#f0f0eb;border-radius:10px;position:relative;overflow:hidden}.original-preview-image{background:#ededeb;place-items:center;height:clamp(300px,48vw,475px);display:grid;position:relative;overflow:hidden}.original-preview-image img{object-fit:contain}.original-preview-image .comparison-label{top:14px}.original-file-card{background:#fffefa;border-top:1px solid #e8e8e2;align-items:center;gap:11px;min-height:62px;padding:10px 13px;display:flex}.file-card-icon{border:1px solid var(--line);color:#768366;border-radius:8px;place-items:center;width:34px;height:34px;display:grid}.file-card-name,.result-file-label>span:last-child{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.file-card-name strong,.result-file-label strong{color:#42463f;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:680;overflow:hidden}.file-card-name small,.result-file-label small{color:#92968d;font-size:9px}.file-card-ready{color:#6e883f;letter-spacing:.12em;font-size:8px;font-weight:780}.upload-dropzone{text-align:center;background:linear-gradient(135deg,#fbfcf7,#f7f8f1);border:1px dashed #cfd3c3;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-height:clamp(365px,48vw,475px);padding:28px;transition:border-color .2s,background .2s;display:flex;position:relative}.upload-dropzone.is-dragging{background:#f3f8e8;border-color:#85a64e}.upload-icon-wrap{color:#728c4a;background:#f5f8ee;border:1px solid #e4e9d8;border-radius:15px;place-items:center;width:50px;height:50px;margin-bottom:17px;display:grid}.upload-kicker{color:#869175;letter-spacing:.14em;margin:0 0 8px;font-size:8px;font-weight:760}.upload-dropzone h3{letter-spacing:-.035em;margin:0;font-size:19px;font-weight:650}.upload-description{color:#7e8279;max-width:310px;margin:9px 0 20px;font-size:11px;line-height:1.6}.button{cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:10px;min-height:44px;font-size:12px;font-weight:680;transition:transform .15s,background .15s,box-shadow .15s;display:inline-flex}.button:disabled{cursor:not-allowed;opacity:.48;box-shadow:none;transform:none}.button:not(:disabled):active{transform:translateY(1px)}.button-dark{color:#fbfcf7;background:#272b24;box-shadow:0 5px 14px #20231f1f}.button-dark:hover:not(:disabled){background:#3a4230;box-shadow:0 8px 20px #20231f26}.upload-button{min-width:165px;padding:0 18px}.upload-file-types{color:#92968d;align-items:center;gap:6px;margin-top:18px;font-size:8px;display:flex}.upload-file-types span:not(:last-child){color:#73786b;border:1px solid #e3e6dc;border-radius:4px;padding:4px 6px;font-size:7px;font-weight:760}.upload-file-types i{background:#bbbfb4;border-radius:50%;width:3px;height:3px;margin:0 5px}.upload-privacy{color:#83877e;align-items:center;gap:6px;margin-top:22px;font-size:9px;display:flex}.upload-privacy svg{color:#8ba65d}.drop-hint{color:#60783b;align-items:center;gap:7px;margin-top:14px;font-size:10px;font-weight:650;display:none}.upload-dropzone.is-dragging .drop-hint{display:flex}.visually-hidden-input{clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.paste-tip{color:#8d9188;justify-content:center;align-items:center;gap:5px;margin:12px 0 0;font-size:9px;display:flex}.paste-tip span{color:#777f6a;letter-spacing:.08em;margin-right:5px;font-size:8px;font-weight:750}kbd{color:#60645b;background:#f7f7f2;border:1px solid #dcddd5;border-radius:3px;padding:2px 4px;font-size:8px}.drop-overlay{z-index:4;color:#526d2c;background:#f6faedf0;border:2px dashed #8cae53;border-radius:8px;place-content:center;justify-items:center;gap:9px;font-size:13px;font-weight:700;display:grid;position:absolute;inset:9px}.settings-panel{flex-direction:column;padding:22px 21px 18px;display:flex}.settings-heading{justify-content:space-between;align-items:start;margin-bottom:23px;display:flex}.settings-heading .section-kicker{margin:0 0 7px;font-size:8px}.settings-heading h3{letter-spacing:-.035em;margin:0;font-size:16px;font-weight:660}.settings-step{color:#4f583f;letter-spacing:.08em;font-size:9px;font-weight:750}.settings-step span{color:#afb2a9;font-weight:500}.settings-field{border:0;min-width:0;margin:0;padding:0}.settings-field legend{color:#454a40;margin:0;padding:0;font-size:11px;font-weight:700}.field-caption{color:#92958c;margin:6px 0 12px;font-size:9px}.scale-options{grid-template-columns:1fr 1fr;gap:8px;display:grid}.scale-option{text-align:left;cursor:pointer;background:#fffefa;border:1px solid #e5e6de;border-radius:8px;flex-direction:column;justify-content:center;gap:4px;min-height:70px;padding:11px;display:flex;position:relative}.scale-option.is-selected{background:#f8faef;border-color:#91aa64;box-shadow:inset 0 0 0 1px #91aa64}.scale-option:disabled,.format-option:disabled{cursor:not-allowed}.scale-option-top{letter-spacing:-.06em;font-size:20px;font-weight:680}.scale-option-bottom{color:#92958c;font-size:8px}.selected-mark{background:var(--accent);color:#39492a;border-radius:50%;place-items:center;width:16px;height:16px;display:grid;position:absolute;top:8px;right:8px}.format-field{margin-top:22px}.format-options{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.format-option{text-align:center;cursor:pointer;background:#fffefa;border:1px solid #e6e6df;border-radius:7px;flex-direction:column;justify-content:center;gap:4px;min-height:52px;padding:7px 5px;display:flex}.format-option.is-selected{background:#f7f9ef;border-color:#a6bc7e}.format-label{color:#52574d;font-size:9px;font-weight:760}.format-detail{color:#9a9d94;font-size:7px}.future-setting{border-top:1px solid #eeeeea;border-bottom:1px solid #eeeeea;align-items:center;gap:9px;margin-top:20px;padding:11px 0;display:flex}.future-setting-icon{color:#8c9876;border:1px solid #ebede6;border-radius:7px;place-items:center;width:28px;height:28px;display:grid}.future-setting-copy{flex-direction:column;flex:1;gap:3px;display:flex}.future-setting-copy strong{color:#676b62;font-size:9px;font-weight:690}.future-setting-copy span{color:#a0a399;font-size:8px}.coming-soon{color:#94988d;letter-spacing:.08em;background:#f1f2ed;border-radius:4px;padding:4px 5px;font-size:7px;font-weight:750}.enhance-button,.download-button{width:100%;min-height:46px;margin-top:auto;padding:0 12px}.enhance-button{margin-top:19px}.button-tail{color:#c5e879;margin-left:auto}.settings-footnote{color:#92958b;align-items:center;gap:6px;margin:12px 0 0;font-size:8px;line-height:1.4;display:flex}.settings-footnote svg{flex:none}.settings-error{color:#995b45;background:#fff8f4;border:1px solid #efd6cb;border-radius:7px;margin-top:13px;padding:10px 11px;font-size:9px;line-height:1.5}.processing-status{color:#70874c;background:#f8faef;border:1px solid #e4e9d8;border-radius:8px;align-items:center;gap:9px;margin-top:17px;padding:10px;display:flex}.processing-status span{flex-direction:column;gap:3px;display:flex}.processing-status strong{color:#596949;font-size:9px}.processing-status small{color:#909889;font-size:8px}.spin{animation:1.1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.enhance-again{color:#78845f;cursor:pointer;text-underline-offset:3px;background:0 0;border:0;margin:8px auto 0;padding:6px;font-size:8px;text-decoration:underline}.enhance-again:disabled{opacity:.5;cursor:not-allowed}.comparison-card{background:#f0f0eb;overflow:hidden}.comparison-toolbar{background:#fffefa;border-bottom:1px solid #e5e5df;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:0 12px;display:flex}.comparison-heading{color:#60665a;align-items:center;gap:7px;font-size:10px;font-weight:670;display:flex}.comparison-heading svg{color:#829a5e}.zoom-controls{align-items:center;gap:3px;display:flex}.zoom-controls>span{color:#a0a399;letter-spacing:.09em;margin-right:4px;font-size:7px;font-weight:760}.zoom-controls button{color:#85897f;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;place-items:center;min-width:28px;height:25px;padding:0 5px;font-size:8px;display:inline-grid}.zoom-controls button.is-active{color:#536a36;background:#f4f7ec;border-color:#dfe5d2;font-weight:700}.zoom-controls button:disabled{opacity:.38;cursor:not-allowed}.comparison-stage{isolation:isolate;touch-action:pan-y;background:radial-gradient(at 50% 43%,#f9f9f6 0%,#e9eae4 80%);height:clamp(310px,42vw,450px);position:relative;overflow:hidden}.comparison-stage.is-pan-mode{cursor:grab;touch-action:none}.comparison-stage.is-pan-mode:active{cursor:grabbing}.comparison-stage.is-pan-mode .comparison-image{transition:none}.comparison-stage.is-pan-mode .comparison-range{pointer-events:none}.comparison-stage:has(.comparison-range:focus-visible){outline-offset:-3px;outline:3px solid #7c9e43}.comparison-image{transform-origin:50%;transition:transform .2s;position:absolute;inset:0}.comparison-image img{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.comparison-after{z-index:2;position:absolute;inset:0;overflow:hidden}.comparison-after .comparison-image{width:100%;height:100%}.comparison-label{z-index:4;color:#fff;letter-spacing:.1em;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#1e221ca8;border:1px solid #ffffff7a;border-radius:4px;padding:6px 8px;font-size:7px;font-weight:760;position:absolute;top:13px}.label-before{left:13px}.label-after{right:13px}.comparison-divider{z-index:5;pointer-events:none;background:#fff;width:2px;position:absolute;top:0;bottom:0;transform:translate(-50%);box-shadow:0 0 6px #1418113d}.divider-knob{background:#232820;border:2px solid #fff;border-radius:50%;place-items:center;width:35px;height:35px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 8px #0000003d}.divider-knob:before,.divider-knob:after{content:"";border-top:1.5px solid #fff;border-right:1.5px solid #fff;width:7px;height:7px;position:absolute;top:50%}.divider-knob:before{left:7px;transform:translateY(-50%)rotate(-135deg)}.divider-knob:after{right:7px;transform:translateY(-50%)rotate(45deg)}.comparison-range{z-index:6;opacity:0;cursor:ew-resize;touch-action:pan-y;width:100%;height:100%;margin:0;position:absolute;inset:0}.comparison-range::-webkit-slider-runnable-track{background:0 0;height:100%}.comparison-range::-moz-range-track{background:0 0;height:100%}.comparison-range::-webkit-slider-thumb{appearance:none;background:0 0;width:28px;height:100%}.comparison-range::-moz-range-thumb{background:0 0;border:0;border-radius:0;width:28px;height:100%}.compare-hint{z-index:4;color:#777c70;letter-spacing:.08em;pointer-events:none;background:#ffffffba;border-radius:4px;padding:5px 7px;font-size:7px;font-weight:720;position:absolute;bottom:11px;right:11px}.comparison-meta{background:#fffefa;border-top:1px solid #e3e4dc;grid-template-columns:1fr auto 1fr auto;align-items:center;gap:14px;min-height:64px;padding:10px 16px;display:grid}.comparison-meta>div:not(.comparison-meta-arrow){flex-direction:column;gap:5px;min-width:0;display:flex}.comparison-meta span{color:#969a90;letter-spacing:.1em;font-size:7px;font-weight:740}.comparison-meta strong{color:#4b5046;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:650;overflow:hidden}.comparison-meta-arrow{color:#a4ab97;font-size:16px}.comparison-engine{text-align:right}.result-file-row{justify-content:space-between;align-items:center;gap:12px;min-height:60px;padding:10px 2px 0;display:flex}.result-file-label{align-items:center;gap:9px;min-width:0;display:flex}.result-check{color:#738b4b;background:#f7faef;border:1px solid #dce7c8;border-radius:7px;flex:none;place-items:center;width:27px;height:27px;display:grid}.result-start-over{flex:none}.error-notice{color:#975b46;background:#fff8f4;border:1px solid #efd6cb;border-radius:7px;align-items:center;gap:8px;margin-top:11px;padding:10px 11px;font-size:9px;line-height:1.5;display:flex}.error-mark{border:1px solid #dcad9b;border-radius:50%;flex:none;place-items:center;width:16px;height:16px;font-size:10px;font-weight:800;display:grid}.error-notice>span:nth-child(2){flex:1}.error-notice button{color:#94604e;cursor:pointer;background:0 0;border:0;border-radius:5px;flex:none;place-items:center;width:23px;height:23px;display:grid}.how-section{width:min(1120px,100% - 80px);margin:0 auto;padding:0 0 100px;scroll-margin-top:32px}.how-heading{margin-bottom:27px}.how-heading .section-kicker{margin:0 0 10px}.steps-grid{grid-template-columns:repeat(3,1fr);gap:13px;display:grid}.step-card{background:#fffefa94;border:1px solid #e5e5dd;border-radius:11px;min-height:168px;padding:21px}.step-number{color:#829568;letter-spacing:.12em;font-size:9px;font-weight:780}.step-card h3{letter-spacing:-.02em;margin:18px 0 7px;font-size:13px;font-weight:680}.step-card p{color:#84887f;max-width:260px;margin:0;font-size:10px;line-height:1.65}.site-footer{border-top:1px solid #20231f17;justify-content:space-between;align-items:center;gap:20px;width:min(1320px,100% - 80px);min-height:76px;margin:0 auto;display:flex}.site-footer .brand-lockup{font-size:16px}.site-footer .brand-mark{width:26px;height:26px}.site-footer>p{color:#898d84;font-size:9px}.site-footer>a:last-child{color:#74796c;align-items:center;gap:7px;font-size:9px;display:flex}.enhancer-shell{width:100%}.studio-mode-toggle{background:#eeeee8;border:1px solid #e1e2d9;border-radius:8px;gap:3px;width:fit-content;margin:0 0 15px;padding:4px;display:flex}.studio-mode-toggle button{color:#767b70;cursor:pointer;background:0 0;border:0;border-radius:5px;min-height:32px;padding:0 13px;font-size:10px;font-weight:680}.studio-mode-toggle button.is-selected{color:#41483a;background:#fffefa;box-shadow:0 1px 4px #1e221917}.studio-mode-toggle button:disabled{cursor:not-allowed;opacity:.55}.batch-layout.is-dragging:after{content:"Drop images to add to the batch"}.batch-image-stage{min-height:300px}.batch-dropzone{text-align:center;background:linear-gradient(135deg,#fbfcf7,#f7f8f1);border:1px dashed #cfd3c3;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-height:clamp(365px,48vw,475px);padding:28px;display:flex;position:relative}.batch-dropzone.is-dragging{background:#f3f8e8;border-color:#85a64e}.batch-dropzone h3{letter-spacing:-.035em;margin:0;font-size:19px;font-weight:650}.batch-dropzone .upload-description{max-width:330px}.batch-dropzone .upload-privacy{margin-top:17px}.batch-queue-section{border-top:1px solid #ecece5;margin-top:13px;padding:12px 2px 0}.batch-queue-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;display:flex}.batch-queue-heading strong{color:#54594f;font-size:10px;font-weight:720}.batch-queue-heading span{color:#92968d;font-size:8px}.batch-archive-row{margin-bottom:9px;display:flex}.batch-archive-button{color:#5d7043;background:#fffefa;border:1px solid #e1e7d7;border-radius:6px;gap:7px;min-height:32px;padding:0 9px;font-size:9px}.batch-archive-button:disabled{cursor:not-allowed;opacity:.55}.batch-progress{color:#73844f;background:#f8faef;border:1px solid #e4e9d8;border-radius:7px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:9px;padding:9px 10px;font-size:8px;line-height:1.5;display:flex}.batch-progress-status{flex:190px;align-items:center;gap:8px;min-width:170px;display:flex}.batch-progress-status span{min-width:0}.batch-progress svg{flex:none}.batch-progress-stop{color:#657749;cursor:pointer;min-height:28px;font:inherit;white-space:nowrap;background:#fffefa;border:1px solid #dfe6d3;border-radius:5px;flex:none;padding:4px 7px}.batch-progress-stop:disabled{opacity:.55;cursor:not-allowed}.batch-queue-list{gap:6px;max-height:330px;margin:0;padding:0 3px 0 0;list-style:none;display:grid;overflow:auto}.batch-queue-item{background:#fffefa;border:1px solid #ecece5;border-radius:7px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 7px;min-width:0;padding:5px 6px;display:grid}.batch-queue-item.is-selected{background:#f9fbf4;border-color:#b8ca97}.batch-queue-select{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;min-width:0;padding:0;display:flex}.batch-thumbnail{background:#f0f0eb;border-radius:4px;flex:none;width:42px;height:38px;position:relative;overflow:hidden}.batch-thumbnail img{object-fit:cover}.batch-file-copy{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.batch-file-copy strong{color:#4e5349;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:680;overflow:hidden}.batch-file-copy small{color:#94988f;font-size:7px}.batch-status{color:#7d836f;letter-spacing:.04em;background:#f1f2ed;border-radius:4px;flex:none;align-items:center;gap:4px;padding:4px 5px;font-size:6px;font-weight:780;display:inline-flex}.batch-status-complete{color:#5c7835;background:#eff5e4}.batch-status-failed{color:#995b46;background:#fff0e9}.batch-status-processing{color:#657b3f;background:#f2f6e9}.batch-item-actions{align-items:center;gap:3px;display:flex}.batch-item-actions .icon-button{width:25px;height:25px}.batch-item-error{color:#995b46;grid-column:1/-1;margin:4px 2px 2px 50px;font-size:8px;line-height:1.4}.batch-settings-summary{border-top:1px solid #eeeeea;border-bottom:1px solid #eeeeea;justify-content:space-between;gap:10px;margin-top:23px;padding:11px 0;display:flex}.batch-settings-summary strong{color:#59604f;font-size:9px;font-weight:700}.batch-settings-summary span{color:#8e9387;font-size:8px}.batch-output-budget{color:#828779;margin:8px 0 0;font-size:8px}.batch-output-budget.is-over-limit{color:#995b46;font-weight:700}.batch-memory-note{color:#92958b;margin:9px 0 0;font-size:8px;line-height:1.5}@media (min-width:1500px){.hero-shell{min-height:560px}.hero-art{height:410px}.hero-photo{height:320px}}@media (max-width:980px){.site-header,.hero-shell,.studio-section,.how-section,.site-footer{width:calc(100% - 48px)}.hero-shell{grid-template-columns:1fr .9fr;gap:10px;min-height:440px;padding-top:36px}.hero-art{height:320px}.hero-photo{width:90%;height:245px}.studio-layout{grid-template-columns:minmax(0,1fr) 285px;gap:12px}.settings-panel{padding:18px 15px}.image-workspace{padding:12px}.comparison-meta{gap:8px;padding-inline:10px}.comparison-engine{display:none!important}.comparison-meta{grid-template-columns:1fr auto 1fr}}@media (max-width:720px){.site-header,.hero-shell,.studio-section,.how-section,.site-footer{width:calc(100% - 36px)}.site-header{height:68px}.brand-lockup{font-size:17px}.main-nav{display:none}.header-cta{padding:9px 11px;font-size:10px}.header-actions{gap:5px}.header-auth-button span{max-width:112px}.hero-shell{grid-template-columns:1fr;min-height:auto;padding:47px 0 48px}.hero-copy{padding:0}.hero-copy h1{max-width:540px;margin-top:17px;font-size:clamp(39px,10vw,55px)}.hero-description{max-width:390px;font-size:13px}.hero-art{height:clamp(225px,62vw,310px);margin-top:3px}.hero-photo{width:min(380px,78%);height:75%}.hero-art-stamp{width:62px;height:62px;bottom:2%;right:5%}.hero-art-stamp strong{font-size:20px}.hero-photo-photo-label{bottom:11%;left:12%}.studio-section{padding:42px 0 70px}.section-heading{flex-direction:column;align-items:start;gap:8px;margin-bottom:19px}.section-aside{text-align:left;margin:0}.section-heading h2,.how-heading h2{font-size:29px}.studio-layout{grid-template-columns:1fr}.image-workspace{padding:11px}.workspace-toolbar{margin-bottom:10px}.settings-panel{padding:20px}.settings-heading{margin-bottom:20px}.settings-panel .enhance-button,.settings-panel .download-button{margin-top:20px}.studio-mode-toggle{margin-bottom:12px}.settings-panel .settings-footnote{justify-content:center}.upload-dropzone,.batch-dropzone{min-height:355px;padding:22px 16px}.upload-description{max-width:275px}.original-preview-image{height:62vw;min-height:260px;max-height:400px}.comparison-toolbar{min-height:45px;padding-inline:8px}.comparison-heading{font-size:9px}.zoom-controls{gap:0}.zoom-controls>span{display:none}.zoom-controls button{min-width:26px;padding-inline:3px;font-size:7px}.comparison-stage{height:62vw;min-height:265px;max-height:390px}.comparison-meta{gap:6px;min-height:58px;padding:8px}.comparison-meta strong{font-size:8px}.comparison-meta span{font-size:6px}.comparison-meta-arrow{font-size:13px}.result-file-row{align-items:start}.result-file-label strong{max-width:220px}.result-start-over{font-size:9px}.how-section{padding-bottom:58px}.steps-grid{grid-template-columns:1fr;gap:8px}.step-card{min-height:0;padding:16px 18px}.step-card h3{margin:10px 0 5px}.step-card p{max-width:420px}.site-footer{flex-wrap:wrap;gap:6px 14px;min-height:92px;padding:13px 0}.site-footer .brand-lockup{order:0}.site-footer>p{order:2;width:100%;margin:0}.site-footer>a:last-child{order:1}}@media (max-width:390px){.site-header,.hero-shell,.studio-section,.how-section,.site-footer{width:calc(100% - 28px)}.header-cta{gap:6px;padding:8px}.header-auth-button span{max-width:78px}.hero-copy h1{font-size:37px}.workspace-actions{gap:5px}.local-badge{display:none}.batch-queue-heading span{font-size:7px}.batch-queue-item{gap:0 4px;padding:4px}.batch-queue-select{gap:5px}.batch-thumbnail{width:34px;height:34px}.batch-status{padding:4px;font-size:5px}.batch-item-actions .icon-button{width:22px;height:23px}.batch-item-error{margin-left:39px}.comparison-heading{gap:4px}.comparison-heading svg{width:14px}.comparison-meta{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.comparison-meta strong{font-size:7px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@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}
_next/static/chunks/3wnd0kwwbm1vl.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40100,e=>{e.v(t=>Promise.all(["static/chunks/1hxeq3bv8jtz0.js"].map(t=>e.l(t))).then(()=>t(22462)))},22519,e=>{e.v(t=>Promise.all(["static/chunks/1habozizzlj9h.js"].map(t=>e.l(t))).then(()=>t(82702)))},26680,e=>{e.v(t=>Promise.all(["static/chunks/0ti9ckwa4zszn.js"].map(t=>e.l(t))).then(()=>t(16545)))},89771,e=>{e.v(t=>Promise.all(["static/chunks/2guqcj1xa9qrm.js"].map(t=>e.l(t))).then(()=>t(27613)))},28298,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return l}});let n=e.r(71645);function l(e,t,r){let[l,a]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(l.tree===e)return l;let u={tree:e,cacheNode:t,stateKey:r,next:null},o=1,s=l,i=u;for(;null!==s&&o<1;){if(s.stateKey===r){i.next=s.next;break}{o++;let e={tree:s.tree,cacheNode:s.cacheNode,stateKey:s.stateKey,next:null};i.next=e,i=e}s=s.next}return a(u),u}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},47257,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return i}});let n=e.r(43476),l=e.r(8372),a=e.r(71645),u=e.r(33906),o=e.r(61994),s=e.r(15783);function i({Component:e,serverProvidedParams:t}){let r,d;if(null!==t)r=t.searchParams,d=t.params;else{let e=(0,a.use)(l.LayoutRouterContext);d=null!==e?e.parentParams:{},r=(0,u.urlSearchParamsToParsedUrlQuery)((0,a.use)(o.SearchParamsContext))}let c=(0,s.createClientSearchParams)(r),f=(0,s.createClientParams)(d);return(0,n.jsx)(e,{params:f,searchParams:c})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92825,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return o}});let n=e.r(43476),l=e.r(8372),a=e.r(71645),u=e.r(15783);function o({Component:e,slots:t,serverProvidedParams:r}){let s;if(null!==r)s=r.params;else{let e=(0,a.use)(l.LayoutRouterContext);s=null!==e?e.parentParams:{}}let i=(0,u.createClientParams)(s);return(0,n.jsx)(e,{...t,params:i})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68017,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return d}});let n=e.r(90809),l=e.r(43476),a=n._(e.r(71645)),u=e.r(90373),o=e.r(54394),s=e.r(8372);class i extends a.default.Component{constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}componentDidCatch(){}static getDerivedStateFromError(e){if((0,o.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,o.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:a}=this.state,u={[o.HTTPAccessErrorStatus.NOT_FOUND]:e,[o.HTTPAccessErrorStatus.FORBIDDEN]:t,[o.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(a){let s=a===o.HTTPAccessErrorStatus.NOT_FOUND&&e,i=a===o.HTTPAccessErrorStatus.FORBIDDEN&&t,d=a===o.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return s||i||d?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{name:"robots",content:"noindex"}),!1,u[a]]}):n}return n}}function d({notFound:e,forbidden:t,unauthorized:r,children:n}){let o=(0,u.useUntrackedPathname)(),c=(0,a.useContext)(s.MissingSlotContext);return e||t||r?(0,l.jsx)(i,{pathname:o,notFound:e,forbidden:t,unauthorized:r,missingSlots:c,children:n}):(0,l.jsx)(l.Fragment,{children:n})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},22976,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return a},PlaceValidationBoundaryBelowThisLevel:function(){return u},RenderValidationBoundaryAtThisLevel:function(){return o},SlotMarker:function(){return s}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=null,u=null,o=null,s=null;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77694,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return a.InstantValidationBoundaryContext},PlaceValidationBoundaryBelowThisLevel:function(){return a.PlaceValidationBoundaryBelowThisLevel},RenderValidationBoundaryAtThisLevel:function(){return a.RenderValidationBoundaryAtThisLevel},SlotMarker:function(){return a.SlotMarker}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(22976);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39756,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0});var n={LoadingBoundaryProvider:function(){return C},default:function(){return T}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(55682),u=e.r(90809),o=e.r(43476),s=u._(e.r(71645)),i=a._(e.r(74080)),d=e.r(8372),c=e.r(1244),f=e.r(72383),p=e.r(91915),m=e.r(58442),y=e.r(68017);e.r(77694);let b=e.r(70725),h=e.r(28298);e.r(74180);let _=e.r(61994),P=e.r(33906),v=e.r(95871);i.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(e,t,r){let n=e.getClientRects();if(0===n.length)return 0;let l=1/0;for(let e=0;e<n.length;e++){let t=n[e];t.top<l&&(l=t.top)}return l>=r()&&l<=t?1:2}s.default.Component;let g=function(e){let t=s.default.useRef(null);return(0,s.useLayoutEffect)(()=>{let{focusAndScrollRef:r,cacheNode:n}=e,l=r.forceScroll?r.scrollRef:n.scrollRef;if(null===l||!l.current)return;let a=null,u=r.hashFragment;if(u){var o;if(null===(a="top"===(o=u)?document.body:document.getElementById(o)??document.getElementsByName(o)[0]??null)){l.current=!1,r.onlyHashChange=!1,r.hashFragment=null;return}}else a=t.current;if(null===a)return;let s=!1;(0,p.disableSmoothScrollDuringRouteTransition)(()=>{let e=document.documentElement,t=null,r=null,n=null,o=()=>{var r,l;let a,u;return null===n&&(r=e,l=t,n=!Number.isFinite(u=Number.parseFloat(a=getComputedStyle(r).scrollPaddingTop))||u<0?0:a.endsWith("px")?u:a.endsWith("%")?u/100*l:0),n};(u||(t=e.clientHeight,0!==(r=j(a,t,o))))&&((s=!0,l.current=!1,u)?a.scrollIntoView():1!==r&&(e.scrollTop=0,2===j(a,t,o)&&a.scrollIntoView()))},{dontForceLayout:!0,onlyHashChange:r.onlyHashChange}),s&&(r.onlyHashChange=!1,r.hashFragment=null)},void 0),(0,o.jsx)(s.Fragment,{ref:t,children:e.children})};function O({children:e,cacheNode:t}){let r=(0,s.useContext)(d.GlobalLayoutRouterContext);if(!r)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,o.jsx)(g,{focusAndScrollRef:r.focusAndScrollRef,cacheNode:t,children:e})}function x({tree:e,segmentPath:t,debugNameContext:r,cacheNode:n,params:l,url:a,isActive:u}){let i,f=(0,s.useContext)(d.GlobalLayoutRouterContext);if((0,s.useContext)(_.NavigationPromisesContext),!f)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let p=null!==n?n:(0,s.use)(c.unresolvedThenable),m=null!==p.prefetchRsc?p.prefetchRsc:p.rsc,y=(0,s.useDeferredValue)(p.rsc,m);if((0,v.isDeferredRsc)(y)){let e=(0,s.use)(y);null===e&&(0,s.use)(c.unresolvedThenable),i=e}else null===y&&(0,s.use)(c.unresolvedThenable),i=y;let b=i;return(0,o.jsx)(d.LayoutRouterContext.Provider,{value:{parentTree:e,parentCacheNode:p,parentSegmentPath:t,parentParams:l,parentLoadingData:null,debugNameContext:r,url:a,isActive:u},children:b})}function C({loading:e,children:t}){let r=(0,s.use)(d.LayoutRouterContext);return null===r?t:(0,o.jsx)(d.LayoutRouterContext.Provider,{value:{parentTree:r.parentTree,parentCacheNode:r.parentCacheNode,parentSegmentPath:r.parentSegmentPath,parentParams:r.parentParams,parentLoadingData:e,debugNameContext:r.debugNameContext,url:r.url,isActive:r.isActive},children:t})}function R({name:e,loading:t,children:r}){if(null!==t){let n=t[0],l=t[1],a=t[2];return(0,o.jsx)(s.Suspense,{name:e,fallback:(0,o.jsxs)(o.Fragment,{children:[l,a,n]}),children:r})}return(0,o.jsx)(o.Fragment,{children:r})}function T({parallelRouterKey:e,error:t,errorStyles:r,errorScripts:n,templateStyles:l,templateScripts:a,template:u,notFound:i,forbidden:p,unauthorized:_,segmentViewBoundaries:v}){let j=(0,s.useContext)(d.LayoutRouterContext);if(!j)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:g,parentCacheNode:C,parentSegmentPath:S,parentParams:M,parentLoadingData:E,url:N,isActive:F,debugNameContext:A}=j,B=g[0],D=null===S?[e]:S.concat([B,e]),L=g[1][e],H=C.slots;(void 0===L||null===H)&&(0,s.use)(c.unresolvedThenable);let k=L[0],w=H[e]??null,U=(0,b.createRouterCacheKey)(k,!0),V=(0,h.useRouterBFCache)(L,w,U),I=[];do{let e=V.tree,s=V.cacheNode,c=V.stateKey,b=e[0],h=M;if(Array.isArray(b)){let e=b[0],t=b[1],r=b[2],n=(0,P.getParamValueFromCacheKey)(t,r);null!==n&&(h={...M,[e]:n})}let v=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(b),j=v??A,g=void 0===v?void 0:A,C=(0,o.jsxs)(O,{cacheNode:s,children:[(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,errorStyles:r,errorScripts:n,children:(0,o.jsx)(R,{name:g,loading:E,children:(0,o.jsx)(y.HTTPAccessFallbackBoundary,{notFound:i,forbidden:p,unauthorized:_,children:(0,o.jsxs)(m.RedirectBoundary,{children:[(0,o.jsx)(x,{url:N,tree:e,params:h,cacheNode:s,segmentPath:D,debugNameContext:j,isActive:F&&c===U}),null]})})})}),null]}),T=(0,o.jsxs)(d.TemplateContext.Provider,{value:C,children:[l,a,u]},c);I.push(T),V=V.next}while(null!==V)return I}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},37457,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(90809),l=e.r(43476),a=n._(e.r(71645)),u=e.r(8372);function o(){let e=(0,a.useContext)(u.TemplateContext);return(0,l.jsx)(l.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6831,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},97689,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(6831).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},93504,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return l}});let n=new WeakMap;function l(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},66996,(e,t,r)=>{"use strict";e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(93504).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15783,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createClientParams:function(){return a.createRenderParamsFromClient},createClientSearchParams:function(){return u.createRenderSearchParamsFromClient}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let a=e.r(97689),u=e.r(66996);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},27201,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return l}});let n=e.r(43476),l=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})},91915,(e,t,r)=>{"use strict";function n(e,t={}){if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let l=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=l}e.i(47167),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}})}]);
_next/static/chunks/turbopack-1rdgb0w8nih9e.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/12aruqaur5huj.js","static/chunks/13yxs8tvcajse.js","static/chunks/3g4px251sg85e.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;var t,r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=((t=n||{})[t.Runtime=0]="Runtime",t[t.Parent=1]="Parent",t[t.Update=2]="Update",t);let o=new WeakMap;function l(e,t){this.m=e,this.e=t}let i=l.prototype,u=Object.prototype.hasOwnProperty,s="u">typeof Symbol&&Symbol.toStringTag;function c(e,t,r){u.call(e,t)||Object.defineProperty(e,t,r)}function a(e,t){let r=e[t];return r||(r=f(t),e[t]=r),r}function f(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function p(e,t,r){c(e,"__esModule",{value:!0}),s&&c(e,s,{value:"Module"});let n=0;for(;n<t.length;){let r=t[n++],o=t[n++];if("number"==typeof o)if(0===o)c(e,r,{value:t[n++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[n]?c(e,r,{get:o,set:t[n++],enumerable:!0}):c(e,r,{get:o,enumerable:!0})}r||Object.seal(e)}function h(e,t){(null!=t?a(this.c,t):this.m).exports=e}i.s=function(e,t,r){let n,o;null!=t?o=(n=a(this.c,t)).exports:(n=this.m,o=this.e),n.namespaceObject=o,p(o,e,r)},i.j=function(e,t){let r,n;null!=t?n=(r=a(this.c,t)).exports:(r=this.m,n=this.e);let l=function(e,t){let r=o.get(e);if(!r){o.set(e,r=[]);let n=e=>{if("default"!==e){for(let t of r)if(u.call(t,e))return t}};e.exports=e.namespaceObject=new Proxy(t,{get(e,t){if(u.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);let r=n(t);return r&&Reflect.get(r,t)},set:()=>!1,defineProperty:()=>!1,deleteProperty:()=>!1,has:(e,t)=>!!Reflect.has(e,t)||"default"!==t&&"__esModule"!==t&&void 0!==n(t),ownKeys(e){let t=Reflect.ownKeys(e);for(let e of r)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t},getOwnPropertyDescriptor(e,t){let r=Reflect.getOwnPropertyDescriptor(e,t);if(r||"default"===t||"__esModule"===t)return r;let o=n(t);if(o)return{enumerable:!0,configurable:!0,get:()=>Reflect.get(o,t)}}})}return r}(r,n);"object"==typeof e&&null!==e&&l.push(e)},i.v=h,i.n=function(e,t){let r;(r=null!=t?a(this.c,t):this.m).exports=r.namespaceObject=e};let d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,m=[null,d({}),d([]),d(d)];function y(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!m.includes(t);t=d(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),p(t,n),t}function g(e){let t=K(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=y(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function b(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}i.i=g,i.A=function(e){return this.r(e)(g.bind(this))},i.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},i.r=function(e){return K(e,this.m).exports},i.f=function(e){function t(t){if(t=b(t),u.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=b(t),u.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let O=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function w(e,t){throw Error(`Invariant: ${t(e)}`)}O.prototype=URL.prototype,i.U=O,i.z=function(e){throw Error("dynamic usage of require is not supported")},i.g=globalThis;let R=l.prototype,U="string"==typeof TURBOPACK_CHUNK_BASE_PATH?TURBOPACK_CHUNK_BASE_PATH:"/_next/",k=new Map;i.M=k;let v=new Map,_=new Map,P=new Map;async function C(e,t,r){let n;if("string"==typeof r)return function(e,t,r){return A(e,t,r)}(e,t,E(r));let o=r.included||[],l=o.map(e=>!!k.has(e)||v.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);for(let l of(n=A(e,t,E(r.path)),o))v.has(l)||v.set(l,n);await n}R.l=function(e){return C(n.Parent,this.m.id,e)};let j=Promise.resolve(void 0),$=new WeakMap;function A(t,r,o){let l=e.loadChunkCached(t,o),i=$.get(l);if(void 0===i){let e=$.set.bind($,l,j);i=l.then(e).catch(e=>{let l;switch(t){case n.Runtime:l=`as a runtime dependency of chunk ${r}`;break;case n.Parent:l=`from module ${r}`;break;case n.Update:l="from an HMR update";break;default:w(t,e=>`Unknown source type: ${e}`)}let i=Error(`Failed to load chunk ${o} ${l}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw i.name="ChunkLoadError",i}),$.set(l,i)}return i}R.L=function(e){var t,r;return t=n.Parent,r=this.m.id,A(t,r,e)};R.R=function(e){let t=this.r(e);return t?.default??t},R.P=function(e){return`/ROOT/${e??""}`},R.F=function(e){return e?`file:///ROOT/${e.split("/").map(encodeURIComponent).join("/")}`:"file:///ROOT/"},R.q=function(e,t){h.call(this,`${e}${r}`,t)};let T=/[^A-Za-z0-9\-_.!~*'()/]/;function E(e,t=U){let n=T.test(e)?e.split("/").map(encodeURIComponent).join("/"):e;return`${t}${n}${r}`}function S(e,t){let r,n=e.indexOf("?");if(-1!==n)r=n;else{let t=e.indexOf("#");r=-1!==t?t:e.length}return r>=t.length&&e.startsWith(t,r-t.length)}R.b=U,R.X=r,R.h=E;function x(e){return S(e,".css")}let M={};i.c=M;let K=(e,t)=>{let r=M[e];if(r){if(r.error)throw r.error;return r}return N(e,n.Parent,t.id)};function N(e,t,r){let n=k.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:w(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=f(e),i=o.exports;M[e]=o;let u=new l(o,i);try{n(u,o,i)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&y(o.exports,o.namespaceObject),o}function B(t){let r;if(!Array.isArray(t))return e.registerChunk(void 0,t);let n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r<e.length;){let n,o=r+1;for(;o<e.length&&"function"!=typeof e[o];)o++;if(o===e.length)throw Error("malformed chunk format, expected a factory function");let l=e[o];for(let l=r;l<o;l++){let r=e[l],o=t.get(r);if(o){n=o;break}}let i=n??l,u=!1;for(let n=r;n<o;n++){let r=e[n];t.has(r)||(u||(i===l&&Object.defineProperty(l,"name",{value:"module evaluation"}),u=!0),t.set(r,i))}r=o+1}}(t,k)),e.registerChunk(n,r)}let L=new Map;function I(e){let t=L.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,retryAttempts:0,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},L.set(e,t)}return t}function q(e,t,r,n,o){!(null==n||n instanceof DOMException&&"NetworkError"===n.name)||r.retryAttempts>=1||L.get(t)!==r?(L.get(t)===r&&L.delete(t),r.reject(n)):(r.retryAttempts++,setTimeout(()=>{r.resolved||L.get(t)!==r||(o?o():(r.loadingStarted=!1,H(e,t)))},200+Math.floor(401*Math.random())))}function H(e,t){let r=I(t);if(r.loadingStarted)return r.promise;if(e===n.Runtime)return r.loadingStarted=!0,x(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(x(t));else if(S(t,".js")){self.TURBOPACK_NEXT_CHUNK_URLS.push(t);try{importScripts(t)}catch(n){q(e,t,r,n)}}else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let n=decodeURI(t);if(x(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${n}"],link[rel=stylesheet][href^="${n}?"]`).length>0)r.resolve();else{let n=()=>{let o=document.createElement("link");return o.rel="stylesheet",o.crossOrigin=null,o.href=t,o.onerror=()=>{let l=document.createComment("");o.replaceWith(l),q(e,t,r,void 0,()=>l.replaceWith(n()))},o.onload=()=>{r.resolve()},o};document.head.appendChild(n())}else if(S(t,".js")){let o=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${n}"],script[src^="${n}?"]`);if(o.length>0)for(let n of Array.from(o))n.addEventListener("error",()=>{n.remove(),q(e,t,r)},{once:!0});else{let n=document.createElement("script");n.crossOrigin=null,n.src=t,n.onerror=()=>{n.remove(),q(e,t,r)},document.head.appendChild(n)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise}e={async registerChunk(e,t){let r;if(null!=e&&(r=function(e){if("string"==typeof e)return e;let t=decodeURIComponent(e.src.replace(/[?#].*$/,""));return t.startsWith(U)?t.slice(U.length):t}(e),I("string"==typeof e?E(e):e.src).resolve()),null!=t){for(let e of t.otherChunks)I(E("string"==typeof e?e:e.path));if(await Promise.all(t.otherChunks.map(e=>{var t;return t=r,C(n.Runtime,t,e)})),t.runtimeModuleIds.length>0)for(let e of t.runtimeModuleIds)!function(e,t){let r=M[t];if(r){if(r.error)throw r.error;return}N(t,n.Runtime,e)}(r,e)}},loadChunkCached:(e,t)=>H(e,t)};var F=globalThis.TURBOPACK;globalThis.TURBOPACK={push:B},F.forEach(B)})();
_next/static/media/favicon.2vob68tjqpejf.ico ADDED
_not-found.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/3-vxe91e-zk3u.js" async=""></script><meta name="robots" content="noindex"/><title>Sharpify AI — Image enhancement, with more detail</title><meta name="description" content="Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/12aruqaur5huj.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[23384,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"HfOAuthProvider\"]\n3:I[39756,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n5:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n9:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"ViewportBoundary\"]\nb:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"MetadataBoundary\"]\nd:I[68027,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/3mnriig4puhpm.css\",\"style\"]\n8:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,null]},null,false,\"$8\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"GG2BNxemV0hcg8Nj315Fn\"}\n8:C\na:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\ne:I[27201,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"IconMark\"]\n7:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"Sharpify AI — Image enhancement, with more detail\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"3\",{}]]\n"])</script></body></html>
_not-found.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"HfOAuthProvider"]
3
+ 3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
4
+ 4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
5
+ 5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"OutletBoundary"]
6
+ 6:"$Sreact.suspense"
7
+ 9:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"ViewportBoundary"]
8
+ b:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"MetadataBoundary"]
9
+ d:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default",1]
10
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
11
+ 8:X
12
+ 0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/3-vxe91e-zk3u.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,"$8"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],null]}],false]],"m":"$undefined","G":["$d",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"GG2BNxemV0hcg8Nj315Fn"}
13
+ 8:C
14
+ a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
15
+ e:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"IconMark"]
16
+ 7:null
17
+ c:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$Le","3",{}]]
_not-found/__next._full.txt ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"HfOAuthProvider"]
3
+ 3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
4
+ 4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
5
+ 5:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"OutletBoundary"]
6
+ 6:"$Sreact.suspense"
7
+ 9:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"ViewportBoundary"]
8
+ b:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"MetadataBoundary"]
9
+ d:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default",1]
10
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
11
+ 8:X
12
+ 0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/3-vxe91e-zk3u.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,null]},null,false,"$8"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L9",null,{"children":"$La"}],["$","div",null,{"hidden":true,"children":["$","$Lb",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lc"}]}]}],null]}],false]],"m":"$undefined","G":["$d",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"GG2BNxemV0hcg8Nj315Fn"}
13
+ 8:C
14
+ a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
15
+ e:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"IconMark"]
16
+ 7:null
17
+ c:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$Le","3",{}]]
_not-found/__next._not-found/__PAGE__.txt ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"OutletBoundary"]
3
+ 3:"$Sreact.suspense"
4
+ 7:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"ViewportBoundary"]
5
+ 8:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"MetadataBoundary"]
6
+ 9:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"IconMark"]
7
+ b:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
8
+ c:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
9
+ f:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"HfOAuthProvider"]
10
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
11
+ 6:X
12
+ e:X
13
+ e:C
14
+ 0:{"buildId":"GG2BNxemV0hcg8Nj315Fn","data":[{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":"$@5","staleTime":"$6","varyParams":null},{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L7",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L8",null,{"children":["$","$3",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L9","3",{}]]}]}]}],null]}],"isPartial":"$@a","staleTime":"$6","varyParams":null},{"rsc":["$","$1","c",{"children":[null,["$","$Lb",null,{"parallelRouterKey":"children","template":["$","$Lc",null,{}]}]]}],"isPartial":"$@d","staleTime":"$6","varyParams":"$e"},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/3-vxe91e-zk3u.js","async":true}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$Lf",null,{"children":["$","$Lb",null,{"parallelRouterKey":"children","template":["$","$Lc",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:data:0:rsc:props:children:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:data:0:rsc:props:children:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:data:0:rsc:props:children:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:data:0:rsc:props:children:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]]}],"isPartial":"$@10","staleTime":"$6","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@11","rootVaryParams":null,"needsRuntimeRequest":"$@12"}
15
+ 4:null
16
+ 6:300
17
+ 12:true
18
+ 6:C
19
+ 11:0
20
+ a:"$undefined"
21
+ d:"$undefined"
22
+ 10:"$undefined"
23
+ 5:"$undefined"
_not-found/__next._tree.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
2
+ 0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"/_not-found","param":null,"prefetchHints":4192,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}}}},"staleTime":300,"buildId":"GG2BNxemV0hcg8Nj315Fn"}
favicon.ico ADDED
index.html CHANGED
@@ -1,19 +1 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3mnriig4puhpm.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/12aruqaur5huj.js"/><script src="/_next/static/chunks/13yxs8tvcajse.js" async=""></script><script src="/_next/static/chunks/3g4px251sg85e.js" async=""></script><script src="/_next/static/chunks/turbopack-1rdgb0w8nih9e.js" async=""></script><script src="/_next/static/chunks/3wnd0kwwbm1vl.js" async=""></script><script src="/_next/static/chunks/3-vxe91e-zk3u.js" async=""></script><script src="/_next/static/chunks/0f8bek7psp5me.js" async=""></script><script src="/_next/static/chunks/37mvkrz0kpeh3.js" async=""></script><title>Sharpify AI — Image enhancement, with more detail</title><meta name="description" content="Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><main id="top"><header class="site-header"><a class="brand-lockup" href="#top" aria-label="Sharpify AI home"><span class="brand-mark"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg></span><span>sharpify<span class="brand-ai">.ai</span></span></a><nav class="main-nav" aria-label="Main navigation"><a href="#studio">Enhance</a><a href="#how-it-works">How it works</a><a href="#about">About</a></nav><div class="header-actions"><div class="header-auth-wrap"><button class="header-cta header-auth-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-log-in" aria-hidden="true"><path d="m10 17 5-5-5-5"></path><path d="M15 12H3"></path><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path></svg><span>Checking sign-in…</span></button></div><a class="header-cta" href="#studio">Open studio <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></a></div></header><section class="hero-shell" aria-labelledby="hero-title"><div class="hero-copy"><div class="eyebrow"><span class="status-dot"></span> AI IMAGE STUDIO</div><h1 id="hero-title">A clearer version<br/>of <span>your favorite moments.</span></h1><p class="hero-description">Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling.</p><a class="hero-link" href="#studio">Open the enhancer <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></div><div class="hero-art" aria-hidden="true"><div class="hero-art-glow"></div><div class="hero-photo photo-back"><div class="sun"></div><div class="ridge ridge-back"></div><div class="ridge ridge-front"></div><div class="field-lines"></div></div><div class="hero-photo-photo-label"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg> RESTORED IN DETAIL</div><div class="hero-art-stamp"><span>SHARPIFY</span><strong>AI</strong></div></div></section><section class="studio-section" id="studio" aria-labelledby="studio-title"><div class="section-heading"><div><p class="section-kicker">THE WORKSPACE</p><h2 id="studio-title">Make it feel new again.</h2></div><p class="section-aside">Uploaded images are used only for enhancement and are not permanently stored.</p></div><div class="enhancer-shell"><div class="studio-mode-toggle" role="group" aria-label="Enhancement mode"><button aria-pressed="true" class="is-selected" type="button">Single image</button><button aria-pressed="false" class="" type="button">Batch images</button></div><div><div class="studio-layout"><input aria-label="Choose an image to enhance" class="visually-hidden-input" accept="image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp" type="file"/><section class="image-workspace" aria-label="Image workspace"><div class="workspace-toolbar"><div class="workspace-status"><span class="status-dot status-dot-muted"></span>YOUR CANVAS</div><div class="workspace-actions"><span class="local-badge"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg> <!-- -->HF ZERO-GPU</span></div></div><div class="image-stage"><div class="upload-dropzone"><div class="upload-icon-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image-plus" aria-hidden="true"><path d="M16 5h6"></path><path d="M19 2v6"></path><path d="M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5"></path><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path><circle cx="9" cy="9" r="2"></circle></svg></div><p class="upload-kicker">YOUR NEXT GREAT IMAGE STARTS HERE</p><h3>Enhance your image with AI</h3><p class="upload-description">Upload a blurry or low-resolution image and let AI restore the details.</p><button class="button button-dark upload-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-folder-up" aria-hidden="true"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"></path><path d="M12 10v6"></path><path d="m9 13 3-3 3 3"></path></svg> Choose an image</button><div class="upload-file-types" aria-label="Supported formats and file size"><span>JPG</span><span>PNG</span><span>WEBP</span><i></i> <span>Up to 20 MB</span></div><div class="upload-privacy"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-shield-check" aria-hidden="true"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"></path><path d="m9 12 2 2 4-4"></path></svg> Used only for enhancement, never permanently stored.</div><div class="drop-hint"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-image" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><circle cx="10" cy="12" r="2"></circle><path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"></path></svg> Drop a file anywhere in this panel</div></div></div><p class="paste-tip"><span>QUICK TIP</span> You can also paste an image from your clipboard with <kbd>Ctrl</kbd> <b>+</b> <kbd>V</kbd>.</p></section><aside class="settings-panel" aria-label="Enhancement settings"><div class="settings-heading"><div><p class="section-kicker">MAKE IT YOURS</p><h3>Enhancement settings</h3></div><span class="settings-step">01 <span>/ 02</span></span></div><fieldset class="settings-field" disabled=""><legend>Upscale size</legend><p class="field-caption">Give your image more room to breathe.</p><div class="scale-options" role="group" aria-label="Upscale factor"><button aria-pressed="false" class="scale-option" type="button"><span class="scale-option-top">2<!-- -->×</span><span class="scale-option-bottom">Balanced</span></button><button aria-pressed="true" class="scale-option is-selected" type="button"><span class="scale-option-top">4<!-- -->×</span><span class="scale-option-bottom">Maximum detail</span><span class="selected-mark"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span></button></div></fieldset><fieldset class="settings-field format-field" disabled=""><legend>Save format</legend><p class="field-caption">Choose how your result is delivered.</p><div class="format-options" role="group" aria-label="Output image format"><button aria-pressed="true" class="format-option is-selected" type="button"><span class="format-label">PNG</span><span class="format-detail">Lossless</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">JPG</span><span class="format-detail">Smaller file</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">WEBP</span><span class="format-detail">Modern</span></button></div></fieldset><div class="future-setting" aria-label="Face restoration will be available later"><div class="future-setting-icon"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg></div><div class="future-setting-copy"><strong>Face restoration</strong><span>Coming in a future model</span></div><span class="coming-soon">SOON</span></div><button class="button button-dark enhance-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg>Sign in to enhance<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right button-tail" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button><p class="settings-footnote"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark lucide-help-circle lucide-circle-help" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> <!-- -->Processing uses your Hugging Face ZeroGPU quota.</p></aside></div></div><div hidden=""><div class="studio-layout batch-layout"><input aria-label="Choose images for batch enhancement" class="visually-hidden-input" accept="image/jpeg,image/png,image/webp,.jpg,.jpeg,.png,.webp" multiple="" type="file"/><section class="image-workspace" aria-label="Batch image workspace"><div class="workspace-toolbar"><div class="workspace-status"><span class="status-dot status-dot-muted"></span>BATCH QUEUE</div><div class="workspace-actions"><span class="local-badge"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-image" aria-hidden="true"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"></rect><circle cx="9" cy="9" r="2"></circle><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"></path></svg> UP TO <!-- -->10<!-- --> IMAGES</span><button class="text-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-plus" aria-hidden="true"><path d="M5 12h14"></path><path d="M12 5v14"></path></svg> Add images</button></div></div><div class="image-stage batch-image-stage"><div class="batch-dropzone"><div class="upload-icon-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-image" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><circle cx="10" cy="12" r="2"></circle><path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22"></path></svg></div><p class="upload-kicker">PROCESS A SMALL SET TOGETHER</p><h3>Add images to your batch</h3><p class="upload-description">Choose up to <!-- -->10<!-- --> JPG, PNG, or WEBP images. Each image is enhanced in sequence.</p><button class="button button-dark upload-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-upload" aria-hidden="true"><path d="M12 3v12"></path><path d="m17 8-5-5-5 5"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path></svg> Choose images</button><div class="upload-file-types"><span>JPG</span><span>PNG</span><span>WEBP</span><i></i> <span>20 MB each</span></div><div class="upload-privacy"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg> Images stay in this session and are not permanently stored.</div></div></div></section><aside class="settings-panel" aria-label="Batch enhancement settings"><div class="settings-heading"><div><p class="section-kicker">ONE SET OF SETTINGS</p><h3>Batch settings</h3></div><span class="settings-step">02 <span>/ 02</span></span></div><fieldset class="settings-field"><legend>Upscale size</legend><p class="field-caption">Applied to every image in the next run.</p><div class="scale-options" role="group" aria-label="Batch upscale factor"><button aria-pressed="false" class="scale-option" type="button"><span class="scale-option-top">2<!-- -->×</span><span class="scale-option-bottom">Balanced</span></button><button aria-pressed="true" class="scale-option is-selected" type="button"><span class="scale-option-top">4<!-- -->×</span><span class="scale-option-bottom">Maximum detail</span><span class="selected-mark"><svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span></button></div></fieldset><fieldset class="settings-field format-field"><legend>Save format</legend><p class="field-caption">Choose one output format for this run.</p><div class="format-options" role="group" aria-label="Batch output image format"><button aria-pressed="true" class="format-option is-selected" type="button"><span class="format-label">PNG</span><span class="format-detail">Lossless</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">JPG</span><span class="format-detail">Smaller file</span></button><button aria-pressed="false" class="format-option" type="button"><span class="format-label">WEBP</span><span class="format-detail">Modern</span></button></div></fieldset><div class="batch-settings-summary"><strong>0<!-- --> / <!-- -->10<!-- --> images</strong><span>0<!-- --> enhanced</span></div><p class="batch-output-budget">Batch output budget: <!-- -->0<!-- -->M / <!-- -->64<!-- -->M pixels</p><button class="button button-dark enhance-button" type="button" disabled=""><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wand-sparkles lucide-wand-2" aria-hidden="true"><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72"></path><path d="m14 7 3 3"></path><path d="M5 6v4"></path><path d="M19 14v4"></path><path d="M10 2v2"></path><path d="M7 8H3"></path><path d="M21 16h-4"></path><path d="M11 3H9"></path></svg>Sign in to enhance</button><p class="settings-footnote"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-question-mark lucide-help-circle lucide-circle-help" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><path d="M12 17h.01"></path></svg> Images run sequentially. A failed image won’t stop the rest.</p><p class="batch-memory-note">For stability, a batch is limited to 64 million total output pixels. Remove images or lower the upscale to stay within the limit. Completed files stay in this browser tab until removed or cleared.</p></aside></div></div></div></section><section class="how-section" id="how-it-works" aria-labelledby="how-title"><div class="how-heading"><p class="section-kicker">SIMPLE BY DESIGN</p><h2 id="how-title">Three steps. One better image.</h2></div><div class="steps-grid"><article class="step-card"><span class="step-number">01</span><h3>Bring your image</h3><p>Drop in a photo, scan, or graphic that could use a little more clarity.</p></article><article class="step-card"><span class="step-number">02</span><h3>Let AI restore detail</h3><p>Real-ESRGAN restores visual detail and enlarges your image with AI.</p></article><article class="step-card"><span class="step-number">03</span><h3>Keep the full-size result</h3><p>Compare both versions, zoom into the details, then download your image.</p></article></div></section><footer class="site-footer" id="about"><a class="brand-lockup" href="#top" aria-label="Sharpify AI home"><span class="brand-mark"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkles lucide-stars" aria-hidden="true"><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"></path><path d="M20 2v4"></path><path d="M22 4h-4"></path><circle cx="4" cy="20" r="2"></circle></svg></span><span>sharpify<span class="brand-ai">.ai</span></span></a><p>Powered by open-source AI super resolution.</p><a href="#studio">Back to the studio <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></footer></main><!--$--><!--/$--><script src="/_next/static/chunks/12aruqaur5huj.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[23384,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"HfOAuthProvider\"]\n3:I[39756,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n4:I[37457,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\"]\n5:I[26564,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/37mvkrz0kpeh3.js\"],\"AppHeader\"]\n6:I[5014,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/37mvkrz0kpeh3.js\"],\"default\"]\n7:I[21342,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"/_next/static/chunks/0f8bek7psp5me.js\",\"/_next/static/chunks/37mvkrz0kpeh3.js\"],\"EnhancerStudio\"]\nf:I[68027,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/3mnriig4puhpm.css\",\"style\"]\n0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/3-vxe91e-zk3u.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"main\",null,{\"id\":\"top\",\"children\":[[\"$\",\"$L5\",null,{}],[\"$\",\"section\",null,{\"className\":\"hero-shell\",\"aria-labelledby\":\"hero-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"hero-copy\",\"children\":[[\"$\",\"div\",null,{\"className\":\"eyebrow\",\"children\":[[\"$\",\"span\",null,{\"className\":\"status-dot\"}],\" AI IMAGE STUDIO\"]}],[\"$\",\"h1\",null,{\"id\":\"hero-title\",\"children\":[\"A clearer version\",[\"$\",\"br\",null,{}],\"of \",[\"$\",\"span\",null,{\"children\":\"your favorite moments.\"}]]}],[\"$\",\"p\",null,{\"className\":\"hero-description\",\"children\":\"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling.\"}],[\"$\",\"a\",null,{\"className\":\"hero-link\",\"href\":\"#studio\",\"children\":[\"Open the enhancer \",[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":{\"name\":\"arrow-right\",\"size\":24,\"node\":[[\"path\",{\"d\":\"M5 12h14\",\"key\":\"1ays0h\"}],[\"path\",{\"d\":\"m12 5 7 7-7 7\",\"key\":\"xquz4c\"}]]},\"className\":\"$undefined\",\"size\":16}]]}]]}],[\"$\",\"div\",null,{\"className\":\"hero-art\",\"aria-hidden\":\"true\",\"children\":[[\"$\",\"div\",null,{\"className\":\"hero-art-glow\"}],[\"$\",\"div\",null,{\"className\":\"hero-photo photo-back\",\"children\":[[\"$\",\"div\",null,{\"className\":\"sun\"}],[\"$\",\"div\",null,{\"className\":\"ridge ridge-back\"}],[\"$\",\"div\",null,{\"className\":\"ridge ridge-front\"}],[\"$\",\"div\",null,{\"className\":\"field-lines\"}]]}],[\"$\",\"div\",null,{\"className\":\"hero-photo-photo-label\",\"children\":[[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":{\"name\":\"sparkles\",\"size\":24,\"node\":[[\"path\",{\"d\":\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\",\"key\":\"1s2grr\"}],[\"path\",{\"d\":\"M20 2v4\",\"key\":\"1rf3ol\"}],[\"path\",{\"d\":\"M22 4h-4\",\"key\":\"gwowj6\"}],[\"circle\",{\"cx\":\"4\",\"cy\":\"20\",\"r\":\"2\",\"key\":\"6kqj1y\"}]],\"aliases\":[\"stars\"]},\"className\":\"$undefined\",\"size\":14}],\" RESTORED IN DETAIL\"]}],[\"$\",\"div\",null,{\"className\":\"hero-art-stamp\",\"children\":[[\"$\",\"span\",null,{\"children\":\"SHARPIFY\"}],[\"$\",\"strong\",null,{\"children\":\"AI\"}]]}]]}]]}],[\"$\",\"section\",null,{\"className\":\"studio-section\",\"id\":\"studio\",\"aria-labelledby\":\"studio-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"section-heading\",\"children\":[[\"$\",\"div\",null,{\"children\":[[\"$\",\"p\",null,{\"className\":\"section-kicker\",\"children\":\"THE WORKSPACE\"}],[\"$\",\"h2\",null,{\"id\":\"studio-title\",\"children\":\"Make it feel new again.\"}]]}],[\"$\",\"p\",null,{\"className\":\"section-aside\",\"children\":\"Uploaded images are used only for enhancement and are not permanently stored.\"}]]}],[\"$\",\"$L7\",null,{}]]}],[\"$\",\"section\",null,{\"className\":\"how-section\",\"id\":\"how-it-works\",\"aria-labelledby\":\"how-title\",\"children\":[[\"$\",\"div\",null,{\"className\":\"how-heading\",\"children\":[[\"$\",\"p\",null,{\"className\":\"section-kicker\",\"children\":\"SIMPLE BY DESIGN\"}],\"$L8\"]}],\"$L9\"]}],\"$La\"]}],[\"$Lb\",\"$Lc\"],\"$Ld\"]}],{},null,false,null]},null,false,null],\"$Le\",false]],\"m\":\"$undefined\",\"G\":[\"$f\",[\"$L10\"]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"GG2BNxemV0hcg8Nj315Fn\"}\n11:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"OutletBoundary\"]\n12:\"$Sreact.suspense\"\n14:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"ViewportBoundary\"]\n16:I[97367,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"MetadataBoundary\"]\n8:[\"$\",\"h2\",null,{\"id\":\"how-title\",\"children\":\"Three steps. One better image.\"}]\n9:[\"$\",\"div\",null,{\"className\":\"steps-grid\",\"children\":[[\"$\",\"article\",\"01\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"01\"}],[\"$\",\"h3\",null,{\"children\":\"Bring your image\"}],[\"$\",\"p\",null,{\"children\":\"Drop in a photo, scan, or graphic that could use a little more clarity.\"}]]}],[\"$\",\"article\",\"02\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"02\"}],[\"$\",\"h3\",null,{\"children\":\"Let AI restore detail\"}],[\"$\",\"p\",null,{\"children\":\"Real-ESRGAN restores visual detail and enlarges your image with AI.\"}]]}],[\"$\",\"article\",\"03\",{\"className\":\"step-card\",\"children\":[[\"$\",\"span\",null,{\"className\":\"step-number\",\"children\":\"03\"}],[\"$\",\"h3\",null,{\"children\":\"Keep the full-size result\"}],[\"$\",\"p\",null,{\"children\":\"Compare both versions, zoom into the details, then download your image.\"}]]}]]}]\na:[\"$\",\"footer\",null,{\"className\":\"site-footer\",\"id\":\"about\",\"children\":[[\"$\",\"a\",null,{\"className\":\"brand-lockup\",\"href\":\"#top\",\"aria-label\":\"Sharpify AI home\",\"children\":[[\"$\",\"span\",null,{\"className\":\"brand-mark\",\"children\":[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":\"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon\",\"className\":\"$undefined\",\"size\":16}]}],[\"$\",\"span\",null,{\"children\":[\"sharpify\",[\"$\",\"span\",null,{\"className\":\"brand-ai\",\"children\":\".ai\"}]]}]]}],[\"$\",\"p\",null,{\"children\":\"Powered by open-source AI super resolution.\"}],[\"$\",\"a\",null,{\"href\":\"#studio\",\"children\":[\"Back to the studio \",[\"$\",\"$L6\",null,{\"ref\":\"$undefined\",\"icon\":\"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon\",\"className\":\"$undefined\",\"size\":14}]]}]]}]\nb:[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0f8bek7psp5me.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nc:[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/37mvkrz0kpeh3.js\",\"async\":true,\"nonce\":\"$undefined\"}]\nd:[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@13\"}]}]\ne:[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L14\",null,{\"children\":\"$L15\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L16\",null,{\"children\":[\"$\",\"$12\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L17\"}]}]}],null]}]\n10:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3mnriig4puhpm.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n18:I[27201,[\"/_next/static/chunks/3wnd0kwwbm1vl.js\",\"/_next/static/chunks/3-vxe91e-zk3u.js\"],\"IconMark\"]\n13:null\n17:[[\"$\",\"title\",\"0\",{\"children\":\"Sharpify AI — Image enhancement, with more detail\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L18\",\"3\",{}]]\n"])</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 1:"$Sreact.fragment"
2
+ 2:I[23384,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"HfOAuthProvider"]
3
+ 3:I[39756,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
4
+ 4:I[37457,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default"]
5
+ 5:I[26564,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"AppHeader"]
6
+ 6:I[5014,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"default"]
7
+ 7:I[21342,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js","/_next/static/chunks/0f8bek7psp5me.js","/_next/static/chunks/37mvkrz0kpeh3.js"],"EnhancerStudio"]
8
+ f:I[68027,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"default",1]
9
+ :HL["/_next/static/chunks/3mnriig4puhpm.css","style"]
10
+ 0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/3wnd0kwwbm1vl.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/3-vxe91e-zk3u.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","main",null,{"id":"top","children":[["$","$L5",null,{}],["$","section",null,{"className":"hero-shell","aria-labelledby":"hero-title","children":[["$","div",null,{"className":"hero-copy","children":[["$","div",null,{"className":"eyebrow","children":[["$","span",null,{"className":"status-dot"}]," AI IMAGE STUDIO"]}],["$","h1",null,{"id":"hero-title","children":["A clearer version",["$","br",null,{}],"of ",["$","span",null,{"children":"your favorite moments."}]]}],["$","p",null,{"className":"hero-description","children":"Bring soft, small, or slightly tired images back into focus with thoughtful AI upscaling."}],["$","a",null,{"className":"hero-link","href":"#studio","children":["Open the enhancer ",["$","$L6",null,{"ref":"$undefined","icon":{"name":"arrow-right","size":24,"node":[["path",{"d":"M5 12h14","key":"1ays0h"}],["path",{"d":"m12 5 7 7-7 7","key":"xquz4c"}]]},"className":"$undefined","size":16}]]}]]}],["$","div",null,{"className":"hero-art","aria-hidden":"true","children":[["$","div",null,{"className":"hero-art-glow"}],["$","div",null,{"className":"hero-photo photo-back","children":[["$","div",null,{"className":"sun"}],["$","div",null,{"className":"ridge ridge-back"}],["$","div",null,{"className":"ridge ridge-front"}],["$","div",null,{"className":"field-lines"}]]}],["$","div",null,{"className":"hero-photo-photo-label","children":[["$","$L6",null,{"ref":"$undefined","icon":{"name":"sparkles","size":24,"node":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z","key":"1s2grr"}],["path",{"d":"M20 2v4","key":"1rf3ol"}],["path",{"d":"M22 4h-4","key":"gwowj6"}],["circle",{"cx":"4","cy":"20","r":"2","key":"6kqj1y"}]],"aliases":["stars"]},"className":"$undefined","size":14}]," RESTORED IN DETAIL"]}],["$","div",null,{"className":"hero-art-stamp","children":[["$","span",null,{"children":"SHARPIFY"}],["$","strong",null,{"children":"AI"}]]}]]}]]}],["$","section",null,{"className":"studio-section","id":"studio","aria-labelledby":"studio-title","children":[["$","div",null,{"className":"section-heading","children":[["$","div",null,{"children":[["$","p",null,{"className":"section-kicker","children":"THE WORKSPACE"}],["$","h2",null,{"id":"studio-title","children":"Make it feel new again."}]]}],["$","p",null,{"className":"section-aside","children":"Uploaded images are used only for enhancement and are not permanently stored."}]]}],["$","$L7",null,{}]]}],["$","section",null,{"className":"how-section","id":"how-it-works","aria-labelledby":"how-title","children":[["$","div",null,{"className":"how-heading","children":[["$","p",null,{"className":"section-kicker","children":"SIMPLE BY DESIGN"}],"$L8"]}],"$L9"]}],"$La"]}],["$Lb","$Lc"],"$Ld"]}],{},null,false,null]},null,false,null],"$Le",false]],"m":"$undefined","G":["$f",["$L10"]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"GG2BNxemV0hcg8Nj315Fn"}
11
+ 11:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"OutletBoundary"]
12
+ 12:"$Sreact.suspense"
13
+ 14:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"ViewportBoundary"]
14
+ 16:I[97367,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"MetadataBoundary"]
15
+ 8:["$","h2",null,{"id":"how-title","children":"Three steps. One better image."}]
16
+ 9:["$","div",null,{"className":"steps-grid","children":[["$","article","01",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"01"}],["$","h3",null,{"children":"Bring your image"}],["$","p",null,{"children":"Drop in a photo, scan, or graphic that could use a little more clarity."}]]}],["$","article","02",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"02"}],["$","h3",null,{"children":"Let AI restore detail"}],["$","p",null,{"children":"Real-ESRGAN restores visual detail and enlarges your image with AI."}]]}],["$","article","03",{"className":"step-card","children":[["$","span",null,{"className":"step-number","children":"03"}],["$","h3",null,{"children":"Keep the full-size result"}],["$","p",null,{"children":"Compare both versions, zoom into the details, then download your image."}]]}]]}]
17
+ a:["$","footer",null,{"className":"site-footer","id":"about","children":[["$","a",null,{"className":"brand-lockup","href":"#top","aria-label":"Sharpify AI home","children":[["$","span",null,{"className":"brand-mark","children":["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:1:props:children:2:props:children:0:props:icon","className":"$undefined","size":16}]}],["$","span",null,{"children":["sharpify",["$","span",null,{"className":"brand-ai","children":".ai"}]]}]]}],["$","p",null,{"children":"Powered by open-source AI super resolution."}],["$","a",null,{"href":"#studio","children":["Back to the studio ",["$","$L6",null,{"ref":"$undefined","icon":"$0:f:0:1:1:children:0:props:children:0:props:children:1:props:children:0:props:children:3:props:children:1:props:icon","className":"$undefined","size":14}]]}]]}]
18
+ b:["$","script","script-0",{"src":"/_next/static/chunks/0f8bek7psp5me.js","async":true,"nonce":"$undefined"}]
19
+ c:["$","script","script-1",{"src":"/_next/static/chunks/37mvkrz0kpeh3.js","async":true,"nonce":"$undefined"}]
20
+ d:["$","$L11",null,{"children":["$","$12",null,{"name":"Next.MetadataOutlet","children":"$@13"}]}]
21
+ e:["$","$1","h",{"children":[null,["$","$L14",null,{"children":"$L15"}],["$","div",null,{"hidden":true,"children":["$","$L16",null,{"children":["$","$12",null,{"name":"Next.Metadata","children":"$L17"}]}]}],null]}]
22
+ 10:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3mnriig4puhpm.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
23
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
24
+ 18:I[27201,["/_next/static/chunks/3wnd0kwwbm1vl.js","/_next/static/chunks/3-vxe91e-zk3u.js"],"IconMark"]
25
+ 13:null
26
+ 17:[["$","title","0",{"children":"Sharpify AI — Image enhancement, with more detail"}],["$","meta","1",{"name":"description","content":"Restore detail and upscale your images with Sharpify AI, powered by Real-ESRGAN."}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.2vob68tjqpejf.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L18","3",{}]]