huuquyet commited on
Commit
58865aa
1 Parent(s): 1d806c3

Update using next.js

Browse files
Files changed (35) hide show
  1. .gitattributes +0 -35
  2. 404.html +1 -1
  3. _next/static/chunks/123-a6d2101f21b1dc81.js +0 -1
  4. _next/static/chunks/{190-8c3f29b77c1f7978.js → 190-df929413349aa216.js} +0 -0
  5. _next/static/chunks/{413.744619bdd7ea9098.js → 413.c625d8cd4651c113.js} +0 -0
  6. _next/static/chunks/423-06102cf1584a8fa3.js +0 -0
  7. _next/static/chunks/{590caa2a.699039c37022246b.js → 590caa2a.d521cb8a83d5d957.js} +1 -1
  8. _next/static/chunks/6139e184.386a648ad105fc36.js +1 -0
  9. _next/static/chunks/6139e184.ec466d5482164223.js +0 -1
  10. _next/static/chunks/{432.34b698d3db09a44a.js → 881.edac2d034d19d100.js} +1 -1
  11. _next/static/chunks/946-310f6d0c4f8124d5.js +0 -0
  12. _next/static/chunks/app/_not-found/{page-3aa23121d293e5c8.js → page-0d80861c700ec4be.js} +1 -1
  13. _next/static/chunks/app/layout-0e0c053c92ad2f81.js +0 -1
  14. _next/static/chunks/app/layout-ce2469687f902f56.js +1 -0
  15. _next/static/chunks/app/page-b2abe5878ca250a0.js +1 -0
  16. _next/static/chunks/app/page-d8efbd597c53f3cc.js +0 -1
  17. _next/static/chunks/{fd9d1056-ee32f1bf30eb3d3f.js → fd9d1056-4e1a26e2d413ba3c.js} +0 -0
  18. _next/static/chunks/main-81d254d9c6853693.js +0 -0
  19. _next/static/chunks/{main-app-5420370b676a56f3.js → main-app-8591d221f05263ff.js} +1 -1
  20. _next/static/chunks/main-fb740fb39bc15572.js +0 -0
  21. _next/static/chunks/webpack-be89c114a742069c.js +1 -0
  22. _next/static/chunks/webpack-c511210a6eab1a58.js +0 -1
  23. _next/static/css/340fba77366dfc7d.css +3 -0
  24. _next/static/css/c07dfed9e589ce2b.css +0 -0
  25. _next/static/{sS3KCrv4R0AkB6q5rvqSN → ss7CKkqdkp8gKJJffXP0l}/_buildManifest.js +0 -0
  26. _next/static/{sS3KCrv4R0AkB6q5rvqSN → ss7CKkqdkp8gKJJffXP0l}/_ssgManifest.js +0 -0
  27. icons/{apple-icon.png → apple-touch-icon.png} +0 -0
  28. icons/safari-pinned-tab.svg +18 -18
  29. index.html +1 -134
  30. index.txt +9 -7
  31. manifest.json +29 -29
  32. style.css +0 -28
  33. sw.js +1 -1
  34. tamagui.css +0 -0
  35. vercel.svg +3 -3
.gitattributes DELETED
@@ -1,35 +0,0 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c511210a6eab1a58.js"/><script src="/_next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js" async=""></script><script src="/_next/static/chunks/190-8c3f29b77c1f7978.js" async=""></script><script src="/_next/static/chunks/main-app-5420370b676a56f3.js" async=""></script><script src="/_next/static/chunks/946-310f6d0c4f8124d5.js" async=""></script><script src="/_next/static/chunks/123-a6d2101f21b1dc81.js" async=""></script><script src="/_next/static/chunks/app/layout-0e0c053c92ad2f81.js" async=""></script><title>404: This page could not be found.</title><title>Translator demo app built with Transformers.js + Tamagui + Next.js</title><meta name="description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="application-name" content="Translator Demo"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><meta name="keywords" content="Translator,Transformers.js,Next.js,Tamagui"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta property="og:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/translator-tamagui/"/><meta property="og:site_name" content="Translator Demo"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="twitter:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script><style></style></head><body><span class="t_light is_inversed _dsp_contents"><span class=" t_light _dsp_contents is_Theme" style="color:var(--color)"><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></span></span><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-c511210a6eab1a58.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[5751,[],\"\"]\n3:I[9275,[],\"\"]\n4:I[1343,[],\"\"]\n5:I[2981,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"default\"]\na:I[2944,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"Analytics\"]\nc:I[6130,[],\"\"]\n6:{\"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\"}\n7:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n8:{\"display\":\"inline-block\"}\n9:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nd:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"sS3KCrv4R0AkB6q5rvqSN\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"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],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"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\":\"$6\",\"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\":\"$7\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$8\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$9\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}],[\"$\",\"$La\",null,{}]]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$Lb\"],\"globalErrorComponent\":\"$c\",\"missingSlots\":\"$Wd\"}]]\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"Translator Demo\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"Translator,Transformers.js,Next.js,Tamagui\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/translator-tamagui/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"Translator Demo\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n2:null\n"])</script></body></html><style></style>
 
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-be89c114a742069c.js"/><script src="/_next/static/chunks/fd9d1056-4e1a26e2d413ba3c.js" async=""></script><script src="/_next/static/chunks/190-df929413349aa216.js" async=""></script><script src="/_next/static/chunks/main-app-8591d221f05263ff.js" async=""></script><script src="/_next/static/chunks/app/layout-ce2469687f902f56.js" async=""></script><title>404: This page could not be found.</title><title>Translator demo app built with Transformers.js + Tamagui + Next.js</title><meta name="description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="application-name" content="Translator Demo"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><meta name="keywords" content="Translator,Transformers.js,Next.js,Tamagui"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta property="og:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/translator-tamagui/"/><meta property="og:site_name" content="Translator Demo"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="twitter:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><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><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-be89c114a742069c.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[5751,[],\"\"]\n3:I[9275,[],\"\"]\n4:I[1343,[],\"\"]\n9:I[6770,[\"185\",\"static/chunks/app/layout-ce2469687f902f56.js\"],\"Analytics\"]\nb:I[6130,[],\"\"]\n5:{\"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\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nc:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"ss7CKkqdkp8gKJJffXP0l\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"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],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"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\":\"$5\",\"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\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}],[\"$\",\"$L9\",null,{}]]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]]\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"Translator Demo\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"Translator,Transformers.js,Next.js,Tamagui\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/translator-tamagui/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"Translator Demo\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n2:null\n"])</script></body></html>
_next/static/chunks/123-a6d2101f21b1dc81.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[123],{8462:function(e,r,t){t.d(r,{G:function(){return b}});var o=t(281),l=t(9087),s=t(7449),a=t.n(s),n=t(2265);let i=["light","dark"],c="(prefers-color-scheme: dark)",h=(e,r)=>{let t;if(!(typeof window>"u")){try{t=localStorage.getItem(e)||void 0}catch{}return t||r}},d=e=>(e||(e=window.matchMedia(c)),e.matches?"dark":"light");var u=t(1636),m=t(2281);let b=(0,n.memo)(({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:t=!0,enableColorScheme:s=!0,storageKey:a="theme",themes:b=i,defaultTheme:p=t?"system":"light",attribute:f="class",skipNextHead:k,onChangeTheme:w,value:y={dark:"t_dark",light:"t_light"},children:v})=>{let[C,$]=(0,n.useState)(()=>h(a,p)),[S,P]=(0,n.useState)(()=>h(a)),x=y?Object.values(y):b,H=(0,l.z)(t=>{let o=d(t),l=()=>P(o);r?l():n.startTransition(()=>l()),"system"!==C||e||T(o,!1)}),T=(0,l.z)((e,r=!0,o=!0)=>{let l=y?.[e]||e;if(r)try{localStorage.setItem(a,e)}catch{}if("system"===e&&t){let e=d();l=y?.[e]||e}if(w?.(l.replace("t_","")),o){let e=document.documentElement;"class"===f?(e.classList.remove(...x),e.classList.add(l)):e.setAttribute(f,l)}});(0,o.LI)(()=>{let e=window.matchMedia(c);return e.addListener(H),H(e),()=>{e.removeListener(H)}},[]);let j=(0,l.z)(r=>{e?T(r,!0,!1):T(r),$(r)});(0,n.useEffect)(()=>{let e=e=>{e.key===a&&j(e.newValue||p)};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[p,j,a]),(0,o.LI)(()=>{if(!s)return;let r=e&&i.includes(e)?e:C&&i.includes(C)?C:"system"===C&&S||null;("u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")!==(r||"light")&&document.documentElement.style.setProperty("color-scheme",r)},[s,C,S,e]);let F=(0,l.z)(()=>{let e="dark"===S?["system","light","dark"]:["system","dark","light"];j(e[(e.indexOf(C)+1)%e.length])}),O=t?S:void 0,E=(0,n.useMemo)(()=>({theme:C,current:C,set:j,toggle:F,forcedTheme:e,resolvedTheme:"system"===C?S:C,themes:t?[...b,"system"]:b,systemTheme:O}),[C,j,F,e,S,t,b,O]);return(0,m.jsxs)(u.m.Provider,{value:E,children:[(0,m.jsx)(g,{forcedTheme:e,storageKey:a,systemTheme:S,attribute:f,value:y,enableSystem:t,defaultTheme:p,attrs:x,skipNextHead:k}),(0,n.useMemo)(()=>v,[v])]})}),g=(0,n.memo)(({forcedTheme:e,storageKey:r,attribute:t,enableSystem:o,defaultTheme:l,value:s,attrs:n,skipNextHead:i})=>{let h="class"===t?`var d=document.documentElement.classList;${n.map(e=>`d.remove('${e}')`).join(";")};`:"var d=document.documentElement;",d=(e,r)=>{e=s?.[e]||e;let o=r?e:`'${e}'`;return"class"===t?`d.add(${o})`:`d.setAttribute('${t}', ${o})`},u="system"===l,b=(0,m.jsx)(m.Fragment,{children:e?(0,m.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){${h}${d(e)}}()`}},"next-themes-script"):o?(0,m.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try {${h}var e=localStorage.getItem('${r}');${u?"":d(l)+";"}if("system"===e||(!e&&${u})){var t="${c}",m=window.matchMedia(t);m.media!==t||m.matches?${d("dark")}:${d("light")}}else if(e) ${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}catch(e){}}()`}},"next-themes-script"):(0,m.jsx)("script",{dangerouslySetInnerHTML:{__html:`!function(){try{${h}var e=localStorage.getItem("${r}");if(e){${s?`var x=${JSON.stringify(s)};`:""}${d(s?"x[e]":"e",!0)}}else{${d(l)};}}catch(t){}}();`}},"next-themes-script")});return i?b:(0,m.jsx)(a(),{children:b})},(e,r)=>e.forcedTheme===r.forcedTheme)},1636:function(e,r,t){t.d(r,{m:function(){return o}});let o=(0,t(2265).createContext)({toggle:()=>{},set:e=>{},themes:[]})},9010:function(e,r,t){t.d(r,{U:function(){return s}});var o=t(281),l=t(2265);let s=({fallback:e="light"}={})=>{let r=e;if(o.C5){let t=[...document.documentElement.classList];r=t.includes("t_dark")?"dark":t.includes("t_light")?"light":e}return(0,l.useState)(r)}},1542:function(e,r,t){t.d(r,{P:function(){return s}});var o=t(2265),l=t(1636);let s=()=>(0,o.useContext)(l.m)},6463:function(e,r,t){var o=t(1169);t.o(o,"useParams")&&t.d(r,{useParams:function(){return o.useParams}}),t.o(o,"usePathname")&&t.d(r,{usePathname:function(){return o.usePathname}}),t.o(o,"useSearchParams")&&t.d(r,{useSearchParams:function(){return o.useSearchParams}}),t.o(o,"useServerInsertedHTML")&&t.d(r,{useServerInsertedHTML:function(){return o.useServerInsertedHTML}})},7449:function(e,r){function t(){return null}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return 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),e.exports=r.default)},8578:function(e,r,t){t.d(r,{vc:function(){return eb}});let o={ussel:"userSelect",cur:"cursor",pe:"pointerEvents",col:"color",ff:"fontFamily",fos:"fontSize",fost:"fontStyle",fow:"fontWeight",ls:"letterSpacing",lh:"lineHeight",ta:"textAlign",tt:"textTransform",ww:"wordWrap",ac:"alignContent",ai:"alignItems",als:"alignSelf",b:"bottom",bg:"backgroundColor",bbc:"borderBottomColor",bblr:"borderBottomLeftRadius",bbrr:"borderBottomRightRadius",bbw:"borderBottomWidth",blc:"borderLeftColor",blw:"borderLeftWidth",bc:"borderColor",br:"borderRadius",bs:"borderStyle",brw:"borderRightWidth",brc:"borderRightColor",btc:"borderTopColor",btlr:"borderTopLeftRadius",btrr:"borderTopRightRadius",btw:"borderTopWidth",bw:"borderWidth",dsp:"display",f:"flex",fb:"flexBasis",fd:"flexDirection",fg:"flexGrow",fs:"flexShrink",fw:"flexWrap",h:"height",jc:"justifyContent",l:"left",m:"margin",mah:"maxHeight",maw:"maxWidth",mb:"marginBottom",mih:"minHeight",miw:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",o:"opacity",ov:"overflow",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pos:"position",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",shac:"shadowColor",shar:"shadowRadius",shof:"shadowOffset",shop:"shadowOpacity",t:"top",w:"width",zi:"zIndex"};function l(e){return Object.entries(e)}function s(e){return Object.fromEntries(e)}o.bls="borderLeftStyle",o.brs="borderRightStyle",o.bts="borderTopStyle",o.bbs="borderBottomStyle",o.bxs="boxSizing",o.bxsh="boxShadow",o.ox="overflowX",o.oy="overflowY";let a=e=>"function"==typeof e?{name:e.name||"unnamed",mask:e}:e,n=(e,r)=>{let{skip:t}=r;return Object.fromEntries(Object.entries(e).filter(([e])=>!t||!(e in t)).map(([e,t])=>[e,function(e,r,t){let o,l=t.overrideStrategy,s=t.overrideSwap?.[e];if("u">typeof s)o=s,l="swap";else{let r=t.overrideShift?.[e];if("u">typeof r)o=r,l="shift";else{let r=t.override?.[e];"u">typeof r&&(o=r,l=t.overrideStrategy)}}return typeof o>"u"||"string"==typeof o?r:"swap"===l?o:r}(e,t,r)]))},i=()=>({name:"inverse-mask",mask:(e,r)=>n(s(l(e).map(([e,r])=>[e,-r])),r)}),c=({inverse:e}={},r)=>({name:"shift-mask",mask:(t,o)=>{let{override:l,overrideStrategy:s="shift",max:a,palette:i,min:c=0,strength:h=1}={...r,...o},d=Object.entries(t),u=a??(i?Object.values(i).length-1:1/0),m={};for(let[r,t]of d){if("string"==typeof t)continue;if("number"==typeof l?.[r]){let e=l[r];m[r]="shift"===s?t+e:e;continue}if("string"==typeof l?.[r]){m[r]=l[r];continue}let o=0===t?1/t!=-1/0:t>=0,a=t+h*(o?1:-1)*(e?-1:1),n=o?Math.max(c,Math.min(u,a)):Math.min(-c,Math.max(-u,a));m[r]=n}return n(m,o)}}),h=e=>({name:"soften-mask",mask:c({},e).mask}),d=e=>({name:"strengthen-mask",mask:c({inverse:!0},e).mask}),u=new Map,m=(e,r)=>u.get(r||JSON.stringify(e)),b=(e,r)=>{let t={...r,cache:new Map};u.set(r.name||JSON.stringify(e),t),u.set(JSON.stringify(r.definition),t)},g=new Map;function p(e,r,t,o,l=!1){let s=l?"":JSON.stringify([o,e,r,t]);if(!l&&g.has(s))return g.get(s);let a={...Object.fromEntries(Object.entries(r).map(([r,t])=>[r,f(e,t)])),...t?.nonInheritedValues};return b(a,{palette:e,definition:r,options:t,name:o}),s&&g.set(s,a),a}let f=(e,r)=>{if(!e)throw Error("No palette!");if("string"==typeof r)return r;let t=e.length-1;return e[Math.min(Math.max(0,(0===r?1/r!=-1/0:r>=0)?r:t+r),t)]};function k(e,r,t={},o){let l={...t.skip};if(e.options?.nonInheritedValues)for(let r in e.options.nonInheritedValues)l[r]=1;let s={parentName:o,palette:e.palette,...t,skip:l},a=r.mask(e.definition,s),n=p(e.palette,a);return{...e,cache:new Map,definition:a,theme:n}}class w{constructor(e){this.state=e}addPalettes(e){return this.state.palettes={...this.state.palettes,...e},this}addTemplates(e){return this.state.templates={...this.state.templates,...e},this}addMasks(e){return this.state.masks={...this.state.masks,...s(l(e).map(([e,r])=>[e,a(r)]))},this}_addedThemes=[];addThemes(e){return this._addedThemes.push({type:"themes",args:[e]}),this.state.themes={...this.state.themes,...e},this}addComponentThemes(e,r){return this.addChildThemes(e,r),this}addChildThemes(e,r){let t=this.state.themes;if(!t)throw Error("No themes defined yet, use addThemes first to set your base themes");this._addedThemes.push({type:"childThemes",args:[e,r]});let o=Object.keys(t),l=Object.keys(e),s=Object.fromEntries(o.flatMap(t=>{let o=r?.avoidNestingWithin;return o&&o.some(e=>t.startsWith(e)||t.endsWith(e))?[]:l.map(r=>{let o=`${t}_${r}`,l=e[r];return"avoidNestingWithin"in l&&l.avoidNestingWithin.some(e=>t.startsWith(e)||t.endsWith(e))?null:[o,l]}).filter(Boolean)})),a={...this.state.themes,...s};return this.state.themes=a,this}build(){if(!this.state.themes)return{};let e={},r=[];for(let t in this.state.themes){let o=t.split("_"),l=o.slice(0,o.length-1).join("_"),s=this.state.themes[t],a=Array.isArray(s)?s.find(e=>!e.parent||l.endsWith(e.parent)||l.startsWith(e.parent))||null:s;if(a){if("theme"in a)e[t]=a.theme;else if("mask"in a)r.push({parentName:l,themeName:t,mask:a});else{let{palette:r="",template:s,...n}=a;if(this.state.themes[l],!this.state.palettes)throw Error(`No palettes defined for theme with palette expected: ${t}`);let i=this.state.palettes[r||""],c=`${l}_${r}`;for(;!i&&c;)c in this.state.palettes?(i=this.state.palettes[c],r=c):c=c.split("_").slice(0,-1).join("_");if(!i)throw Error("No palette for theme");let h=this.state.templates?.[s]??this.state.templates?.[`${o[0]}_${s}`];if(!h)throw Error(`No template for theme ${t}: ${s}`);e[t]=function(e,r,t,o,l,s=!1){if(!e[r])throw Error(`No pallete: ${r}`);let a={...t};for(let o in t){let l=t[o];if("string"==typeof l&&"$"===l[0]){let[t,s]=l.split("."),n=t.slice(1),i=r.split("_")[0],c=e[n]||e[`${i}_${n}`];if(c){let e=f(c,+s);"u">typeof e&&(a[o]=e)}}}return p(e[r],a,o,l,s)}(this.state.palettes,r,h,n,t,!0)}}}for(let{mask:t,themeName:o,parentName:l}of r){let r=e[l];if(!r)continue;let{mask:s,...a}=t,n=this.state.masks?.[s];if(!n)throw Error(`No mask ${s}`);let i=this.state.themes[l];if(i&&"childOptions"in i){let{mask:e,...r}=i.childOptions;e&&(n=this.state.masks?.[e]),Object.assign(a,r)}e[o]=function(e,r,t={},o,l){let s=m(e,o);if(!s)throw Error("❌ Err2");let a=k(s,r,t,o);return b(a.theme,{definition:a.definition,palette:s.palette,name:l}),a.theme}(r,n,a,l,o)}return e}}let y=(...e)=>({name:"combine-mask",mask:(r,t)=>{let o=m(r,t.parentName),l;for(let s of e){if(!o)throw Error(`Nothing returned from mask: ${o}, for template: ${r} and mask: ${s.toString()}, given opts ${JSON.stringify(t,null,2)}`);let e=k(o,s,t);o=e,l=e.theme}return l}});h(),h({strength:2}),h({strength:3}),d(),i(),y(i(),h({strength:2})),y(i(),h({strength:3})),y(i(),h({strength:4})),y(i(),d({strength:2})),a((e,r)=>{let t=d().mask(e,r),o=h().mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),a((e,r)=>{let t=h({strength:2}).mask(e,r),o=h({strength:1}).mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),a((e,r)=>{let t=h({strength:2}).mask(e,r);return{...h({strength:3}).mask(e,r),borderColor:t.borderColor,borderColorHover:t.borderColorHover,borderColorPress:t.borderColorPress,borderColorFocus:t.borderColorFocus}}),a((e,r)=>{let t=n(e,r),o=h().mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}}),a((e,r)=>{let t=n(e,r),o=h({strength:2}).mask(e,r);return{...t,borderColor:o.borderColor,borderColorHover:o.borderColorHover,borderColorPress:o.borderColorPress,borderColorFocus:o.borderColorFocus}});var v,C=t(1013);let $={blue:{blue1:"hsl(206, 100%, 99.2%)",blue2:"hsl(210, 100%, 98.0%)",blue3:"hsl(209, 100%, 96.5%)",blue4:"hsl(210, 98.8%, 94.0%)",blue5:"hsl(209, 95.0%, 90.1%)",blue6:"hsl(209, 81.2%, 84.5%)",blue7:"hsl(208, 77.5%, 76.9%)",blue8:"hsl(206, 81.9%, 65.3%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(208, 100%, 47.3%)",blue11:"hsl(211, 100%, 43.2%)",blue12:"hsl(211, 100%, 15.0%)"},gray:{gray1:"hsl(0, 0%, 99.0%)",gray2:"hsl(0, 0%, 97.3%)",gray3:"hsl(0, 0%, 95.1%)",gray4:"hsl(0, 0%, 93.0%)",gray5:"hsl(0, 0%, 90.9%)",gray6:"hsl(0, 0%, 88.7%)",gray7:"hsl(0, 0%, 85.8%)",gray8:"hsl(0, 0%, 78.0%)",gray9:"hsl(0, 0%, 56.1%)",gray10:"hsl(0, 0%, 52.3%)",gray11:"hsl(0, 0%, 43.5%)",gray12:"hsl(0, 0%, 9.0%)"},green:{green1:"hsl(136, 50.0%, 98.9%)",green2:"hsl(138, 62.5%, 96.9%)",green3:"hsl(139, 55.2%, 94.5%)",green4:"hsl(140, 48.7%, 91.0%)",green5:"hsl(141, 43.7%, 86.0%)",green6:"hsl(143, 40.3%, 79.0%)",green7:"hsl(146, 38.5%, 69.0%)",green8:"hsl(151, 40.2%, 54.1%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(152, 57.5%, 37.6%)",green11:"hsl(153, 67.0%, 28.5%)",green12:"hsl(155, 40.0%, 14.0%)"},orange:{orange1:"hsl(24, 70.0%, 99.0%)",orange2:"hsl(24, 83.3%, 97.6%)",orange3:"hsl(24, 100%, 95.3%)",orange4:"hsl(25, 100%, 92.2%)",orange5:"hsl(25, 100%, 88.2%)",orange6:"hsl(25, 100%, 82.8%)",orange7:"hsl(24, 100%, 75.3%)",orange8:"hsl(24, 94.5%, 64.3%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 46.5%)",orange11:"hsl(24, 100%, 37.0%)",orange12:"hsl(15, 60.0%, 17.0%)"},pink:{pink1:"hsl(322, 100%, 99.4%)",pink2:"hsl(323, 100%, 98.4%)",pink3:"hsl(323, 86.3%, 96.5%)",pink4:"hsl(323, 78.7%, 94.2%)",pink5:"hsl(323, 72.2%, 91.1%)",pink6:"hsl(323, 66.3%, 86.6%)",pink7:"hsl(323, 62.0%, 80.1%)",pink8:"hsl(323, 60.3%, 72.4%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(322, 63.9%, 50.7%)",pink11:"hsl(322, 75.0%, 46.0%)",pink12:"hsl(320, 70.0%, 13.5%)"},purple:{purple1:"hsl(280, 65.0%, 99.4%)",purple2:"hsl(276, 100%, 99.0%)",purple3:"hsl(276, 83.1%, 97.0%)",purple4:"hsl(275, 76.4%, 94.7%)",purple5:"hsl(275, 70.8%, 91.8%)",purple6:"hsl(274, 65.4%, 87.8%)",purple7:"hsl(273, 61.0%, 81.7%)",purple8:"hsl(272, 60.0%, 73.5%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(272, 46.8%, 50.3%)",purple11:"hsl(272, 50.0%, 45.8%)",purple12:"hsl(272, 66.0%, 16.0%)"},red:{red1:"hsl(359, 100%, 99.4%)",red2:"hsl(359, 100%, 98.6%)",red3:"hsl(360, 100%, 96.8%)",red4:"hsl(360, 97.9%, 94.8%)",red5:"hsl(360, 90.2%, 91.9%)",red6:"hsl(360, 81.7%, 87.8%)",red7:"hsl(359, 74.2%, 81.7%)",red8:"hsl(359, 69.5%, 74.3%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 69.4%, 55.2%)",red11:"hsl(358, 65.0%, 48.7%)",red12:"hsl(354, 50.0%, 14.6%)"},yellow:{yellow1:"hsl(60, 54.0%, 98.5%)",yellow2:"hsl(52, 100%, 95.5%)",yellow3:"hsl(55, 100%, 90.9%)",yellow4:"hsl(54, 100%, 86.6%)",yellow5:"hsl(52, 97.9%, 82.0%)",yellow6:"hsl(50, 89.4%, 76.1%)",yellow7:"hsl(47, 80.4%, 68.0%)",yellow8:"hsl(48, 100%, 46.1%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(50, 100%, 48.5%)",yellow11:"hsl(42, 100%, 29.0%)",yellow12:"hsl(40, 55.0%, 13.5%)"}},S={blue:{blue1:"hsl(212, 35.0%, 9.2%)",blue2:"hsl(216, 50.0%, 11.8%)",blue3:"hsl(214, 59.4%, 15.3%)",blue4:"hsl(214, 65.8%, 17.9%)",blue5:"hsl(213, 71.2%, 20.2%)",blue6:"hsl(212, 77.4%, 23.1%)",blue7:"hsl(211, 85.1%, 27.4%)",blue8:"hsl(211, 89.7%, 34.1%)",blue9:"hsl(206, 100%, 50.0%)",blue10:"hsl(209, 100%, 60.6%)",blue11:"hsl(210, 100%, 66.1%)",blue12:"hsl(206, 98.0%, 95.8%)"},gray:{gray1:"hsl(0, 0%, 8.5%)",gray2:"hsl(0, 0%, 11.0%)",gray3:"hsl(0, 0%, 13.6%)",gray4:"hsl(0, 0%, 15.8%)",gray5:"hsl(0, 0%, 17.9%)",gray6:"hsl(0, 0%, 20.5%)",gray7:"hsl(0, 0%, 24.3%)",gray8:"hsl(0, 0%, 31.2%)",gray9:"hsl(0, 0%, 43.9%)",gray10:"hsl(0, 0%, 49.4%)",gray11:"hsl(0, 0%, 62.8%)",gray12:"hsl(0, 0%, 93.0%)"},green:{green1:"hsl(146, 30.0%, 7.4%)",green2:"hsl(155, 44.2%, 8.4%)",green3:"hsl(155, 46.7%, 10.9%)",green4:"hsl(154, 48.4%, 12.9%)",green5:"hsl(154, 49.7%, 14.9%)",green6:"hsl(154, 50.9%, 17.6%)",green7:"hsl(153, 51.8%, 21.8%)",green8:"hsl(151, 51.7%, 28.4%)",green9:"hsl(151, 55.0%, 41.5%)",green10:"hsl(151, 49.3%, 46.5%)",green11:"hsl(151, 50.0%, 53.2%)",green12:"hsl(137, 72.0%, 94.0%)"},orange:{orange1:"hsl(30, 70.0%, 7.2%)",orange2:"hsl(28, 100%, 8.4%)",orange3:"hsl(26, 91.1%, 11.6%)",orange4:"hsl(25, 88.3%, 14.1%)",orange5:"hsl(24, 87.6%, 16.6%)",orange6:"hsl(24, 88.6%, 19.8%)",orange7:"hsl(24, 92.4%, 24.0%)",orange8:"hsl(25, 100%, 29.0%)",orange9:"hsl(24, 94.0%, 50.0%)",orange10:"hsl(24, 100%, 58.5%)",orange11:"hsl(24, 100%, 62.2%)",orange12:"hsl(24, 97.0%, 93.2%)"},pink:{pink1:"hsl(318, 25.0%, 9.6%)",pink2:"hsl(319, 32.2%, 11.6%)",pink3:"hsl(319, 41.0%, 16.0%)",pink4:"hsl(320, 45.4%, 18.7%)",pink5:"hsl(320, 49.0%, 21.1%)",pink6:"hsl(321, 53.6%, 24.4%)",pink7:"hsl(321, 61.1%, 29.7%)",pink8:"hsl(322, 74.9%, 37.5%)",pink9:"hsl(322, 65.0%, 54.5%)",pink10:"hsl(323, 72.8%, 59.2%)",pink11:"hsl(325, 90.0%, 66.4%)",pink12:"hsl(322, 90.0%, 95.8%)"},purple:{purple1:"hsl(284, 20.0%, 9.6%)",purple2:"hsl(283, 30.0%, 11.8%)",purple3:"hsl(281, 37.5%, 16.5%)",purple4:"hsl(280, 41.2%, 20.0%)",purple5:"hsl(279, 43.8%, 23.3%)",purple6:"hsl(277, 46.4%, 27.5%)",purple7:"hsl(275, 49.3%, 34.6%)",purple8:"hsl(272, 52.1%, 45.9%)",purple9:"hsl(272, 51.0%, 54.0%)",purple10:"hsl(273, 57.3%, 59.1%)",purple11:"hsl(275, 80.0%, 71.0%)",purple12:"hsl(279, 75.0%, 95.7%)"},red:{red1:"hsl(353, 23.0%, 9.8%)",red2:"hsl(357, 34.4%, 12.0%)",red3:"hsl(356, 43.4%, 16.4%)",red4:"hsl(356, 47.6%, 19.2%)",red5:"hsl(356, 51.1%, 21.9%)",red6:"hsl(356, 55.2%, 25.9%)",red7:"hsl(357, 60.2%, 31.8%)",red8:"hsl(358, 65.0%, 40.4%)",red9:"hsl(358, 75.0%, 59.0%)",red10:"hsl(358, 85.3%, 64.0%)",red11:"hsl(358, 100%, 69.5%)",red12:"hsl(351, 89.0%, 96.0%)"},yellow:{yellow1:"hsl(45, 100%, 5.5%)",yellow2:"hsl(46, 100%, 6.7%)",yellow3:"hsl(45, 100%, 8.7%)",yellow4:"hsl(45, 100%, 10.4%)",yellow5:"hsl(47, 100%, 12.1%)",yellow6:"hsl(49, 100%, 14.3%)",yellow7:"hsl(49, 90.3%, 18.4%)",yellow8:"hsl(50, 100%, 22.0%)",yellow9:"hsl(53, 92.0%, 50.0%)",yellow10:"hsl(54, 100%, 68.0%)",yellow11:"hsl(48, 100%, 47.0%)",yellow12:"hsl(53, 100%, 91.0%)"}},P="rgba(0,0,0,0.04)",x="rgba(0,0,0,0.085)",H="rgba(0,0,0,0.2)",T="rgba(0,0,0,0.3)",j={...S.blue,...S.gray,...S.green,...S.orange,...S.pink,...S.purple,...S.red,...S.yellow},F={...$.blue,...$.gray,...$.green,...$.orange,...$.pink,...$.purple,...$.red,...$.yellow},O={white0:"rgba(255,255,255,0)",white075:"rgba(255,255,255,0.75)",white05:"rgba(255,255,255,0.5)",white025:"rgba(255,255,255,0.25)",black0:"rgba(10,10,10,0)",black075:"rgba(10,10,10,0.75)",black05:"rgba(10,10,10,0.5)",black025:"rgba(10,10,10,0.25)",white1:"#fff",white2:"#f8f8f8",white3:"hsl(0, 0%, 96.3%)",white4:"hsl(0, 0%, 94.1%)",white5:"hsl(0, 0%, 92.0%)",white6:"hsl(0, 0%, 90.0%)",white7:"hsl(0, 0%, 88.5%)",white8:"hsl(0, 0%, 81.0%)",white9:"hsl(0, 0%, 56.1%)",white10:"hsl(0, 0%, 50.3%)",white11:"hsl(0, 0%, 42.5%)",white12:"hsl(0, 0%, 9.0%)",black1:"#050505",black2:"#151515",black3:"#191919",black4:"#232323",black5:"#282828",black6:"#323232",black7:"#424242",black8:"#494949",black9:"#545454",black10:"#626262",black11:"#a5a5a5",black12:"#fff",...U(F,"Light"),...U(j,"Dark")},E=(()=>{let e=(e,r=0)=>e.replace("%)",`%, ${r})`).replace("hsl(","hsla("),r=(r,t)=>{let o=Object.values(r),l=o.length-4,s=Object.values(t),a=s[0],n=s[s.length-1];return[a,e(o[0],0),e(o[0],.25),e(o[0],.5),e(o[0],.75),...o,e(o[l],.75),e(o[l],.5),e(o[l],.25),e(o[l],0),n]},t={light:O.blue4Light,dark:O.blue4Dark},o=[t.light,O.white0,O.white025,O.white05,O.white075,O.white1,O.white2,O.white3,O.white4,O.white5,O.white6,O.white7,O.white8,O.white9,O.white10,O.white11,O.white12,O.black075,O.black05,O.black025,O.black0,t.dark],l=[t.dark,O.black0,O.black025,O.black05,O.black075,O.black1,O.black2,O.black3,O.black4,O.black5,O.black6,O.black7,O.black8,O.black9,O.black10,O.black11,O.black12,O.white075,O.white05,O.white025,O.white0,t.light],s=Q($),a=X(s.map((e,t)=>[`light_${e}`,r($[e],$[s[(t+1)%s.length]])])),n=Q(S),i=X(n.map((e,t)=>[`dark_${e}`,r(S[e],$[n[(t+1)%n.length]])]));return{light:o,dark:l,...{...a,...i}}})(),M=e=>{let r="light"===e?-1:1,t=-r,o={accentBackground:0,accentColor:-0,background0:1,background025:2,background05:3,background075:4,color1:5,color2:6,color3:7,color4:8,color5:9,color6:10,color7:11,color8:12,color9:13,color10:14,color11:15,color12:16,color0:-1,color025:-2,color05:-3,color075:-4,background:5,backgroundHover:5+r,backgroundPress:5+t,backgroundFocus:5+t,borderColor:8,borderColorHover:8+r,borderColorPress:8+t,borderColorFocus:8,color:-5,colorHover:-6,colorPress:-5,colorFocus:-6,colorTransparent:-1,placeholderColor:-8,outlineColor:-2},l={background:o.background+1,backgroundHover:o.backgroundHover+1,backgroundPress:o.backgroundPress+1,backgroundFocus:o.backgroundFocus+1,borderColor:o.borderColor+1,borderColorHover:o.borderColorHover+1,borderColorFocus:o.borderColorFocus+1,borderColorPress:o.borderColorPress+1},s={background:o.background+2,backgroundHover:o.backgroundHover+2,backgroundPress:o.backgroundPress+2,backgroundFocus:o.backgroundFocus+2,borderColor:o.borderColor+2,borderColorHover:o.borderColorHover+2,borderColorFocus:o.borderColorFocus+2,borderColorPress:o.borderColorPress+2},a={background:o.background+3,backgroundHover:o.backgroundHover+3,backgroundPress:o.backgroundPress+3,backgroundFocus:o.backgroundFocus+3,borderColor:o.borderColor+3,borderColorHover:o.borderColorHover+3,borderColorFocus:o.borderColorFocus+3,borderColorPress:o.borderColorPress+3},n={background:o.background+5,backgroundHover:o.background+5,backgroundPress:o.backgroundPress+5,backgroundFocus:o.backgroundFocus+5},i={...n,borderColor:n.background,borderColorHover:n.backgroundHover,borderColorFocus:n.backgroundFocus,borderColorPress:n.backgroundPress},c={color:l.background,colorHover:l.backgroundHover,colorPress:l.backgroundPress,colorFocus:l.backgroundFocus,background:o.color,backgroundHover:o.colorHover,backgroundPress:o.colorPress,backgroundFocus:o.colorFocus,borderColor:o.color-2,borderColorHover:o.color-3,borderColorFocus:o.color-4,borderColorPress:o.color-5},h={...c,background:o.color-2,backgroundHover:o.colorHover-2,backgroundPress:o.colorPress-2,backgroundFocus:o.colorFocus-2,borderColor:o.color-2-2,borderColorHover:o.color-3-2,borderColorFocus:o.color-4-2,borderColorPress:o.color-5-2},d={color:o.color-1,colorHover:o.colorHover-1,colorPress:o.colorPress-1,colorFocus:o.colorFocus-1},u={color:o.color-2,colorHover:o.colorHover-2,colorPress:o.colorPress-2,colorFocus:o.colorFocus-2};return{base:o,alt1:d,alt2:u,surface1:l,surface2:s,surface3:a,inverseSurface1:c,inverseActive:h,surfaceActive:i}},_=M("light"),I=M("dark"),L={...X(Q(_).map(e=>[`light_${e}`,_[e]])),...X(Q(I).map(e=>[`dark_${e}`,I[e]]))},W={light:{...F,shadowColor:x,shadowColorHover:x,shadowColorPress:P,shadowColorFocus:P},dark:{...j,shadowColor:T,shadowColorHover:T,shadowColorPress:H,shadowColorFocus:H}},A=[{parent:"light",theme:{background:"rgba(0,0,0,0.5)"}},{parent:"dark",theme:{background:"rgba(0,0,0,0.8)"}}],N=[{parent:"active",template:"inverseActive"},{parent:"",template:"inverseSurface1"}],z=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface1"}],R=[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface2"}],B=new w({}).addPalettes(E).addTemplates(L).addThemes({light:{template:"base",palette:"light",nonInheritedValues:W.light},dark:{template:"base",palette:"dark",nonInheritedValues:W.dark}}).addChildThemes({orange:{palette:"orange",template:"base"},yellow:{palette:"yellow",template:"base"},green:{palette:"green",template:"base"},blue:{palette:"blue",template:"base"},purple:{palette:"purple",template:"base"},pink:{palette:"pink",template:"base"},red:{palette:"red",template:"base"},gray:{palette:"gray",template:"base"}}).addChildThemes({alt1:{template:"alt1"},alt2:{template:"alt2"},active:{template:"surface3"},surface1:{template:"surface1"},surface2:{template:"surface2"},surface3:{template:"surface3"},surface4:{template:"surfaceActive"}}).addComponentThemes({ListItem:{template:"surface1"},SelectTrigger:z,Card:z,Button:[{parent:"active",template:"surfaceActive"},{parent:"",template:"surface3"}],Checkbox:R,Switch:R,SwitchThumb:N,TooltipContent:R,Progress:{template:"surface1"},RadioGroupItem:R,TooltipArrow:{template:"surface1"},SliderTrackActive:{template:"surface3"},SliderTrack:{template:"surface1"},SliderThumb:N,Tooltip:N,ProgressIndicator:N,SheetOverlay:A,DialogOverlay:A,ModalOverlay:A,Input:z,TextArea:z},{avoidNestingWithin:["alt1","alt2","surface1","surface2","surface3","surface4"]}).build(),V={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},q=Object.entries(V).map(([e,r])=>[e,0===r?0:2===r?.5:4===r?1:8===r?1.5:r<=16?Math.round(.333*r):Math.floor(.7*r-12)]),J=q.slice(1).map(([e,r])=>[`-${e.slice(1)}`,-r]),D={...Object.fromEntries(q),...Object.fromEntries(J)},G=(0,C.createTokens)({color:O,radius:{0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},zIndex:{0:0,1:100,2:200,3:300,4:400,5:500},space:D,size:V});function U(e,r){return Object.fromEntries(Object.entries(e).map(([e,t])=>[`${e}${r}`,t]))}function X(e){return Object.fromEntries(e)}function Q(e){return Object.keys(e)}var Y=t(281),Z=t(5390),K=t(2265);let ee="cubic-bezier(0.215, 0.610, 0.355, 1.000)",er=function(e){let r=new WeakMap;return{animations:e,usePresence:Z.oO,ResetPresence:Z.il,supportsCSSVars:!0,useAnimatedNumber(e){let[t,o]=(0,K.useState)(e);return{getInstance:()=>o,getValue:()=>t,setValue(e){o(e);let t=r.get(o);t&&t.forEach(r=>r(e))},stop(){}}},useAnimatedNumberReaction({value:e},t){(0,K.useEffect)(()=>{let o=e.getInstance(),l=r.get(o);if(!l){let e=new Set;r.set(o,e),l=e}return l.add(t),()=>{l?.delete(t)}},[])},useAnimatedNumberStyle:(e,r)=>r(e.getValue()),useAnimations:({props:r,presence:t,style:o,componentState:l,stateRef:s})=>{l.unmounted;let a=t?.[0]===!1,n=t?.[1],[i,c]=[].concat(r.animation),h=e[i],d=r.animateOnly??["all"];return(0,Y.LI)(()=>{let e=s.current.host;if(!n||!a||!e)return;let r=()=>{n?.()};return e.addEventListener("transitionend",r),e.addEventListener("transitioncancel",r),()=>{e.removeEventListener("transitionend",r),e.removeEventListener("transitioncancel",r)}},[n,a]),h?(Array.isArray(o.transform)&&(o.transform=(0,C.transformsToString)(o.transform)),o.transition=d.map(r=>{let t=e[c?.[r]]??h;return`${r} ${t}`}).join(", "),{style:o}):null}}}({"75ms":"ease-in 75ms","100ms":"ease-in 100ms","200ms":"ease-in 200ms",bouncy:"ease-in 200ms",superBouncy:"ease-in 500ms",lazy:"ease-in 1000ms",medium:"ease-in 300ms",slow:"ease-in 500ms",quick:`${ee} 400ms`,quicker:`${ee} 300ms`,quickest:`${ee} 200ms`,tooltip:"ease-in 400ms"});var et=t(3974);let eo=(e={},{sizeLineHeight:r=e=>e+10,sizeSize:t=e=>1*e}={})=>{let o=Object.fromEntries(Object.entries({...el,...e.size}).map(([e,r])=>[e,t(+r)]));return(0,et.createFont)({family:et.isWeb?'Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"Inter",lineHeight:Object.fromEntries(Object.entries(o).map(([e,t])=>[e,r((0,et.getVariableValue)(t))])),weight:{4:"300"},letterSpacing:{4:0},...e,size:o})},el={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},es={1:11,2:12,3:13,4:14,5:15,6:16,7:18,8:21,9:28,10:42,11:52,12:62,13:72,14:92,15:114,16:124},ea={1:10,2:11,3:12,4:14,5:15,6:16,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124},en=((e={})=>(0,et.createFont)({family:et.isWeb?"Silkscreen, Fira Code, Monaco, Consolas, Ubuntu Mono, monospace":"Silkscreen",size:es,lineHeight:Object.fromEntries(Object.entries(e.size||es).map(([e,r])=>[e,"number"==typeof r?Math.round(1.2*r+6):r])),weight:{4:"300"},letterSpacing:{4:1,5:3,6:3,9:-2,10:-3,12:-4},...e}))(),ei=eo({size:{5:13,6:15,9:32,10:44},transform:{6:"uppercase",7:"none"},weight:{6:"400",7:"700"},color:{6:"$colorFocus",7:"$color"},letterSpacing:{5:2,6:1,7:0,8:0,9:-1,10:-1.5,12:-2,14:-3,15:-4},face:{700:{normal:"InterBold"},800:{normal:"InterBold"},900:{normal:"InterBold"}}},{sizeLineHeight:e=>Math.round(1.1*e+(e<30?10:5))}),ec=eo({weight:{1:"400",7:"600"}},{sizeSize:e=>Math.round(e),sizeLineHeight:e=>Math.round(1.1*e+(e>=12?8:4))}),eh=function(e,r={},{sizeLineHeight:t=e=>1.35*e}={}){let o=r.size||ea;return(0,C.createFont)({family:e,size:o,lineHeight:Object.fromEntries(Object.entries(o).map(([e,r])=>[e,t(+r)])),weight:{0:"300"},letterSpacing:{4:0},...r})}('"ui-monospace", "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',{weight:{1:"500"},size:{1:11,2:12,3:13,4:14,5:16,6:18,7:20,8:22,9:30,10:42,11:52,12:62,13:72,14:92,15:114,16:124}},{sizeLineHeight:e=>1.5*e}),ed=globalThis.matchMedia,eu=(v={xl:{maxWidth:1650},lg:{maxWidth:1280},md:{maxWidth:1020},sm:{maxWidth:800},xs:{maxWidth:660},xxs:{maxWidth:390},gtXs:{minWidth:661},gtSm:{minWidth:801},gtMd:{minWidth:1021},gtLg:{minWidth:1281},gtXl:{minWidth:1651}},(0,C.setupMatchMedia)(ed),v);var em=t(357);globalThis.global||=globalThis;let eb={animations:er,defaultFont:"body",shouldAddPrefersColorThemes:!0,themeClassNameOnRoot:!0,themes:"true"===em.env.TAMAGUI_OPTIMIZE_THEMES?{}:B,media:eu,shorthands:o,tokens:G,fonts:{heading:ei,body:ec,mono:eh,silkscreen:en},mediaQueryDefaultActive:{xl:!0,lg:!0,md:!0,sm:!0,xs:!0,xxs:!1},selectionStyles:e=>e.color5?{backgroundColor:e.color5,color:e.color11}:null}},2944:function(e,r,t){t.d(r,{Analytics:function(){return u}});var o=t(2265),l=t(6463),s=()=>{window.va||(window.va=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];(window.vaq=window.vaq||[]).push(r)})};function a(){return"undefined"!=typeof window}function n(){return"production"}function i(){return"development"===((a()?window.vam:n())||"production")}function c(e){return(0,o.useEffect)(()=>{!function(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!a())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=n();return}window.vam=e})(r.mode),s(),r.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",r.beforeSend));let t=r.scriptSrc||(i()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector('script[src*="'.concat(t,'"]')))return;let o=document.createElement("script");o.src=t,o.defer=!0,o.dataset.sdkn="@vercel/analytics"+(r.framework?"/".concat(r.framework):""),o.dataset.sdkv="1.2.2",r.disableAutoTrack&&(o.dataset.disableAutoTrack="1"),r.endpoint&&(o.dataset.endpoint=r.endpoint),r.dsn&&(o.dataset.dsn=r.dsn),o.onerror=()=>{let e=i()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(t,". ").concat(e))},i()&&!1===r.debug&&(o.dataset.debug="false"),document.head.appendChild(o)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,o.useEffect)(()=>{e.route&&e.path&&function(e){var r;let{route:t,path:o}=e;null==(r=window.va)||r.call(window,"pageview",{route:t,path:o})}({route:e.route,path:e.path})},[e.route,e.path]),null}var h=()=>{let e=(0,l.useParams)(),r=(0,l.useSearchParams)(),t=(0,l.usePathname)(),o={...Object.fromEntries(r.entries()),...e||{}};return{route:e?function(e,r){if(!e||!r)return e;let t=e;try{for(let[e,o]of Object.entries(r)){let r=Array.isArray(o),l=r?o.join("/"):o,s=r?"...".concat(e):e,a=new RegExp("/".concat(l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"));a.test(t)&&(t=t.replace(a,"/[".concat(s,"]")))}return t}catch(r){return e}}(t,o):null,path:t}};function d(e){let{route:r,path:t}=h();return o.createElement(c,{path:t,route:r,...e,framework:"next"})}function u(e){return o.createElement(o.Suspense,{fallback:null},o.createElement(d,{...e}))}},2024:function(e,r,t){t.d(r,{_:function(){return o}});let o=t(3974).createTamagui},20:function(e,r,t){t.d(r,{r:function(){return a}});var o=t(3974),l=t(4624),s=t(2281);let a=({children:e,...r})=>(0,s.jsx)(o.TamaguiProvider,{...r,children:(0,s.jsx)(l.Xp,{shouldAddRootHost:!0,children:e})})}}]);
 
 
_next/static/chunks/{190-8c3f29b77c1f7978.js → 190-df929413349aa216.js} RENAMED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/{413.744619bdd7ea9098.js → 413.c625d8cd4651c113.js} RENAMED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/423-06102cf1584a8fa3.js DELETED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/{590caa2a.699039c37022246b.js → 590caa2a.d521cb8a83d5d957.js} RENAMED
@@ -1,4 +1,4 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{2018:function(e,t,s){s.d(t,{t2:function(){return e9}});var n=s(761),i=s(911),r=s(8709),o=s(2414),a=s(1510),l=s(4087);async function c(e,t){let s=await Promise.all([(0,i.yM)(e,"tokenizer.json",!0,t),(0,i.yM)(e,"tokenizer_config.json",!0,t)]);return null!==t.legacy&&(s[1].legacy=t.legacy),s}function h(e,t=!0){if(void 0!==e.Regex){let t=e.Regex.replace(/\\([#&~])/g,"$1");for(let[e,s]of g)t=t.replaceAll(e,s);return RegExp(t,"gu")}if(void 0===e.String)return console.warn("Unknown pattern type:",e),null;{let s=(0,n.hr)(e.String);return RegExp(t?s:`(${s})`,"gu")}}function u(e){return new Map(Object.entries(e))}function d(e){let t=e.dims;switch(t.length){case 1:return e.tolist();case 2:if(1!==t[0])throw Error("Unable to decode tensor with `batch size !== 1`. Use `tokenizer.batch_decode(...)` for batched inputs.");return e.tolist()[0];default:throw Error(`Expected tensor to have 1-2 dimensions, got ${t.length}.`)}}function _(e){return e.replace(/ \./g,".").replace(/ \?/g,"?").replace(/ \!/g,"!").replace(/ ,/g,",").replace(/ \' /g,"'").replace(/ n\'t/g,"n't").replace(/ \'m/g,"'m").replace(/ \'s/g,"'s").replace(/ \'ve/g,"'ve").replace(/ \'re/g,"'re")}function p(e){return e.replace(/[\u0300-\u036f]/g,"")}let f="\\p{P}\\u0021-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E",g=new Map([["(?i:'s|'t|'re|'ve|'m|'ll|'d)","(?:'([sS]|[tT]|[rR][eE]|[vV][eE]|[mM]|[lL][lL]|[dD]))"]]);class m{constructor(e){this.content=e.content,this.id=e.id,this.single_word=e.single_word??!1,this.lstrip=e.lstrip??!1,this.rstrip=e.rstrip??!1,this.special=e.special??!1,this.normalized=e.normalized??null}}class k extends n.Ag{constructor(e){super(),this.config=e,this.vocab=[],this.tokens_to_ids=new Map,this.unk_token_id=void 0,this.unk_token=void 0,this.end_of_word_suffix=void 0,this.fuse_unk=this.config.fuse_unk??!1}static fromConfig(e,...t){switch(e.type){case"WordPiece":return new x(e);case"Unigram":return new w(e,...t);case"BPE":return new v(e);default:if(e.vocab)return new z(e,...t);throw Error(`Unknown TokenizerModel type: ${e.type}`)}}_call(e){let t=this.encode(e);return this.fuse_unk&&(t=function(e,t,s){let n=[],i=0;for(;i<e.length;){if(n.push(e[i]),(s.get(e[i])??t)!==t){++i;continue}for(;i<e.length&&(s.get(e[i])??t)===t;)++i}return n}(t,this.unk_token_id,this.tokens_to_ids)),t}encode(e){throw Error("encode should be implemented in subclass.")}convert_tokens_to_ids(e){return e.map(e=>this.tokens_to_ids.get(e)??this.unk_token_id)}convert_ids_to_tokens(e){return e.map(e=>this.vocab[e]??this.unk_token)}}class x extends k{constructor(e){for(let[t,s]of(super(e),this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.max_input_chars_per_word=e.max_input_chars_per_word??100,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t}encode(e){let t=[];for(let s of e){let e=[...s];if(e.length>this.max_input_chars_per_word){t.push(this.unk_token);continue}let n=!1,i=0,r=[];for(;i<e.length;){let t=e.length,s=null;for(;i<t;){let n=e.slice(i,t).join("");if(i>0&&(n=this.config.continuing_subword_prefix+n),this.tokens_to_ids.has(n)){s=n;break}--t}if(null===s){n=!0;break}r.push(s),i=t}n?t.push(this.unk_token):t.push(...r)}return t}}class w extends k{constructor(e,t){super(e);let s=e.vocab.length;this.vocab=Array(s),this.scores=Array(s);for(let t=0;t<s;++t){let s=e.vocab[t];this.vocab[t]=s[0],this.scores[t]=s[1]}this.unk_token_id=e.unk_id,this.unk_token=this.vocab[e.unk_id],this.tokens_to_ids=new Map(this.vocab.map((e,t)=>[e,t])),this.bosToken=" ",this.bosTokenId=this.tokens_to_ids.get(this.bosToken),this.eosToken=t.eos_token,this.eosTokenId=this.tokens_to_ids.get(this.eosToken),this.unkToken=this.vocab[this.unk_token_id],this.minScore=(0,r.VV)(this.scores)[0],this.unkScore=this.minScore-10,this.scores[this.unk_token_id]=this.unkScore,this.trie=new a.GA,this.trie.extend(this.vocab),this.fuse_unk=!0}populateNodes(e){let t=e.sentence,s=t.length,n=0;for(;n<s;){let s=!1,i=[];for(let r of this.trie.commonPrefixSearch(t.slice(n))){i.push(r);let t=this.tokens_to_ids.get(r),o=this.scores[t],a=r.length;e.insert(n,a,o,t),s||1!==a||(s=!0)}s||e.insert(n,1,this.unkScore,this.unk_token_id),n+=1}}tokenize(e){let t=new a.pQ(e,this.bosTokenId,this.eosTokenId);return this.populateNodes(t),t.tokens()}encode(e){let t=[];for(let s of e){let e=this.tokenize(s);t.push(...e)}return t}}let y=(()=>{let e=[...Array.from({length:94},(e,t)=>t+33),...Array.from({length:12},(e,t)=>t+161),...Array.from({length:82},(e,t)=>t+174)],t=e.slice(),s=0;for(let n=0;n<256;++n)e.includes(n)||(e.push(n),t.push(256+s),s+=1);let n=t.map(e=>String.fromCharCode(e));return Object.fromEntries(e.map((e,t)=>[e,n[t]]))})(),b=(0,n.$2)(y);class v extends k{constructor(e){for(let[t,s]of(super(e),this.BPE_SPLIT_TOKEN=" ",this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t;this.bpe_ranks=new Map(e.merges.map((e,t)=>[e,t])),this.merges=e.merges.map(e=>e.split(this.BPE_SPLIT_TOKEN)),this.end_of_word_suffix=e.end_of_word_suffix,this.continuing_subword_suffix=e.continuing_subword_suffix??null,this.byte_fallback=this.config.byte_fallback??!1,this.byte_fallback&&(this.text_encoder=new TextEncoder),this.cache=new Map}bpe(e){if(0===e.length)return[];let t=this.cache.get(e);if(void 0!==t)return t;let s=Array.from(e);this.end_of_word_suffix&&(s[s.length-1]+=this.end_of_word_suffix);let n=[];if(s.length>1){let e=new a.Z3((e,t)=>e.score<t.score),t={token:s[0],bias:0,prev:null,next:null},i=t;for(let t=1;t<s.length;++t){let n={bias:t/s.length,token:s[t],prev:i,next:null};i.next=n,this._add_node(e,i),i=n}for(;!e.isEmpty();){let s=e.pop();if(s.deleted||!s.next||s.next.deleted)continue;if(s.deleted=!0,s.next.deleted=!0,s.prev){let e={...s.prev};s.prev.deleted=!0,s.prev=e,e.prev?e.prev.next=e:t=e}let n={token:s.token+s.next.token,bias:s.bias,prev:s.prev,next:s.next.next};n.prev?(n.prev.next=n,this._add_node(e,n.prev)):t=n,n.next&&(n.next.prev=n,this._add_node(e,n))}for(let e=t;null!==e;e=e.next)n.push(e.token)}else n=s;if(this.continuing_subword_suffix)for(let e=0;e<n.length-1;++e)n[e]+=this.continuing_subword_suffix;return this.cache.set(e,n),n}_add_node(e,t){let s=this.bpe_ranks.get(t.token+this.BPE_SPLIT_TOKEN+t.next.token);void 0!==s&&(t.score=s+t.bias,e.push(t))}encode(e){let t=[];for(let s of e)for(let e of this.bpe(s))this.tokens_to_ids.has(e)?t.push(e):this.byte_fallback?t.push(...Array.from(this.text_encoder.encode(e)).map(e=>`<0x${e.toString(16).toUpperCase().padStart(2,"0")}>`)):t.push(this.unk_token);return t}}class z extends k{constructor(e,t){for(let[s,n]of(super(e),this.tokens_to_ids=u(t.target_lang?e.vocab[t.target_lang]:e.vocab),this.bos_token=t.bos_token,this.bos_token_id=this.tokens_to_ids.get(this.bos_token),this.eos_token=t.eos_token,this.eos_token_id=this.tokens_to_ids.get(this.eos_token),this.pad_token=t.pad_token,this.pad_token_id=this.tokens_to_ids.get(this.pad_token),this.unk_token=t.unk_token,this.unk_token_id=this.tokens_to_ids.get(this.unk_token),this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[n]=s}encode(e){return e}}class A extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"BertNormalizer":return new N(e);case"Precompiled":return new eo(e);case"Sequence":return new R(e);case"Replace":return new S(e);case"NFC":return new E(e);case"NFKC":return new T(e);case"NFKD":return new C(e);case"Strip":return new j(e);case"StripAccents":return new M(e);case"Lowercase":return new P(e);case"Prepend":return new $(e);default:throw Error(`Unknown Normalizer type: ${e.type}`)}}normalize(e){throw Error("normalize should be implemented in subclass.")}_call(e){return this.normalize(e)}}class S extends A{normalize(e){let t=h(this.config.pattern);return null===t?e:e.replaceAll(t,this.config.content)}}class E extends A{normalize(e){return e=e.normalize("NFC")}}class T extends A{normalize(e){return e=e.normalize("NFKC")}}class C extends A{normalize(e){return e=e.normalize("NFKD")}}class j extends A{normalize(e){return this.config.strip_left&&this.config.strip_right?e=e.trim():(this.config.strip_left&&(e=e.trimStart()),this.config.strip_right&&(e=e.trimEnd())),e}}class M extends A{normalize(e){return e=p(e)}}class P extends A{normalize(e){return e=e.toLowerCase()}}class $ extends A{normalize(e){return e=this.config.prepend+e}}class R extends A{constructor(e){super(e),this.normalizers=e.normalizers.map(e=>A.fromConfig(e))}normalize(e){return this.normalizers.reduce((e,t)=>t.normalize(e),e)}}class N extends A{_tokenize_chinese_chars(e){let t=[];for(let s=0;s<e.length;++s){let n=e[s],i=n.charCodeAt(0);this._is_chinese_char(i)?(t.push(" "),t.push(n),t.push(" ")):t.push(n)}return t.join("")}_is_chinese_char(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=63744&&e<=64255||e>=194560&&e<=195103}stripAccents(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}_is_control(e){switch(e){case" ":case"\n":case"\r":return!1;default:return/^\p{Cc}|\p{Cf}|\p{Co}|\p{Cs}$/u.test(e)}}_clean_text(e){let t=[];for(let s of e){let e=s.charCodeAt(0);0===e||65533===e||this._is_control(s)||(/^\s$/.test(s)?t.push(" "):t.push(s))}return t.join("")}normalize(e){return this.config.clean_text&&(e=this._clean_text(e)),this.config.handle_chinese_chars&&(e=this._tokenize_chinese_chars(e)),this.config.lowercase?(e=e.toLowerCase(),!1!==this.config.strip_accents&&(e=this.stripAccents(e))):this.config.strip_accents&&(e=this.stripAccents(e)),e}}class F extends n.Ag{static fromConfig(e){if(null===e)return null;switch(e.type){case"BertPreTokenizer":return new L(e);case"Sequence":return new ea(e);case"Whitespace":return new el(e);case"WhitespaceSplit":return new ec(e);case"Metaspace":return new ei(e);case"ByteLevel":return new O(e);case"Split":return new U(e);case"Punctuation":return new W(e);case"Digits":return new G(e);case"Replace":return new eh(e);default:throw Error(`Unknown PreTokenizer type: ${e.type}`)}}pre_tokenize_text(e,t){throw Error("pre_tokenize_text should be implemented in subclass.")}pre_tokenize(e,t){return(Array.isArray(e)?e.map(e=>this.pre_tokenize_text(e,t)):this.pre_tokenize_text(e,t)).flat()}_call(e,t){return this.pre_tokenize(e,t)}}class L extends F{constructor(e){super(),this.pattern=RegExp(`[^\\s${f}]+|[${f}]`,"gu")}pre_tokenize_text(e,t){return e.trim().match(this.pattern)||[]}}class O extends F{constructor(e){super(),this.config=e,this.add_prefix_space=this.config.add_prefix_space,this.trim_offsets=this.config.trim_offsets,this.use_regex=this.config.use_regex??!0,this.pattern=/'s|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/gu,this.byte_encoder=y,this.text_encoder=new TextEncoder}pre_tokenize_text(e,t){return this.add_prefix_space&&!e.startsWith(" ")&&(e=" "+e),(this.use_regex?e.match(this.pattern)||[]:[e]).map(e=>Array.from(this.text_encoder.encode(e),e=>this.byte_encoder[e]).join(""))}}class U extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern,this.config.invert)}pre_tokenize_text(e,t){return null===this.pattern?[]:this.config.invert?e.match(this.pattern)||[]:function(e,t){let s=[],n=0;for(let i of e.matchAll(t)){let t=i[0];n<i.index&&s.push(e.slice(n,i.index)),t.length>0&&s.push(t),n=i.index+t.length}return n<e.length&&s.push(e.slice(n)),s}(e,this.pattern)}}class W extends F{constructor(e){super(),this.config=e,this.pattern=RegExp(`[^${f}]+|[${f}]+`,"gu")}pre_tokenize_text(e,t){return e.match(this.pattern)||[]}}class G extends F{constructor(e){super(),this.config=e;let t=`[^\\d]+|\\d${this.config.individual_digits?"":"+"}`;this.pattern=RegExp(t,"gu")}pre_tokenize_text(e,t){return e.match(this.pattern)||[]}}class I extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"TemplateProcessing":return new q(e);case"ByteLevel":return new Y(e);case"RobertaProcessing":return new D(e);case"BertProcessing":return new B(e);default:throw Error(`Unknown PostProcessor type: ${e.type}`)}}post_process(e,...t){throw Error("post_process should be implemented in subclass.")}_call(e,...t){return this.post_process(e,...t)}}class B extends I{constructor(e){super(e),this.cls=e.cls[0],this.sep=e.sep[0]}post_process(e,t=null,{add_special_tokens:s=!0}={}){s&&(e=(0,n.eG)([this.cls],e,[this.sep]));let i=Array(e.length).fill(0);if(null!==t){let r=s&&this instanceof D?[this.sep]:[],o=s?[this.sep]:[];e=(0,n.eG)(e,r,t,o),i=(0,n.eG)(i,Array(t.length+r.length+o.length).fill(1))}return{tokens:e,token_type_ids:i}}}class D extends B{}class q extends I{constructor(e){super(e),this.single=e.single,this.pair=e.pair}post_process(e,t=null,{add_special_tokens:s=!0}={}){let i=null===t?this.single:this.pair,r=[],o=[];for(let a of i)"SpecialToken"in a?s&&(r.push(a.SpecialToken.id),o.push(a.SpecialToken.type_id)):"Sequence"in a&&("A"===a.Sequence.id?(r=(0,n.eG)(r,e),o=(0,n.eG)(o,Array(e.length).fill(a.Sequence.type_id))):"B"===a.Sequence.id&&(r=(0,n.eG)(r,t),o=(0,n.eG)(o,Array(t.length).fill(a.Sequence.type_id))));return{tokens:r,token_type_ids:o}}}class Y extends I{post_process(e,t=null){return t&&(e=(0,n.eG)(e,t)),{tokens:e}}}class K extends n.Ag{constructor(e){super(),this.config=e,this.added_tokens=[],this.end_of_word_suffix=null,this.trim_offsets=e.trim_offsets}static fromConfig(e){if(null===e)return null;switch(e.type){case"WordPiece":return new Q(e);case"Metaspace":return new er(e);case"ByteLevel":return new X(e);case"Replace":return new Z(e);case"ByteFallback":return new V(e);case"Fuse":return new H(e);case"Strip":return new J(e);case"Sequence":return new et(e);case"CTC":return new ee(e);case"BPEDecoder":return new es(e);default:throw Error(`Unknown Decoder type: ${e.type}`)}}_call(e){return this.decode(e)}decode(e){return this.decode_chain(e).join("")}decode_chain(e){throw Error("`decode_chain` should be implemented in subclass.")}}class Z extends K{decode_chain(e){let t=h(this.config.pattern);return null===t?e:e.map(e=>e.replaceAll(t,this.config.content))}}class V extends K{constructor(e){super(e),this.text_decoder=new TextDecoder}decode_chain(e){let t=[],s=[];for(let n of e){let e=null;if(6===n.length&&n.startsWith("<0x")&&n.endsWith(">")){let t=parseInt(n.slice(3,5),16);isNaN(t)||(e=t)}if(null!==e)s.push(e);else{if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}t.push(n)}}if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}return t}}class H extends K{decode_chain(e){return[e.join("")]}}class J extends K{constructor(e){super(e),this.content=this.config.content,this.start=this.config.start,this.stop=this.config.stop}decode_chain(e){return e.map(e=>{let t=0;for(let s=0;s<this.start;++s){if(e[s]===this.content){t=s+1;continue}break}let s=e.length;for(let t=0;t<this.stop;++t){let n=e.length-t-1;if(e[n]===this.content){s=n;continue}break}return e.slice(t,s)})}}class Q extends K{constructor(e){super(e),this.cleanup=e.cleanup}decode_chain(e){return e.map((e,t)=>(0!==t&&(e=e.startsWith(this.config.prefix)?e.replace(this.config.prefix,""):" "+e),this.cleanup&&(e=_(e)),e))}}class X extends K{constructor(e){super(e),this.byte_decoder=b,this.text_decoder=new TextDecoder("utf-8",{fatal:!1,ignoreBOM:!0}),this.end_of_word_suffix=null}convert_tokens_to_string(e){let t=new Uint8Array([...e.join("")].map(e=>this.byte_decoder[e]));return this.text_decoder.decode(t)}decode_chain(e){let t=[],s=[];for(let n of e)void 0!==this.added_tokens.find(e=>e.content===n)?(s.length>0&&(t.push(this.convert_tokens_to_string(s)),s=[]),t.push(n)):s.push(n);return s.length>0&&t.push(this.convert_tokens_to_string(s)),t}}class ee extends K{constructor(e){super(e),this.pad_token=this.config.pad_token,this.word_delimiter_token=this.config.word_delimiter_token,this.cleanup=this.config.cleanup}convert_tokens_to_string(e){if(0===e.length)return"";let t=[e[0]];for(let s=1;s<e.length;++s)e[s]!==t.at(-1)&&t.push(e[s]);let s=t.filter(e=>e!==this.pad_token).join("");return this.cleanup&&(s=_(s).replaceAll(this.word_delimiter_token," ").trim()),s}decode_chain(e){return[this.convert_tokens_to_string(e)]}}class et extends K{constructor(e){super(e),this.decoders=e.decoders.map(e=>K.fromConfig(e))}decode_chain(e){return this.decoders.reduce((e,t)=>t.decode_chain(e),e)}}class es extends K{constructor(e){super(e),this.suffix=this.config.suffix}decode_chain(e){return e.map((t,s)=>t.replaceAll(this.suffix,s===e.length-1?"":" "))}}class en extends K{decode_chain(e){let t="";for(let s=1;s<e.length;s+=2)t+=e[s];return[t]}}class ei extends F{constructor(e){super(),this.addPrefixSpace=e.add_prefix_space,this.replacement=e.replacement,this.strRep=e.str_rep||this.replacement,this.prepend_scheme=e.prepend_scheme??"always"}pre_tokenize_text(e,{section_index:t}={}){let s=e.replaceAll(" ",this.strRep);return this.addPrefixSpace&&!s.startsWith(this.replacement)&&("always"===this.prepend_scheme||"first"===this.prepend_scheme&&0===t)&&(s=this.strRep+s),[s]}}class er extends K{constructor(e){super(e),this.addPrefixSpace=e.add_prefix_space,this.replacement=e.replacement}decode_chain(e){let t=[];for(let s=0;s<e.length;++s){let n=e[s].replaceAll(this.replacement," ");this.addPrefixSpace&&0==s&&n.startsWith(" ")&&(n=n.substring(1)),t.push(n)}return t}}class eo extends A{constructor(e){super(e),this.charsmap=e.precompiled_charsmap}normalize(e){return e=(e=(e=e.replace(/[\u0001-\u0008\u000B\u000E-\u001F\u007F\u008F\u009F]/gm,"")).replace(/[\u0009\u000A\u000C\u000D\u1680\u200B\u200C\u200E\u200F\u2028\u2029\u2581\uFEFF\uFFFD]/gm," ")).includes("~")?e.split("~").map(e=>e.normalize("NFKC")).join("~"):e.normalize("NFKC")}}class ea extends F{constructor(e){super(),this.tokenizers=e.pretokenizers.map(e=>F.fromConfig(e))}pre_tokenize_text(e,t){return this.tokenizers.reduce((e,s)=>s.pre_tokenize(e,t),[e])}}class el extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\w+|[^\w\s]+/g)||[]}}class ec extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\S+/g)||[]}}class eh extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern),this.content=this.config.content}pre_tokenize_text(e,t){return null===this.pattern?[e]:[e.replaceAll(this.pattern,this.config.content)]}}let eu=["bos_token","eos_token","unk_token","sep_token","pad_token","cls_token","mask_token"];class ed extends n.Ag{return_token_type_ids=!1;_default_chat_template=`{% for message in messages %}{{'<|im_start|>' + message['role'] + '
2
  ' + message['content'] + '<|im_end|>' + '
3
  '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
4
  ' }}{% endif %}`;constructor(e,t){for(let s of(super(),this._tokenizer_config=t,this.normalizer=A.fromConfig(e.normalizer),this.pre_tokenizer=F.fromConfig(e.pre_tokenizer),this.model=k.fromConfig(e.model,t),this.post_processor=I.fromConfig(e.post_processor),this.decoder=K.fromConfig(e.decoder),this.special_tokens=[],this.all_special_ids=[],this.added_tokens=[],e.added_tokens)){let e=new m(s);this.added_tokens.push(e),this.model.tokens_to_ids.set(e.content,e.id),this.model.vocab[e.id]=e.content,e.special&&(this.special_tokens.push(e.content),this.all_special_ids.push(e.id))}if(this.additional_special_tokens=t.additional_special_tokens??[],this.special_tokens.push(...this.additional_special_tokens),this.special_tokens=[...new Set(this.special_tokens)],this.decoder&&(this.decoder.added_tokens=this.added_tokens,this.decoder.end_of_word_suffix=this.model.end_of_word_suffix),this.added_tokens_regex=this.added_tokens.length>0?new RegExp(this.added_tokens.map(e=>`${e.lstrip?"\\s*":""}(${(0,n.hr)(e.content)})${e.rstrip?"\\s*":""}`).join("|")):null,this.mask_token=this.getToken("mask_token"),this.mask_token_id=this.model.tokens_to_ids.get(this.mask_token),this.pad_token=this.getToken("pad_token","eos_token"),this.pad_token_id=this.model.tokens_to_ids.get(this.pad_token),this.sep_token=this.getToken("sep_token"),this.sep_token_id=this.model.tokens_to_ids.get(this.sep_token),this.unk_token=this.getToken("unk_token"),this.unk_token_id=this.model.tokens_to_ids.get(this.unk_token),this.model_max_length=t.model_max_length,this.remove_space=t.remove_space,this.clean_up_tokenization_spaces=t.clean_up_tokenization_spaces??!0,this.do_lowercase_and_remove_accent=t.do_lowercase_and_remove_accent??!1,this.padding_side="right",this.legacy=!1,this.chat_template=t.chat_template??null,Array.isArray(this.chat_template)){let e=Object.create(null);for(let{name:t,template:s}of this.chat_template){if("string"!=typeof t||"string"!=typeof s)throw Error('Chat template must be a list of objects with "name" and "template" properties');e[t]=s}this.chat_template=e}this._compiled_template_cache=new Map}getToken(...e){for(let t of e){let e=this._tokenizer_config[t];if(e){if("object"!=typeof e)return e;if("AddedToken"===e.__type)return e.content;throw Error(`Unknown token: ${e}`)}}return null}static async from_pretrained(e,{progress_callback:t=null,config:s=null,cache_dir:n=null,local_files_only:i=!1,revision:r="main",legacy:o=null}={}){return new this(...await c(e,{progress_callback:t,config:s,cache_dir:n,local_files_only:i,revision:r,legacy:o}))}_call(e,{text_pair:t=null,add_special_tokens:s=!0,padding:i=!1,truncation:a=null,max_length:l=null,return_tensor:c=!0}={}){let h;let u=Array.isArray(e);if(u){if(0===e.length)throw Error("text array must be non-empty");if(null!==t){if(Array.isArray(t)){if(e.length!==t.length)throw Error("text and text_pair must have the same length")}else throw Error("text_pair must also be an array");h=e.map((e,n)=>this._encode_plus(e,t[n],{add_special_tokens:s}))}else h=e.map(e=>this._encode_plus(e,null,{add_special_tokens:s}))}else{if(null==e)throw Error("text may not be null or undefined");if(Array.isArray(t))throw Error("When specifying `text_pair`, since `text` is a string, `text_pair` must also be a string (i.e., not an array).");h=[this._encode_plus(e,t,{add_special_tokens:s})]}if(null===l?l="max_length"===i?this.model_max_length:(0,r.Fp)(h.map(e=>e.input_ids.length))[0]:a||console.warn("Truncation was not explicitly activated but `max_length` is provided a specific value, please use `truncation=true` to explicitly truncate examples to max length."),l=Math.min(l,this.model_max_length),i||a)for(let e=0;e<h.length;++e)h[e].input_ids.length!==l&&(h[e].input_ids.length>l?a&&function(e,t){for(let s of Object.keys(e))e[s].length=t}(h[e],l):i&&function(e,t,s,i){for(let r of Object.keys(e)){let o=t-e[r].length,a=s(r),l=Array(o).fill(a);e[r]="right"===i?(0,n.eG)(e[r],l):(0,n.eG)(l,e[r])}}(h[e],l,e=>"input_ids"===e?this.pad_token_id:0,this.padding_side));let d={};if(c){if(!(i&&a)&&h.some(e=>{for(let t of Object.keys(e))if(e[t].length!==h[0][t]?.length)return!0;return!1}))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=true' and 'truncation=true' to have batched tensors with the same length.");let e=[h.length,h[0].input_ids.length];for(let t of Object.keys(h[0]))d[t]=new o.es("int64",BigInt64Array.from(h.flatMap(e=>e[t]).map(BigInt)),e)}else{for(let e of Object.keys(h[0]))d[e]=h.map(t=>t[e]);if(!u)for(let e of Object.keys(d))d[e]=d[e][0]}return d}_encode_text(e){return null===e?null:(this.added_tokens_regex?e.split(this.added_tokens_regex).filter(e=>e):[e]).map((e,t)=>{if(void 0!==this.added_tokens.find(t=>t.content===e))return e;{if(!0===this.remove_space&&(e=e.trim().split(/\s+/).join(" ")),this.do_lowercase_and_remove_accent&&(e=p(e.toLowerCase())),null!==this.normalizer&&(e=this.normalizer(e)),0===e.length)return[];let s=null!==this.pre_tokenizer?this.pre_tokenizer(e,{section_index:t}):[e];return this.model(s)}}).flat()}_encode_plus(e,t=null,{add_special_tokens:s=!0}={}){let i=this._encode_text(e),r=this._encode_text(t),o=this.post_processor?this.post_processor(i,r,{add_special_tokens:s}):{tokens:(0,n.eG)(i??[],r??[])},a=this.model.convert_tokens_to_ids(o.tokens),l={input_ids:a,attention_mask:Array(a.length).fill(1)};return this.return_token_type_ids&&o.token_type_ids&&(l.token_type_ids=o.token_type_ids),l}encode(e,t=null,{add_special_tokens:s=!0}={}){let{input_ids:n}=this._encode_plus(e,t,{add_special_tokens:s});return n}batch_decode(e,t={}){return e instanceof o.es&&(e=e.tolist()),e.map(e=>this.decode(e,t))}decode(e,t={}){if(e instanceof o.es&&(e=d(e)),!Array.isArray(e)||0===e.length||!(0,n.Wy)(e[0]))throw Error("token_ids must be a non-empty array of integers.");return this.decode_single(e,t)}decode_single(e,{skip_special_tokens:t=!1,clean_up_tokenization_spaces:s=null}){let n=this.model.convert_ids_to_tokens(e);t&&(n=n.filter(e=>!this.special_tokens.includes(e)));let i=this.decoder?this.decoder(n):n.join(" ");return this.decoder&&this.decoder.end_of_word_suffix&&(i=i.replaceAll(this.decoder.end_of_word_suffix," "),t&&(i=i.trim())),(s??this.clean_up_tokenization_spaces)&&(i=_(i)),i}get default_chat_template(){return this._warned_about_chat_template||(console.warn("No chat template is defined for this tokenizer - using a default chat template that implements the ChatML format. If the default is not appropriate for your model, please set `tokenizer.chat_template` to an appropriate template. See https://huggingface.co/docs/transformers/main/chat_templating for more information."),this._warned_about_chat_template=!0),this._default_chat_template}apply_chat_template(e,{chat_template:t=null,add_generation_prompt:s=!1,tokenize:n=!0,padding:i=!1,truncation:r=!1,max_length:o=null,return_tensor:a=!0,tokenizer_kwargs:c={},...h}={}){if(this.chat_template&&"object"==typeof this.chat_template||null===this.chat_template&&this.default_chat_template&&"object"==typeof this.default_chat_template){let e=this.chat_template??this.default_chat_template;if(null!==t&&Object.hasOwn(e,t))t=e[t];else if(null===t&&"default"in e)t=e.default;else if(null===t)throw Error(`This model has multiple chat templates with no default specified! Please either pass a chat template or the name of the template you wish to use to the 'chat_template' argument. Available template names are ${Object.keys(e).sort()}.`)}else t??=this.chat_template??this.default_chat_template;if("string"!=typeof t)throw Error(`chat_template must be a string, but got ${typeof t}`);let u=this._compiled_template_cache.get(t);void 0===u&&(u=new l.YS(t),this._compiled_template_cache.set(t,u));let d=Object.create(null);for(let e of eu){let t=this.getToken(e);t&&(d[e]=t)}let _=u.render({messages:e,add_generation_prompt:s,...d,...h});return n?this._call(_,{add_special_tokens:!1,padding:i,truncation:r,max_length:o,return_tensor:a,...c}).input_ids:_}}class e_ extends ed{return_token_type_ids=!0}class ep extends ed{return_token_type_ids=!0}class ef extends ed{return_token_type_ids=!0}class eg extends ed{return_token_type_ids=!0}class em extends ed{return_token_type_ids=!0}class ek extends ed{return_token_type_ids=!0}class ex extends ed{return_token_type_ids=!0}class ew extends ed{return_token_type_ids=!0}class ey extends ed{return_token_type_ids=!0}class eb extends ed{}class ev extends ed{}class ez extends ed{return_token_type_ids=!0;constructor(e,t){super(e,t),console.warn('WARNING: `XLMTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}}class eA extends ed{return_token_type_ids=!0}class eS extends ed{}class eE extends ed{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}'}class eT extends ed{}class eC extends ed{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{2}_[A-Z]{2}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}class ej extends eC{}class eM extends ed{}class eP extends eE{constructor(e,t){let s=".,!?…。,、।۔،",n=e.pre_tokenizer?.pretokenizers[0]?.pattern;n&&n.Regex===` ?[^(\\s|[${s}])]+`&&(n.Regex=` ?[^\\s${s}]+`),super(e,t)}}class e$ extends ed{_default_chat_template=`{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% elif USE_DEFAULT_PROMPT == true and not '<<SYS>>' in messages[0]['content'] %}{% set loop_messages = messages %}{% set system_message = 'DEFAULT_SYSTEM_MESSAGE' %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{9046:function(e,t,s){s.d(t,{t2:function(){return e9}});var n=s(761),i=s(911),r=s(8709),o=s(2414),a=s(1510),l=s(4087);async function c(e,t){let s=await Promise.all([(0,i.yM)(e,"tokenizer.json",!0,t),(0,i.yM)(e,"tokenizer_config.json",!0,t)]);return null!==t.legacy&&(s[1].legacy=t.legacy),s}function h(e,t=!0){if(void 0!==e.Regex){let t=e.Regex.replace(/\\([#&~])/g,"$1");for(let[e,s]of g)t=t.replaceAll(e,s);return RegExp(t,"gu")}if(void 0===e.String)return console.warn("Unknown pattern type:",e),null;{let s=(0,n.hr)(e.String);return RegExp(t?s:`(${s})`,"gu")}}function u(e){return new Map(Object.entries(e))}function d(e){let t=e.dims;switch(t.length){case 1:return e.tolist();case 2:if(1!==t[0])throw Error("Unable to decode tensor with `batch size !== 1`. Use `tokenizer.batch_decode(...)` for batched inputs.");return e.tolist()[0];default:throw Error(`Expected tensor to have 1-2 dimensions, got ${t.length}.`)}}function _(e){return e.replace(/ \./g,".").replace(/ \?/g,"?").replace(/ \!/g,"!").replace(/ ,/g,",").replace(/ \' /g,"'").replace(/ n\'t/g,"n't").replace(/ \'m/g,"'m").replace(/ \'s/g,"'s").replace(/ \'ve/g,"'ve").replace(/ \'re/g,"'re")}function p(e){return e.replace(/[\u0300-\u036f]/g,"")}let f="\\p{P}\\u0021-\\u002F\\u003A-\\u0040\\u005B-\\u0060\\u007B-\\u007E",g=new Map([["(?i:'s|'t|'re|'ve|'m|'ll|'d)","(?:'([sS]|[tT]|[rR][eE]|[vV][eE]|[mM]|[lL][lL]|[dD]))"]]);class m{constructor(e){this.content=e.content,this.id=e.id,this.single_word=e.single_word??!1,this.lstrip=e.lstrip??!1,this.rstrip=e.rstrip??!1,this.special=e.special??!1,this.normalized=e.normalized??null}}class k extends n.Ag{constructor(e){super(),this.config=e,this.vocab=[],this.tokens_to_ids=new Map,this.unk_token_id=void 0,this.unk_token=void 0,this.end_of_word_suffix=void 0,this.fuse_unk=this.config.fuse_unk??!1}static fromConfig(e,...t){switch(e.type){case"WordPiece":return new x(e);case"Unigram":return new w(e,...t);case"BPE":return new v(e);default:if(e.vocab)return new z(e,...t);throw Error(`Unknown TokenizerModel type: ${e.type}`)}}_call(e){let t=this.encode(e);return this.fuse_unk&&(t=function(e,t,s){let n=[],i=0;for(;i<e.length;){if(n.push(e[i]),(s.get(e[i])??t)!==t){++i;continue}for(;i<e.length&&(s.get(e[i])??t)===t;)++i}return n}(t,this.unk_token_id,this.tokens_to_ids)),t}encode(e){throw Error("encode should be implemented in subclass.")}convert_tokens_to_ids(e){return e.map(e=>this.tokens_to_ids.get(e)??this.unk_token_id)}convert_ids_to_tokens(e){return e.map(e=>this.vocab[e]??this.unk_token)}}class x extends k{constructor(e){for(let[t,s]of(super(e),this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.max_input_chars_per_word=e.max_input_chars_per_word??100,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t}encode(e){let t=[];for(let s of e){let e=[...s];if(e.length>this.max_input_chars_per_word){t.push(this.unk_token);continue}let n=!1,i=0,r=[];for(;i<e.length;){let t=e.length,s=null;for(;i<t;){let n=e.slice(i,t).join("");if(i>0&&(n=this.config.continuing_subword_prefix+n),this.tokens_to_ids.has(n)){s=n;break}--t}if(null===s){n=!0;break}r.push(s),i=t}n?t.push(this.unk_token):t.push(...r)}return t}}class w extends k{constructor(e,t){super(e);let s=e.vocab.length;this.vocab=Array(s),this.scores=Array(s);for(let t=0;t<s;++t){let s=e.vocab[t];this.vocab[t]=s[0],this.scores[t]=s[1]}this.unk_token_id=e.unk_id,this.unk_token=this.vocab[e.unk_id],this.tokens_to_ids=new Map(this.vocab.map((e,t)=>[e,t])),this.bosToken=" ",this.bosTokenId=this.tokens_to_ids.get(this.bosToken),this.eosToken=t.eos_token,this.eosTokenId=this.tokens_to_ids.get(this.eosToken),this.unkToken=this.vocab[this.unk_token_id],this.minScore=(0,r.VV)(this.scores)[0],this.unkScore=this.minScore-10,this.scores[this.unk_token_id]=this.unkScore,this.trie=new a.GA,this.trie.extend(this.vocab),this.fuse_unk=!0}populateNodes(e){let t=e.sentence,s=t.length,n=0;for(;n<s;){let s=!1,i=[];for(let r of this.trie.commonPrefixSearch(t.slice(n))){i.push(r);let t=this.tokens_to_ids.get(r),o=this.scores[t],a=r.length;e.insert(n,a,o,t),s||1!==a||(s=!0)}s||e.insert(n,1,this.unkScore,this.unk_token_id),n+=1}}tokenize(e){let t=new a.pQ(e,this.bosTokenId,this.eosTokenId);return this.populateNodes(t),t.tokens()}encode(e){let t=[];for(let s of e){let e=this.tokenize(s);t.push(...e)}return t}}let y=(()=>{let e=[...Array.from({length:94},(e,t)=>t+33),...Array.from({length:12},(e,t)=>t+161),...Array.from({length:82},(e,t)=>t+174)],t=e.slice(),s=0;for(let n=0;n<256;++n)e.includes(n)||(e.push(n),t.push(256+s),s+=1);let n=t.map(e=>String.fromCharCode(e));return Object.fromEntries(e.map((e,t)=>[e,n[t]]))})(),b=(0,n.$2)(y);class v extends k{constructor(e){for(let[t,s]of(super(e),this.BPE_SPLIT_TOKEN=" ",this.tokens_to_ids=u(e.vocab),this.unk_token_id=this.tokens_to_ids.get(e.unk_token),this.unk_token=e.unk_token,this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[s]=t;this.bpe_ranks=new Map(e.merges.map((e,t)=>[e,t])),this.merges=e.merges.map(e=>e.split(this.BPE_SPLIT_TOKEN)),this.end_of_word_suffix=e.end_of_word_suffix,this.continuing_subword_suffix=e.continuing_subword_suffix??null,this.byte_fallback=this.config.byte_fallback??!1,this.byte_fallback&&(this.text_encoder=new TextEncoder),this.cache=new Map}bpe(e){if(0===e.length)return[];let t=this.cache.get(e);if(void 0!==t)return t;let s=Array.from(e);this.end_of_word_suffix&&(s[s.length-1]+=this.end_of_word_suffix);let n=[];if(s.length>1){let e=new a.Z3((e,t)=>e.score<t.score),t={token:s[0],bias:0,prev:null,next:null},i=t;for(let t=1;t<s.length;++t){let n={bias:t/s.length,token:s[t],prev:i,next:null};i.next=n,this._add_node(e,i),i=n}for(;!e.isEmpty();){let s=e.pop();if(s.deleted||!s.next||s.next.deleted)continue;if(s.deleted=!0,s.next.deleted=!0,s.prev){let e={...s.prev};s.prev.deleted=!0,s.prev=e,e.prev?e.prev.next=e:t=e}let n={token:s.token+s.next.token,bias:s.bias,prev:s.prev,next:s.next.next};n.prev?(n.prev.next=n,this._add_node(e,n.prev)):t=n,n.next&&(n.next.prev=n,this._add_node(e,n))}for(let e=t;null!==e;e=e.next)n.push(e.token)}else n=s;if(this.continuing_subword_suffix)for(let e=0;e<n.length-1;++e)n[e]+=this.continuing_subword_suffix;return this.cache.set(e,n),n}_add_node(e,t){let s=this.bpe_ranks.get(t.token+this.BPE_SPLIT_TOKEN+t.next.token);void 0!==s&&(t.score=s+t.bias,e.push(t))}encode(e){let t=[];for(let s of e)for(let e of this.bpe(s))this.tokens_to_ids.has(e)?t.push(e):this.byte_fallback?t.push(...Array.from(this.text_encoder.encode(e)).map(e=>`<0x${e.toString(16).toUpperCase().padStart(2,"0")}>`)):t.push(this.unk_token);return t}}class z extends k{constructor(e,t){for(let[s,n]of(super(e),this.tokens_to_ids=u(t.target_lang?e.vocab[t.target_lang]:e.vocab),this.bos_token=t.bos_token,this.bos_token_id=this.tokens_to_ids.get(this.bos_token),this.eos_token=t.eos_token,this.eos_token_id=this.tokens_to_ids.get(this.eos_token),this.pad_token=t.pad_token,this.pad_token_id=this.tokens_to_ids.get(this.pad_token),this.unk_token=t.unk_token,this.unk_token_id=this.tokens_to_ids.get(this.unk_token),this.vocab=Array(this.tokens_to_ids.size),this.tokens_to_ids))this.vocab[n]=s}encode(e){return e}}class A extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"BertNormalizer":return new N(e);case"Precompiled":return new eo(e);case"Sequence":return new R(e);case"Replace":return new S(e);case"NFC":return new E(e);case"NFKC":return new T(e);case"NFKD":return new C(e);case"Strip":return new j(e);case"StripAccents":return new M(e);case"Lowercase":return new P(e);case"Prepend":return new $(e);default:throw Error(`Unknown Normalizer type: ${e.type}`)}}normalize(e){throw Error("normalize should be implemented in subclass.")}_call(e){return this.normalize(e)}}class S extends A{normalize(e){let t=h(this.config.pattern);return null===t?e:e.replaceAll(t,this.config.content)}}class E extends A{normalize(e){return e=e.normalize("NFC")}}class T extends A{normalize(e){return e=e.normalize("NFKC")}}class C extends A{normalize(e){return e=e.normalize("NFKD")}}class j extends A{normalize(e){return this.config.strip_left&&this.config.strip_right?e=e.trim():(this.config.strip_left&&(e=e.trimStart()),this.config.strip_right&&(e=e.trimEnd())),e}}class M extends A{normalize(e){return e=p(e)}}class P extends A{normalize(e){return e=e.toLowerCase()}}class $ extends A{normalize(e){return e=this.config.prepend+e}}class R extends A{constructor(e){super(e),this.normalizers=e.normalizers.map(e=>A.fromConfig(e))}normalize(e){return this.normalizers.reduce((e,t)=>t.normalize(e),e)}}class N extends A{_tokenize_chinese_chars(e){let t=[];for(let s=0;s<e.length;++s){let n=e[s],i=n.charCodeAt(0);this._is_chinese_char(i)?(t.push(" "),t.push(n),t.push(" ")):t.push(n)}return t.join("")}_is_chinese_char(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=63744&&e<=64255||e>=194560&&e<=195103}stripAccents(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}_is_control(e){switch(e){case" ":case"\n":case"\r":return!1;default:return/^\p{Cc}|\p{Cf}|\p{Co}|\p{Cs}$/u.test(e)}}_clean_text(e){let t=[];for(let s of e){let e=s.charCodeAt(0);0===e||65533===e||this._is_control(s)||(/^\s$/.test(s)?t.push(" "):t.push(s))}return t.join("")}normalize(e){return this.config.clean_text&&(e=this._clean_text(e)),this.config.handle_chinese_chars&&(e=this._tokenize_chinese_chars(e)),this.config.lowercase?(e=e.toLowerCase(),!1!==this.config.strip_accents&&(e=this.stripAccents(e))):this.config.strip_accents&&(e=this.stripAccents(e)),e}}class F extends n.Ag{static fromConfig(e){if(null===e)return null;switch(e.type){case"BertPreTokenizer":return new L(e);case"Sequence":return new ea(e);case"Whitespace":return new el(e);case"WhitespaceSplit":return new ec(e);case"Metaspace":return new ei(e);case"ByteLevel":return new O(e);case"Split":return new U(e);case"Punctuation":return new W(e);case"Digits":return new G(e);case"Replace":return new eh(e);default:throw Error(`Unknown PreTokenizer type: ${e.type}`)}}pre_tokenize_text(e,t){throw Error("pre_tokenize_text should be implemented in subclass.")}pre_tokenize(e,t){return(Array.isArray(e)?e.map(e=>this.pre_tokenize_text(e,t)):this.pre_tokenize_text(e,t)).flat()}_call(e,t){return this.pre_tokenize(e,t)}}class L extends F{constructor(e){super(),this.pattern=RegExp(`[^\\s${f}]+|[${f}]`,"gu")}pre_tokenize_text(e,t){return e.trim().match(this.pattern)||[]}}class O extends F{constructor(e){super(),this.config=e,this.add_prefix_space=this.config.add_prefix_space,this.trim_offsets=this.config.trim_offsets,this.use_regex=this.config.use_regex??!0,this.pattern=/'s|'t|'re|'ve|'m|'ll|'d| ?\p{L}+| ?\p{N}+| ?[^\s\p{L}\p{N}]+|\s+(?!\S)|\s+/gu,this.byte_encoder=y,this.text_encoder=new TextEncoder}pre_tokenize_text(e,t){return this.add_prefix_space&&!e.startsWith(" ")&&(e=" "+e),(this.use_regex?e.match(this.pattern)||[]:[e]).map(e=>Array.from(this.text_encoder.encode(e),e=>this.byte_encoder[e]).join(""))}}class U extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern,this.config.invert)}pre_tokenize_text(e,t){return null===this.pattern?[]:this.config.invert?e.match(this.pattern)||[]:function(e,t){let s=[],n=0;for(let i of e.matchAll(t)){let t=i[0];n<i.index&&s.push(e.slice(n,i.index)),t.length>0&&s.push(t),n=i.index+t.length}return n<e.length&&s.push(e.slice(n)),s}(e,this.pattern)}}class W extends F{constructor(e){super(),this.config=e,this.pattern=RegExp(`[^${f}]+|[${f}]+`,"gu")}pre_tokenize_text(e,t){return e.match(this.pattern)||[]}}class G extends F{constructor(e){super(),this.config=e;let t=`[^\\d]+|\\d${this.config.individual_digits?"":"+"}`;this.pattern=RegExp(t,"gu")}pre_tokenize_text(e,t){return e.match(this.pattern)||[]}}class I extends n.Ag{constructor(e){super(),this.config=e}static fromConfig(e){if(null===e)return null;switch(e.type){case"TemplateProcessing":return new q(e);case"ByteLevel":return new Y(e);case"RobertaProcessing":return new D(e);case"BertProcessing":return new B(e);default:throw Error(`Unknown PostProcessor type: ${e.type}`)}}post_process(e,...t){throw Error("post_process should be implemented in subclass.")}_call(e,...t){return this.post_process(e,...t)}}class B extends I{constructor(e){super(e),this.cls=e.cls[0],this.sep=e.sep[0]}post_process(e,t=null,{add_special_tokens:s=!0}={}){s&&(e=(0,n.eG)([this.cls],e,[this.sep]));let i=Array(e.length).fill(0);if(null!==t){let r=s&&this instanceof D?[this.sep]:[],o=s?[this.sep]:[];e=(0,n.eG)(e,r,t,o),i=(0,n.eG)(i,Array(t.length+r.length+o.length).fill(1))}return{tokens:e,token_type_ids:i}}}class D extends B{}class q extends I{constructor(e){super(e),this.single=e.single,this.pair=e.pair}post_process(e,t=null,{add_special_tokens:s=!0}={}){let i=null===t?this.single:this.pair,r=[],o=[];for(let a of i)"SpecialToken"in a?s&&(r.push(a.SpecialToken.id),o.push(a.SpecialToken.type_id)):"Sequence"in a&&("A"===a.Sequence.id?(r=(0,n.eG)(r,e),o=(0,n.eG)(o,Array(e.length).fill(a.Sequence.type_id))):"B"===a.Sequence.id&&(r=(0,n.eG)(r,t),o=(0,n.eG)(o,Array(t.length).fill(a.Sequence.type_id))));return{tokens:r,token_type_ids:o}}}class Y extends I{post_process(e,t=null){return t&&(e=(0,n.eG)(e,t)),{tokens:e}}}class K extends n.Ag{constructor(e){super(),this.config=e,this.added_tokens=[],this.end_of_word_suffix=null,this.trim_offsets=e.trim_offsets}static fromConfig(e){if(null===e)return null;switch(e.type){case"WordPiece":return new Q(e);case"Metaspace":return new er(e);case"ByteLevel":return new X(e);case"Replace":return new Z(e);case"ByteFallback":return new V(e);case"Fuse":return new H(e);case"Strip":return new J(e);case"Sequence":return new et(e);case"CTC":return new ee(e);case"BPEDecoder":return new es(e);default:throw Error(`Unknown Decoder type: ${e.type}`)}}_call(e){return this.decode(e)}decode(e){return this.decode_chain(e).join("")}decode_chain(e){throw Error("`decode_chain` should be implemented in subclass.")}}class Z extends K{decode_chain(e){let t=h(this.config.pattern);return null===t?e:e.map(e=>e.replaceAll(t,this.config.content))}}class V extends K{constructor(e){super(e),this.text_decoder=new TextDecoder}decode_chain(e){let t=[],s=[];for(let n of e){let e=null;if(6===n.length&&n.startsWith("<0x")&&n.endsWith(">")){let t=parseInt(n.slice(3,5),16);isNaN(t)||(e=t)}if(null!==e)s.push(e);else{if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}t.push(n)}}if(s.length>0){let e=this.text_decoder.decode(Uint8Array.from(s));t.push(e),s=[]}return t}}class H extends K{decode_chain(e){return[e.join("")]}}class J extends K{constructor(e){super(e),this.content=this.config.content,this.start=this.config.start,this.stop=this.config.stop}decode_chain(e){return e.map(e=>{let t=0;for(let s=0;s<this.start;++s){if(e[s]===this.content){t=s+1;continue}break}let s=e.length;for(let t=0;t<this.stop;++t){let n=e.length-t-1;if(e[n]===this.content){s=n;continue}break}return e.slice(t,s)})}}class Q extends K{constructor(e){super(e),this.cleanup=e.cleanup}decode_chain(e){return e.map((e,t)=>(0!==t&&(e=e.startsWith(this.config.prefix)?e.replace(this.config.prefix,""):" "+e),this.cleanup&&(e=_(e)),e))}}class X extends K{constructor(e){super(e),this.byte_decoder=b,this.text_decoder=new TextDecoder("utf-8",{fatal:!1,ignoreBOM:!0}),this.end_of_word_suffix=null}convert_tokens_to_string(e){let t=new Uint8Array([...e.join("")].map(e=>this.byte_decoder[e]));return this.text_decoder.decode(t)}decode_chain(e){let t=[],s=[];for(let n of e)void 0!==this.added_tokens.find(e=>e.content===n)?(s.length>0&&(t.push(this.convert_tokens_to_string(s)),s=[]),t.push(n)):s.push(n);return s.length>0&&t.push(this.convert_tokens_to_string(s)),t}}class ee extends K{constructor(e){super(e),this.pad_token=this.config.pad_token,this.word_delimiter_token=this.config.word_delimiter_token,this.cleanup=this.config.cleanup}convert_tokens_to_string(e){if(0===e.length)return"";let t=[e[0]];for(let s=1;s<e.length;++s)e[s]!==t.at(-1)&&t.push(e[s]);let s=t.filter(e=>e!==this.pad_token).join("");return this.cleanup&&(s=_(s).replaceAll(this.word_delimiter_token," ").trim()),s}decode_chain(e){return[this.convert_tokens_to_string(e)]}}class et extends K{constructor(e){super(e),this.decoders=e.decoders.map(e=>K.fromConfig(e))}decode_chain(e){return this.decoders.reduce((e,t)=>t.decode_chain(e),e)}}class es extends K{constructor(e){super(e),this.suffix=this.config.suffix}decode_chain(e){return e.map((t,s)=>t.replaceAll(this.suffix,s===e.length-1?"":" "))}}class en extends K{decode_chain(e){let t="";for(let s=1;s<e.length;s+=2)t+=e[s];return[t]}}class ei extends F{constructor(e){super(),this.addPrefixSpace=e.add_prefix_space,this.replacement=e.replacement,this.strRep=e.str_rep||this.replacement,this.prepend_scheme=e.prepend_scheme??"always"}pre_tokenize_text(e,{section_index:t}={}){let s=e.replaceAll(" ",this.strRep);return this.addPrefixSpace&&!s.startsWith(this.replacement)&&("always"===this.prepend_scheme||"first"===this.prepend_scheme&&0===t)&&(s=this.strRep+s),[s]}}class er extends K{constructor(e){super(e),this.addPrefixSpace=e.add_prefix_space,this.replacement=e.replacement}decode_chain(e){let t=[];for(let s=0;s<e.length;++s){let n=e[s].replaceAll(this.replacement," ");this.addPrefixSpace&&0==s&&n.startsWith(" ")&&(n=n.substring(1)),t.push(n)}return t}}class eo extends A{constructor(e){super(e),this.charsmap=e.precompiled_charsmap}normalize(e){return e=(e=(e=e.replace(/[\u0001-\u0008\u000B\u000E-\u001F\u007F\u008F\u009F]/gm,"")).replace(/[\u0009\u000A\u000C\u000D\u1680\u200B\u200C\u200E\u200F\u2028\u2029\u2581\uFEFF\uFFFD]/gm," ")).includes("~")?e.split("~").map(e=>e.normalize("NFKC")).join("~"):e.normalize("NFKC")}}class ea extends F{constructor(e){super(),this.tokenizers=e.pretokenizers.map(e=>F.fromConfig(e))}pre_tokenize_text(e,t){return this.tokenizers.reduce((e,s)=>s.pre_tokenize(e,t),[e])}}class el extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\w+|[^\w\s]+/g)||[]}}class ec extends F{constructor(e){super()}pre_tokenize_text(e,t){return e.match(/\S+/g)||[]}}class eh extends F{constructor(e){super(),this.config=e,this.pattern=h(this.config.pattern),this.content=this.config.content}pre_tokenize_text(e,t){return null===this.pattern?[e]:[e.replaceAll(this.pattern,this.config.content)]}}let eu=["bos_token","eos_token","unk_token","sep_token","pad_token","cls_token","mask_token"];class ed extends n.Ag{return_token_type_ids=!1;_default_chat_template=`{% for message in messages %}{{'<|im_start|>' + message['role'] + '
2
  ' + message['content'] + '<|im_end|>' + '
3
  '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
4
  ' }}{% endif %}`;constructor(e,t){for(let s of(super(),this._tokenizer_config=t,this.normalizer=A.fromConfig(e.normalizer),this.pre_tokenizer=F.fromConfig(e.pre_tokenizer),this.model=k.fromConfig(e.model,t),this.post_processor=I.fromConfig(e.post_processor),this.decoder=K.fromConfig(e.decoder),this.special_tokens=[],this.all_special_ids=[],this.added_tokens=[],e.added_tokens)){let e=new m(s);this.added_tokens.push(e),this.model.tokens_to_ids.set(e.content,e.id),this.model.vocab[e.id]=e.content,e.special&&(this.special_tokens.push(e.content),this.all_special_ids.push(e.id))}if(this.additional_special_tokens=t.additional_special_tokens??[],this.special_tokens.push(...this.additional_special_tokens),this.special_tokens=[...new Set(this.special_tokens)],this.decoder&&(this.decoder.added_tokens=this.added_tokens,this.decoder.end_of_word_suffix=this.model.end_of_word_suffix),this.added_tokens_regex=this.added_tokens.length>0?new RegExp(this.added_tokens.map(e=>`${e.lstrip?"\\s*":""}(${(0,n.hr)(e.content)})${e.rstrip?"\\s*":""}`).join("|")):null,this.mask_token=this.getToken("mask_token"),this.mask_token_id=this.model.tokens_to_ids.get(this.mask_token),this.pad_token=this.getToken("pad_token","eos_token"),this.pad_token_id=this.model.tokens_to_ids.get(this.pad_token),this.sep_token=this.getToken("sep_token"),this.sep_token_id=this.model.tokens_to_ids.get(this.sep_token),this.unk_token=this.getToken("unk_token"),this.unk_token_id=this.model.tokens_to_ids.get(this.unk_token),this.model_max_length=t.model_max_length,this.remove_space=t.remove_space,this.clean_up_tokenization_spaces=t.clean_up_tokenization_spaces??!0,this.do_lowercase_and_remove_accent=t.do_lowercase_and_remove_accent??!1,this.padding_side="right",this.legacy=!1,this.chat_template=t.chat_template??null,Array.isArray(this.chat_template)){let e=Object.create(null);for(let{name:t,template:s}of this.chat_template){if("string"!=typeof t||"string"!=typeof s)throw Error('Chat template must be a list of objects with "name" and "template" properties');e[t]=s}this.chat_template=e}this._compiled_template_cache=new Map}getToken(...e){for(let t of e){let e=this._tokenizer_config[t];if(e){if("object"!=typeof e)return e;if("AddedToken"===e.__type)return e.content;throw Error(`Unknown token: ${e}`)}}return null}static async from_pretrained(e,{progress_callback:t=null,config:s=null,cache_dir:n=null,local_files_only:i=!1,revision:r="main",legacy:o=null}={}){return new this(...await c(e,{progress_callback:t,config:s,cache_dir:n,local_files_only:i,revision:r,legacy:o}))}_call(e,{text_pair:t=null,add_special_tokens:s=!0,padding:i=!1,truncation:a=null,max_length:l=null,return_tensor:c=!0}={}){let h;let u=Array.isArray(e);if(u){if(0===e.length)throw Error("text array must be non-empty");if(null!==t){if(Array.isArray(t)){if(e.length!==t.length)throw Error("text and text_pair must have the same length")}else throw Error("text_pair must also be an array");h=e.map((e,n)=>this._encode_plus(e,t[n],{add_special_tokens:s}))}else h=e.map(e=>this._encode_plus(e,null,{add_special_tokens:s}))}else{if(null==e)throw Error("text may not be null or undefined");if(Array.isArray(t))throw Error("When specifying `text_pair`, since `text` is a string, `text_pair` must also be a string (i.e., not an array).");h=[this._encode_plus(e,t,{add_special_tokens:s})]}if(null===l?l="max_length"===i?this.model_max_length:(0,r.Fp)(h.map(e=>e.input_ids.length))[0]:a||console.warn("Truncation was not explicitly activated but `max_length` is provided a specific value, please use `truncation=true` to explicitly truncate examples to max length."),l=Math.min(l,this.model_max_length),i||a)for(let e=0;e<h.length;++e)h[e].input_ids.length!==l&&(h[e].input_ids.length>l?a&&function(e,t){for(let s of Object.keys(e))e[s].length=t}(h[e],l):i&&function(e,t,s,i){for(let r of Object.keys(e)){let o=t-e[r].length,a=s(r),l=Array(o).fill(a);e[r]="right"===i?(0,n.eG)(e[r],l):(0,n.eG)(l,e[r])}}(h[e],l,e=>"input_ids"===e?this.pad_token_id:0,this.padding_side));let d={};if(c){if(!(i&&a)&&h.some(e=>{for(let t of Object.keys(e))if(e[t].length!==h[0][t]?.length)return!0;return!1}))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=true' and 'truncation=true' to have batched tensors with the same length.");let e=[h.length,h[0].input_ids.length];for(let t of Object.keys(h[0]))d[t]=new o.es("int64",BigInt64Array.from(h.flatMap(e=>e[t]).map(BigInt)),e)}else{for(let e of Object.keys(h[0]))d[e]=h.map(t=>t[e]);if(!u)for(let e of Object.keys(d))d[e]=d[e][0]}return d}_encode_text(e){return null===e?null:(this.added_tokens_regex?e.split(this.added_tokens_regex).filter(e=>e):[e]).map((e,t)=>{if(void 0!==this.added_tokens.find(t=>t.content===e))return e;{if(!0===this.remove_space&&(e=e.trim().split(/\s+/).join(" ")),this.do_lowercase_and_remove_accent&&(e=p(e.toLowerCase())),null!==this.normalizer&&(e=this.normalizer(e)),0===e.length)return[];let s=null!==this.pre_tokenizer?this.pre_tokenizer(e,{section_index:t}):[e];return this.model(s)}}).flat()}_encode_plus(e,t=null,{add_special_tokens:s=!0}={}){let i=this._encode_text(e),r=this._encode_text(t),o=this.post_processor?this.post_processor(i,r,{add_special_tokens:s}):{tokens:(0,n.eG)(i??[],r??[])},a=this.model.convert_tokens_to_ids(o.tokens),l={input_ids:a,attention_mask:Array(a.length).fill(1)};return this.return_token_type_ids&&o.token_type_ids&&(l.token_type_ids=o.token_type_ids),l}encode(e,t=null,{add_special_tokens:s=!0}={}){let{input_ids:n}=this._encode_plus(e,t,{add_special_tokens:s});return n}batch_decode(e,t={}){return e instanceof o.es&&(e=e.tolist()),e.map(e=>this.decode(e,t))}decode(e,t={}){if(e instanceof o.es&&(e=d(e)),!Array.isArray(e)||0===e.length||!(0,n.Wy)(e[0]))throw Error("token_ids must be a non-empty array of integers.");return this.decode_single(e,t)}decode_single(e,{skip_special_tokens:t=!1,clean_up_tokenization_spaces:s=null}){let n=this.model.convert_ids_to_tokens(e);t&&(n=n.filter(e=>!this.special_tokens.includes(e)));let i=this.decoder?this.decoder(n):n.join(" ");return this.decoder&&this.decoder.end_of_word_suffix&&(i=i.replaceAll(this.decoder.end_of_word_suffix," "),t&&(i=i.trim())),(s??this.clean_up_tokenization_spaces)&&(i=_(i)),i}get default_chat_template(){return this._warned_about_chat_template||(console.warn("No chat template is defined for this tokenizer - using a default chat template that implements the ChatML format. If the default is not appropriate for your model, please set `tokenizer.chat_template` to an appropriate template. See https://huggingface.co/docs/transformers/main/chat_templating for more information."),this._warned_about_chat_template=!0),this._default_chat_template}apply_chat_template(e,{chat_template:t=null,add_generation_prompt:s=!1,tokenize:n=!0,padding:i=!1,truncation:r=!1,max_length:o=null,return_tensor:a=!0,tokenizer_kwargs:c={},...h}={}){if(this.chat_template&&"object"==typeof this.chat_template||null===this.chat_template&&this.default_chat_template&&"object"==typeof this.default_chat_template){let e=this.chat_template??this.default_chat_template;if(null!==t&&Object.hasOwn(e,t))t=e[t];else if(null===t&&"default"in e)t=e.default;else if(null===t)throw Error(`This model has multiple chat templates with no default specified! Please either pass a chat template or the name of the template you wish to use to the 'chat_template' argument. Available template names are ${Object.keys(e).sort()}.`)}else t??=this.chat_template??this.default_chat_template;if("string"!=typeof t)throw Error(`chat_template must be a string, but got ${typeof t}`);let u=this._compiled_template_cache.get(t);void 0===u&&(u=new l.YS(t),this._compiled_template_cache.set(t,u));let d=Object.create(null);for(let e of eu){let t=this.getToken(e);t&&(d[e]=t)}let _=u.render({messages:e,add_generation_prompt:s,...d,...h});return n?this._call(_,{add_special_tokens:!1,padding:i,truncation:r,max_length:o,return_tensor:a,...c}).input_ids:_}}class e_ extends ed{return_token_type_ids=!0}class ep extends ed{return_token_type_ids=!0}class ef extends ed{return_token_type_ids=!0}class eg extends ed{return_token_type_ids=!0}class em extends ed{return_token_type_ids=!0}class ek extends ed{return_token_type_ids=!0}class ex extends ed{return_token_type_ids=!0}class ew extends ed{return_token_type_ids=!0}class ey extends ed{return_token_type_ids=!0}class eb extends ed{}class ev extends ed{}class ez extends ed{return_token_type_ids=!0;constructor(e,t){super(e,t),console.warn('WARNING: `XLMTokenizer` is not yet supported by Hugging Face\'s "fast" tokenizers library. Therefore, you may experience slightly inaccurate results.')}}class eA extends ed{return_token_type_ids=!0}class eS extends ed{}class eE extends ed{_default_chat_template='{% for message in messages %}" "{{ message.content }}{{ eos_token }}" "{% endfor %}'}class eT extends ed{}class eC extends ed{constructor(e,t){super(e,t),this.languageRegex=/^[a-z]{2}_[A-Z]{2}$/,this.language_codes=this.special_tokens.filter(e=>this.languageRegex.test(e)),this.lang_to_token=e=>e}_build_translation_inputs(e,t,s){return eB(this,e,t,s)}}class ej extends eC{}class eM extends ed{}class eP extends eE{constructor(e,t){let s=".,!?…。,、।۔،",n=e.pre_tokenizer?.pretokenizers[0]?.pattern;n&&n.Regex===` ?[^(\\s|[${s}])]+`&&(n.Regex=` ?[^\\s${s}]+`),super(e,t)}}class e$ extends ed{_default_chat_template=`{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% elif USE_DEFAULT_PROMPT == true and not '<<SYS>>' in messages[0]['content'] %}{% set loop_messages = messages %}{% set system_message = 'DEFAULT_SYSTEM_MESSAGE' %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>
_next/static/chunks/6139e184.386a648ad105fc36.js ADDED
@@ -0,0 +1 @@
 
 
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[132],{9454:function(e,s,t){t.d(s,{$Bv:function(){return ia},$Sz:function(){return a2},DcG:function(){return ic},ENH:function(){return ir},En$:function(){return is},Hqk:function(){return a7},IFL:function(){return iu},K2m:function(){return il},Kf0:function(){return a4},LdW:function(){return io},OjJ:function(){return a1},S2d:function(){return id},U$$:function(){return it},Zn:function(){return ii},hY6:function(){return i_},hZO:function(){return a3},lbf:function(){return a5},o$X:function(){return a0},t78:function(){return a8},tLj:function(){return ie},wiU:function(){return a9},z6E:function(){return a6}});var n=t(16),a=t(761),i=t(911),o=t(5774),r=t(2414),l=t(1542),c=t(9078);let{InferenceSession:d,Tensor:_,env:u}=l.ONNX,h={EncoderOnly:0,EncoderDecoder:1,Seq2Seq:2,Vision2Seq:3,DecoderOnly:4,MaskGeneration:5},m=new Map,p=new Map,f=new Map;async function g(e,s,t){let n=`onnx/${s}${t.quantized?"_quantized":""}.onnx`,a=await (0,i.st)(e,n,!0,t);try{return await d.create(a,{executionProviders:l.p})}catch(e){if(1===l.p.length&&"wasm"===l.p[0])throw e;return console.warn(e),console.warn("Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback. "),await d.create(a,{executionProviders:["wasm"]})}}async function w(e,s){let t=function(e,s){let t=Object.create(null),n=[];for(let a of e.inputNames){let e=s[a];if(!(e instanceof r.es)){n.push(a);continue}t[a]=u.wasm.proxy?e.clone():e}if(n.length>0)throw Error(`An error occurred during model execution: "Missing the following inputs: ${n.join(", ")}.`);let a=Object.keys(s).length,i=e.inputNames.length;if(a>i){let t=Object.keys(s).filter(s=>!e.inputNames.includes(s));console.warn(`WARNING: Too many inputs were provided (${a} > ${i}). The following inputs will be ignored: "${t.join(", ")}".`)}return t}(e,s);try{let s=await e.run(t);return s=function e(s){for(let t in s)s[t]instanceof _?s[t]=new r.es(s[t]):"object"==typeof s[t]&&e(s[t]);return s}(s)}catch(e){throw console.error(`An error occurred during model execution: "${e}".`),console.error("Inputs given to model:",t),e}}function x(e,s){let t=e.config.pad_token_id??null,n=e.config.eos_token_id??null;(0,a.Wy)(n)&&(n=[n]);let i=-1!==s.indexOf(t),o=null===n||!n.includes(t);if(!i||!o)return(0,r.r6)(s);{let e=BigInt64Array.from(s.data.map(e=>e!=t));return new r.es("int64",e,s.dims)}}function y(e,s,t){if(!e.inputNames.includes("position_ids"))return;let n=new BigInt64Array(s.attention_mask.data.length);for(let e=0;e<s.attention_mask.dims[0];++e){let t=e*s.attention_mask.dims[1],a=BigInt(0);for(let e=0;e<s.attention_mask.dims[1];++e){let i=t+e;0n===s.attention_mask.data[i]?n[i]=BigInt(1):(n[i]=a,a+=s.attention_mask.data[i])}}s.position_ids=new r.es("int64",n,s.attention_mask.dims),t&&(s.position_ids=s.position_ids.slice(null,-1).unsqueeze_(-1))}function M(e){return new r.es("bool",[e],[1])}async function k(e,s){let{encoder_outputs:t,past_key_values:n}=s;t||(t=(await C(e,s)).last_hidden_state);let a={input_ids:s.decoder_input_ids,encoder_hidden_states:t},i=!!n;e.decoder_merged_session.inputNames.includes("use_cache_branch")&&(a.use_cache_branch=M(i)),e.decoder_merged_session.inputNames.includes("encoder_attention_mask")&&(a.encoder_attention_mask=s.attention_mask),y(e.decoder_merged_session,a,i),e.addPastKeyValues(a,n);let o=await w(e.decoder_merged_session,a);return new ih({logits:o.logits,past_key_values:n=e.getPastKeyValues(o,n),encoder_outputs:t,...e.getAttentions(o)})}function b(e,s,t,n){let a=[],i=0,o=e.requires_attention_mask??!0,l=t.decoder_input_ids??t.decoder_start_token_id??t.bos_token_id??t.eos_token_id;for(let t of(l instanceof r.es?l=l.tolist().flat():Array.isArray(l)||(l=[l]),s)){t.dims=[1,...t.dims];let s={inputs:t,encoder_outputs:null,prev_model_outputs:null,output_token_ids:l,done:!1,score:0,id:i++};o&&(s.attention_mask=x(e,t)),a.push(s)}return a}async function v(e,s){let t=e.main_input_name,n=s.output_token_ids;s.prev_model_outputs&&(n=n.slice(-1));let a={[t]:s.inputs,decoder_input_ids:function(e){if(e instanceof r.es)return e;if(0===e.length)throw Error("items must be non-empty");if(!Array.isArray(e[0]))return new r.es("int64",BigInt64Array.from(e.map(e=>BigInt(e))),[1,e.length]);if(e.some(s=>s.length!==e[0].length))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' and/or 'truncation=True' to have batched tensors with the same length.");return new r.es("int64",BigInt64Array.from(e.flat().map(e=>BigInt(e))),[e.length,e[0].length])}(n),encoder_outputs:s.encoder_outputs,past_key_values:s.prev_model_outputs?.past_key_values};s.attention_mask&&(a.attention_mask=s.attention_mask);let i=await e.forward(a);return s.prev_model_outputs=i,s.encoder_outputs=i.encoder_outputs,i}function S(e,s){e.output_token_ids=[...e.output_token_ids,s]}async function C(e,s){let t=Object.create(null);for(let n of e.session.inputNames)t[n]=s[n];return e.session.inputNames.includes("token_type_ids")&&!t.token_type_ids&&(t.token_type_ids=new r.es("int64",new BigInt64Array(t.input_ids.data.length),t.input_ids.dims)),await w(e.session,t)}async function F(e,s){let{input_ids:t,past_key_values:n,attention_mask:a}=s,i={input_ids:t,attention_mask:a??x(e,t)},o=!!n;e.session.inputNames.includes("use_cache_branch")&&(i.use_cache_branch=M(o)),y(e.session,i,o),e.addPastKeyValues(i,n);let r=await w(e.session,i);return{logits:r.logits,past_key_values:n=e.getPastKeyValues(r,n)}}function L(e,s,t,n,a){let i=[],o=0;for(let t of s){let s,r=t.tolist().map(Number);t.dims=[1,...t.dims],a?(s=a[o]).dims=[1,...s.dims]:s=x(e,t);let l={input:t,model_input_ids:t,attention_mask:s,prev_model_outputs:null,output_token_ids:r,num_output_tokens:n,done:!1,score:0,id:o++};i.push(l)}return i}async function A(e,s){let t=new BigInt64Array(s.output_token_ids.length).fill(1n),n={input_ids:s.model_input_ids,attention_mask:new r.es("int64",t,[1,t.length]),past_key_values:s.prev_model_outputs?.past_key_values},a=await e.forward(n);return s.prev_model_outputs=a,a}function P(e,s){e.output_token_ids=[...e.output_token_ids,s],e.model_input_ids=new r.es("int64",[BigInt(s)],[1,1])}class E extends a.Ag{main_input_name="input_ids";constructor(e,s){super(),this.config=e,this.session=s;let t=f.get(this.constructor),n=m.get(t);this.can_generate=!1,this._runBeam=null,this._getStartBeams=null,this._updateBeam=null,this._forward=null,n===h.DecoderOnly?(this.can_generate=!0,this._runBeam=A,this._getStartBeams=L,this._updateBeam=P,this._forward=F):n===h.Seq2Seq||n===h.Vision2Seq?(this.can_generate=!0,this._runBeam=v,this._getStartBeams=b,this._updateBeam=S,this._forward=k):(h.EncoderDecoder,this._forward=C)}async dispose(){let e=[];for(let s of Object.keys(this)){let t=this[s];t instanceof d&&e.push(t.handler.dispose())}return await Promise.all(e)}static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:o=null,local_files_only:r=!1,revision:l="main",model_file_name:c=null}={}){let d,_={quantized:s,progress_callback:t,config:a,cache_dir:o,local_files_only:r,revision:l,model_file_name:c},u=f.get(this),p=m.get(u);return p===h.DecoderOnly?d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.Seq2Seq||p===h.Vision2Seq?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.MaskGeneration?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"vision_encoder",_),g(e,"prompt_encoder_mask_decoder",_)]):p===h.EncoderDecoder?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_)]):(p!==h.EncoderOnly&&console.warn(`Model type for '${u??a?.model_type}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`),d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"model",_)])),new this(...d)}async _call(e){return await this.forward(e)}async forward(e){return await this._forward(this,e)}_get_logits_processor(e,s,t=null){let n=new o.Jm;if(null!==e.repetition_penalty&&1!==e.repetition_penalty&&n.push(new o.Jj(e.repetition_penalty)),null!==e.no_repeat_ngram_size&&e.no_repeat_ngram_size>0&&n.push(new o.jF(e.no_repeat_ngram_size)),null!==e.bad_words_ids&&n.push(new o.AE(e.bad_words_ids,e.eos_token_id)),null!==e.min_length&&null!==e.eos_token_id&&e.min_length>0&&n.push(new o.ez(e.min_length,e.eos_token_id)),null!==e.min_new_tokens&&null!==e.eos_token_id&&e.min_new_tokens>0&&n.push(new o.CJ(s,e.min_new_tokens,e.eos_token_id)),null!==e.forced_bos_token_id&&n.push(new o.C9(e.forced_bos_token_id)),null!==e.forced_eos_token_id&&n.push(new o.dZ(e.max_length,e.forced_eos_token_id)),null!==e.begin_suppress_tokens){let t=s>1||null===e.forced_bos_token_id?s:s+1;null!==e.forced_decoder_ids&&(t+=e.forced_decoder_ids[e.forced_decoder_ids.length-1][0]),n.push(new o.GU(e.begin_suppress_tokens,t))}return null!==e.forced_decoder_ids&&n.push(new o.E(e.forced_decoder_ids)),null!==t&&n.extend(t),n}_get_generation_config(e){let s=new o.aP(this.config);return"generation_config"in this&&Object.assign(s,this.generation_config),null!==e&&Object.assign(s,e),s}async generate(e,s=null,t=null,{inputs_attention_mask:n=null}={}){let i;if(!this.can_generate){let e=f.get(this.constructor),s=`The current model class (${e}) is not compatible with \`.generate()\`, as it doesn't have a language model head.`,t=this.config.model_type,n=aT.get(t)??aB.get(t)??aL.get(t)??aq.get(t);throw n&&(s+=` Please use the following class instead: '${n[0]}'`),Error(s)}if(!(e instanceof r.es)&&!(0,a.fU)(e)&&!Array.isArray(e))throw Error(`\`inputs\` must be a Tensor, TypedArray, or Array, but is "${e.constructor.name}".`);if(this.config.is_encoder_decoder)i=0;else if(0===(i=e instanceof r.es?e.dims.at(-1):e.length))throw Error("Must supply a non-empty array of input token ids.");s=this._get_generation_config(s),t=t??new o.Jm,t=this._get_logits_processor(s,i,t);let l=s.eos_token_id;null===l||Array.isArray(l)||(l=[l]);let c=1,d=1+(s.max_new_tokens??1/0),_=Number.isInteger(s.max_length)&&(s.max_new_tokens??null)===null,u=o.Z4.getSampler(s),h=this.getStartBeams(e,s,c,n);for(;h.some(e=>!e.done)&&c<d;){let e=[];for(let n of h){if(n.done){e.push(n);continue}if(_&&n.output_token_ids.length>=s.max_length){n.done=!0,e.push(n);continue}let a=await this.runBeam(n);s.output_attentions&&this.addAttentionsToBeam(n,a),s.output_scores;let i=a.logits.slice(null,-1,null);for(let[s,a]of(t(n.output_token_ids,i),u(i))){let t={...n};this.updateBeam(t,s),t.score+=a,l&&l.includes(s)&&(t.done=!0),e.push(t)}}++c,h=(e=this.groupBeams(e).map(e=>e.sort((e,s)=>s.score-e.score).slice(0,s.num_beams))).flat(),s.callback_function&&s.callback_function(h)}let m=this.groupBeams(h),p=e=>m.map(t=>s.num_return_sequences>1?t.slice(0,s.num_return_sequences).map(s=>s[e]):[t[0][e]]).flat(),g=p("output_token_ids");return s.return_dict_in_generate?{sequences:g,decoder_attentions:p("decoder_attentions"),cross_attentions:p("cross_attentions")}:g}addAttentionsToBeam(e,s){if(this.config.is_encoder_decoder){if(!s.cross_attentions||0===s.cross_attentions.length)throw Error("`output_attentions` is true, but the model did not produce cross-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.cross_attentions||(e.cross_attentions=[]),e.cross_attentions.push(s.cross_attentions)}if(!s.decoder_attentions||0===s.decoder_attentions.length)throw Error("`output_attentions` is true, but the model did not produce decoder-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.decoder_attentions||(e.decoder_attentions=[]),e.decoder_attentions.push(s.decoder_attentions)}groupBeams(e){let s=Object.create(null);for(let t of e)void 0===s[t.id]?s[t.id]=[t]:s[t.id].push(t);return Object.values(s)}getPastKeyValues(e,s){let t=Object.create(null);for(let n in e)if(n.startsWith("present")){let a=n.replace("present","past_key_values");s&&n.includes("encoder")?t[a]=s[a]:t[a]=e[n]}return t}getAttentions(e){let s=Object.create(null);for(let t of["cross_attentions","decoder_attentions"]){let n=[];for(let s in e)s.startsWith(t)&&(n[s.split(".").pop()]=e[s]);s[t]=n}return s}addPastKeyValues(e,s){if(s)Object.assign(e,s);else if(this.config.is_encoder_decoder&&(this.add_encoder_pkv??!0)){let s=[1,this.num_encoder_heads,0,this.encoder_dim_kv],t=[1,this.num_decoder_heads,0,this.decoder_dim_kv];for(let n=0;n<this.num_decoder_layers;++n)e[`past_key_values.${n}.encoder.key`]=new r.es("float32",[],s),e[`past_key_values.${n}.encoder.value`]=new r.es("float32",[],s),e[`past_key_values.${n}.decoder.key`]=new r.es("float32",[],t),e[`past_key_values.${n}.decoder.value`]=new r.es("float32",[],t)}else if("falcon"===this.config.model_type){let s=[1*this.num_heads,0,this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key`]=new r.es("float32",[],s),e[`past_key_values.${t}.value`]=new r.es("float32",[],s)}else if(this.config.multi_query){let s=[1*this.num_heads,0,2*this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key_value`]=new r.es("float32",[],s)}else if("bloom"===this.config.model_type){let s=[1*this.num_heads,this.dim_kv,0],t=[1*this.num_heads,0,this.dim_kv];for(let n=0;n<this.num_layers;++n)e[`past_key_values.${n}.key`]=new r.es("float32",[],s),e[`past_key_values.${n}.value`]=new r.es("float32",[],t)}else{let s=[1,this.num_heads,0,this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key`]=new r.es("float32",[],s),e[`past_key_values.${t}.value`]=new r.es("float32",[],s)}}getStartBeams(e,s,t,n){return this._getStartBeams(this,e,s,t,n)}async runBeam(e){return await this._runBeam(this,e)}updateBeam(e,s){return this._updateBeam(e,s)}}class O{}class B extends E{}class T extends B{}class D extends B{async _call(e){return new iw(await super._call(e))}}class I extends B{async _call(e){return new im(await super._call(e))}}class q extends B{async _call(e){return new ig(await super._call(e))}}class N extends B{async _call(e){return new ix(await super._call(e))}}class G extends E{}class V extends G{}class z extends E{}class j extends z{}class $ extends z{async _call(e){return new iw(await super._call(e))}}class W extends z{async _call(e){return new im(await super._call(e))}}class R extends z{async _call(e){return new ig(await super._call(e))}}class Q extends z{async _call(e){return new ix(await super._call(e))}}class U extends E{}class X extends U{}class K extends U{async _call(e){return new iw(await super._call(e))}}class H extends U{async _call(e){return new im(await super._call(e))}}class J extends U{async _call(e){return new ig(await super._call(e))}}class Z extends U{async _call(e){return new ix(await super._call(e))}}class Y extends E{}class ee extends Y{}class es extends Y{async _call(e){return new iw(await super._call(e))}}class et extends Y{async _call(e){return new im(await super._call(e))}}class en extends Y{async _call(e){return new ig(await super._call(e))}}class ea extends Y{async _call(e){return new ix(await super._call(e))}}class ei extends E{}class eo extends ei{}class er extends ei{async _call(e){return new iw(await super._call(e))}}class el extends ei{async _call(e){return new im(await super._call(e))}}class ec extends ei{async _call(e){return new ig(await super._call(e))}}class ed extends ei{async _call(e){return new ix(await super._call(e))}}class e_ extends E{}class eu extends e_{}class eh extends e_{async _call(e){return new iw(await super._call(e))}}class em extends e_{async _call(e){return new im(await super._call(e))}}class ep extends e_{async _call(e){return new ig(await super._call(e))}}class ef extends e_{async _call(e){return new ix(await super._call(e))}}class eg extends E{}class ew extends eg{}class ex extends eg{async _call(e){return new iw(await super._call(e))}}class ey extends eg{async _call(e){return new im(await super._call(e))}}class eM extends eg{async _call(e){return new ig(await super._call(e))}}class ek extends eg{async _call(e){return new ix(await super._call(e))}}class eb extends E{}class ev extends eb{}class eS extends eb{async _call(e){return new im(await super._call(e))}}class eC extends eb{async _call(e){return new ig(await super._call(e))}}class eF extends eb{async _call(e){return new ix(await super._call(e))}}class eL extends eb{async _call(e){return new iw(await super._call(e))}}class eA extends E{}class eP extends eA{}class eE extends eA{async _call(e){return new iw(await super._call(e))}}class eO extends eA{async _call(e){return new im(await super._call(e))}}class eB extends eA{async _call(e){return new ig(await super._call(e))}}class eT extends E{}class eD extends eT{}class eI extends eT{async _call(e){return new iw(await super._call(e))}}class eq extends eT{async _call(e){return new im(await super._call(e))}}class eN extends eT{async _call(e){return new ix(await super._call(e))}}class eG extends E{}class eV extends eG{}class ez extends eG{async _call(e){return new iw(await super._call(e))}}class ej extends eG{async _call(e){return new im(await super._call(e))}}class e$ extends eG{async _call(e){return new ig(await super._call(e))}}class eW extends eG{async _call(e){return new ix(await super._call(e))}}class eR extends E{}class eQ extends eR{}class eU extends eR{async _call(e){return new iw(await super._call(e))}}class eX extends eR{async _call(e){return new im(await super._call(e))}}class eK extends eR{async _call(e){return new ix(await super._call(e))}}class eH extends E{}class eJ extends eH{}class eZ extends eH{async _call(e){return new im(await super._call(e))}}class eY extends eH{async _call(e){return new ix(await super._call(e))}}class e2 extends eH{async _call(e){return new iw(await super._call(e))}}class e0 extends E{}class e1 extends e0{}class e4 extends e0{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class e3 extends E{}class e5 extends e3{}class e6 extends e3{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class e7 extends E{}class e8 extends e7{}class e9 extends e7{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class se extends E{}class ss extends se{}class st extends se{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sn extends se{async _call(e){return new im(await super._call(e))}}class sa extends E{}class si extends sa{}class so extends sa{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sr extends sa{async _call(e){return new im(await super._call(e))}}class sl extends sa{constructor(e,s,t){super(e,s),this.generation_config=t,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sc extends E{}class sd extends sc{}class s_ extends sc{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class su extends E{}class sh extends su{}class sm extends su{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sp extends E{}class sf extends sp{}class sg extends sp{async _call(e){return new iw(await super._call(e))}}class sw extends sp{async _call(e){return new im(await super._call(e))}}class sx extends sp{async _call(e){return new ig(await super._call(e))}}class sy extends sp{async _call(e){return new ix(await super._call(e))}}class sM extends E{}class sk extends sM{}class sb extends sM{async _call(e){return new iw(await super._call(e))}}class sv extends sM{async _call(e){return new im(await super._call(e))}}class sS extends sM{async _call(e){return new ig(await super._call(e))}}class sC extends sM{async _call(e){return new ix(await super._call(e))}}class sF extends E{}class sL extends sF{}class sA extends sF{async _call(e){return new iw(await super._call(e))}}class sP extends sF{async _call(e){return new im(await super._call(e))}}class sE extends sF{async _call(e){return new ig(await super._call(e))}}class sO extends sF{async _call(e){return new ix(await super._call(e))}}class sB extends E{}class sT extends sB{}class sD extends sB{}class sI extends E{}class sq extends sI{}class sN extends sI{requires_attention_mask=!1;main_input_name="input_features";constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}async generate(e,s=null,t=null){if(s=this._get_generation_config(s),s.return_timestamps??=!1,s.return_timestamps&&(t=[new o.Pg(s)]),s.return_token_timestamps&&(s.output_attentions=!0,s.return_dict_in_generate=!0,"translate"===s.task&&console.warn("Token-level timestamps may not be reliable for task 'translate'."),!s.alignment_heads))throw Error("Model generation config has no `alignment_heads`, token-level timestamps not available. See https://gist.github.com/hollance/42e32852f24243b748ae6bc1f985b13a on how to add this property to the generation config.");let n=await super.generate(e,s,t);return s.return_token_timestamps&&s.alignment_heads&&(n.token_timestamps=this._extract_token_timestamps(n,s.alignment_heads,s.num_frames)),n}_extract_token_timestamps(e,s,t=null,n=.02){if(!e.cross_attentions)throw Error("Model outputs must contain cross attentions to extract timestamps. This is most likely because the model was not exported with `output_attentions=True`.");let i=this.config.median_filter_width;void 0===i&&(console.warn("Model config has no `median_filter_width`, using default value of 7."),i=7);let o=e.cross_attentions.map(e=>{let n=Array.from({length:this.config.decoder_layers},(s,t)=>(0,r.d3)(e.map(e=>e[t]),2)),a=(0,r.kn)(s.map(([e,s])=>t?n[e].slice(null,s,null,[0,t]):n[e].slice(null,s)));a=a.transpose(1,0,2,3);let[o,l]=(0,r.f3)(a,-2,0,!0),d=a.clone();for(let e=0;e<d.dims[0];++e){let s=d[e];for(let t=0;t<s.dims[0];++t){let n=s[t],a=o[e][t][0],r=l[e][t][0];for(let e=0;e<n.dims[0];++e){let s=n[e];for(let e=0;e<s.data.length;++e)s.data[e]=(s.data[e]-r.data[e])/a.data[e];s.data.set((0,c.qCb)(s.data,i))}}}return(0,r.J6)(d,1)}),l=[e.sequences.length,e.sequences[0].length],d=new r.es("float32",new Float32Array(l[0]*l[1]),l);for(let e=0;e<l[0];++e){let s=o[e].neg().squeeze_(0),[t,i]=(0,r.Ks)(s),l=Array.from({length:t.length-1},(e,s)=>t[s+1]-t[s]),c=(0,a.eG)([1],l).map(e=>!!e),_=[];for(let e=0;e<c.length;++e)c[e]&&_.push(i[e]*n);d[e].data.set(_,1)}return d}}class sG extends E{main_input_name="pixel_values";constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n;let a=this.config.encoder,i=this.config.decoder,o=a.model_type;(aS.get(o)??aC.get(o))||console.warn(`Model type for encoder '${o}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`);let r=aT.get(i.model_type);if(!r)throw Error(`Unable to construct \`VisionEncoderDecoder\` due to unsupported decoder: "${this.config.decoder.model_type}"`);let l=new r[1](i,t,n);this.add_encoder_pkv="num_decoder_layers"in l,this.add_encoder_pkv?(this.num_decoder_layers=l.num_decoder_layers,this.num_decoder_heads=l.num_decoder_heads,this.decoder_dim_kv=l.decoder_dim_kv,this.num_encoder_layers=l.num_encoder_layers,this.num_encoder_heads=l.num_encoder_heads,this.encoder_dim_kv=l.encoder_dim_kv):(this.num_layers=l.num_layers,this.num_heads=l.num_heads,this.dim_kv=l.dim_kv)}}class sV extends E{}class sz extends sV{}class sj extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class s$ extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="vision_model",super.from_pretrained(e,s)}}class sW extends E{}class sR extends sW{}class sQ extends sW{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class sU extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="vision_model",super.from_pretrained(e,s)}}class sX extends E{}class sK extends sX{}class sH extends E{}class sJ extends sH{}class sZ extends sH{}class sY extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class s2 extends sY{}class s0 extends sY{}class s1 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_heads,this.num_layers=this.config.num_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class s4 extends s1{}class s3 extends s1{}class s5 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class s6 extends s5{}class s7 extends s5{}class s8 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class s9 extends s8{}class te extends s8{}class ts extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class tt extends ts{}class tn extends ts{}class ta extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class ti extends ta{}class to extends ta{}class tr extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class tl extends tr{}class tc extends tr{}class td extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class t_ extends td{}class tu extends td{}class th extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class tm extends th{}class tp extends th{}class tf extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.hidden_size/this.num_heads}}class tg extends tf{}class tw extends tf{}class tx extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_heads,this.num_layers=this.config.n_layers,this.dim_kv=this.config.d_model/this.num_heads}}class ty extends tx{}class tM extends tx{}class tk extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class tb extends tk{}class tv extends tk{}class tS extends E{}class tC extends tS{}class tF extends tS{async _call(e){return new im(await super._call(e))}}class tL extends E{}class tA extends tL{async _call(e){return new iM(await super._call(e))}}class tP extends E{}class tE extends tP{}class tO extends tP{async _call(e){return new im(await super._call(e))}}class tB extends E{}class tT extends tB{}class tD extends tB{}class tI extends E{}class tq extends tI{}class tN extends tI{}class tG extends E{}class tV extends tG{}class tz extends tG{async _call(e){return new im(await super._call(e))}}class tj extends E{}class t$ extends tj{}class tW extends tj{async _call(e){return new tQ(await super._call(e))}}class tR extends tj{async _call(e){return new tU(await super._call(e))}}class tQ extends O{constructor({logits:e,pred_boxes:s}){super(),this.logits=e,this.pred_boxes=s}}class tU extends O{constructor({logits:e,pred_boxes:s,pred_masks:t}){super(),this.logits=e,this.pred_boxes=s,this.pred_masks=t}}class tX extends E{}class tK extends tX{}class tH extends tX{async _call(e){return new tJ(await super._call(e))}}class tJ extends tQ{}class tZ extends E{}class tY extends tZ{}class t2 extends tZ{async _call(e){return new im(await super._call(e))}}class t0 extends E{}class t1 extends t0{}class t4 extends t0{async _call(e){return new im(await super._call(e))}}class t3 extends E{}class t5 extends t3{}class t6 extends t3{async _call(e){return new im(await super._call(e))}}class t7 extends E{}class t8 extends t7{}class t9 extends t7{}class ne extends E{}class ns extends ne{}class nt extends ne{}class nn extends E{}class na extends nn{}class ni extends E{}class no extends ni{}class nr extends ni{}class nl extends E{}class nc extends nl{}class nd extends E{}class n_ extends nd{}class nu extends nd{async _call(e){return new im(await super._call(e))}}class nh extends E{}class nm extends nh{}class np extends nh{async _call(e){return new im(await super._call(e))}}class nf extends E{}class ng extends nf{}class nw extends nf{async _call(e){return new im(await super._call(e))}}class nx extends E{}class ny extends nx{}class nM extends nx{async _call(e){return new nk(await super._call(e))}}class nk extends O{constructor({logits:e,pred_boxes:s}){super(),this.logits=e,this.pred_boxes=s}}class nb extends E{}class nv extends nb{constructor(e,s,t){super(e,s),this.prompt_encoder_mask_decoder=t}async get_image_embeddings({pixel_values:e}){return await C(this,{pixel_values:e})}async forward(e){if(e.image_embeddings&&e.image_positional_embeddings||(e={...e,...await this.get_image_embeddings(e)}),!e.input_labels){let s=e.input_points.dims.slice(0,-1),t=s.reduce((e,s)=>e*s,1);e.input_labels=new r.es("int64",new BigInt64Array(t).fill(1n),s)}return await w(this.prompt_encoder_mask_decoder,{input_points:e.input_points,input_labels:e.input_labels,image_embeddings:e.image_embeddings,image_positional_embeddings:e.image_positional_embeddings})}async _call(e){return new nS(await super._call(e))}}class nS extends O{constructor({iou_scores:e,pred_masks:s}){super(),this.iou_scores=e,this.pred_masks=s}}class nC extends E{}class nF extends nC{}class nL extends nC{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nA extends E{}class nP extends nA{}class nE extends nA{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nO extends E{}class nB extends nO{}class nT extends nO{async _call(e){return new iy(await super._call(e))}}class nD extends nO{async _call(e){return new im(await super._call(e))}}class nI extends nO{async _call(e){return new ig(await super._call(e))}}class nq extends E{}class nN extends nq{}class nG extends nq{async _call(e){return new iy(await super._call(e))}}class nV extends nq{async _call(e){return new im(await super._call(e))}}class nz extends E{}class nj extends nz{}class n$ extends nz{async _call(e){return new iy(await super._call(e))}}class nW extends nz{async _call(e){return new im(await super._call(e))}}class nR extends nz{async _call(e){return new ig(await super._call(e))}}class nQ extends E{}class nU extends nQ{}class nX extends nQ{async _call(e){return new iy(await super._call(e))}}class nK extends nQ{async _call(e){return new im(await super._call(e))}}class nH extends nO{}class nJ extends nO{async _call(e){return new iy(await super._call(e))}}class nZ extends nO{async _call(e){return new im(await super._call(e))}}class nY extends E{}class n2 extends nY{}class n0 extends nY{async _call(e){return new iy(await super._call(e))}}class n1 extends nY{async _call(e){return new im(await super._call(e))}}class n4 extends nY{async _call(e){return new ip(await super._call(e))}}class n3 extends nY{async _call(e){return new ig(await super._call(e))}}class n5 extends E{}class n6 extends n5{}class n7 extends n5{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.hidden_size/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.hidden_size/this.num_encoder_heads}async generate_speech(e,s,{threshold:t=.5,minlenratio:n=0,maxlenratio:a=20,vocoder:i=null}={}){let{encoder_outputs:o,encoder_attention_mask:l}=await C(this,{input_ids:e}),c=o.dims[1]/this.config.reduction_factor,d=Math.floor(c*a),_=Math.floor(c*n),u=this.config.num_mel_bins,h=[],m=null,p=null,f=0;for(;;){++f;let e={use_cache_branch:M(!!p),output_sequence:p?p.output_sequence_out:new r.es("float32",new Float32Array(u),[1,1,u]),encoder_attention_mask:l,speaker_embeddings:s,encoder_hidden_states:o};this.addPastKeyValues(e,m),p=await w(this.decoder_merged_session,e),m=this.getPastKeyValues(p,m);let{prob:n,spectrum:a}=p;if(h.push(a),f>=_&&(Array.from(n.data).filter(e=>e>=t).length>0||f>=d))break}let g=(0,r.d3)(h),{waveform:x}=await w(i.session,{spectrogram:g});return{spectrogram:g,waveform:x}}}class n8 extends E{main_input_name="spectrogram"}class n9 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_encoder_layers=this.num_decoder_layers=this.config.decoder_layers,this.num_encoder_heads=this.num_decoder_heads=this.config.decoder_attention_heads,this.encoder_dim_kv=this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads}}class ae extends n9{}class as extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class at extends as{}class an extends as{}class aa extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class ai extends aa{}class ao extends aa{}class ar extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class al extends ar{}class ac extends ar{}class ad extends E{}class a_ extends ad{}class au extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class ah extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="audio_model",super.from_pretrained(e,s)}}class am extends E{}class ap extends am{async _call(e){return new ik(await super._call(e))}}class af extends E{}class ag extends af{}class aw extends af{}class ax extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class ay extends ax{}class aM extends E{}class ak extends aM{}class ab extends aM{async _call(e){return new im(await super._call(e))}}class av{static MODEL_CLASS_MAPPINGS=null;static BASE_IF_FAIL=!1;static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:i=null,local_files_only:o=!1,revision:r="main",model_file_name:l=null}={}){let c={quantized:s,progress_callback:t,config:a,cache_dir:i,local_files_only:o,revision:r,model_file_name:l};if(a=await n.z.from_pretrained(e,c),c.config||(c.config=a),!this.MODEL_CLASS_MAPPINGS)throw Error("`MODEL_CLASS_MAPPINGS` not implemented for this type of `AutoClass`: "+this.name);for(let s of this.MODEL_CLASS_MAPPINGS){let t=s.get(a.model_type);if(t)return await t[1].from_pretrained(e,c)}if(this.BASE_IF_FAIL)return console.warn(`Unknown model class "${a.model_type}", attempting to construct from base class.`),await E.from_pretrained(e,c);throw Error(`Unsupported model type: ${a.model_type}`)}}let aS=new Map([["bert",["BertModel",T]],["nomic_bert",["NomicBertModel",V]],["roformer",["RoFormerModel",j]],["electra",["ElectraModel",ee]],["esm",["EsmModel",eP]],["convbert",["ConvBertModel",X]],["camembert",["CamembertModel",eo]],["deberta",["DebertaModel",eu]],["deberta-v2",["DebertaV2Model",ew]],["mpnet",["MPNetModel",eV]],["albert",["AlbertModel",eJ]],["distilbert",["DistilBertModel",ev]],["roberta",["RobertaModel",sf]],["xlm",["XLMModel",sk]],["xlm-roberta",["XLMRobertaModel",sL]],["clap",["ClapModel",a_]],["clip",["CLIPModel",sz]],["clipseg",["CLIPSegModel",sJ]],["chinese_clip",["ChineseCLIPModel",sK]],["siglip",["SiglipModel",sR]],["mobilebert",["MobileBertModel",eD]],["squeezebert",["SqueezeBertModel",eQ]],["wav2vec2",["Wav2Vec2Model",nB]],["wav2vec2-bert",["Wav2Vec2BertModel",nU]],["unispeech",["UniSpeechModel",nN]],["unispeech-sat",["UniSpeechSatModel",nj]],["hubert",["HubertModel",nH]],["wavlm",["WavLMModel",n2]],["audio-spectrogram-transformer",["ASTModel",sT]],["vits",["VitsModel",ap]],["detr",["DetrModel",t$]],["table-transformer",["TableTransformerModel",tK]],["vit",["ViTModel",tC]],["mobilevit",["MobileViTModel",tE]],["owlvit",["OwlViTModel",tT]],["owlv2",["Owlv2Model",tq]],["beit",["BeitModel",tV]],["deit",["DeiTModel",tY]],["convnext",["ConvNextModel",n_]],["convnextv2",["ConvNextV2Model",nm]],["dinov2",["Dinov2Model",ng]],["resnet",["ResNetModel",t1]],["swin",["SwinModel",t5]],["swin2sr",["Swin2SRModel",t8]],["donut-swin",["DonutSwinModel",nc]],["yolos",["YolosModel",ny]],["dpt",["DPTModel",ns]],["glpn",["GLPNModel",no]],["hifigan",["SpeechT5HifiGan",n8]],["efficientnet",["EfficientNetModel",ak]]]),aC=new Map([["t5",["T5Model",e1]],["longt5",["LongT5Model",e5]],["mt5",["MT5Model",e8]],["bart",["BartModel",ss]],["mbart",["MBartModel",si]],["marian",["MarianModel",nF]],["whisper",["WhisperModel",sq]],["m2m_100",["M2M100Model",nP]],["blenderbot",["BlenderbotModel",sd]],["blenderbot-small",["BlenderbotSmallModel",sh]]]),aF=new Map([["bloom",["BloomModel",tg]],["gpt2",["GPT2Model",s2]],["gptj",["GPTJModel",s9]],["gpt_bigcode",["GPTBigCodeModel",tt]],["gpt_neo",["GPTNeoModel",s4]],["gpt_neox",["GPTNeoXModel",s6]],["codegen",["CodeGenModel",ti]],["llama",["LlamaModel",tl]],["qwen2",["Qwen2Model",t_]],["phi",["PhiModel",tm]],["mpt",["MptModel",ty]],["opt",["OPTModel",tb]],["mistral",["MistralModel",at]],["starcoder2",["Starcoder2Model",ai]],["falcon",["FalconModel",al]]]),aL=new Map([["speecht5",["SpeechT5ForSpeechToText",n6]],["whisper",["WhisperForConditionalGeneration",sN]]]),aA=new Map([["speecht5",["SpeechT5ForTextToSpeech",n7]]]),aP=new Map([["vits",["VitsModel",ap]]]),aE=new Map([["bert",["BertForSequenceClassification",I]],["roformer",["RoFormerForSequenceClassification",W]],["electra",["ElectraForSequenceClassification",et]],["esm",["EsmForSequenceClassification",eO]],["convbert",["ConvBertForSequenceClassification",H]],["camembert",["CamembertForSequenceClassification",el]],["deberta",["DebertaForSequenceClassification",em]],["deberta-v2",["DebertaV2ForSequenceClassification",ey]],["mpnet",["MPNetForSequenceClassification",ej]],["albert",["AlbertForSequenceClassification",eZ]],["distilbert",["DistilBertForSequenceClassification",eS]],["roberta",["RobertaForSequenceClassification",sw]],["xlm",["XLMForSequenceClassification",sv]],["xlm-roberta",["XLMRobertaForSequenceClassification",sP]],["bart",["BartForSequenceClassification",sn]],["mbart",["MBartForSequenceClassification",sr]],["mobilebert",["MobileBertForSequenceClassification",eq]],["squeezebert",["SqueezeBertForSequenceClassification",eX]]]),aO=new Map([["bert",["BertForTokenClassification",q]],["roformer",["RoFormerForTokenClassification",R]],["electra",["ElectraForTokenClassification",en]],["esm",["EsmForTokenClassification",eB]],["convbert",["ConvBertForTokenClassification",J]],["camembert",["CamembertForTokenClassification",ec]],["deberta",["DebertaForTokenClassification",ep]],["deberta-v2",["DebertaV2ForTokenClassification",eM]],["mpnet",["MPNetForTokenClassification",e$]],["distilbert",["DistilBertForTokenClassification",eC]],["roberta",["RobertaForTokenClassification",sx]],["xlm",["XLMForTokenClassification",sS]],["xlm-roberta",["XLMRobertaForTokenClassification",sE]]]),aB=new Map([["t5",["T5ForConditionalGeneration",e4]],["longt5",["LongT5ForConditionalGeneration",e6]],["mt5",["MT5ForConditionalGeneration",e9]],["bart",["BartForConditionalGeneration",st]],["mbart",["MBartForConditionalGeneration",so]],["marian",["MarianMTModel",nL]],["m2m_100",["M2M100ForConditionalGeneration",nE]],["blenderbot",["BlenderbotForConditionalGeneration",s_]],["blenderbot-small",["BlenderbotSmallForConditionalGeneration",sm]]]),aT=new Map([["bloom",["BloomForCausalLM",tw]],["gpt2",["GPT2LMHeadModel",s0]],["gptj",["GPTJForCausalLM",te]],["gpt_bigcode",["GPTBigCodeForCausalLM",tn]],["gpt_neo",["GPTNeoForCausalLM",s3]],["gpt_neox",["GPTNeoXForCausalLM",s7]],["codegen",["CodeGenForCausalLM",to]],["llama",["LlamaForCausalLM",tc]],["qwen2",["Qwen2ForCausalLM",tu]],["phi",["PhiForCausalLM",tp]],["mpt",["MptForCausalLM",tM]],["opt",["OPTForCausalLM",tv]],["mbart",["MBartForCausalLM",sl]],["mistral",["MistralForCausalLM",an]],["starcoder2",["Starcoder2ForCausalLM",ao]],["falcon",["FalconForCausalLM",ac]],["trocr",["TrOCRForCausalLM",ae]],["stablelm",["StableLmForCausalLM",ay]]]),aD=new Map([["bert",["BertForMaskedLM",D]],["roformer",["RoFormerForMaskedLM",$]],["electra",["ElectraForMaskedLM",es]],["esm",["EsmForMaskedLM",eE]],["convbert",["ConvBertForMaskedLM",K]],["camembert",["CamembertForMaskedLM",er]],["deberta",["DebertaForMaskedLM",eh]],["deberta-v2",["DebertaV2ForMaskedLM",ex]],["mpnet",["MPNetForMaskedLM",ez]],["albert",["AlbertForMaskedLM",e2]],["distilbert",["DistilBertForMaskedLM",eL]],["roberta",["RobertaForMaskedLM",sg]],["xlm",["XLMWithLMHeadModel",sb]],["xlm-roberta",["XLMRobertaForMaskedLM",sA]],["mobilebert",["MobileBertForMaskedLM",eI]],["squeezebert",["SqueezeBertForMaskedLM",eU]]]),aI=new Map([["bert",["BertForQuestionAnswering",N]],["roformer",["RoFormerForQuestionAnswering",Q]],["electra",["ElectraForQuestionAnswering",ea]],["convbert",["ConvBertForQuestionAnswering",Z]],["camembert",["CamembertForQuestionAnswering",ed]],["deberta",["DebertaForQuestionAnswering",ef]],["deberta-v2",["DebertaV2ForQuestionAnswering",ek]],["mpnet",["MPNetForQuestionAnswering",eW]],["albert",["AlbertForQuestionAnswering",eY]],["distilbert",["DistilBertForQuestionAnswering",eF]],["roberta",["RobertaForQuestionAnswering",sy]],["xlm",["XLMForQuestionAnswering",sC]],["xlm-roberta",["XLMRobertaForQuestionAnswering",sO]],["mobilebert",["MobileBertForQuestionAnswering",eN]],["squeezebert",["SqueezeBertForQuestionAnswering",eK]]]),aq=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aN=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aG=new Map([["vit",["ViTForImageClassification",tF]],["mobilevit",["MobileViTForImageClassification",tO]],["beit",["BeitForImageClassification",tz]],["deit",["DeiTForImageClassification",t2]],["convnext",["ConvNextForImageClassification",nu]],["convnextv2",["ConvNextV2ForImageClassification",np]],["dinov2",["Dinov2ForImageClassification",nw]],["resnet",["ResNetForImageClassification",t4]],["swin",["SwinForImageClassification",t6]],["segformer",["SegformerForImageClassification",ag]],["efficientnet",["EfficientNetForImageClassification",ab]]]),aV=new Map([["detr",["DetrForObjectDetection",tW]],["table-transformer",["TableTransformerForObjectDetection",tH]],["yolos",["YolosForObjectDetection",nM]]]),az=new Map([["owlvit",["OwlViTForObjectDetection",tD]],["owlv2",["Owlv2ForObjectDetection",tN]]]),aj=new Map([["detr",["DetrForSegmentation",tR]],["clipseg",["CLIPSegForImageSegmentation",sZ]]]),a$=new Map([["segformer",["SegformerForSemanticSegmentation",aw]]]),aW=new Map([["sam",["SamModel",nv]]]),aR=new Map([["wav2vec2",["Wav2Vec2ForCTC",nT]],["wav2vec2-bert",["Wav2Vec2BertForCTC",nX]],["unispeech",["UniSpeechForCTC",nG]],["unispeech-sat",["UniSpeechSatForCTC",n$]],["wavlm",["WavLMForCTC",n0]],["hubert",["HubertForCTC",nJ]]]),aQ=new Map([["wav2vec2",["Wav2Vec2ForSequenceClassification",nD]],["wav2vec2-bert",["Wav2Vec2BertForSequenceClassification",nK]],["unispeech",["UniSpeechForSequenceClassification",nV]],["unispeech-sat",["UniSpeechSatForSequenceClassification",nW]],["wavlm",["WavLMForSequenceClassification",n1]],["hubert",["HubertForSequenceClassification",nZ]],["audio-spectrogram-transformer",["ASTForAudioClassification",sD]]]),aU=new Map([["wavlm",["WavLMForXVector",n4]]]),aX=new Map([["unispeech-sat",["UniSpeechSatForAudioFrameClassification",nR]],["wavlm",["WavLMForAudioFrameClassification",n3]],["wav2vec2",["Wav2Vec2ForAudioFrameClassification",nI]]]),aK=new Map([["vitmatte",["VitMatteForImageMatting",tA]]]),aH=new Map([["swin2sr",["Swin2SRForImageSuperResolution",t9]]]),aJ=new Map([["dpt",["DPTForDepthEstimation",nt]],["depth_anything",["DepthAnythingForDepthEstimation",na]],["glpn",["GLPNForDepthEstimation",nr]]]),aZ=new Map([["clip",["CLIPVisionModelWithProjection",s$]],["siglip",["SiglipVisionModel",sU]]]),aY=[[aS,h.EncoderOnly],[aC,h.EncoderDecoder],[aF,h.DecoderOnly],[aE,h.EncoderOnly],[aO,h.EncoderOnly],[aB,h.Seq2Seq],[aL,h.Seq2Seq],[aT,h.DecoderOnly],[aD,h.EncoderOnly],[aI,h.EncoderOnly],[aq,h.Vision2Seq],[aG,h.EncoderOnly],[aj,h.EncoderOnly],[a$,h.EncoderOnly],[aK,h.EncoderOnly],[aH,h.EncoderOnly],[aJ,h.EncoderOnly],[aV,h.EncoderOnly],[az,h.EncoderOnly],[aW,h.MaskGeneration],[aR,h.EncoderOnly],[aQ,h.EncoderOnly],[aA,h.Seq2Seq],[aP,h.EncoderOnly],[aU,h.EncoderOnly],[aX,h.EncoderOnly],[aZ,h.EncoderOnly]];for(let[e,s]of aY)for(let[t,n]of e.values())m.set(t,s),f.set(n,t),p.set(t,n);for(let[e,s,t]of[["CLIPTextModelWithProjection",sj,h.EncoderOnly],["SiglipTextModel",sQ,h.EncoderOnly],["ClapTextModelWithProjection",au,h.EncoderOnly],["ClapAudioModelWithProjection",ah,h.EncoderOnly]])m.set(e,t),f.set(s,e),p.set(e,s);class a2 extends av{static MODEL_CLASS_MAPPINGS=aY.map(e=>e[0]);static BASE_IF_FAIL=!0}class a0 extends av{static MODEL_CLASS_MAPPINGS=[aE]}class a1 extends av{static MODEL_CLASS_MAPPINGS=[aO]}class a4 extends av{static MODEL_CLASS_MAPPINGS=[aB]}class a3 extends av{static MODEL_CLASS_MAPPINGS=[aL]}class a5 extends av{static MODEL_CLASS_MAPPINGS=[aA]}class a6 extends av{static MODEL_CLASS_MAPPINGS=[aP]}class a7 extends av{static MODEL_CLASS_MAPPINGS=[aT]}class a8 extends av{static MODEL_CLASS_MAPPINGS=[aD]}class a9 extends av{static MODEL_CLASS_MAPPINGS=[aI]}class ie extends av{static MODEL_CLASS_MAPPINGS=[aq]}class is extends av{static MODEL_CLASS_MAPPINGS=[aG]}class it extends av{static MODEL_CLASS_MAPPINGS=[aj]}class ia extends av{static MODEL_CLASS_MAPPINGS=[a$]}class ii extends av{static MODEL_CLASS_MAPPINGS=[aV]}class io extends av{static MODEL_CLASS_MAPPINGS=[az]}class ir extends av{static MODEL_CLASS_MAPPINGS=[aR]}class il extends av{static MODEL_CLASS_MAPPINGS=[aQ]}class ic extends av{static MODEL_CLASS_MAPPINGS=[aN]}class id extends av{static MODEL_CLASS_MAPPINGS=[aH]}class i_ extends av{static MODEL_CLASS_MAPPINGS=[aJ]}class iu extends av{static MODEL_CLASS_MAPPINGS=[aZ]}class ih extends O{constructor({logits:e,past_key_values:s,encoder_outputs:t,decoder_attentions:n=null,cross_attentions:a=null}){super(),this.logits=e,this.past_key_values=s,this.encoder_outputs=t,this.decoder_attentions=n,this.cross_attentions=a}}class im extends O{constructor({logits:e}){super(),this.logits=e}}class ip extends O{constructor({logits:e,embeddings:s}){super(),this.logits=e,this.embeddings=s}}class ig extends O{constructor({logits:e}){super(),this.logits=e}}class iw extends O{constructor({logits:e}){super(),this.logits=e}}class ix extends O{constructor({start_logits:e,end_logits:s}){super(),this.start_logits=e,this.end_logits=s}}class iy extends O{constructor({logits:e}){super(),this.logits=e}}class iM extends O{constructor({alphas:e}){super(),this.alphas=e}}class ik extends O{constructor({waveform:e,spectrogram:s}){super(),this.waveform=e,this.spectrogram=s}}}}]);
_next/static/chunks/6139e184.ec466d5482164223.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[132],{9454:function(e,s,t){t.d(s,{$Bv:function(){return ia},$Sz:function(){return a2},DcG:function(){return ic},ENH:function(){return ir},En$:function(){return is},Hqk:function(){return a7},IFL:function(){return iu},K2m:function(){return il},Kf0:function(){return a4},LdW:function(){return io},OjJ:function(){return a1},S2d:function(){return id},U$$:function(){return it},Zn:function(){return ii},hY6:function(){return i_},hZO:function(){return a3},lbf:function(){return a5},o$X:function(){return a0},t78:function(){return a9},tLj:function(){return ie},wiU:function(){return a8},z6E:function(){return a6}});var n=t(16),a=t(761),i=t(911),o=t(5774),r=t(2414),l=t(967),c=t(9078);let{InferenceSession:d,Tensor:_,env:u}=l.ONNX,h={EncoderOnly:0,EncoderDecoder:1,Seq2Seq:2,Vision2Seq:3,DecoderOnly:4,MaskGeneration:5},m=new Map,p=new Map,f=new Map;async function g(e,s,t){let n=`onnx/${s}${t.quantized?"_quantized":""}.onnx`,a=await (0,i.st)(e,n,!0,t);try{return await d.create(a,{executionProviders:l.p})}catch(e){if(1===l.p.length&&"wasm"===l.p[0])throw e;return console.warn(e),console.warn("Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback. "),await d.create(a,{executionProviders:["wasm"]})}}async function w(e,s){let t=function(e,s){let t=Object.create(null),n=[];for(let a of e.inputNames){let e=s[a];if(!(e instanceof r.es)){n.push(a);continue}t[a]=u.wasm.proxy?e.clone():e}if(n.length>0)throw Error(`An error occurred during model execution: "Missing the following inputs: ${n.join(", ")}.`);let a=Object.keys(s).length,i=e.inputNames.length;if(a>i){let t=Object.keys(s).filter(s=>!e.inputNames.includes(s));console.warn(`WARNING: Too many inputs were provided (${a} > ${i}). The following inputs will be ignored: "${t.join(", ")}".`)}return t}(e,s);try{let s=await e.run(t);return s=function e(s){for(let t in s)s[t]instanceof _?s[t]=new r.es(s[t]):"object"==typeof s[t]&&e(s[t]);return s}(s)}catch(e){throw console.error(`An error occurred during model execution: "${e}".`),console.error("Inputs given to model:",t),e}}function x(e,s){let t=e.config.pad_token_id??null,n=e.config.eos_token_id??null;(0,a.Wy)(n)&&(n=[n]);let i=-1!==s.indexOf(t),o=null===n||!n.includes(t);if(!i||!o)return(0,r.r6)(s);{let e=BigInt64Array.from(s.data.map(e=>e!=t));return new r.es("int64",e,s.dims)}}function y(e,s,t){if(!e.inputNames.includes("position_ids"))return;let n=new BigInt64Array(s.attention_mask.data.length);for(let e=0;e<s.attention_mask.dims[0];++e){let t=e*s.attention_mask.dims[1],a=BigInt(0);for(let e=0;e<s.attention_mask.dims[1];++e){let i=t+e;0n===s.attention_mask.data[i]?n[i]=BigInt(1):(n[i]=a,a+=s.attention_mask.data[i])}}s.position_ids=new r.es("int64",n,s.attention_mask.dims),t&&(s.position_ids=s.position_ids.slice(null,-1).unsqueeze_(-1))}function M(e){return new r.es("bool",[e],[1])}async function k(e,s){let{encoder_outputs:t,past_key_values:n}=s;t||(t=(await C(e,s)).last_hidden_state);let a={input_ids:s.decoder_input_ids,encoder_hidden_states:t},i=!!n;e.decoder_merged_session.inputNames.includes("use_cache_branch")&&(a.use_cache_branch=M(i)),e.decoder_merged_session.inputNames.includes("encoder_attention_mask")&&(a.encoder_attention_mask=s.attention_mask),y(e.decoder_merged_session,a,i),e.addPastKeyValues(a,n);let o=await w(e.decoder_merged_session,a);return new ih({logits:o.logits,past_key_values:n=e.getPastKeyValues(o,n),encoder_outputs:t,...e.getAttentions(o)})}function b(e,s,t,n){let a=[],i=0,o=e.requires_attention_mask??!0,l=t.decoder_input_ids??t.decoder_start_token_id??t.bos_token_id??t.eos_token_id;for(let t of(l instanceof r.es?l=l.tolist().flat():Array.isArray(l)||(l=[l]),s)){t.dims=[1,...t.dims];let s={inputs:t,encoder_outputs:null,prev_model_outputs:null,output_token_ids:l,done:!1,score:0,id:i++};o&&(s.attention_mask=x(e,t)),a.push(s)}return a}async function v(e,s){let t=e.main_input_name,n=s.output_token_ids;s.prev_model_outputs&&(n=n.slice(-1));let a={[t]:s.inputs,decoder_input_ids:function(e){if(e instanceof r.es)return e;if(0===e.length)throw Error("items must be non-empty");if(!Array.isArray(e[0]))return new r.es("int64",BigInt64Array.from(e.map(e=>BigInt(e))),[1,e.length]);if(e.some(s=>s.length!==e[0].length))throw Error("Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' and/or 'truncation=True' to have batched tensors with the same length.");return new r.es("int64",BigInt64Array.from(e.flat().map(e=>BigInt(e))),[e.length,e[0].length])}(n),encoder_outputs:s.encoder_outputs,past_key_values:s.prev_model_outputs?.past_key_values};s.attention_mask&&(a.attention_mask=s.attention_mask);let i=await e.forward(a);return s.prev_model_outputs=i,s.encoder_outputs=i.encoder_outputs,i}function S(e,s){e.output_token_ids=[...e.output_token_ids,s]}async function C(e,s){let t=Object.create(null);for(let n of e.session.inputNames)t[n]=s[n];return e.session.inputNames.includes("token_type_ids")&&!t.token_type_ids&&(t.token_type_ids=new r.es("int64",new BigInt64Array(t.input_ids.data.length),t.input_ids.dims)),await w(e.session,t)}async function F(e,s){let{input_ids:t,past_key_values:n,attention_mask:a}=s,i={input_ids:t,attention_mask:a??x(e,t)},o=!!n;e.session.inputNames.includes("use_cache_branch")&&(i.use_cache_branch=M(o)),y(e.session,i,o),e.addPastKeyValues(i,n);let r=await w(e.session,i);return{logits:r.logits,past_key_values:n=e.getPastKeyValues(r,n)}}function L(e,s,t,n,a){let i=[],o=0;for(let t of s){let s,r=t.tolist().map(Number);t.dims=[1,...t.dims],a?(s=a[o]).dims=[1,...s.dims]:s=x(e,t);let l={input:t,model_input_ids:t,attention_mask:s,prev_model_outputs:null,output_token_ids:r,num_output_tokens:n,done:!1,score:0,id:o++};i.push(l)}return i}async function A(e,s){let t=new BigInt64Array(s.output_token_ids.length).fill(1n),n={input_ids:s.model_input_ids,attention_mask:new r.es("int64",t,[1,t.length]),past_key_values:s.prev_model_outputs?.past_key_values},a=await e.forward(n);return s.prev_model_outputs=a,a}function P(e,s){e.output_token_ids=[...e.output_token_ids,s],e.model_input_ids=new r.es("int64",[BigInt(s)],[1,1])}class E extends a.Ag{main_input_name="input_ids";constructor(e,s){super(),this.config=e,this.session=s;let t=f.get(this.constructor),n=m.get(t);this.can_generate=!1,this._runBeam=null,this._getStartBeams=null,this._updateBeam=null,this._forward=null,n===h.DecoderOnly?(this.can_generate=!0,this._runBeam=A,this._getStartBeams=L,this._updateBeam=P,this._forward=F):n===h.Seq2Seq||n===h.Vision2Seq?(this.can_generate=!0,this._runBeam=v,this._getStartBeams=b,this._updateBeam=S,this._forward=k):(h.EncoderDecoder,this._forward=C)}async dispose(){let e=[];for(let s of Object.keys(this)){let t=this[s];t instanceof d&&e.push(t.handler.dispose())}return await Promise.all(e)}static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:o=null,local_files_only:r=!1,revision:l="main",model_file_name:c=null}={}){let d,_={quantized:s,progress_callback:t,config:a,cache_dir:o,local_files_only:r,revision:l,model_file_name:c},u=f.get(this),p=m.get(u);return p===h.DecoderOnly?d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.Seq2Seq||p===h.Vision2Seq?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_),(0,i.yM)(e,"generation_config.json",!1,_)]):p===h.MaskGeneration?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"vision_encoder",_),g(e,"prompt_encoder_mask_decoder",_)]):p===h.EncoderDecoder?d=await Promise.all([n.z.from_pretrained(e,_),g(e,"encoder_model",_),g(e,"decoder_model_merged",_)]):(p!==h.EncoderOnly&&console.warn(`Model type for '${u??a?.model_type}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`),d=await Promise.all([n.z.from_pretrained(e,_),g(e,_.model_file_name??"model",_)])),new this(...d)}async _call(e){return await this.forward(e)}async forward(e){return await this._forward(this,e)}_get_logits_processor(e,s,t=null){let n=new o.Jm;if(null!==e.repetition_penalty&&1!==e.repetition_penalty&&n.push(new o.Jj(e.repetition_penalty)),null!==e.no_repeat_ngram_size&&e.no_repeat_ngram_size>0&&n.push(new o.jF(e.no_repeat_ngram_size)),null!==e.bad_words_ids&&n.push(new o.AE(e.bad_words_ids,e.eos_token_id)),null!==e.min_length&&null!==e.eos_token_id&&e.min_length>0&&n.push(new o.ez(e.min_length,e.eos_token_id)),null!==e.min_new_tokens&&null!==e.eos_token_id&&e.min_new_tokens>0&&n.push(new o.CJ(s,e.min_new_tokens,e.eos_token_id)),null!==e.forced_bos_token_id&&n.push(new o.C9(e.forced_bos_token_id)),null!==e.forced_eos_token_id&&n.push(new o.dZ(e.max_length,e.forced_eos_token_id)),null!==e.begin_suppress_tokens){let t=s>1||null===e.forced_bos_token_id?s:s+1;null!==e.forced_decoder_ids&&(t+=e.forced_decoder_ids[e.forced_decoder_ids.length-1][0]),n.push(new o.GU(e.begin_suppress_tokens,t))}return null!==e.forced_decoder_ids&&n.push(new o.E(e.forced_decoder_ids)),null!==t&&n.extend(t),n}_get_generation_config(e){let s=new o.aP(this.config);return"generation_config"in this&&Object.assign(s,this.generation_config),null!==e&&Object.assign(s,e),s}async generate(e,s=null,t=null,{inputs_attention_mask:n=null}={}){let i;if(!this.can_generate){let e=f.get(this.constructor),s=`The current model class (${e}) is not compatible with \`.generate()\`, as it doesn't have a language model head.`,t=this.config.model_type,n=aT.get(t)??aB.get(t)??aL.get(t)??aq.get(t);throw n&&(s+=` Please use the following class instead: '${n[0]}'`),Error(s)}if(!(e instanceof r.es)&&!(0,a.fU)(e)&&!Array.isArray(e))throw Error(`\`inputs\` must be a Tensor, TypedArray, or Array, but is "${e.constructor.name}".`);if(this.config.is_encoder_decoder)i=0;else if(0===(i=e instanceof r.es?e.dims.at(-1):e.length))throw Error("Must supply a non-empty array of input token ids.");s=this._get_generation_config(s),t=t??new o.Jm,t=this._get_logits_processor(s,i,t);let l=s.eos_token_id;null===l||Array.isArray(l)||(l=[l]);let c=1,d=1+(s.max_new_tokens??1/0),_=Number.isInteger(s.max_length)&&(s.max_new_tokens??null)===null,u=o.Z4.getSampler(s),h=this.getStartBeams(e,s,c,n);for(;h.some(e=>!e.done)&&c<d;){let e=[];for(let n of h){if(n.done){e.push(n);continue}if(_&&n.output_token_ids.length>=s.max_length){n.done=!0,e.push(n);continue}let a=await this.runBeam(n);s.output_attentions&&this.addAttentionsToBeam(n,a),s.output_scores;let i=a.logits.slice(null,-1,null);for(let[s,a]of(t(n.output_token_ids,i),u(i))){let t={...n};this.updateBeam(t,s),t.score+=a,l&&l.includes(s)&&(t.done=!0),e.push(t)}}++c,h=(e=this.groupBeams(e).map(e=>e.sort((e,s)=>s.score-e.score).slice(0,s.num_beams))).flat(),s.callback_function&&s.callback_function(h)}let m=this.groupBeams(h),p=e=>m.map(t=>s.num_return_sequences>1?t.slice(0,s.num_return_sequences).map(s=>s[e]):[t[0][e]]).flat(),g=p("output_token_ids");return s.return_dict_in_generate?{sequences:g,decoder_attentions:p("decoder_attentions"),cross_attentions:p("cross_attentions")}:g}addAttentionsToBeam(e,s){if(this.config.is_encoder_decoder){if(!s.cross_attentions||0===s.cross_attentions.length)throw Error("`output_attentions` is true, but the model did not produce cross-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.cross_attentions||(e.cross_attentions=[]),e.cross_attentions.push(s.cross_attentions)}if(!s.decoder_attentions||0===s.decoder_attentions.length)throw Error("`output_attentions` is true, but the model did not produce decoder-attentions. This is most likely because the model was not exported with `output_attentions=True`.");e.decoder_attentions||(e.decoder_attentions=[]),e.decoder_attentions.push(s.decoder_attentions)}groupBeams(e){let s=Object.create(null);for(let t of e)void 0===s[t.id]?s[t.id]=[t]:s[t.id].push(t);return Object.values(s)}getPastKeyValues(e,s){let t=Object.create(null);for(let n in e)if(n.startsWith("present")){let a=n.replace("present","past_key_values");s&&n.includes("encoder")?t[a]=s[a]:t[a]=e[n]}return t}getAttentions(e){let s=Object.create(null);for(let t of["cross_attentions","decoder_attentions"]){let n=[];for(let s in e)s.startsWith(t)&&(n[s.split(".").pop()]=e[s]);s[t]=n}return s}addPastKeyValues(e,s){if(s)Object.assign(e,s);else if(this.config.is_encoder_decoder&&(this.add_encoder_pkv??!0)){let s=[1,this.num_encoder_heads,0,this.encoder_dim_kv],t=[1,this.num_decoder_heads,0,this.decoder_dim_kv];for(let n=0;n<this.num_decoder_layers;++n)e[`past_key_values.${n}.encoder.key`]=new r.es("float32",[],s),e[`past_key_values.${n}.encoder.value`]=new r.es("float32",[],s),e[`past_key_values.${n}.decoder.key`]=new r.es("float32",[],t),e[`past_key_values.${n}.decoder.value`]=new r.es("float32",[],t)}else if("falcon"===this.config.model_type){let s=[1*this.num_heads,0,this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key`]=new r.es("float32",[],s),e[`past_key_values.${t}.value`]=new r.es("float32",[],s)}else if(this.config.multi_query){let s=[1*this.num_heads,0,2*this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key_value`]=new r.es("float32",[],s)}else if("bloom"===this.config.model_type){let s=[1*this.num_heads,this.dim_kv,0],t=[1*this.num_heads,0,this.dim_kv];for(let n=0;n<this.num_layers;++n)e[`past_key_values.${n}.key`]=new r.es("float32",[],s),e[`past_key_values.${n}.value`]=new r.es("float32",[],t)}else{let s=[1,this.num_heads,0,this.dim_kv];for(let t=0;t<this.num_layers;++t)e[`past_key_values.${t}.key`]=new r.es("float32",[],s),e[`past_key_values.${t}.value`]=new r.es("float32",[],s)}}getStartBeams(e,s,t,n){return this._getStartBeams(this,e,s,t,n)}async runBeam(e){return await this._runBeam(this,e)}updateBeam(e,s){return this._updateBeam(e,s)}}class O{}class B extends E{}class T extends B{}class D extends B{async _call(e){return new iw(await super._call(e))}}class I extends B{async _call(e){return new im(await super._call(e))}}class q extends B{async _call(e){return new ig(await super._call(e))}}class N extends B{async _call(e){return new ix(await super._call(e))}}class G extends E{}class V extends G{}class z extends E{}class j extends z{}class $ extends z{async _call(e){return new iw(await super._call(e))}}class W extends z{async _call(e){return new im(await super._call(e))}}class R extends z{async _call(e){return new ig(await super._call(e))}}class Q extends z{async _call(e){return new ix(await super._call(e))}}class U extends E{}class X extends U{}class K extends U{async _call(e){return new iw(await super._call(e))}}class H extends U{async _call(e){return new im(await super._call(e))}}class J extends U{async _call(e){return new ig(await super._call(e))}}class Z extends U{async _call(e){return new ix(await super._call(e))}}class Y extends E{}class ee extends Y{}class es extends Y{async _call(e){return new iw(await super._call(e))}}class et extends Y{async _call(e){return new im(await super._call(e))}}class en extends Y{async _call(e){return new ig(await super._call(e))}}class ea extends Y{async _call(e){return new ix(await super._call(e))}}class ei extends E{}class eo extends ei{}class er extends ei{async _call(e){return new iw(await super._call(e))}}class el extends ei{async _call(e){return new im(await super._call(e))}}class ec extends ei{async _call(e){return new ig(await super._call(e))}}class ed extends ei{async _call(e){return new ix(await super._call(e))}}class e_ extends E{}class eu extends e_{}class eh extends e_{async _call(e){return new iw(await super._call(e))}}class em extends e_{async _call(e){return new im(await super._call(e))}}class ep extends e_{async _call(e){return new ig(await super._call(e))}}class ef extends e_{async _call(e){return new ix(await super._call(e))}}class eg extends E{}class ew extends eg{}class ex extends eg{async _call(e){return new iw(await super._call(e))}}class ey extends eg{async _call(e){return new im(await super._call(e))}}class eM extends eg{async _call(e){return new ig(await super._call(e))}}class ek extends eg{async _call(e){return new ix(await super._call(e))}}class eb extends E{}class ev extends eb{}class eS extends eb{async _call(e){return new im(await super._call(e))}}class eC extends eb{async _call(e){return new ig(await super._call(e))}}class eF extends eb{async _call(e){return new ix(await super._call(e))}}class eL extends eb{async _call(e){return new iw(await super._call(e))}}class eA extends E{}class eP extends eA{}class eE extends eA{async _call(e){return new iw(await super._call(e))}}class eO extends eA{async _call(e){return new im(await super._call(e))}}class eB extends eA{async _call(e){return new ig(await super._call(e))}}class eT extends E{}class eD extends eT{}class eI extends eT{async _call(e){return new iw(await super._call(e))}}class eq extends eT{async _call(e){return new im(await super._call(e))}}class eN extends eT{async _call(e){return new ix(await super._call(e))}}class eG extends E{}class eV extends eG{}class ez extends eG{async _call(e){return new iw(await super._call(e))}}class ej extends eG{async _call(e){return new im(await super._call(e))}}class e$ extends eG{async _call(e){return new ig(await super._call(e))}}class eW extends eG{async _call(e){return new ix(await super._call(e))}}class eR extends E{}class eQ extends eR{}class eU extends eR{async _call(e){return new iw(await super._call(e))}}class eX extends eR{async _call(e){return new im(await super._call(e))}}class eK extends eR{async _call(e){return new ix(await super._call(e))}}class eH extends E{}class eJ extends eH{}class eZ extends eH{async _call(e){return new im(await super._call(e))}}class eY extends eH{async _call(e){return new ix(await super._call(e))}}class e2 extends eH{async _call(e){return new iw(await super._call(e))}}class e0 extends E{}class e1 extends e0{}class e4 extends e0{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class e3 extends E{}class e5 extends e3{}class e6 extends e3{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class e7 extends E{}class e9 extends e7{}class e8 extends e7{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.num_decoder_layers,this.num_decoder_heads=this.config.num_heads,this.decoder_dim_kv=this.config.d_kv,this.num_encoder_layers=this.config.num_layers,this.num_encoder_heads=this.config.num_heads,this.encoder_dim_kv=this.config.d_kv}}class se extends E{}class ss extends se{}class st extends se{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sn extends se{async _call(e){return new im(await super._call(e))}}class sa extends E{}class si extends sa{}class so extends sa{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sr extends sa{async _call(e){return new im(await super._call(e))}}class sl extends sa{constructor(e,s,t){super(e,s),this.generation_config=t,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sc extends E{}class sd extends sc{}class s_ extends sc{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class su extends E{}class sh extends su{}class sm extends su{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class sp extends E{}class sf extends sp{}class sg extends sp{async _call(e){return new iw(await super._call(e))}}class sw extends sp{async _call(e){return new im(await super._call(e))}}class sx extends sp{async _call(e){return new ig(await super._call(e))}}class sy extends sp{async _call(e){return new ix(await super._call(e))}}class sM extends E{}class sk extends sM{}class sb extends sM{async _call(e){return new iw(await super._call(e))}}class sv extends sM{async _call(e){return new im(await super._call(e))}}class sS extends sM{async _call(e){return new ig(await super._call(e))}}class sC extends sM{async _call(e){return new ix(await super._call(e))}}class sF extends E{}class sL extends sF{}class sA extends sF{async _call(e){return new iw(await super._call(e))}}class sP extends sF{async _call(e){return new im(await super._call(e))}}class sE extends sF{async _call(e){return new ig(await super._call(e))}}class sO extends sF{async _call(e){return new ix(await super._call(e))}}class sB extends E{}class sT extends sB{}class sD extends sB{}class sI extends E{}class sq extends sI{}class sN extends sI{requires_attention_mask=!1;main_input_name="input_features";constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}async generate(e,s=null,t=null){if(s=this._get_generation_config(s),s.return_timestamps??=!1,s.return_timestamps&&(t=[new o.Pg(s)]),s.return_token_timestamps&&(s.output_attentions=!0,s.return_dict_in_generate=!0,"translate"===s.task&&console.warn("Token-level timestamps may not be reliable for task 'translate'."),!s.alignment_heads))throw Error("Model generation config has no `alignment_heads`, token-level timestamps not available. See https://gist.github.com/hollance/42e32852f24243b748ae6bc1f985b13a on how to add this property to the generation config.");let n=await super.generate(e,s,t);return s.return_token_timestamps&&s.alignment_heads&&(n.token_timestamps=this._extract_token_timestamps(n,s.alignment_heads,s.num_frames)),n}_extract_token_timestamps(e,s,t=null,n=.02){if(!e.cross_attentions)throw Error("Model outputs must contain cross attentions to extract timestamps. This is most likely because the model was not exported with `output_attentions=True`.");let i=this.config.median_filter_width;void 0===i&&(console.warn("Model config has no `median_filter_width`, using default value of 7."),i=7);let o=e.cross_attentions.map(e=>{let n=Array.from({length:this.config.decoder_layers},(s,t)=>(0,r.d3)(e.map(e=>e[t]),2)),a=(0,r.kn)(s.map(([e,s])=>t?n[e].slice(null,s,null,[0,t]):n[e].slice(null,s)));a=a.transpose(1,0,2,3);let[o,l]=(0,r.f3)(a,-2,0,!0),d=a.clone();for(let e=0;e<d.dims[0];++e){let s=d[e];for(let t=0;t<s.dims[0];++t){let n=s[t],a=o[e][t][0],r=l[e][t][0];for(let e=0;e<n.dims[0];++e){let s=n[e];for(let e=0;e<s.data.length;++e)s.data[e]=(s.data[e]-r.data[e])/a.data[e];s.data.set((0,c.qCb)(s.data,i))}}}return(0,r.J6)(d,1)}),l=[e.sequences.length,e.sequences[0].length],d=new r.es("float32",new Float32Array(l[0]*l[1]),l);for(let e=0;e<l[0];++e){let s=o[e].neg().squeeze_(0),[t,i]=(0,r.Ks)(s),l=Array.from({length:t.length-1},(e,s)=>t[s+1]-t[s]),c=(0,a.eG)([1],l).map(e=>!!e),_=[];for(let e=0;e<c.length;++e)c[e]&&_.push(i[e]*n);d[e].data.set(_,1)}return d}}class sG extends E{main_input_name="pixel_values";constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n;let a=this.config.encoder,i=this.config.decoder,o=a.model_type;(aS.get(o)??aC.get(o))||console.warn(`Model type for encoder '${o}' not found, assuming encoder-only architecture. Please report this at https://github.com/xenova/transformers.js/issues/new/choose.`);let r=aT.get(i.model_type);if(!r)throw Error(`Unable to construct \`VisionEncoderDecoder\` due to unsupported decoder: "${this.config.decoder.model_type}"`);let l=new r[1](i,t,n);this.add_encoder_pkv="num_decoder_layers"in l,this.add_encoder_pkv?(this.num_decoder_layers=l.num_decoder_layers,this.num_decoder_heads=l.num_decoder_heads,this.decoder_dim_kv=l.decoder_dim_kv,this.num_encoder_layers=l.num_encoder_layers,this.num_encoder_heads=l.num_encoder_heads,this.encoder_dim_kv=l.encoder_dim_kv):(this.num_layers=l.num_layers,this.num_heads=l.num_heads,this.dim_kv=l.dim_kv)}}class sV extends E{}class sz extends sV{}class sj extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class s$ extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="vision_model",super.from_pretrained(e,s)}}class sW extends E{}class sR extends sW{}class sQ extends sW{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class sU extends sV{static async from_pretrained(e,s={}){return s.model_file_name??="vision_model",super.from_pretrained(e,s)}}class sX extends E{}class sK extends sX{}class sH extends E{}class sJ extends sH{}class sZ extends sH{}class sY extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class s2 extends sY{}class s0 extends sY{}class s1 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_heads,this.num_layers=this.config.num_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class s4 extends s1{}class s3 extends s1{}class s5 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class s6 extends s5{}class s7 extends s5{}class s9 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class s8 extends s9{}class te extends s9{}class ts extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class tt extends ts{}class tn extends ts{}class ta extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.n_embd/this.num_heads}}class ti extends ta{}class to extends ta{}class tr extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class tl extends tr{}class tc extends tr{}class td extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads??this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class t_ extends td{}class tu extends td{}class th extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class tm extends th{}class tp extends th{}class tf extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_head,this.num_layers=this.config.n_layer,this.dim_kv=this.config.hidden_size/this.num_heads}}class tg extends tf{}class tw extends tf{}class tx extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.n_heads,this.num_layers=this.config.n_layers,this.dim_kv=this.config.d_model/this.num_heads}}class ty extends tx{}class tM extends tx{}class tk extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class tb extends tk{}class tv extends tk{}class tS extends E{}class tC extends tS{}class tF extends tS{async _call(e){return new im(await super._call(e))}}class tL extends E{}class tA extends tL{async _call(e){return new iM(await super._call(e))}}class tP extends E{}class tE extends tP{}class tO extends tP{async _call(e){return new im(await super._call(e))}}class tB extends E{}class tT extends tB{}class tD extends tB{}class tI extends E{}class tq extends tI{}class tN extends tI{}class tG extends E{}class tV extends tG{}class tz extends tG{async _call(e){return new im(await super._call(e))}}class tj extends E{}class t$ extends tj{}class tW extends tj{async _call(e){return new tQ(await super._call(e))}}class tR extends tj{async _call(e){return new tU(await super._call(e))}}class tQ extends O{constructor({logits:e,pred_boxes:s}){super(),this.logits=e,this.pred_boxes=s}}class tU extends O{constructor({logits:e,pred_boxes:s,pred_masks:t}){super(),this.logits=e,this.pred_boxes=s,this.pred_masks=t}}class tX extends E{}class tK extends tX{}class tH extends tX{async _call(e){return new tJ(await super._call(e))}}class tJ extends tQ{}class tZ extends E{}class tY extends tZ{}class t2 extends tZ{async _call(e){return new im(await super._call(e))}}class t0 extends E{}class t1 extends t0{}class t4 extends t0{async _call(e){return new im(await super._call(e))}}class t3 extends E{}class t5 extends t3{}class t6 extends t3{async _call(e){return new im(await super._call(e))}}class t7 extends E{}class t9 extends t7{}class t8 extends t7{}class ne extends E{}class ns extends ne{}class nt extends ne{}class nn extends E{}class na extends nn{}class ni extends E{}class no extends ni{}class nr extends ni{}class nl extends E{}class nc extends nl{}class nd extends E{}class n_ extends nd{}class nu extends nd{async _call(e){return new im(await super._call(e))}}class nh extends E{}class nm extends nh{}class np extends nh{async _call(e){return new im(await super._call(e))}}class nf extends E{}class ng extends nf{}class nw extends nf{async _call(e){return new im(await super._call(e))}}class nx extends E{}class ny extends nx{}class nM extends nx{async _call(e){return new nk(await super._call(e))}}class nk extends O{constructor({logits:e,pred_boxes:s}){super(),this.logits=e,this.pred_boxes=s}}class nb extends E{}class nv extends nb{constructor(e,s,t){super(e,s),this.prompt_encoder_mask_decoder=t}async get_image_embeddings({pixel_values:e}){return await C(this,{pixel_values:e})}async forward(e){if(e.image_embeddings&&e.image_positional_embeddings||(e={...e,...await this.get_image_embeddings(e)}),!e.input_labels){let s=e.input_points.dims.slice(0,-1),t=s.reduce((e,s)=>e*s,1);e.input_labels=new r.es("int64",new BigInt64Array(t).fill(1n),s)}return await w(this.prompt_encoder_mask_decoder,{input_points:e.input_points,input_labels:e.input_labels,image_embeddings:e.image_embeddings,image_positional_embeddings:e.image_positional_embeddings})}async _call(e){return new nS(await super._call(e))}}class nS extends O{constructor({iou_scores:e,pred_masks:s}){super(),this.iou_scores=e,this.pred_masks=s}}class nC extends E{}class nF extends nC{}class nL extends nC{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nA extends E{}class nP extends nA{}class nE extends nA{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.d_model/this.num_encoder_heads}}class nO extends E{}class nB extends nO{}class nT extends nO{async _call(e){return new iy(await super._call(e))}}class nD extends nO{async _call(e){return new im(await super._call(e))}}class nI extends nO{async _call(e){return new ig(await super._call(e))}}class nq extends E{}class nN extends nq{}class nG extends nq{async _call(e){return new iy(await super._call(e))}}class nV extends nq{async _call(e){return new im(await super._call(e))}}class nz extends E{}class nj extends nz{}class n$ extends nz{async _call(e){return new iy(await super._call(e))}}class nW extends nz{async _call(e){return new im(await super._call(e))}}class nR extends nz{async _call(e){return new ig(await super._call(e))}}class nQ extends E{}class nU extends nQ{}class nX extends nQ{async _call(e){return new iy(await super._call(e))}}class nK extends nQ{async _call(e){return new im(await super._call(e))}}class nH extends nO{}class nJ extends nO{async _call(e){return new iy(await super._call(e))}}class nZ extends nO{async _call(e){return new im(await super._call(e))}}class nY extends E{}class n2 extends nY{}class n0 extends nY{async _call(e){return new iy(await super._call(e))}}class n1 extends nY{async _call(e){return new im(await super._call(e))}}class n4 extends nY{async _call(e){return new ip(await super._call(e))}}class n3 extends nY{async _call(e){return new ig(await super._call(e))}}class n5 extends E{}class n6 extends n5{}class n7 extends n5{constructor(e,s,t,n){super(e,s),this.decoder_merged_session=t,this.generation_config=n,this.num_decoder_layers=this.config.decoder_layers,this.num_decoder_heads=this.config.decoder_attention_heads,this.decoder_dim_kv=this.config.hidden_size/this.num_decoder_heads,this.num_encoder_layers=this.config.encoder_layers,this.num_encoder_heads=this.config.encoder_attention_heads,this.encoder_dim_kv=this.config.hidden_size/this.num_encoder_heads}async generate_speech(e,s,{threshold:t=.5,minlenratio:n=0,maxlenratio:a=20,vocoder:i=null}={}){let{encoder_outputs:o,encoder_attention_mask:l}=await C(this,{input_ids:e}),c=o.dims[1]/this.config.reduction_factor,d=Math.floor(c*a),_=Math.floor(c*n),u=this.config.num_mel_bins,h=[],m=null,p=null,f=0;for(;;){++f;let e={use_cache_branch:M(!!p),output_sequence:p?p.output_sequence_out:new r.es("float32",new Float32Array(u),[1,1,u]),encoder_attention_mask:l,speaker_embeddings:s,encoder_hidden_states:o};this.addPastKeyValues(e,m),p=await w(this.decoder_merged_session,e),m=this.getPastKeyValues(p,m);let{prob:n,spectrum:a}=p;if(h.push(a),f>=_&&(Array.from(n.data).filter(e=>e>=t).length>0||f>=d))break}let g=(0,r.d3)(h),{waveform:x}=await w(i.session,{spectrogram:g});return{spectrogram:g,waveform:x}}}class n9 extends E{main_input_name="spectrogram"}class n8 extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_encoder_layers=this.num_decoder_layers=this.config.decoder_layers,this.num_encoder_heads=this.num_decoder_heads=this.config.decoder_attention_heads,this.encoder_dim_kv=this.decoder_dim_kv=this.config.d_model/this.num_decoder_heads}}class ae extends n8{}class as extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class at extends as{}class an extends as{}class aa extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_key_value_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class ai extends aa{}class ao extends aa{}class ar extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.config.num_attention_heads}}class al extends ar{}class ac extends ar{}class ad extends E{}class a_ extends ad{}class au extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="text_model",super.from_pretrained(e,s)}}class ah extends ad{static async from_pretrained(e,s={}){return s.model_file_name??="audio_model",super.from_pretrained(e,s)}}class am extends E{}class ap extends am{async _call(e){return new ik(await super._call(e))}}class af extends E{}class ag extends af{}class aw extends af{}class ax extends E{constructor(e,s,t){super(e,s),this.generation_config=t,this.config.pad_token_id=this.config.eos_token_id,this.num_heads=this.config.num_attention_heads,this.num_layers=this.config.num_hidden_layers,this.dim_kv=this.config.hidden_size/this.num_heads}}class ay extends ax{}class aM extends E{}class ak extends aM{}class ab extends aM{async _call(e){return new im(await super._call(e))}}class av{static MODEL_CLASS_MAPPINGS=null;static BASE_IF_FAIL=!1;static async from_pretrained(e,{quantized:s=!0,progress_callback:t=null,config:a=null,cache_dir:i=null,local_files_only:o=!1,revision:r="main",model_file_name:l=null}={}){let c={quantized:s,progress_callback:t,config:a,cache_dir:i,local_files_only:o,revision:r,model_file_name:l};if(a=await n.z.from_pretrained(e,c),c.config||(c.config=a),!this.MODEL_CLASS_MAPPINGS)throw Error("`MODEL_CLASS_MAPPINGS` not implemented for this type of `AutoClass`: "+this.name);for(let s of this.MODEL_CLASS_MAPPINGS){let t=s.get(a.model_type);if(t)return await t[1].from_pretrained(e,c)}if(this.BASE_IF_FAIL)return console.warn(`Unknown model class "${a.model_type}", attempting to construct from base class.`),await E.from_pretrained(e,c);throw Error(`Unsupported model type: ${a.model_type}`)}}let aS=new Map([["bert",["BertModel",T]],["nomic_bert",["NomicBertModel",V]],["roformer",["RoFormerModel",j]],["electra",["ElectraModel",ee]],["esm",["EsmModel",eP]],["convbert",["ConvBertModel",X]],["camembert",["CamembertModel",eo]],["deberta",["DebertaModel",eu]],["deberta-v2",["DebertaV2Model",ew]],["mpnet",["MPNetModel",eV]],["albert",["AlbertModel",eJ]],["distilbert",["DistilBertModel",ev]],["roberta",["RobertaModel",sf]],["xlm",["XLMModel",sk]],["xlm-roberta",["XLMRobertaModel",sL]],["clap",["ClapModel",a_]],["clip",["CLIPModel",sz]],["clipseg",["CLIPSegModel",sJ]],["chinese_clip",["ChineseCLIPModel",sK]],["siglip",["SiglipModel",sR]],["mobilebert",["MobileBertModel",eD]],["squeezebert",["SqueezeBertModel",eQ]],["wav2vec2",["Wav2Vec2Model",nB]],["wav2vec2-bert",["Wav2Vec2BertModel",nU]],["unispeech",["UniSpeechModel",nN]],["unispeech-sat",["UniSpeechSatModel",nj]],["hubert",["HubertModel",nH]],["wavlm",["WavLMModel",n2]],["audio-spectrogram-transformer",["ASTModel",sT]],["vits",["VitsModel",ap]],["detr",["DetrModel",t$]],["table-transformer",["TableTransformerModel",tK]],["vit",["ViTModel",tC]],["mobilevit",["MobileViTModel",tE]],["owlvit",["OwlViTModel",tT]],["owlv2",["Owlv2Model",tq]],["beit",["BeitModel",tV]],["deit",["DeiTModel",tY]],["convnext",["ConvNextModel",n_]],["convnextv2",["ConvNextV2Model",nm]],["dinov2",["Dinov2Model",ng]],["resnet",["ResNetModel",t1]],["swin",["SwinModel",t5]],["swin2sr",["Swin2SRModel",t9]],["donut-swin",["DonutSwinModel",nc]],["yolos",["YolosModel",ny]],["dpt",["DPTModel",ns]],["glpn",["GLPNModel",no]],["hifigan",["SpeechT5HifiGan",n9]],["efficientnet",["EfficientNetModel",ak]]]),aC=new Map([["t5",["T5Model",e1]],["longt5",["LongT5Model",e5]],["mt5",["MT5Model",e9]],["bart",["BartModel",ss]],["mbart",["MBartModel",si]],["marian",["MarianModel",nF]],["whisper",["WhisperModel",sq]],["m2m_100",["M2M100Model",nP]],["blenderbot",["BlenderbotModel",sd]],["blenderbot-small",["BlenderbotSmallModel",sh]]]),aF=new Map([["bloom",["BloomModel",tg]],["gpt2",["GPT2Model",s2]],["gptj",["GPTJModel",s8]],["gpt_bigcode",["GPTBigCodeModel",tt]],["gpt_neo",["GPTNeoModel",s4]],["gpt_neox",["GPTNeoXModel",s6]],["codegen",["CodeGenModel",ti]],["llama",["LlamaModel",tl]],["qwen2",["Qwen2Model",t_]],["phi",["PhiModel",tm]],["mpt",["MptModel",ty]],["opt",["OPTModel",tb]],["mistral",["MistralModel",at]],["starcoder2",["Starcoder2Model",ai]],["falcon",["FalconModel",al]]]),aL=new Map([["speecht5",["SpeechT5ForSpeechToText",n6]],["whisper",["WhisperForConditionalGeneration",sN]]]),aA=new Map([["speecht5",["SpeechT5ForTextToSpeech",n7]]]),aP=new Map([["vits",["VitsModel",ap]]]),aE=new Map([["bert",["BertForSequenceClassification",I]],["roformer",["RoFormerForSequenceClassification",W]],["electra",["ElectraForSequenceClassification",et]],["esm",["EsmForSequenceClassification",eO]],["convbert",["ConvBertForSequenceClassification",H]],["camembert",["CamembertForSequenceClassification",el]],["deberta",["DebertaForSequenceClassification",em]],["deberta-v2",["DebertaV2ForSequenceClassification",ey]],["mpnet",["MPNetForSequenceClassification",ej]],["albert",["AlbertForSequenceClassification",eZ]],["distilbert",["DistilBertForSequenceClassification",eS]],["roberta",["RobertaForSequenceClassification",sw]],["xlm",["XLMForSequenceClassification",sv]],["xlm-roberta",["XLMRobertaForSequenceClassification",sP]],["bart",["BartForSequenceClassification",sn]],["mbart",["MBartForSequenceClassification",sr]],["mobilebert",["MobileBertForSequenceClassification",eq]],["squeezebert",["SqueezeBertForSequenceClassification",eX]]]),aO=new Map([["bert",["BertForTokenClassification",q]],["roformer",["RoFormerForTokenClassification",R]],["electra",["ElectraForTokenClassification",en]],["esm",["EsmForTokenClassification",eB]],["convbert",["ConvBertForTokenClassification",J]],["camembert",["CamembertForTokenClassification",ec]],["deberta",["DebertaForTokenClassification",ep]],["deberta-v2",["DebertaV2ForTokenClassification",eM]],["mpnet",["MPNetForTokenClassification",e$]],["distilbert",["DistilBertForTokenClassification",eC]],["roberta",["RobertaForTokenClassification",sx]],["xlm",["XLMForTokenClassification",sS]],["xlm-roberta",["XLMRobertaForTokenClassification",sE]]]),aB=new Map([["t5",["T5ForConditionalGeneration",e4]],["longt5",["LongT5ForConditionalGeneration",e6]],["mt5",["MT5ForConditionalGeneration",e8]],["bart",["BartForConditionalGeneration",st]],["mbart",["MBartForConditionalGeneration",so]],["marian",["MarianMTModel",nL]],["m2m_100",["M2M100ForConditionalGeneration",nE]],["blenderbot",["BlenderbotForConditionalGeneration",s_]],["blenderbot-small",["BlenderbotSmallForConditionalGeneration",sm]]]),aT=new Map([["bloom",["BloomForCausalLM",tw]],["gpt2",["GPT2LMHeadModel",s0]],["gptj",["GPTJForCausalLM",te]],["gpt_bigcode",["GPTBigCodeForCausalLM",tn]],["gpt_neo",["GPTNeoForCausalLM",s3]],["gpt_neox",["GPTNeoXForCausalLM",s7]],["codegen",["CodeGenForCausalLM",to]],["llama",["LlamaForCausalLM",tc]],["qwen2",["Qwen2ForCausalLM",tu]],["phi",["PhiForCausalLM",tp]],["mpt",["MptForCausalLM",tM]],["opt",["OPTForCausalLM",tv]],["mbart",["MBartForCausalLM",sl]],["mistral",["MistralForCausalLM",an]],["starcoder2",["Starcoder2ForCausalLM",ao]],["falcon",["FalconForCausalLM",ac]],["trocr",["TrOCRForCausalLM",ae]],["stablelm",["StableLmForCausalLM",ay]]]),aD=new Map([["bert",["BertForMaskedLM",D]],["roformer",["RoFormerForMaskedLM",$]],["electra",["ElectraForMaskedLM",es]],["esm",["EsmForMaskedLM",eE]],["convbert",["ConvBertForMaskedLM",K]],["camembert",["CamembertForMaskedLM",er]],["deberta",["DebertaForMaskedLM",eh]],["deberta-v2",["DebertaV2ForMaskedLM",ex]],["mpnet",["MPNetForMaskedLM",ez]],["albert",["AlbertForMaskedLM",e2]],["distilbert",["DistilBertForMaskedLM",eL]],["roberta",["RobertaForMaskedLM",sg]],["xlm",["XLMWithLMHeadModel",sb]],["xlm-roberta",["XLMRobertaForMaskedLM",sA]],["mobilebert",["MobileBertForMaskedLM",eI]],["squeezebert",["SqueezeBertForMaskedLM",eU]]]),aI=new Map([["bert",["BertForQuestionAnswering",N]],["roformer",["RoFormerForQuestionAnswering",Q]],["electra",["ElectraForQuestionAnswering",ea]],["convbert",["ConvBertForQuestionAnswering",Z]],["camembert",["CamembertForQuestionAnswering",ed]],["deberta",["DebertaForQuestionAnswering",ef]],["deberta-v2",["DebertaV2ForQuestionAnswering",ek]],["mpnet",["MPNetForQuestionAnswering",eW]],["albert",["AlbertForQuestionAnswering",eY]],["distilbert",["DistilBertForQuestionAnswering",eF]],["roberta",["RobertaForQuestionAnswering",sy]],["xlm",["XLMForQuestionAnswering",sC]],["xlm-roberta",["XLMRobertaForQuestionAnswering",sO]],["mobilebert",["MobileBertForQuestionAnswering",eN]],["squeezebert",["SqueezeBertForQuestionAnswering",eK]]]),aq=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aN=new Map([["vision-encoder-decoder",["VisionEncoderDecoderModel",sG]]]),aG=new Map([["vit",["ViTForImageClassification",tF]],["mobilevit",["MobileViTForImageClassification",tO]],["beit",["BeitForImageClassification",tz]],["deit",["DeiTForImageClassification",t2]],["convnext",["ConvNextForImageClassification",nu]],["convnextv2",["ConvNextV2ForImageClassification",np]],["dinov2",["Dinov2ForImageClassification",nw]],["resnet",["ResNetForImageClassification",t4]],["swin",["SwinForImageClassification",t6]],["segformer",["SegformerForImageClassification",ag]],["efficientnet",["EfficientNetForImageClassification",ab]]]),aV=new Map([["detr",["DetrForObjectDetection",tW]],["table-transformer",["TableTransformerForObjectDetection",tH]],["yolos",["YolosForObjectDetection",nM]]]),az=new Map([["owlvit",["OwlViTForObjectDetection",tD]],["owlv2",["Owlv2ForObjectDetection",tN]]]),aj=new Map([["detr",["DetrForSegmentation",tR]],["clipseg",["CLIPSegForImageSegmentation",sZ]]]),a$=new Map([["segformer",["SegformerForSemanticSegmentation",aw]]]),aW=new Map([["sam",["SamModel",nv]]]),aR=new Map([["wav2vec2",["Wav2Vec2ForCTC",nT]],["wav2vec2-bert",["Wav2Vec2BertForCTC",nX]],["unispeech",["UniSpeechForCTC",nG]],["unispeech-sat",["UniSpeechSatForCTC",n$]],["wavlm",["WavLMForCTC",n0]],["hubert",["HubertForCTC",nJ]]]),aQ=new Map([["wav2vec2",["Wav2Vec2ForSequenceClassification",nD]],["wav2vec2-bert",["Wav2Vec2BertForSequenceClassification",nK]],["unispeech",["UniSpeechForSequenceClassification",nV]],["unispeech-sat",["UniSpeechSatForSequenceClassification",nW]],["wavlm",["WavLMForSequenceClassification",n1]],["hubert",["HubertForSequenceClassification",nZ]],["audio-spectrogram-transformer",["ASTForAudioClassification",sD]]]),aU=new Map([["wavlm",["WavLMForXVector",n4]]]),aX=new Map([["unispeech-sat",["UniSpeechSatForAudioFrameClassification",nR]],["wavlm",["WavLMForAudioFrameClassification",n3]],["wav2vec2",["Wav2Vec2ForAudioFrameClassification",nI]]]),aK=new Map([["vitmatte",["VitMatteForImageMatting",tA]]]),aH=new Map([["swin2sr",["Swin2SRForImageSuperResolution",t8]]]),aJ=new Map([["dpt",["DPTForDepthEstimation",nt]],["depth_anything",["DepthAnythingForDepthEstimation",na]],["glpn",["GLPNForDepthEstimation",nr]]]),aZ=new Map([["clip",["CLIPVisionModelWithProjection",s$]],["siglip",["SiglipVisionModel",sU]]]),aY=[[aS,h.EncoderOnly],[aC,h.EncoderDecoder],[aF,h.DecoderOnly],[aE,h.EncoderOnly],[aO,h.EncoderOnly],[aB,h.Seq2Seq],[aL,h.Seq2Seq],[aT,h.DecoderOnly],[aD,h.EncoderOnly],[aI,h.EncoderOnly],[aq,h.Vision2Seq],[aG,h.EncoderOnly],[aj,h.EncoderOnly],[a$,h.EncoderOnly],[aK,h.EncoderOnly],[aH,h.EncoderOnly],[aJ,h.EncoderOnly],[aV,h.EncoderOnly],[az,h.EncoderOnly],[aW,h.MaskGeneration],[aR,h.EncoderOnly],[aQ,h.EncoderOnly],[aA,h.Seq2Seq],[aP,h.EncoderOnly],[aU,h.EncoderOnly],[aX,h.EncoderOnly],[aZ,h.EncoderOnly]];for(let[e,s]of aY)for(let[t,n]of e.values())m.set(t,s),f.set(n,t),p.set(t,n);for(let[e,s,t]of[["CLIPTextModelWithProjection",sj,h.EncoderOnly],["SiglipTextModel",sQ,h.EncoderOnly],["ClapTextModelWithProjection",au,h.EncoderOnly],["ClapAudioModelWithProjection",ah,h.EncoderOnly]])m.set(e,t),f.set(s,e),p.set(e,s);class a2 extends av{static MODEL_CLASS_MAPPINGS=aY.map(e=>e[0]);static BASE_IF_FAIL=!0}class a0 extends av{static MODEL_CLASS_MAPPINGS=[aE]}class a1 extends av{static MODEL_CLASS_MAPPINGS=[aO]}class a4 extends av{static MODEL_CLASS_MAPPINGS=[aB]}class a3 extends av{static MODEL_CLASS_MAPPINGS=[aL]}class a5 extends av{static MODEL_CLASS_MAPPINGS=[aA]}class a6 extends av{static MODEL_CLASS_MAPPINGS=[aP]}class a7 extends av{static MODEL_CLASS_MAPPINGS=[aT]}class a9 extends av{static MODEL_CLASS_MAPPINGS=[aD]}class a8 extends av{static MODEL_CLASS_MAPPINGS=[aI]}class ie extends av{static MODEL_CLASS_MAPPINGS=[aq]}class is extends av{static MODEL_CLASS_MAPPINGS=[aG]}class it extends av{static MODEL_CLASS_MAPPINGS=[aj]}class ia extends av{static MODEL_CLASS_MAPPINGS=[a$]}class ii extends av{static MODEL_CLASS_MAPPINGS=[aV]}class io extends av{static MODEL_CLASS_MAPPINGS=[az]}class ir extends av{static MODEL_CLASS_MAPPINGS=[aR]}class il extends av{static MODEL_CLASS_MAPPINGS=[aQ]}class ic extends av{static MODEL_CLASS_MAPPINGS=[aN]}class id extends av{static MODEL_CLASS_MAPPINGS=[aH]}class i_ extends av{static MODEL_CLASS_MAPPINGS=[aJ]}class iu extends av{static MODEL_CLASS_MAPPINGS=[aZ]}class ih extends O{constructor({logits:e,past_key_values:s,encoder_outputs:t,decoder_attentions:n=null,cross_attentions:a=null}){super(),this.logits=e,this.past_key_values=s,this.encoder_outputs=t,this.decoder_attentions=n,this.cross_attentions=a}}class im extends O{constructor({logits:e}){super(),this.logits=e}}class ip extends O{constructor({logits:e,embeddings:s}){super(),this.logits=e,this.embeddings=s}}class ig extends O{constructor({logits:e}){super(),this.logits=e}}class iw extends O{constructor({logits:e}){super(),this.logits=e}}class ix extends O{constructor({start_logits:e,end_logits:s}){super(),this.start_logits=e,this.end_logits=s}}class iy extends O{constructor({logits:e}){super(),this.logits=e}}class iM extends O{constructor({alphas:e}){super(),this.alphas=e}}class ik extends O{constructor({waveform:e,spectrogram:s}){super(),this.waveform=e,this.spectrogram=s}}}}]);
 
 
_next/static/chunks/{432.34b698d3db09a44a.js → 881.edac2d034d19d100.js} RENAMED
@@ -1 +1 @@
1
- !function(){var t,e,n,r,o,i,u,c,a={495:function(){},7147:function(){},1418:function(){},8741:function(){},319:function(){},8386:function(){},3342:function(){},6497:function(t,e,n){"use strict";var r=n(9078);class o{static async getInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.instance||(this.instance=(0,r.EUT)(this.task,this.model,{progress_callback:t})),this.instance}}o.task="translation",o.model="Xenova/nllb-200-distilled-600M",self.addEventListener("message",async t=>{let e=await o.getInstance(t=>{self.postMessage(t)}),n=await e(t.data.text,{tgt_lang:t.data.tgt_lang,src_lang:t.data.src_lang,callback_function:t=>{self.postMessage({status:"update",output:e.tokenizer.decode(t[0].output_token_ids,{skip_special_tokens:!0})})}});self.postMessage({status:"complete",output:n})})}},f={};function s(t){var e=f[t];if(void 0!==e)return e.exports;var n=f[t]={exports:{}},r=!0;try{a[t](n,n.exports,s),r=!1}finally{r&&delete f[t]}return n.exports}s.m=a,s.x=function(){var t=s.O(void 0,[165,132,15,413],function(){return s(6497)});return s.O(t)},t=[],s.O=function(e,n,r,o){if(n){o=o||0;for(var i=t.length;i>0&&t[i-1][2]>o;i--)t[i]=t[i-1];t[i]=[n,r,o];return}for(var u=1/0,i=0;i<t.length;i++){for(var n=t[i][0],r=t[i][1],o=t[i][2],c=!0,a=0;a<n.length;a++)u>=o&&Object.keys(s.O).every(function(t){return s.O[t](n[a])})?n.splice(a--,1):(c=!1,o<u&&(u=o));if(c){t.splice(i--,1);var f=r();void 0!==f&&(e=f)}}return e},n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},s.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var o=Object.create(null);s.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(e){i[e]=function(){return t[e]}});return i.default=function(){return t},s.d(o,i),o},s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce(function(e,n){return s.f[n](t,e),e},[]))},s.u=function(t){return"static/chunks/"+(({15:"b2db8554",132:"6139e184",165:"590caa2a"})[t]||t)+"."+({15:"2f90d90ec938bc93",132:"ec466d5482164223",165:"699039c37022246b",413:"744619bdd7ea9098"})[t]+".js"},s.miniCssF=function(t){},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.tt=function(){return void 0===r&&(r={createScriptURL:function(t){return t}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r},s.tu=function(t){return s.tt().createScriptURL(t)},s.p="/_next/",o={432:1},s.f.i=function(t,e){o[t]||importScripts(s.tu(s.p+s.u(t)))},u=(i=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(i),i.push=function(t){var e=t[0],n=t[1],r=t[2];for(var i in n)s.o(n,i)&&(s.m[i]=n[i]);for(r&&r(s);e.length;)o[e.pop()]=1;u(t)},c=s.x,s.x=function(){return Promise.all([165,132,15,413].map(s.e,s)).then(c)},_N_E=s.x()}();
 
1
+ !function(){var t,e,n,r,o,i,u,c,a={495:function(){},7147:function(){},1418:function(){},8741:function(){},319:function(){},8386:function(){},3342:function(){},8795:function(t,e,n){"use strict";var r=n(9078);class o{static async getInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.instance||(this.instance=(0,r.EUT)(this.task,this.model,{progress_callback:t})),this.instance}}o.task="translation",o.model="Xenova/nllb-200-distilled-600M",self.addEventListener("message",async t=>{let e=await o.getInstance(t=>{self.postMessage(t)}),n=await e(t.data.text,{tgt_lang:t.data.tgt_lang,src_lang:t.data.src_lang,callback_function:t=>{self.postMessage({status:"update",output:e.tokenizer.decode(t[0].output_token_ids,{skip_special_tokens:!0})})}});self.postMessage({status:"complete",output:n})})}},s={};function f(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}},r=!0;try{a[t](n,n.exports,f),r=!1}finally{r&&delete s[t]}return n.exports}f.m=a,f.x=function(){var t=f.O(void 0,[165,132,15,413],function(){return f(8795)});return f.O(t)},t=[],f.O=function(e,n,r,o){if(n){o=o||0;for(var i=t.length;i>0&&t[i-1][2]>o;i--)t[i]=t[i-1];t[i]=[n,r,o];return}for(var u=1/0,i=0;i<t.length;i++){for(var n=t[i][0],r=t[i][1],o=t[i][2],c=!0,a=0;a<n.length;a++)u>=o&&Object.keys(f.O).every(function(t){return f.O[t](n[a])})?n.splice(a--,1):(c=!1,o<u&&(u=o));if(c){t.splice(i--,1);var s=r();void 0!==s&&(e=s)}}return e},n=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},f.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var o=Object.create(null);f.r(o);var i={};e=e||[null,n({}),n([]),n(n)];for(var u=2&r&&t;"object"==typeof u&&!~e.indexOf(u);u=n(u))Object.getOwnPropertyNames(u).forEach(function(e){i[e]=function(){return t[e]}});return i.default=function(){return t},f.d(o,i),o},f.d=function(t,e){for(var n in e)f.o(e,n)&&!f.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},f.f={},f.e=function(t){return Promise.all(Object.keys(f.f).reduce(function(e,n){return f.f[n](t,e),e},[]))},f.u=function(t){return"static/chunks/"+(({15:"b2db8554",132:"6139e184",165:"590caa2a"})[t]||t)+"."+({15:"2f90d90ec938bc93",132:"386a648ad105fc36",165:"d521cb8a83d5d957",413:"c625d8cd4651c113"})[t]+".js"},f.miniCssF=function(t){},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.tt=function(){return void 0===r&&(r={createScriptURL:function(t){return t}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r},f.tu=function(t){return f.tt().createScriptURL(t)},f.p="/_next/",o={881:1},f.f.i=function(t,e){o[t]||importScripts(f.tu(f.p+f.u(t)))},u=(i=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(i),i.push=function(t){var e=t[0],n=t[1],r=t[2];for(var i in n)f.o(n,i)&&(f.m[i]=n[i]);for(r&&r(f);e.length;)o[e.pop()]=1;u(t)},c=f.x,f.x=function(){return Promise.all([165,132,15,413].map(f.e,f)).then(c)},_N_E=f.x()}();
_next/static/chunks/946-310f6d0c4f8124d5.js DELETED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/app/_not-found/{page-3aa23121d293e5c8.js → page-0d80861c700ec4be.js} RENAMED
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{7589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(5457)}])},5457:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(1609);let i=n(2281);n(2265);let o={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"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{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)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,190,744],function(){return e(e.s=7589)}),_N_E=e.O()}]);
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{7589:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(5457)}])},5457:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(9920);let i=n(7437);n(2265);let o={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"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{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)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[971,190,744],function(){return e(e.s=7589)}),_N_E=e.O()}]);
_next/static/chunks/app/layout-0e0c053c92ad2f81.js DELETED
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{3730:function(a,n,e){Promise.resolve().then(e.bind(e,2944)),Promise.resolve().then(e.bind(e,2981))},2981:function(a,n,e){"use strict";e.d(n,{default:function(){return g}});var t=e(2281),i=e(6441),r=e(9010),s=e(1542),_=e(8462),u=e(6463),L=e(20),o=e(8578);let l=(0,e(2024)._)(o.vc);function g(a){let{children:n,...e}=a,[o,g]=(0,r.U)(),h=(0,s.P)(),{scheme:c}=(0,i.fl)();return(0,u.useServerInsertedHTML)(()=>(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:l.getNewCSS({exclude:"design-system"})}})),(0,t.jsx)(_.G,{onChangeTheme:g,children:(0,t.jsx)(L.r,{config:l,defaultTheme:"system"===c?h.systemTheme:c,disableInjectCSS:!0,...e,children:n})})}},6441:function(a,n,e){"use strict";e.d(n,{a2:function(){return l},fl:function(){return L},NZ:function(){return c}});var t=e(9099),i=e(9291);let r=new(e(3569)).ai,s={setItem:(a,n)=>r.set(a,n),getItem:a=>{let n=r.getString(a);return null!=n?n:null},removeItem:a=>r.delete(a)},_={scheme:"system"},u=(0,t.Ue)()((0,i.mW)((0,i.tJ)((a,n)=>({..._,toggleScheme:()=>{a({scheme:"dark"===n().scheme?"light":"light"===n().scheme?"system":"dark"})}}),{name:"scheme",storage:(0,i.FL)(()=>s)}),{enabled:!1})),L=()=>u(a=>({scheme:a.scheme,toggleScheme:a.toggleScheme}));var o=e(2844);let l={"Acehnese (Arabic script)":"ace_Arab","Acehnese (Latin script)":"ace_Latn",Afrikaans:"afr_Latn",Akan:"aka_Latn",Amharic:"amh_Ethi",Armenian:"hye_Armn",Assamese:"asm_Beng",Asturian:"ast_Latn",Awadhi:"awa_Deva","Ayacucho Quechua":"quy_Latn",Balinese:"ban_Latn",Bambara:"bam_Latn","Banjar (Arabic script)":"bjn_Arab","Banjar (Latin script)":"bjn_Latn",Bashkir:"bak_Cyrl",Basque:"eus_Latn",Belarusian:"bel_Cyrl",Bemba:"bem_Latn",Bengali:"ben_Beng",Bhojpuri:"bho_Deva",Bosnian:"bos_Latn",Buginese:"bug_Latn",Bulgarian:"bul_Cyrl",Burmese:"mya_Mymr",Catalan:"cat_Latn",Cebuano:"ceb_Latn","Central Atlas Tamazight":"tzm_Tfng","Central Aymara":"ayr_Latn","Central Kanuri (Arabic script)":"knc_Arab","Central Kanuri (Latin script)":"knc_Latn","Central Kurdish":"ckb_Arab",Chhattisgarhi:"hne_Deva","Chinese (Simplified)":"zho_Hans","Chinese (Traditional)":"zho_Hant",Chokwe:"cjk_Latn","Crimean Tatar":"crh_Latn",Croatian:"hrv_Latn",Czech:"ces_Latn",Danish:"dan_Latn",Dari:"prs_Arab",Dutch:"nld_Latn",Dyula:"dyu_Latn",Dzongkha:"dzo_Tibt","Eastern Panjabi":"pan_Guru","Eastern Yiddish":"ydd_Hebr","Egyptian Arabic":"arz_Arab",English:"eng_Latn",Esperanto:"epo_Latn",Estonian:"est_Latn",Ewe:"ewe_Latn",Faroese:"fao_Latn",Fijian:"fij_Latn",Finnish:"fin_Latn",Fon:"fon_Latn",French:"fra_Latn",Friulian:"fur_Latn",Galician:"glg_Latn",Ganda:"lug_Latn",Georgian:"kat_Geor",German:"deu_Latn",Greek:"ell_Grek",Guarani:"grn_Latn",Gujarati:"guj_Gujr","Haitian Creole":"hat_Latn","Halh Mongolian":"khk_Cyrl",Hausa:"hau_Latn",Hebrew:"heb_Hebr",Hindi:"hin_Deva",Hungarian:"hun_Latn",Icelandic:"isl_Latn",Igbo:"ibo_Latn",Ilocano:"ilo_Latn",Indonesian:"ind_Latn",Irish:"gle_Latn",Italian:"ita_Latn",Japanese:"jpn_Jpan",Javanese:"jav_Latn",Jingpho:"kac_Latn",Kabiyè:"kbp_Latn",Kabuverdianu:"kea_Latn",Kabyle:"kab_Latn",Kamba:"kam_Latn",Kannada:"kan_Knda","Kashmiri (Arabic script)":"kas_Arab","Kashmiri (Devanagari script)":"kas_Deva",Kazakh:"kaz_Cyrl",Khmer:"khm_Khmr",Kikongo:"kon_Latn",Kikuyu:"kik_Latn",Kimbundu:"kmb_Latn",Kinyarwanda:"kin_Latn",Korean:"kor_Hang",Kyrgyz:"kir_Cyrl",Lao:"lao_Laoo",Latgalian:"ltg_Latn",Ligurian:"lij_Latn",Limburgish:"lim_Latn",Lingala:"lin_Latn",Lithuanian:"lit_Latn",Lombard:"lmo_Latn","Luba-Kasai":"lua_Latn",Luo:"luo_Latn",Luxembourgish:"ltz_Latn",Macedonian:"mkd_Cyrl",Magahi:"mag_Deva",Maithili:"mai_Deva",Malayalam:"mal_Mlym",Maltese:"mlt_Latn",Maori:"mri_Latn",Marathi:"mar_Deva","Meitei (Bengali script)":"mni_Beng","Mesopotamian Arabic":"acm_Arab","Minangkabau (Arabic script)":"min_Arab","Minangkabau (Latin script)":"min_Latn",Mizo:"lus_Latn","Modern Standard Arabic (Romanized)":"arb_Latn","Modern Standard Arabic":"arb_Arab","Moroccan Arabic":"ary_Arab",Mossi:"mos_Latn","Najdi Arabic":"ars_Arab",Nepali:"npi_Deva","Nigerian Fulfulde":"fuv_Latn","North Azerbaijani":"azj_Latn","North Levantine Arabic":"apc_Arab","Northern Kurdish":"kmr_Latn","Northern Sotho":"nso_Latn","Northern Uzbek":"uzn_Latn","Norwegian Bokm\xe5l":"nob_Latn","Norwegian Nynorsk":"nno_Latn",Nuer:"nus_Latn",Nyanja:"nya_Latn",Occitan:"oci_Latn",Odia:"ory_Orya",Pangasinan:"pag_Latn",Papiamento:"pap_Latn","Plateau Malagasy":"plt_Latn",Polish:"pol_Latn",Portuguese:"por_Latn",Romanian:"ron_Latn",Rundi:"run_Latn",Russian:"rus_Cyrl",Samoan:"smo_Latn",Sango:"sag_Latn",Sanskrit:"san_Deva",Santali:"sat_Olck",Sardinian:"srd_Latn","Scottish Gaelic":"gla_Latn",Serbian:"srp_Cyrl",Shan:"shn_Mymr",Shona:"sna_Latn",Sicilian:"scn_Latn",Silesian:"szl_Latn",Sindhi:"snd_Arab",Sinhala:"sin_Sinh",Slovak:"slk_Latn",Slovenian:"slv_Latn",Somali:"som_Latn","South Azerbaijani":"azb_Arab","South Levantine Arabic":"ajp_Arab","Southern Pashto":"pbt_Arab","Southern Sotho":"sot_Latn","Southwestern Dinka":"dik_Latn",Spanish:"spa_Latn","Standard Latvian":"lvs_Latn","Standard Malay":"zsm_Latn","Standard Tibetan":"bod_Tibt",Sundanese:"sun_Latn",Swahili:"swh_Latn",Swati:"ssw_Latn",Swedish:"swe_Latn",Tagalog:"tgl_Latn",Tajik:"tgk_Cyrl","Tamasheq (Latin script)":"taq_Latn","Tamasheq (Tifinagh script)":"taq_Tfng",Tamil:"tam_Taml",Tatar:"tat_Cyrl","Ta’izzi-Adeni Arabic":"acq_Arab",Telugu:"tel_Telu",Thai:"tha_Thai",Tigrinya:"tir_Ethi","Tok Pisin":"tpi_Latn","Tosk Albanian":"als_Latn",Tsonga:"tso_Latn",Tswana:"tsn_Latn",Tumbuka:"tum_Latn","Tunisian Arabic":"aeb_Arab",Turkish:"tur_Latn",Turkmen:"tuk_Latn",Twi:"twi_Latn",Ukrainian:"ukr_Cyrl",Umbundu:"umb_Latn",Urdu:"urd_Arab",Uyghur:"uig_Arab",Venetian:"vec_Latn",Vietnamese:"vie_Latn",Waray:"war_Latn",Welsh:"cym_Latn","West Central Oromo":"gaz_Latn","Western Persian":"pes_Arab",Wolof:"wol_Latn",Xhosa:"xho_Latn",Yoruba:"yor_Latn","Yue Chinese":"yue_Hant",Zulu:"zul_Latn"},g={ready:!0,disabled:!1,progressItems:[],input:"T\xf4i y\xeau Việt Nam qu\xea hương t\xf4i.",sourceLanguage:"vie_Latn",targetLanguage:"eng_Latn",output:""},h=(0,t.Ue)()((0,i.mW)((0,i.tJ)((0,o.n)(a=>({...g,setDisabled:n=>{a({disabled:n})},setInput:n=>{a({input:n})},setSourceLanguage:n=>{a({sourceLanguage:n})},setTargetLanguage:n=>{a({targetLanguage:n})},onMessageReceived:n=>{switch(n.data.status){case"initiate":a(a=>{a.ready=!1,a.progressItems.push(n.data)});break;case"progress":a(a=>{a.progressItems.find(a=>a.file===n.data.file).progress=n.data.progress});break;case"done":a(a=>{a.progressItems.filter(a=>a.file!==n.data.file)});break;case"ready":a({ready:!0});break;case"update":a({output:n.data.output});break;case"complete":a({disabled:!1})}}})),{name:"translator"}),{enabled:!1})),c=()=>h(a=>({ready:a.ready,disabled:a.disabled,progressItems:a.progressItems,input:a.input,sourceLanguage:a.sourceLanguage,targetLanguage:a.targetLanguage,output:a.output,setDisabled:a.setDisabled,setInput:a.setInput,setSourceLanguage:a.setSourceLanguage,setTargetLanguage:a.setTargetLanguage,onMessageReceived:a.onMessageReceived}))}},function(a){a.O(0,[946,123,971,190,744],function(){return a(a.s=3730)}),_N_E=a.O()}]);
 
 
_next/static/chunks/app/layout-ce2469687f902f56.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{306:function(e,t,n){Promise.resolve().then(n.bind(n,6770))},6770:function(e,t,n){"use strict";n.d(t,{Analytics:function(){return f}});var r=n(2265),a=n(1169),o=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(window.vaq=window.vaq||[]).push(t)})};function c(){return"undefined"!=typeof window}function i(){return"production"}function u(){return"development"===((c()?window.vam:i())||"production")}function l(e){return(0,r.useEffect)(()=>{!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!c())return;(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=i();return}window.vam=e})(t.mode),o(),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let n=t.scriptSrc||(u()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector('script[src*="'.concat(n,'"]')))return;let r=document.createElement("script");r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),r.dataset.sdkv="1.2.2",t.disableAutoTrack&&(r.dataset.disableAutoTrack="1"),t.endpoint&&(r.dataset.endpoint=t.endpoint),t.dsn&&(r.dataset.dsn=t.dsn),r.onerror=()=>{let e=u()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(n,". ").concat(e))},u()&&!1===t.debug&&(r.dataset.debug="false"),document.head.appendChild(r)}({framework:e.framework||"react",...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:n,path:r}=e;null==(t=window.va)||t.call(window,"pageview",{route:n,path:r})}({route:e.route,path:e.path})},[e.route,e.path]),null}var s=()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)(),n=(0,a.usePathname)(),r={...Object.fromEntries(t.entries()),...e||{}};return{route:e?function(e,t){if(!e||!t)return e;let n=e;try{for(let[e,r]of Object.entries(t)){let t=Array.isArray(r),a=t?r.join("/"):r,o=t?"...".concat(e):e,c=new RegExp("/".concat(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"));c.test(n)&&(n=n.replace(c,"/[".concat(o,"]")))}return n}catch(t){return e}}(n,r):null,path:n}};function d(e){let{route:t,path:n}=s();return r.createElement(l,{path:n,route:t,...e,framework:"next"})}function f(e){return r.createElement(r.Suspense,{fallback:null},r.createElement(d,{...e}))}}},function(e){e.O(0,[971,190,744],function(){return e(e.s=306)}),_N_E=e.O()}]);
_next/static/chunks/app/page-b2abe5878ca250a0.js ADDED
@@ -0,0 +1 @@
 
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{871:function(a,n,e){Promise.resolve().then(e.t.bind(e,4356,23)),Promise.resolve().then(e.bind(e,912)),Promise.resolve().then(e.bind(e,1481)),Promise.resolve().then(e.bind(e,9172))},912:function(a,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let t=e(5592);function r(a){let{reason:n,children:e}=a;if("undefined"==typeof window)throw new t.BailoutToCSRError(n);return e}},1481:function(a,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadCss",{enumerable:!0,get:function(){return r}});let t=e(7437);function r(a){let{moduleIds:n}=a;if("undefined"!=typeof window)return null;let{getExpectedRequestStore:r}=e(8512),i=r(),s=[];if(i.reactLoadableManifest&&n){let a=i.reactLoadableManifest;for(let e of n){if(!a[e])continue;let n=a[e].files.filter(a=>a.endsWith(".css"));s.push(...n)}}return 0===s.length?null:(0,t.jsx)(t.Fragment,{children:s.map(a=>(0,t.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:i.assetPrefix+"/_next/"+encodeURI(a),as:"style"},a))})}},9172:function(a,n,e){"use strict";e.r(n),e.d(n,{default:function(){return o}});var t=e(7437),r=e(2265);let i={"Acehnese (Arabic script)":"ace_Arab","Acehnese (Latin script)":"ace_Latn",Afrikaans:"afr_Latn",Akan:"aka_Latn",Amharic:"amh_Ethi",Armenian:"hye_Armn",Assamese:"asm_Beng",Asturian:"ast_Latn",Awadhi:"awa_Deva","Ayacucho Quechua":"quy_Latn",Balinese:"ban_Latn",Bambara:"bam_Latn","Banjar (Arabic script)":"bjn_Arab","Banjar (Latin script)":"bjn_Latn",Bashkir:"bak_Cyrl",Basque:"eus_Latn",Belarusian:"bel_Cyrl",Bemba:"bem_Latn",Bengali:"ben_Beng",Bhojpuri:"bho_Deva",Bosnian:"bos_Latn",Buginese:"bug_Latn",Bulgarian:"bul_Cyrl",Burmese:"mya_Mymr",Catalan:"cat_Latn",Cebuano:"ceb_Latn","Central Atlas Tamazight":"tzm_Tfng","Central Aymara":"ayr_Latn","Central Kanuri (Arabic script)":"knc_Arab","Central Kanuri (Latin script)":"knc_Latn","Central Kurdish":"ckb_Arab",Chhattisgarhi:"hne_Deva","Chinese (Simplified)":"zho_Hans","Chinese (Traditional)":"zho_Hant",Chokwe:"cjk_Latn","Crimean Tatar":"crh_Latn",Croatian:"hrv_Latn",Czech:"ces_Latn",Danish:"dan_Latn",Dari:"prs_Arab",Dutch:"nld_Latn",Dyula:"dyu_Latn",Dzongkha:"dzo_Tibt","Eastern Panjabi":"pan_Guru","Eastern Yiddish":"ydd_Hebr","Egyptian Arabic":"arz_Arab",English:"eng_Latn",Esperanto:"epo_Latn",Estonian:"est_Latn",Ewe:"ewe_Latn",Faroese:"fao_Latn",Fijian:"fij_Latn",Finnish:"fin_Latn",Fon:"fon_Latn",French:"fra_Latn",Friulian:"fur_Latn",Galician:"glg_Latn",Ganda:"lug_Latn",Georgian:"kat_Geor",German:"deu_Latn",Greek:"ell_Grek",Guarani:"grn_Latn",Gujarati:"guj_Gujr","Haitian Creole":"hat_Latn","Halh Mongolian":"khk_Cyrl",Hausa:"hau_Latn",Hebrew:"heb_Hebr",Hindi:"hin_Deva",Hungarian:"hun_Latn",Icelandic:"isl_Latn",Igbo:"ibo_Latn",Ilocano:"ilo_Latn",Indonesian:"ind_Latn",Irish:"gle_Latn",Italian:"ita_Latn",Japanese:"jpn_Jpan",Javanese:"jav_Latn",Jingpho:"kac_Latn",Kabiyè:"kbp_Latn",Kabuverdianu:"kea_Latn",Kabyle:"kab_Latn",Kamba:"kam_Latn",Kannada:"kan_Knda","Kashmiri (Arabic script)":"kas_Arab","Kashmiri (Devanagari script)":"kas_Deva",Kazakh:"kaz_Cyrl",Khmer:"khm_Khmr",Kikongo:"kon_Latn",Kikuyu:"kik_Latn",Kimbundu:"kmb_Latn",Kinyarwanda:"kin_Latn",Korean:"kor_Hang",Kyrgyz:"kir_Cyrl",Lao:"lao_Laoo",Latgalian:"ltg_Latn",Ligurian:"lij_Latn",Limburgish:"lim_Latn",Lingala:"lin_Latn",Lithuanian:"lit_Latn",Lombard:"lmo_Latn","Luba-Kasai":"lua_Latn",Luo:"luo_Latn",Luxembourgish:"ltz_Latn",Macedonian:"mkd_Cyrl",Magahi:"mag_Deva",Maithili:"mai_Deva",Malayalam:"mal_Mlym",Maltese:"mlt_Latn",Maori:"mri_Latn",Marathi:"mar_Deva","Meitei (Bengali script)":"mni_Beng","Mesopotamian Arabic":"acm_Arab","Minangkabau (Arabic script)":"min_Arab","Minangkabau (Latin script)":"min_Latn",Mizo:"lus_Latn","Modern Standard Arabic (Romanized)":"arb_Latn","Modern Standard Arabic":"arb_Arab","Moroccan Arabic":"ary_Arab",Mossi:"mos_Latn","Najdi Arabic":"ars_Arab",Nepali:"npi_Deva","Nigerian Fulfulde":"fuv_Latn","North Azerbaijani":"azj_Latn","North Levantine Arabic":"apc_Arab","Northern Kurdish":"kmr_Latn","Northern Sotho":"nso_Latn","Northern Uzbek":"uzn_Latn","Norwegian Bokm\xe5l":"nob_Latn","Norwegian Nynorsk":"nno_Latn",Nuer:"nus_Latn",Nyanja:"nya_Latn",Occitan:"oci_Latn",Odia:"ory_Orya",Pangasinan:"pag_Latn",Papiamento:"pap_Latn","Plateau Malagasy":"plt_Latn",Polish:"pol_Latn",Portuguese:"por_Latn",Romanian:"ron_Latn",Rundi:"run_Latn",Russian:"rus_Cyrl",Samoan:"smo_Latn",Sango:"sag_Latn",Sanskrit:"san_Deva",Santali:"sat_Olck",Sardinian:"srd_Latn","Scottish Gaelic":"gla_Latn",Serbian:"srp_Cyrl",Shan:"shn_Mymr",Shona:"sna_Latn",Sicilian:"scn_Latn",Silesian:"szl_Latn",Sindhi:"snd_Arab",Sinhala:"sin_Sinh",Slovak:"slk_Latn",Slovenian:"slv_Latn",Somali:"som_Latn","South Azerbaijani":"azb_Arab","South Levantine Arabic":"ajp_Arab","Southern Pashto":"pbt_Arab","Southern Sotho":"sot_Latn","Southwestern Dinka":"dik_Latn",Spanish:"spa_Latn","Standard Latvian":"lvs_Latn","Standard Malay":"zsm_Latn","Standard Tibetan":"bod_Tibt",Sundanese:"sun_Latn",Swahili:"swh_Latn",Swati:"ssw_Latn",Swedish:"swe_Latn",Tagalog:"tgl_Latn",Tajik:"tgk_Cyrl","Tamasheq (Latin script)":"taq_Latn","Tamasheq (Tifinagh script)":"taq_Tfng",Tamil:"tam_Taml",Tatar:"tat_Cyrl","Ta’izzi-Adeni Arabic":"acq_Arab",Telugu:"tel_Telu",Thai:"tha_Thai",Tigrinya:"tir_Ethi","Tok Pisin":"tpi_Latn","Tosk Albanian":"als_Latn",Tsonga:"tso_Latn",Tswana:"tsn_Latn",Tumbuka:"tum_Latn","Tunisian Arabic":"aeb_Arab",Turkish:"tur_Latn",Turkmen:"tuk_Latn",Twi:"twi_Latn",Ukrainian:"ukr_Cyrl",Umbundu:"umb_Latn",Urdu:"urd_Arab",Uyghur:"uig_Arab",Venetian:"vec_Latn",Vietnamese:"vie_Latn",Waray:"war_Latn",Welsh:"cym_Latn","West Central Oromo":"gaz_Latn","Western Persian":"pes_Arab",Wolof:"wol_Latn",Xhosa:"xho_Latn",Yoruba:"yor_Latn","Yue Chinese":"yue_Hant",Zulu:"zul_Latn"},s=a=>{let{type:n,onChange:e,defaultLanguage:r}=a;return(0,t.jsxs)("div",{className:"language-selector",children:[(0,t.jsxs)("label",{children:[n,": "]}),(0,t.jsx)("select",{onChange:e,defaultValue:r,children:Object.entries(i).map(a=>{let[n,e]=a;return(0,t.jsx)("option",{value:e,children:n},n)})})]})},l=a=>{let{text:n,percentage:e}=a;return e=null!=e?e:0,(0,t.jsx)("div",{className:"progress-container",children:(0,t.jsxs)("div",{className:"progress-bar",style:{width:"".concat(e,"%")},children:[n," (","".concat(e.toFixed(2),"%"),")"]})})},_=()=>{let[a,n]=(0,r.useState)(null),[i,_]=(0,r.useState)(!1),[o,u]=(0,r.useState)([]),[L,c]=(0,r.useState)("T\xf4i y\xeau Việt Nam qu\xea hương t\xf4i."),[h,d]=(0,r.useState)("vie_Latn"),[b,g]=(0,r.useState)("eng_Latn"),[m,p]=(0,r.useState)(""),k=(0,r.useRef)(null);return(0,r.useEffect)(()=>{k.current||(k.current=new Worker(e.tu(new URL(e.p+e.u(881),e.b)),{type:void 0}));let a=a=>{switch(a.data.status){case"initiate":n(!1),u(n=>[...n,a.data]);break;case"progress":u(n=>n.map(n=>n.file===a.data.file?{...n,progress:a.data.progress}:n));break;case"done":u(n=>n.filter(n=>n.file!==a.data.file));break;case"ready":n(!0);break;case"update":p(a.data.output);break;case"complete":_(!1)}};return k.current.addEventListener("message",a),()=>k.current.removeEventListener("message",a)}),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"container",children:[(0,t.jsxs)("div",{className:"language-container",children:[(0,t.jsx)(s,{type:"Source",defaultLanguage:"vie_Latn",onChange:a=>d(a.target.value)}),(0,t.jsx)(s,{type:"Target",defaultLanguage:"eng_Latn",onChange:a=>g(a.target.value)})]}),(0,t.jsxs)("div",{className:"textbox-container",children:[(0,t.jsx)("textarea",{value:L,rows:3,onChange:a=>c(a.target.value)}),(0,t.jsx)("textarea",{value:m,rows:3,readOnly:!0})]})]}),(0,t.jsx)("button",{type:"button",disabled:i,onClick:()=>{_(!0),k.current.postMessage({text:L,src_lang:h,tgt_lang:b})},children:"Translate"}),(0,t.jsxs)("div",{className:"progress-bars-container",children:[!1===a&&(0,t.jsx)("label",{children:"Loading models... (912MB total, only run once)"}),o.map(a=>(0,t.jsx)("div",{children:(0,t.jsx)(l,{text:a.file,percentage:a.progress})},a.file))]})]})};function o(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h1",{children:"Transformers.js + Next.js"}),(0,t.jsx)("h3",{children:"ML-powered multilingual translation in React!"}),(0,t.jsx)(_,{})]})}},4356:function(){}},function(a){a.O(0,[839,971,190,744],function(){return a(a.s=871)}),_N_E=a.O()}]);
_next/static/chunks/app/page-d8efbd597c53f3cc.js DELETED
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{6016:function(a,n,e){Promise.resolve().then(e.bind(e,9969)),Promise.resolve().then(e.t.bind(e,2191,23))},9969:function(a,n,e){"use strict";e.d(n,{default:function(){return T}});var t=e(2281),r=e(6441),i=e(6855),s=e(2890),l=e(896),o=e(5377),_=e(391),u=e(1217),c=e(6505),L=e(3187),h=e(2265),g=e(9175),d=e(4397),b=e(1957),m=e(1569),p=e(1378),j=e(9298),k=e(3370),y=e(8220);let x=a=>{let{type:n,onChange:e,defaultLanguage:i}=a;return(0,t.jsxs)(o.FA,{children:[(0,t.jsxs)(u.n,{children:[n,": "]}),(0,t.jsxs)(j.Ph,{size:"$4",onValueChange:e,defaultValue:i,children:[(0,t.jsx)(j.Ph.Trigger,{iconAfter:m._,children:(0,t.jsx)(j.Ph.Value,{placeholder:"Languages"})}),(0,t.jsx)(k.Tr,{when:"sm",platform:"touch",children:(0,t.jsxs)(y.yo,{native:!1,modal:!0,dismissOnSnapToBottom:!0,animation:"quick",children:[(0,t.jsx)(y.yo.Frame,{children:(0,t.jsx)(y.yo.ScrollView,{children:(0,t.jsx)(k.Tr.Contents,{})})}),(0,t.jsx)(y.yo.Overlay,{animation:"lazy",enterStyle:{opacity:0},exitStyle:{opacity:0}})]})}),(0,t.jsxs)(j.Ph.Content,{zi:2e5,children:[(0,t.jsxs)(j.Ph.ScrollUpButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,t.jsx)(o.FA,{zi:10,children:(0,t.jsx)(p.K,{size:20})}),(0,t.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["$background","$backgroundTransparent"],br:"$4"})]}),(0,t.jsx)(j.Ph.Viewport,{children:(0,t.jsxs)(j.Ph.Group,{children:[(0,t.jsx)(j.Ph.Label,{children:"Languages"}),Object.entries(r.a2).map((a,n)=>{let[e,r]=a;return(0,t.jsxs)(j.Ph.Item,{index:n,value:r,children:[(0,t.jsx)(j.Ph.ItemText,{children:e}),(0,t.jsx)(j.Ph.ItemIndicator,{ml:"auto",children:(0,t.jsx)(b.J,{size:16})})]},e)})]})}),(0,t.jsxs)(j.Ph.ScrollDownButton,{ai:"center",jc:"center",pos:"relative",w:"100%",h:"$3",children:[(0,t.jsx)(o.FA,{zi:10,children:(0,t.jsx)(m._,{size:20})}),(0,t.jsx)(d.o,{start:[0,0],end:[0,1],fullscreen:!0,colors:["$backgroundTransparent","$background"],br:"$4"})]})]})]})]})};var A=e(663);let f=a=>{let{text:n,percentage:e}=a;return e=null!=e?e:0,(0,t.jsxs)(o.FA,{h:"60",ai:"center",gap:!0,children:[(0,t.jsxs)(u.n,{h:"30",o:"0.5",children:[n," (","".concat(e.toFixed(2),"%"),")"]}),(0,t.jsx)(A.Ex,{size:"$4",value:e,children:(0,t.jsx)(A.Ex.Indicator,{animation:"bouncy"})})]})},v=()=>{let{ready:a,disabled:n,progressItems:i,input:s,output:l,sourceLanguage:_,targetLanguage:c,setDisabled:d,setInput:b,setSourceLanguage:m,setTargetLanguage:p,onMessageReceived:j}=(0,r.NZ)(),k=(0,h.useRef)(null);return(0,h.useEffect)(()=>(k.current||(k.current=new Worker(e.tu(new URL(e.p+e.u(432),e.b)),{type:void 0})),k.current.addEventListener("message",j),()=>k.current.removeEventListener("message",j))),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.sL,{gap:"$4",children:[(0,t.jsxs)(o.FA,{gap:!0,children:[(0,t.jsx)(x,{type:"Source",defaultLanguage:"vie_Latn",onChange:m}),(0,t.jsx)(g.K,{value:s,size:"$4",onChange:b})]}),(0,t.jsxs)(o.FA,{gap:!0,children:[(0,t.jsx)(x,{type:"Target",defaultLanguage:"eng_Latn",onChange:p}),(0,t.jsx)(g.K,{value:l,size:"$4",readOnly:!0})]})]}),(0,t.jsx)(L.zx,{disabled:n,onPress:()=>{d(!0),k.current.postMessage({text:s,src_lang:_,tgt_lang:c})},children:"Translate"}),(0,t.jsxs)(o.FA,{gap:!0,children:[!1===a&&(0,t.jsx)(u.n,{children:"Loading models... (only run once)"}),i.map(a=>(0,t.jsx)(o.FA,{children:(0,t.jsx)(f,{text:a.file,percentage:a.progress})},a.file))]})]})},S={dark:(0,t.jsx)(s.J,{}),light:(0,t.jsx)(l.k,{}),system:(0,t.jsx)(i.u,{})};function T(){let{scheme:a,toggleScheme:n}=(0,r.fl)();return(0,t.jsxs)(o.FA,{f:1,h:"100vh",jc:"center",ai:"center",p:"$4",gap:"$4",children:[(0,t.jsxs)(o.FA,{gap:"$4",bc:"$",jc:"center",children:[(0,t.jsx)(_.H1,{ta:"center",children:"Transformers.js + Tamagui"}),(0,t.jsx)(u.n,{ta:"center",children:"ML-powered multilingual translation in React!"})]}),(0,t.jsx)(c.Z,{}),(0,t.jsx)(v,{}),(0,t.jsx)(L.zx,{pos:"absolute",b:30,l:20,icon:S[a],onPress:n,circular:!0})]})}},6441:function(a,n,e){"use strict";e.d(n,{a2:function(){return c},fl:function(){return _},NZ:function(){return g}});var t=e(9099),r=e(9291);let i=new(e(3569)).ai,s={setItem:(a,n)=>i.set(a,n),getItem:a=>{let n=i.getString(a);return null!=n?n:null},removeItem:a=>i.delete(a)},l={scheme:"system"},o=(0,t.Ue)()((0,r.mW)((0,r.tJ)((a,n)=>({...l,toggleScheme:()=>{a({scheme:"dark"===n().scheme?"light":"light"===n().scheme?"system":"dark"})}}),{name:"scheme",storage:(0,r.FL)(()=>s)}),{enabled:!1})),_=()=>o(a=>({scheme:a.scheme,toggleScheme:a.toggleScheme}));var u=e(2844);let c={"Acehnese (Arabic script)":"ace_Arab","Acehnese (Latin script)":"ace_Latn",Afrikaans:"afr_Latn",Akan:"aka_Latn",Amharic:"amh_Ethi",Armenian:"hye_Armn",Assamese:"asm_Beng",Asturian:"ast_Latn",Awadhi:"awa_Deva","Ayacucho Quechua":"quy_Latn",Balinese:"ban_Latn",Bambara:"bam_Latn","Banjar (Arabic script)":"bjn_Arab","Banjar (Latin script)":"bjn_Latn",Bashkir:"bak_Cyrl",Basque:"eus_Latn",Belarusian:"bel_Cyrl",Bemba:"bem_Latn",Bengali:"ben_Beng",Bhojpuri:"bho_Deva",Bosnian:"bos_Latn",Buginese:"bug_Latn",Bulgarian:"bul_Cyrl",Burmese:"mya_Mymr",Catalan:"cat_Latn",Cebuano:"ceb_Latn","Central Atlas Tamazight":"tzm_Tfng","Central Aymara":"ayr_Latn","Central Kanuri (Arabic script)":"knc_Arab","Central Kanuri (Latin script)":"knc_Latn","Central Kurdish":"ckb_Arab",Chhattisgarhi:"hne_Deva","Chinese (Simplified)":"zho_Hans","Chinese (Traditional)":"zho_Hant",Chokwe:"cjk_Latn","Crimean Tatar":"crh_Latn",Croatian:"hrv_Latn",Czech:"ces_Latn",Danish:"dan_Latn",Dari:"prs_Arab",Dutch:"nld_Latn",Dyula:"dyu_Latn",Dzongkha:"dzo_Tibt","Eastern Panjabi":"pan_Guru","Eastern Yiddish":"ydd_Hebr","Egyptian Arabic":"arz_Arab",English:"eng_Latn",Esperanto:"epo_Latn",Estonian:"est_Latn",Ewe:"ewe_Latn",Faroese:"fao_Latn",Fijian:"fij_Latn",Finnish:"fin_Latn",Fon:"fon_Latn",French:"fra_Latn",Friulian:"fur_Latn",Galician:"glg_Latn",Ganda:"lug_Latn",Georgian:"kat_Geor",German:"deu_Latn",Greek:"ell_Grek",Guarani:"grn_Latn",Gujarati:"guj_Gujr","Haitian Creole":"hat_Latn","Halh Mongolian":"khk_Cyrl",Hausa:"hau_Latn",Hebrew:"heb_Hebr",Hindi:"hin_Deva",Hungarian:"hun_Latn",Icelandic:"isl_Latn",Igbo:"ibo_Latn",Ilocano:"ilo_Latn",Indonesian:"ind_Latn",Irish:"gle_Latn",Italian:"ita_Latn",Japanese:"jpn_Jpan",Javanese:"jav_Latn",Jingpho:"kac_Latn",Kabiyè:"kbp_Latn",Kabuverdianu:"kea_Latn",Kabyle:"kab_Latn",Kamba:"kam_Latn",Kannada:"kan_Knda","Kashmiri (Arabic script)":"kas_Arab","Kashmiri (Devanagari script)":"kas_Deva",Kazakh:"kaz_Cyrl",Khmer:"khm_Khmr",Kikongo:"kon_Latn",Kikuyu:"kik_Latn",Kimbundu:"kmb_Latn",Kinyarwanda:"kin_Latn",Korean:"kor_Hang",Kyrgyz:"kir_Cyrl",Lao:"lao_Laoo",Latgalian:"ltg_Latn",Ligurian:"lij_Latn",Limburgish:"lim_Latn",Lingala:"lin_Latn",Lithuanian:"lit_Latn",Lombard:"lmo_Latn","Luba-Kasai":"lua_Latn",Luo:"luo_Latn",Luxembourgish:"ltz_Latn",Macedonian:"mkd_Cyrl",Magahi:"mag_Deva",Maithili:"mai_Deva",Malayalam:"mal_Mlym",Maltese:"mlt_Latn",Maori:"mri_Latn",Marathi:"mar_Deva","Meitei (Bengali script)":"mni_Beng","Mesopotamian Arabic":"acm_Arab","Minangkabau (Arabic script)":"min_Arab","Minangkabau (Latin script)":"min_Latn",Mizo:"lus_Latn","Modern Standard Arabic (Romanized)":"arb_Latn","Modern Standard Arabic":"arb_Arab","Moroccan Arabic":"ary_Arab",Mossi:"mos_Latn","Najdi Arabic":"ars_Arab",Nepali:"npi_Deva","Nigerian Fulfulde":"fuv_Latn","North Azerbaijani":"azj_Latn","North Levantine Arabic":"apc_Arab","Northern Kurdish":"kmr_Latn","Northern Sotho":"nso_Latn","Northern Uzbek":"uzn_Latn","Norwegian Bokm\xe5l":"nob_Latn","Norwegian Nynorsk":"nno_Latn",Nuer:"nus_Latn",Nyanja:"nya_Latn",Occitan:"oci_Latn",Odia:"ory_Orya",Pangasinan:"pag_Latn",Papiamento:"pap_Latn","Plateau Malagasy":"plt_Latn",Polish:"pol_Latn",Portuguese:"por_Latn",Romanian:"ron_Latn",Rundi:"run_Latn",Russian:"rus_Cyrl",Samoan:"smo_Latn",Sango:"sag_Latn",Sanskrit:"san_Deva",Santali:"sat_Olck",Sardinian:"srd_Latn","Scottish Gaelic":"gla_Latn",Serbian:"srp_Cyrl",Shan:"shn_Mymr",Shona:"sna_Latn",Sicilian:"scn_Latn",Silesian:"szl_Latn",Sindhi:"snd_Arab",Sinhala:"sin_Sinh",Slovak:"slk_Latn",Slovenian:"slv_Latn",Somali:"som_Latn","South Azerbaijani":"azb_Arab","South Levantine Arabic":"ajp_Arab","Southern Pashto":"pbt_Arab","Southern Sotho":"sot_Latn","Southwestern Dinka":"dik_Latn",Spanish:"spa_Latn","Standard Latvian":"lvs_Latn","Standard Malay":"zsm_Latn","Standard Tibetan":"bod_Tibt",Sundanese:"sun_Latn",Swahili:"swh_Latn",Swati:"ssw_Latn",Swedish:"swe_Latn",Tagalog:"tgl_Latn",Tajik:"tgk_Cyrl","Tamasheq (Latin script)":"taq_Latn","Tamasheq (Tifinagh script)":"taq_Tfng",Tamil:"tam_Taml",Tatar:"tat_Cyrl","Ta’izzi-Adeni Arabic":"acq_Arab",Telugu:"tel_Telu",Thai:"tha_Thai",Tigrinya:"tir_Ethi","Tok Pisin":"tpi_Latn","Tosk Albanian":"als_Latn",Tsonga:"tso_Latn",Tswana:"tsn_Latn",Tumbuka:"tum_Latn","Tunisian Arabic":"aeb_Arab",Turkish:"tur_Latn",Turkmen:"tuk_Latn",Twi:"twi_Latn",Ukrainian:"ukr_Cyrl",Umbundu:"umb_Latn",Urdu:"urd_Arab",Uyghur:"uig_Arab",Venetian:"vec_Latn",Vietnamese:"vie_Latn",Waray:"war_Latn",Welsh:"cym_Latn","West Central Oromo":"gaz_Latn","Western Persian":"pes_Arab",Wolof:"wol_Latn",Xhosa:"xho_Latn",Yoruba:"yor_Latn","Yue Chinese":"yue_Hant",Zulu:"zul_Latn"},L={ready:!0,disabled:!1,progressItems:[],input:"T\xf4i y\xeau Việt Nam qu\xea hương t\xf4i.",sourceLanguage:"vie_Latn",targetLanguage:"eng_Latn",output:""},h=(0,t.Ue)()((0,r.mW)((0,r.tJ)((0,u.n)(a=>({...L,setDisabled:n=>{a({disabled:n})},setInput:n=>{a({input:n})},setSourceLanguage:n=>{a({sourceLanguage:n})},setTargetLanguage:n=>{a({targetLanguage:n})},onMessageReceived:n=>{switch(n.data.status){case"initiate":a(a=>{a.ready=!1,a.progressItems.push(n.data)});break;case"progress":a(a=>{a.progressItems.find(a=>a.file===n.data.file).progress=n.data.progress});break;case"done":a(a=>{a.progressItems.filter(a=>a.file!==n.data.file)});break;case"ready":a({ready:!0});break;case"update":a({output:n.data.output});break;case"complete":a({disabled:!1})}}})),{name:"translator"}),{enabled:!1})),g=()=>h(a=>({ready:a.ready,disabled:a.disabled,progressItems:a.progressItems,input:a.input,sourceLanguage:a.sourceLanguage,targetLanguage:a.targetLanguage,output:a.output,setDisabled:a.setDisabled,setInput:a.setInput,setSourceLanguage:a.setSourceLanguage,setTargetLanguage:a.setTargetLanguage,onMessageReceived:a.onMessageReceived}))},2191:function(){}},function(a){a.O(0,[33,946,423,971,190,744],function(){return a(a.s=6016)}),_N_E=a.O()}]);
 
 
_next/static/chunks/{fd9d1056-ee32f1bf30eb3d3f.js → fd9d1056-4e1a26e2d413ba3c.js} RENAMED
File without changes
_next/static/chunks/main-81d254d9c6853693.js ADDED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/{main-app-5420370b676a56f3.js → main-app-8591d221f05263ff.js} RENAMED
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{2780:function(e,n,t){Promise.resolve().then(t.t.bind(t,5751,23)),Promise.resolve().then(t.t.bind(t,6513,23)),Promise.resolve().then(t.t.bind(t,6130,23)),Promise.resolve().then(t.t.bind(t,9275,23)),Promise.resolve().then(t.t.bind(t,5324,23)),Promise.resolve().then(t.t.bind(t,1343,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[971,190],function(){return n(7804),n(1028),n(2780)}),_N_E=e.O()}]);
 
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{7141:function(e,n,t){Promise.resolve().then(t.t.bind(t,5751,23)),Promise.resolve().then(t.t.bind(t,6513,23)),Promise.resolve().then(t.t.bind(t,6130,23)),Promise.resolve().then(t.t.bind(t,9275,23)),Promise.resolve().then(t.t.bind(t,5324,23)),Promise.resolve().then(t.t.bind(t,1343,23))}},function(e){var n=function(n){return e(e.s=n)};e.O(0,[971,190],function(){return n(7804),n(1028),n(7141)}),_N_E=e.O()}]);
_next/static/chunks/main-fb740fb39bc15572.js DELETED
The diff for this file is too large to render. See raw diff
 
_next/static/chunks/webpack-be89c114a742069c.js ADDED
@@ -0,0 +1 @@
 
 
1
+ !function(){"use strict";var e,t,r,n,o,u,i,c,f,a={},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}},n=!0;try{a[e](r,r.exports,s),n=!1}finally{n&&delete l[e]}return r.exports}s.m=a,e=[],s.O=function(t,r,n,o){if(r){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,n,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var r=e[u][0],n=e[u][1],o=e[u][2],c=!0,f=0;f<r.length;f++)i>=o&&Object.keys(s.O).every(function(e){return s.O[e](r[f])})?r.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=n();void 0!==a&&(t=a)}}return t},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,n){if(1&n&&(e=this(e)),8&n||"object"==typeof e&&e&&(4&n&&e.__esModule||16&n&&"function"==typeof e.then))return e;var o=Object.create(null);s.r(o);var u={};t=t||[null,r({}),r([]),r(r)];for(var i=2&n&&e;"object"==typeof i&&!~t.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},s.d(o,u),o},s.d=function(e,t){for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce(function(t,r){return s.f[r](e,t),t},[]))},s.u=function(e){return"static/chunks/"+e+".edac2d034d19d100.js"},s.miniCssF=function(e){},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},o="_N_E:",s.l=function(e,t,r,u){if(n[e]){n[e].push(t);return}if(void 0!==r)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+r){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",o+r),i.src=s.tu(e)),n[e]=[t];var d=function(t,r){i.onerror=i.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(r)}),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},s.tu=function(e){return s.tt().createScriptURL(e)},s.p="/_next/",s.b=document.baseURI||self.location.href,i={272:0,839:0},s.f.j=function(e,t){var r=s.o(i,e)?i[e]:void 0;if(0!==r){if(r)t.push(r[2]);else if(/^(272|839)$/.test(e))i[e]=0;else{var n=new Promise(function(t,n){r=i[e]=[t,n]});t.push(r[2]=n);var o=s.p+s.u(e),u=Error();s.l(o,function(t){if(s.o(i,e)&&(0!==(r=i[e])&&(i[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",u.name="ChunkLoadError",u.type=n,u.request=o,r[1](u)}},"chunk-"+e,e)}}},s.O.j=function(e){return 0===i[e]},c=function(e,t){var r,n,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(r in u)s.o(u,r)&&(s.m[r]=u[r]);if(c)var a=c(s)}for(e&&e(t);f<o.length;f++)n=o[f],s.o(i,n)&&i[n]&&i[n][0](),i[n]=0;return s.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f))}();
_next/static/chunks/webpack-c511210a6eab1a58.js DELETED
@@ -1 +0,0 @@
1
- !function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},l={};function s(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}},r=!0;try{a[e](n,n.exports,s),r=!1}finally{r&&delete l[e]}return n.exports}s.m=a,e=[],s.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u<e.length;u++){for(var n=e[u][0],r=e[u][1],o=e[u][2],c=!0,f=0;f<n.length;f++)i>=o&&Object.keys(s.O).every(function(e){return s.O[e](n[f])})?n.splice(f--,1):(c=!1,o<i&&(i=o));if(c){e.splice(u--,1);var a=r();void 0!==a&&(t=a)}}return t},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);s.r(o);var u={};t=t||[null,n({}),n([]),n(n)];for(var i=2&r&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(t){u[t]=function(){return e[t]}});return u.default=function(){return e},s.d(o,u),o},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce(function(t,n){return s.f[n](e,t),t},[]))},s.u=function(e){return"static/chunks/"+e+".34b698d3db09a44a.js"},s.miniCssF=function(e){},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",s.l=function(e,t,n,u){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var i,c,f=document.getElementsByTagName("script"),a=0;a<f.length;a++){var l=f[a];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+n){i=l;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,s.nc&&i.setAttribute("nonce",s.nc),i.setAttribute("data-webpack",o+n),i.src=s.tu(e)),r[e]=[t];var d=function(t,n){i.onerror=i.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(n)}),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),c&&document.head.appendChild(i)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=function(){return void 0===u&&(u={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(u=trustedTypes.createPolicy("nextjs#bundler",u))),u},s.tu=function(e){return s.tt().createScriptURL(e)},s.p="/_next/",s.b=document.baseURI||self.location.href,i={272:0,33:0},s.f.j=function(e,t){var n=s.o(i,e)?i[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(272|33)$/.test(e))i[e]=0;else{var r=new Promise(function(t,r){n=i[e]=[t,r]});t.push(n[2]=r);var o=s.p+s.u(e),u=Error();s.l(o,function(t){if(s.o(i,e)&&(0!==(n=i[e])&&(i[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}},"chunk-"+e,e)}}},s.O.j=function(e){return 0===i[e]},c=function(e,t){var n,r,o=t[0],u=t[1],c=t[2],f=0;if(o.some(function(e){return 0!==i[e]})){for(n in u)s.o(u,n)&&(s.m[n]=u[n]);if(c)var a=c(s)}for(e&&e(t);f<o.length;f++)r=o[f],s.o(i,r)&&i[r]&&i[r][0](),i[r]=0;return s.O(a)},(f=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(c.bind(null,0)),f.push=c.bind(null,f.push.bind(f)),s.nc=void 0}();
 
 
_next/static/css/340fba77366dfc7d.css ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ /*
2
+ ! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
3
+ */*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:#213547;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh;flex-direction:column;justify-content:center}h1{font-size:3.2em;line-height:1}h1,h2{margin:8px}select{padding:.3em;cursor:pointer}textarea{padding:.6em}button{padding:.6em 1.2em;cursor:pointer;font-weight:500}button[disabled]{cursor:not-allowed}button,select,textarea{border-radius:8px;border:1px solid transparent;font-size:1em;font-family:inherit;background-color:#f9f9f9;transition:border-color .25s}button:not([disabled]):hover,select:hover,textarea:hover{border-color:#646cff}button:focus,button:focus-visible,select:focus,select:focus-visible,textarea:focus,textarea:focus-visible{outline:4px auto -webkit-focus-ring-color}.language-container,.textbox-container{display:flex;gap:20px}.textbox-container{justify-content:center;width:800px}.language-selector,.textbox-container>textarea{width:50%}.language-selector>select{width:150px}.progress-container{position:relative;font-size:14px;color:#fff;background-color:#e9ecef;border:1px solid;border-radius:8px;text-align:left;overflow:hidden}.progress-bar{padding:0 4px;z-index:0;top:0;width:1%;height:100%;overflow:hidden;background-color:#007bff;white-space:nowrap}.progress-text{z-index:2}.selector-container{display:flex;gap:20px}.progress-bars-container{padding:8px;height:140px}.container{margin:25px;display:flex;flex-direction:column;gap:10px}
_next/static/css/c07dfed9e589ce2b.css DELETED
The diff for this file is too large to render. See raw diff
 
_next/static/{sS3KCrv4R0AkB6q5rvqSN → ss7CKkqdkp8gKJJffXP0l}/_buildManifest.js RENAMED
File without changes
_next/static/{sS3KCrv4R0AkB6q5rvqSN → ss7CKkqdkp8gKJJffXP0l}/_ssgManifest.js RENAMED
File without changes
icons/{apple-icon.png → apple-touch-icon.png} RENAMED
File without changes
icons/safari-pinned-tab.svg CHANGED
index.html CHANGED
@@ -1,134 +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/css/c07dfed9e589ce2b.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-c511210a6eab1a58.js"/><script src="/_next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js" async=""></script><script src="/_next/static/chunks/190-8c3f29b77c1f7978.js" async=""></script><script src="/_next/static/chunks/main-app-5420370b676a56f3.js" async=""></script><script src="/_next/static/chunks/946-310f6d0c4f8124d5.js" async=""></script><script src="/_next/static/chunks/423-06102cf1584a8fa3.js" async=""></script><script src="/_next/static/chunks/app/page-d8efbd597c53f3cc.js" async=""></script><script src="/_next/static/chunks/123-a6d2101f21b1dc81.js" async=""></script><script src="/_next/static/chunks/app/layout-0e0c053c92ad2f81.js" async=""></script><title>Translator demo app built with Transformers.js + Tamagui + Next.js</title><meta name="description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="application-name" content="Translator Demo"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><meta name="keywords" content="Translator,Transformers.js,Next.js,Tamagui"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta property="og:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/translator-tamagui/"/><meta property="og:site_name" content="Translator Demo"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="twitter:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script><style>:root ._dsp-flex{display:flex;}
2
- :root ._ai-center{align-items:center;}
3
- :root ._fd-column{flex-direction:column;}
4
- :root ._fb-auto{flex-basis:auto;}
5
- :root ._bxs-border-box{box-sizing:border-box;}
6
- :root ._pos-relative{position:relative;}
7
- :root ._mih-0px{min-height:0px;}
8
- :root ._miw-0px{min-width:0px;}
9
- :root ._fs-1{flex-shrink:1;}
10
- :root ._fg-1{flex-grow:1;}
11
- :root ._h-100vh{height:100vh;}
12
- :root ._jc-center{justify-content:center;}
13
- :root ._pt-1316330145{padding-top:var(--space-11);}
14
- :root ._pr-1316330145{padding-right:var(--space-11);}
15
- :root ._pb-1316330145{padding-bottom:var(--space-11);}
16
- :root ._pl-1316330145{padding-left:var(--space-11);}
17
- :root ._gap-1316330145{gap:var(--space-11);}
18
- :root ._ai-stretch{align-items:stretch;}
19
- :root ._fs-0{flex-shrink:0;}
20
- :root ._col-675002279{color:var(--color);}
21
- :root ._tt-1440318557{text-transform:var(--f-tr-10);}
22
- :root ._ff-299667014{font-family:var(--f-fa);}
23
- :root ._fow-1366436877{font-weight:var(--f-we-10);}
24
- :root ._ls-905095908{letter-spacing:var(--f-21-10);}
25
- :root ._fos-1477259397{font-size:var(--f-si-10);}
26
- :root ._lh-1677663454{line-height:var(--f-li-10);}
27
- :root ._dsp-inline{display:inline;}
28
- :root ._ww-break-word{word-wrap:break-word;}
29
- :root ._whiteSpace-normal{white-space:normal;}
30
- :root ._mt-0px{margin-top:0px;}
31
- :root ._mr-0px{margin-right:0px;}
32
- :root ._mb-0px{margin-bottom:0px;}
33
- :root ._ml-0px{margin-left:0px;}
34
- :root ._ussel-auto{user-select:auto;-webkit-user-select:auto;}
35
- :root ._ta-center{text-align:center;}
36
- :root ._fow-233016140{font-weight:var(--f-we-4);}
37
- :root ._ls-167744059{letter-spacing:var(--f-21-4);}
38
- :root ._fos-229441220{font-size:var(--f-si-4);}
39
- :root ._lh-222976573{line-height:var(--f-li-4);}
40
- :root ._btc-2122800589{border-top-color:var(--borderColor);}
41
- :root ._brc-2122800589{border-right-color:var(--borderColor);}
42
- :root ._bbc-2122800589{border-bottom-color:var(--borderColor);}
43
- :root ._blc-2122800589{border-left-color:var(--borderColor);}
44
- :root ._btw-0px{border-top-width:0px;}
45
- :root ._brw-0px{border-right-width:0px;}
46
- :root ._bbw-1px{border-bottom-width:1px;}
47
- :root ._blw-0px{border-left-width:0px;}
48
- :root ._h-0px{height:0px;}
49
- :root ._mah-0px{max-height:0px;}
50
- :root ._bbs-solid{border-bottom-style:solid;}
51
- :root ._bts-solid{border-top-style:solid;}
52
- :root ._bls-solid{border-left-style:solid;}
53
- :root ._brs-solid{border-right-style:solid;}
54
- :root ._transform-d0t1394298074{transform:translateY(-0.5px);}
55
- :root ._fd-row{flex-direction:row;}
56
- :root ._gap-true{gap:true;}
57
- @media (hover) {:root ._bg-0hover-513675900:hover{background-color:var(--backgroundHover) !important;}}
58
- @media (hover) {:root ._btc-0hover-1394778429:hover{border-top-color:var(--borderColorHover) !important;}}
59
- @media (hover) {:root ._brc-0hover-1394778429:hover{border-right-color:var(--borderColorHover) !important;}}
60
- @media (hover) {:root ._bbc-0hover-1394778429:hover{border-bottom-color:var(--borderColorHover) !important;}}
61
- @media (hover) {:root ._blc-0hover-1394778429:hover{border-left-color:var(--borderColorHover) !important;}}
62
- :root:root ._bg-0active-744986709:active{background-color:var(--backgroundPress) !important;}
63
- :root:root ._btc-0active-1163467620:active{border-top-color:var(--borderColorPress) !important;}
64
- :root:root ._brc-0active-1163467620:active{border-right-color:var(--borderColorPress) !important;}
65
- :root:root ._bbc-0active-1163467620:active{border-bottom-color:var(--borderColorPress) !important;}
66
- :root:root ._blc-0active-1163467620:active{border-left-color:var(--borderColorPress) !important;}
67
- :root:root:root ._outlineStyle-0focus-visible-solid:focus-visible{outline-style:solid !important;}
68
- :root:root:root ._outlineWidth-0focus-visible-2px:focus-visible{outline-width:2px !important;}
69
- :root:root:root ._outlineColor-0focus-visible-834034279:focus-visible{outline-color:var(--outlineColor) !important;}
70
- :root ._mih-1611761790{min-height:var(--size-11);}
71
- :root ._pt-1481558214{padding-top:var(--space-7);}
72
- :root ._pb-1481558214{padding-bottom:var(--space-7);}
73
- :root ._jc-441309761{justify-content:space-between;}
74
- :root ._fw-nowrap{flex-wrap:nowrap;}
75
- :root ._w-10037{width:100%;}
76
- :root ._maw-10037{max-width:100%;}
77
- :root ._ox-hidden{overflow-x:hidden;}
78
- :root ._oy-hidden{overflow-y:hidden;}
79
- :root ._bg-1633501478{background-color:var(--background);}
80
- :root ._btlr-1881200812{border-top-left-radius:var(--radius-14);}
81
- :root ._btrr-1881200812{border-top-right-radius:var(--radius-14);}
82
- :root ._bbrr-1881200812{border-bottom-right-radius:var(--radius-14);}
83
- :root ._bblr-1881200812{border-bottom-left-radius:var(--radius-14);}
84
- :root ._cur-pointer{cursor:pointer;}
85
- :root ._btw-1px{border-top-width:1px;}
86
- :root ._brw-1px{border-right-width:1px;}
87
- :root ._blw-1px{border-left-width:1px;}
88
- :root ._whiteSpace-nowrap{white-space:nowrap;}
89
- :root ._ussel-none{user-select:none;-webkit-user-select:none;}
90
- :root ._textOverflow-ellipsis{text-overflow:ellipsis;}
91
- :root ._pe-none{pointer-events:none !important;}
92
- :root ._mih-14px{min-height:14px;}
93
- :root ._miw-14px{min-width:14px;}
94
- :root ._w-14px{width:14px;}
95
- :root ._h-14px{height:14px;}
96
- :root:root:root ._btc-0focus-1452587353:focus{border-top-color:var(--borderColorFocus) !important;}
97
- :root:root:root ._brc-0focus-1452587353:focus{border-right-color:var(--borderColorFocus) !important;}
98
- :root:root:root ._bbc-0focus-1452587353:focus{border-bottom-color:var(--borderColorFocus) !important;}
99
- :root:root:root ._blc-0focus-1452587353:focus{border-left-color:var(--borderColorFocus) !important;}
100
- :root ._pr-1316330114{padding-right:var(--space-10);}
101
- :root ._pl-1316330114{padding-left:var(--space-10);}
102
- :root ._h-92px{height:92px;}
103
- :root ._btlr-1307609998{border-top-left-radius:var(--radius-5);}
104
- :root ._btrr-1307609998{border-top-right-radius:var(--radius-5);}
105
- :root ._bbrr-1307609998{border-bottom-right-radius:var(--radius-5);}
106
- :root ._bblr-1307609998{border-bottom-left-radius:var(--radius-5);}
107
- :root ._pt-1481558152{padding-top:var(--space-9);}
108
- :root ._pb-1481558152{padding-bottom:var(--space-9);}
109
- :root ._outlineWidth-0px{outline-width:0px;}
110
- :root ._whiteSpace-pre-wrap{white-space:pre-wrap;}
111
- :root ._pr-1316330176{padding-right:var(--space-12);}
112
- :root ._pl-1316330176{padding-left:var(--space-12);}
113
- :root ._h-1611761821{height:var(--size-12);}
114
- :root ._btc-1726194350{border-top-color:transparent;}
115
- :root ._brc-1726194350{border-right-color:transparent;}
116
- :root ._bbc-1726194350{border-bottom-color:transparent;}
117
- :root ._blc-1726194350{border-left-color:transparent;}
118
- :root ._fg-0{flex-grow:0;}
119
- :root ._mih-1611761821{min-height:var(--size-12);}
120
- :root ._miw-1611761821{min-width:var(--size-12);}
121
- :root ._btlr-100000px{border-top-left-radius:100000px;}
122
- :root ._btrr-100000px{border-top-right-radius:100000px;}
123
- :root ._bbrr-100000px{border-bottom-right-radius:100000px;}
124
- :root ._bblr-100000px{border-bottom-left-radius:100000px;}
125
- :root ._pt-0px{padding-top:0px;}
126
- :root ._pr-0px{padding-right:0px;}
127
- :root ._pb-0px{padding-bottom:0px;}
128
- :root ._pl-0px{padding-left:0px;}
129
- :root ._w-1611761821{width:var(--size-12);}
130
- :root ._maw-1611761821{max-width:var(--size-12);}
131
- :root ._mah-1611761821{max-height:var(--size-12);}
132
- :root ._pos-absolute{position:absolute;}
133
- :root ._b-30px{bottom:30px;}
134
- :root ._l-20px{left:20px;}</style></head><body><span class="t_light is_inversed _dsp_contents"><span class=" t_light _dsp_contents is_Theme" style="color:var(--color)"><div class="_dsp-flex _ai-center _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-1 _fg-1 _h-100vh _jc-center _pt-1316330145 _pr-1316330145 _pb-1316330145 _pl-1316330145 _gap-1316330145"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-1316330145 _jc-center"><h1 role="heading" class="is_H1 font_heading _col-675002279 _tt-1440318557 _ff-299667014 _fow-1366436877 _ls-905095908 _fos-1477259397 _lh-1677663454 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto _ta-center">Transformers.js + Tamagui</h1><p class="is_Paragraph font_body _col-675002279 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto _ta-center">ML-powered multilingual translation in React!</p></div><div class="is_Separator _dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-1 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _btw-0px _brw-0px _bbw-1px _blw-0px _fg-1 _h-0px _mah-0px _bbs-solid _bts-solid _bls-solid _brs-solid _transform-d0t1394298074"></div><div class="_dsp-flex _ai-stretch _fd-row _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-1316330145"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-true"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0"><p class="is_Paragraph font_body _col-675002279 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto">Source<!-- -->: </p><span class="t_sub_theme t_SelectTrigger _dsp_contents is_Theme" style="color:var(--color)"><button aria-expanded="false" aria-autocomplete="none" aria-haspopup="listbox" role="combobox" data-disable-theme="true" tabindex="0" class="is_ListItem _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _outlineColor-0focus-visible-834034279 _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _pos-relative _mih-1611761790 _miw-0px _fs-0 _pr-1316330145 _pl-1316330145 _pt-1481558214 _pb-1481558214 _jc-441309761 _fw-nowrap _w-10037 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _maw-10037 _ox-hidden _oy-hidden _bg-1633501478 _btlr-1881200812 _btrr-1881200812 _bbrr-1881200812 _bblr-1881200812 _cur-pointer _btw-1px _brw-1px _bbw-1px _blw-1px _bts-solid _brs-solid _bbs-solid _bls-solid SelectTrigger"><span data-disable-theme="true" class="is_SelectValue font_body _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-nowrap _mt-0px _mr-0px _mb-0px _ml-0px _col-675002279 _ussel-none _maw-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis _pe-none"></span><span class="is_Spacer _dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-14px _miw-14px _fs-0 _pe-none _w-14px _h-14px"></span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--color)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="font_unset "><path d="m6 9 6 6 6-6" stroke="var(--color)"></path></svg></button></span></div><span class="t_sub_theme t_TextArea _dsp_contents is_Theme" style="color:var(--color)"><span class="_dsp_contents"><textarea rows="4" autoCapitalize="sentences" autoComplete="on" autoCorrect="on" dir="auto" spellCheck="true" tabindex="0" class="css-11aywtz r-6taxm2 is_TextArea font_body _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _btc-0focus-1452587353 _brc-0focus-1452587353 _bbc-0focus-1452587353 _blc-0focus-1452587353 _outlineColor-0focus-visible-834034279 _outlineWidth-0focus-visible-2px _outlineStyle-0focus-visible-solid _pr-1316330114 _pl-1316330114 _h-92px _btlr-1307609998 _btrr-1307609998 _bbrr-1307609998 _bblr-1307609998 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _pt-1481558152 _pb-1481558152 _btw-1px _brw-1px _bbw-1px _blw-1px _outlineWidth-0px _col-675002279 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _bg-1633501478 _miw-0px _bbs-solid _bts-solid _bls-solid _brs-solid _whiteSpace-pre-wrap" style="--placeholderTextColor:var(--placeholderColor)">Tôi yêu Việt Nam quê hương tôi.</textarea></span></span></div><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-true"><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0"><p class="is_Paragraph font_body _col-675002279 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-normal _mt-0px _mr-0px _mb-0px _ml-0px _ussel-auto">Target<!-- -->: </p><span class="t_sub_theme t_SelectTrigger _dsp_contents is_Theme" style="color:var(--color)"><button aria-expanded="false" aria-autocomplete="none" aria-haspopup="listbox" role="combobox" data-disable-theme="true" tabindex="0" class="is_ListItem _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _outlineColor-0focus-visible-834034279 _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _pos-relative _mih-1611761790 _miw-0px _fs-0 _pr-1316330145 _pl-1316330145 _pt-1481558214 _pb-1481558214 _jc-441309761 _fw-nowrap _w-10037 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _maw-10037 _ox-hidden _oy-hidden _bg-1633501478 _btlr-1881200812 _btrr-1881200812 _bbrr-1881200812 _bblr-1881200812 _cur-pointer _btw-1px _brw-1px _bbw-1px _blw-1px _bts-solid _brs-solid _bbs-solid _bls-solid SelectTrigger"><span data-disable-theme="true" class="is_SelectValue font_body _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-nowrap _mt-0px _mr-0px _mb-0px _ml-0px _col-675002279 _ussel-none _maw-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis _pe-none"></span><span class="is_Spacer _dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-14px _miw-14px _fs-0 _pe-none _w-14px _h-14px"></span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--color)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="font_unset "><path d="m6 9 6 6 6-6" stroke="var(--color)"></path></svg></button></span></div><span class="t_sub_theme t_TextArea _dsp_contents is_Theme" style="color:var(--color)"><span class="_dsp_contents"><textarea rows="4" readOnly="" autoCapitalize="sentences" autoComplete="on" autoCorrect="on" dir="auto" spellCheck="true" tabindex="0" class="css-11aywtz r-6taxm2 is_TextArea font_body _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _btc-0focus-1452587353 _brc-0focus-1452587353 _bbc-0focus-1452587353 _blc-0focus-1452587353 _outlineColor-0focus-visible-834034279 _outlineWidth-0focus-visible-2px _outlineStyle-0focus-visible-solid _pr-1316330114 _pl-1316330114 _h-92px _btlr-1307609998 _btrr-1307609998 _bbrr-1307609998 _bblr-1307609998 _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _pt-1481558152 _pb-1481558152 _btw-1px _brw-1px _bbw-1px _blw-1px _outlineWidth-0px _col-675002279 _btc-2122800589 _brc-2122800589 _bbc-2122800589 _blc-2122800589 _bg-1633501478 _miw-0px _bbs-solid _bts-solid _bls-solid _brs-solid _whiteSpace-pre-wrap" style="--placeholderTextColor:var(--placeholderColor)"></textarea></span></span></div></div><span class="t_sub_theme t_Button _dsp_contents is_Theme" style="color:var(--color)"><button role="button" data-disable-theme="true" tabindex="0" class="is_Button _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineColor-0focus-visible-834034279 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _pr-1316330176 _pl-1316330176 _h-1611761821 _btlr-1881200812 _btrr-1881200812 _bbrr-1881200812 _bblr-1881200812 _jc-center _fw-nowrap _cur-pointer _bg-1633501478 _btw-1px _brw-1px _bbw-1px _blw-1px _btc-1726194350 _brc-1726194350 _bbc-1726194350 _blc-1726194350 _bbs-solid _bts-solid _bls-solid _brs-solid"><span class="t_sub_theme t_Button _dsp_contents is_Theme" style="color:var(--color)"><span class="is_Button font_body _ff-299667014 _fow-233016140 _ls-167744059 _fos-229441220 _lh-222976573 _dsp-inline _bxs-border-box _ww-break-word _whiteSpace-nowrap _mt-0px _mr-0px _mb-0px _ml-0px _col-675002279 _ussel-none _cur-pointer _fg-0 _fs-1 _maw-10037 _ox-hidden _oy-hidden _textOverflow-ellipsis">Translate</span></span></button></span><div class="_dsp-flex _ai-stretch _fd-column _fb-auto _bxs-border-box _pos-relative _mih-0px _miw-0px _fs-0 _gap-true"></div><span class="t_sub_theme t_Button _dsp_contents is_Theme" style="color:var(--color)"><button role="button" data-disable-theme="true" tabindex="0" class="is_Button _bg-0hover-513675900 _btc-0hover-1394778429 _brc-0hover-1394778429 _bbc-0hover-1394778429 _blc-0hover-1394778429 _bg-0active-744986709 _btc-0active-1163467620 _brc-0active-1163467620 _bbc-0active-1163467620 _blc-0active-1163467620 _outlineColor-0focus-visible-834034279 _outlineStyle-0focus-visible-solid _outlineWidth-0focus-visible-2px _dsp-flex _ai-center _fd-row _fb-auto _bxs-border-box _mih-1611761821 _miw-1611761821 _fs-0 _jc-center _fw-nowrap _cur-pointer _bg-1633501478 _btw-1px _brw-1px _bbw-1px _blw-1px _btc-1726194350 _brc-1726194350 _bbc-1726194350 _blc-1726194350 _bbs-solid _bts-solid _bls-solid _brs-solid _btlr-100000px _btrr-100000px _bbrr-100000px _bblr-100000px _pt-0px _pr-0px _pb-0px _pl-0px _w-1611761821 _h-1611761821 _maw-1611761821 _mah-1611761821 _pos-absolute _b-30px _l-20px"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="var(--color)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="font_unset " style="color:var(--color)"><rect width="20" height="14" x="2" y="3" rx="2" stroke="var(--color)"></rect><line x1="8" x2="16" y1="21" y2="21" stroke="var(--color)"></line><line x1="12" x2="12" y1="17" y2="21" stroke="var(--color)"></line></svg></button></span></div></span></span><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-c511210a6eab1a58.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/c07dfed9e589ce2b.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[5751,[],\"\"]\n4:I[9969,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"423\",\"static/chunks/423-06102cf1584a8fa3.js\",\"931\",\"static/chunks/app/page-d8efbd597c53f3cc.js\"],\"default\"]\n5:I[2981,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"default\"]\n6:I[9275,[],\"\"]\n7:I[1343,[],\"\"]\n8:I[2944,[\"946\",\"static/chunks/946-310f6d0c4f8124d5.js\",\"123\",\"static/chunks/123-a6d2101f21b1dc81.js\",\"185\",\"static/chunks/app/layout-0e0c053c92ad2f81.js\"],\"Analytics\"]\na:I[6130,[],\"\"]\nb:[]\n0:[null,[\"$\",\"$L2\",null,{\"buildId\":\"sS3KCrv4R0AkB6q5rvqSN\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[\"$\",\"$L4\",null,{}]],null],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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\":"])</script><script>self.__next_f.push([1,"\"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.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c07dfed9e589ce2b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]}]}],[\"$\",\"$L8\",null,{}]]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"Translator Demo\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"Translator,Transformers.js,Next.js,Tamagui\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/translator-tamagui/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"Translator Demo\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n3:null\n"])</script></body></html><style></style>
 
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/css/340fba77366dfc7d.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-be89c114a742069c.js"/><script src="/_next/static/chunks/fd9d1056-4e1a26e2d413ba3c.js" async=""></script><script src="/_next/static/chunks/190-df929413349aa216.js" async=""></script><script src="/_next/static/chunks/main-app-8591d221f05263ff.js" async=""></script><script src="/_next/static/chunks/app/page-b2abe5878ca250a0.js" async=""></script><script src="/_next/static/chunks/app/layout-ce2469687f902f56.js" async=""></script><title>Translator demo app built with Transformers.js + Tamagui + Next.js</title><meta name="description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="application-name" content="Translator Demo"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><meta name="keywords" content="Translator,Transformers.js,Next.js,Tamagui"/><meta name="format-detection" content="telephone=no"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="apple-mobile-web-app-status-bar-style" content="default"/><meta property="og:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta property="og:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta property="og:url" content="https://hf.co/spaces/huuquyet/translator-tamagui/"/><meta property="og:site_name" content="Translator Demo"/><meta property="og:image" content="https://${process.env.vercel_url}/icon/share.png"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@HuuQuyetNg"/><meta name="twitter:title" content="Translator demo app built with Transformers.js + Tamagui + Next.js"/><meta name="twitter:description" content="Translator demo app built with Transformer.js + Tamagui + Next.js"/><meta name="twitter:image" content="https://${process.env.vercel_url}/icon/share.png"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><script src="/_next/static/chunks/webpack-be89c114a742069c.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/340fba77366dfc7d.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"2:I[5751,[],\"\"]\n4:\"$Sreact.suspense\"\n5:I[912,[\"931\",\"static/chunks/app/page-b2abe5878ca250a0.js\"],\"BailoutToCSR\"]\n7:I[9275,[],\"\"]\n8:I[1343,[],\"\"]\n9:I[6770,[\"185\",\"static/chunks/app/layout-ce2469687f902f56.js\"],\"Analytics\"]\nb:I[6130,[],\"\"]\nc:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L2\",null,{\"buildId\":\"ss7CKkqdkp8gKJJffXP0l\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"__PAGE__\",{},[[\"$L3\",[\"$\",\"$4\",null,{\"fallback\":null,\"children\":[\"$\",\"$L5\",null,{\"reason\":\"next/dynamic\",\"children\":\"$L6\"}]}]],null],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",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.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/340fba77366dfc7d.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]}],[\"$\",\"$L9\",null,{}]]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$La\"],\"globalErrorComponent\":\"$b\",\"missingSlots\":\"$Wc\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[9172,[\"931\",\"static/chunks/app/page-b2abe5878ca250a0.js\"],\"default\"]\n6:[\"$\",\"$Ld\",null,{}]\na:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"4\",{\"name\":\"application-name\",\"content\":\"Translator Demo\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"Translator,Transformers.js,Next.js,Tamagui\"}],[\"$\",\"meta\",\"7\",{\"name\":\"format-detection\",\"content\":\"telephone=no\"}],[\"$\",\"meta\",\"8\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"9\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"10\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"11\",{\"property\":\"og:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"12\",{\"property\":\"og:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"13\",{\"property\":\"og:url\",\"content\":\"https://hf.co/spaces/huuquyet/translator-tamagui/\"}],[\"$\",\"meta\",\"14\",{\"property\":\"og:site_name\",\"content\":\"Translator Demo\"}],[\"$\",\"meta\",\"15\",{\"property\":\"og:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}],[\"$\",\"meta\",\"16\",{\"property\":\"og:type\",\"content\":\"website\"}],[\"$\",\"meta\",\"17\",{\"name\":\"twitter:card\",\"content\":\"summary\"}],[\"$\",\"meta\",\"18\",{\"name\":\"twitter:site\",\"content\":\"@HuuQuyetNg\"}],[\"$\",\"meta\",\"19\",{\"name\":\"twitter:title\",\"content\":\"Translator demo app built with Transformers.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"20\",{\"name\":\"twitter:description\",\"content\":\"Translator demo app built with Transformer.js + Tamagui + Next.js\"}],[\"$\",\"meta\",\"21\",{\"name\":"])</script><script>self.__next_f.push([1,"\"twitter:image\",\"content\":\"https://${process.env.vercel_url}/icon/share.png\"}]]\n3:null\n"])</script></body></html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.txt CHANGED
@@ -1,8 +1,10 @@
1
- 2:I[9969,["946","static/chunks/946-310f6d0c4f8124d5.js","423","static/chunks/423-06102cf1584a8fa3.js","931","static/chunks/app/page-d8efbd597c53f3cc.js"],"default"]
2
- 3:I[2981,["946","static/chunks/946-310f6d0c4f8124d5.js","123","static/chunks/123-a6d2101f21b1dc81.js","185","static/chunks/app/layout-0e0c053c92ad2f81.js"],"default"]
3
- 4:I[9275,[],""]
4
- 5:I[1343,[],""]
5
- 6:I[2944,["946","static/chunks/946-310f6d0c4f8124d5.js","123","static/chunks/123-a6d2101f21b1dc81.js","185","static/chunks/app/layout-0e0c053c92ad2f81.js"],"Analytics"]
6
- 0:["sS3KCrv4R0AkB6q5rvqSN",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{}]],null],null]},[["$","html",null,{"lang":"en","children":[["$","head",null,{}],["$","body",null,{"children":[["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",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."}]}]]}]}]],"notFoundStyles":[],"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c07dfed9e589ce2b.css","precedence":"next","crossOrigin":"$undefined"}]]}]}],["$","$L6",null,{}]]}]]}],null],null],[null,"$L7"]]]]
7
- 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","3",{"name":"description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","4",{"name":"application-name","content":"Translator Demo"}],["$","link","5",{"rel":"manifest","href":"/manifest.json","crossOrigin":"use-credentials"}],["$","meta","6",{"name":"keywords","content":"Translator,Transformers.js,Next.js,Tamagui"}],["$","meta","7",{"name":"format-detection","content":"telephone=no"}],["$","meta","8",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","9",{"name":"apple-mobile-web-app-title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","10",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","meta","11",{"property":"og:title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","12",{"property":"og:description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","13",{"property":"og:url","content":"https://hf.co/spaces/huuquyet/translator-tamagui/"}],["$","meta","14",{"property":"og:site_name","content":"Translator Demo"}],["$","meta","15",{"property":"og:image","content":"https://${process.env.vercel_url}/icon/share.png"}],["$","meta","16",{"property":"og:type","content":"website"}],["$","meta","17",{"name":"twitter:card","content":"summary"}],["$","meta","18",{"name":"twitter:site","content":"@HuuQuyetNg"}],["$","meta","19",{"name":"twitter:title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","20",{"name":"twitter:description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","21",{"name":"twitter:image","content":"https://${process.env.vercel_url}/icon/share.png"}]]
 
 
8
  1:null
 
1
+ 2:"$Sreact.suspense"
2
+ 3:I[912,["931","static/chunks/app/page-b2abe5878ca250a0.js"],"BailoutToCSR"]
3
+ 5:I[9275,[],""]
4
+ 6:I[1343,[],""]
5
+ 7:I[6770,["185","static/chunks/app/layout-ce2469687f902f56.js"],"Analytics"]
6
+ 0:["ss7CKkqdkp8gKJJffXP0l",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$2",null,{"fallback":null,"children":["$","$L3",null,{"reason":"next/dynamic","children":"$L4"}]}]],null],null]},[["$","html",null,{"lang":"en","children":[["$","head",null,{}],["$","body",null,{"children":[["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",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."}]}]]}]}]],"notFoundStyles":[],"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/340fba77366dfc7d.css","precedence":"next","crossOrigin":"$undefined"}]]}],["$","$L7",null,{}]]}]]}],null],null],[null,"$L8"]]]]
7
+ 9:I[9172,["931","static/chunks/app/page-b2abe5878ca250a0.js"],"default"]
8
+ 4:["$","$L9",null,{}]
9
+ 8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","3",{"name":"description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","4",{"name":"application-name","content":"Translator Demo"}],["$","link","5",{"rel":"manifest","href":"/manifest.json","crossOrigin":"use-credentials"}],["$","meta","6",{"name":"keywords","content":"Translator,Transformers.js,Next.js,Tamagui"}],["$","meta","7",{"name":"format-detection","content":"telephone=no"}],["$","meta","8",{"name":"apple-mobile-web-app-capable","content":"yes"}],["$","meta","9",{"name":"apple-mobile-web-app-title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","10",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","meta","11",{"property":"og:title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","12",{"property":"og:description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","13",{"property":"og:url","content":"https://hf.co/spaces/huuquyet/translator-tamagui/"}],["$","meta","14",{"property":"og:site_name","content":"Translator Demo"}],["$","meta","15",{"property":"og:image","content":"https://${process.env.vercel_url}/icon/share.png"}],["$","meta","16",{"property":"og:type","content":"website"}],["$","meta","17",{"name":"twitter:card","content":"summary"}],["$","meta","18",{"name":"twitter:site","content":"@HuuQuyetNg"}],["$","meta","19",{"name":"twitter:title","content":"Translator demo app built with Transformers.js + Tamagui + Next.js"}],["$","meta","20",{"name":"twitter:description","content":"Translator demo app built with Transformer.js + Tamagui + Next.js"}],["$","meta","21",{"name":"twitter:image","content":"https://${process.env.vercel_url}/icon/share.png"}]]
10
  1:null
manifest.json CHANGED
@@ -1,29 +1,29 @@
1
- {
2
- "name": "translator-tamagui",
3
- "short_name": "translator-tamagui",
4
- "icons": [
5
- {
6
- "src": "/icons/apple-touch-icon.png",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon",
9
- "purpose": "any maskable"
10
- },
11
- {
12
- "src": "/icons/android-icon-192x192.png",
13
- "sizes": "192x192",
14
- "type": "image/png",
15
- "purpose": "any maskable"
16
- },
17
- {
18
- "src": "/icons/android-icon-512x512.png",
19
- "sizes": "512x512",
20
- "type": "image/png",
21
- "purpose": "any maskable"
22
- }
23
- ],
24
- "start_url": "/",
25
- "scope": "/",
26
- "display": "standalone",
27
- "theme_color": "#a0a0a0",
28
- "background_color": "#151515"
29
- }
 
1
+ {
2
+ "name": "translator-tamagui",
3
+ "short_name": "translator-tamagui",
4
+ "icons": [
5
+ {
6
+ "src": "/icons/apple-touch-icon.png",
7
+ "sizes": "64x64 32x32 24x24 16x16",
8
+ "type": "image/x-icon",
9
+ "purpose": "any maskable"
10
+ },
11
+ {
12
+ "src": "/icons/android-icon-192x192.png",
13
+ "sizes": "192x192",
14
+ "type": "image/png",
15
+ "purpose": "any maskable"
16
+ },
17
+ {
18
+ "src": "/icons/android-icon-512x512.png",
19
+ "sizes": "512x512",
20
+ "type": "image/png",
21
+ "purpose": "any maskable"
22
+ }
23
+ ],
24
+ "start_url": "/",
25
+ "scope": "/",
26
+ "display": "standalone",
27
+ "theme_color": "#a0a0a0",
28
+ "background_color": "#151515"
29
+ }
style.css DELETED
@@ -1,28 +0,0 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(a,i)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let t={};const r=e=>n(e,c),o={module:{uri:c},exports:t,require:r};s[c]=Promise.all(a.map((e=>o[e]||r(e)))).then((e=>(i(...e),t)))}}define(["./workbox-c06b064f"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/chunks/123-a6d2101f21b1dc81.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/190-8c3f29b77c1f7978.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/413.744619bdd7ea9098.js",revision:"744619bdd7ea9098"},{url:"/_next/static/chunks/423-06102cf1584a8fa3.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/432.34b698d3db09a44a.js",revision:"34b698d3db09a44a"},{url:"/_next/static/chunks/590caa2a.699039c37022246b.js",revision:"699039c37022246b"},{url:"/_next/static/chunks/6139e184.ec466d5482164223.js",revision:"ec466d5482164223"},{url:"/_next/static/chunks/946-310f6d0c4f8124d5.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/app/_not-found/page-3aa23121d293e5c8.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/app/layout-0e0c053c92ad2f81.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/app/page-d8efbd597c53f3cc.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/b2db8554.2f90d90ec938bc93.js",revision:"2f90d90ec938bc93"},{url:"/_next/static/chunks/fd9d1056-ee32f1bf30eb3d3f.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/framework-aec844d2ccbe7592.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/main-app-5420370b676a56f3.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/main-fb740fb39bc15572.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/pages/_app-6a626577ffa902a4.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/pages/_error-1be831200e60c5c0.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js",revision:"79330112775102f91e1010318bae2bd3"},{url:"/_next/static/chunks/webpack-c511210a6eab1a58.js",revision:"sS3KCrv4R0AkB6q5rvqSN"},{url:"/_next/static/css/c07dfed9e589ce2b.css",revision:"c07dfed9e589ce2b"},{url:"/_next/static/sS3KCrv4R0AkB6q5rvqSN/_buildManifest.js",revision:"2ec694eb52ae4f523f265a46bae4d768"},{url:"/_next/static/sS3KCrv4R0AkB6q5rvqSN/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/favicon.ico",revision:"4106c96e0a55d35b1b13fa4281a907b7"},{url:"/icons/android-icon-192x192.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/android-icon-512x512.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/apple-icon-16x16.png",revision:"5998cde017dee1b68827ac575ce6a300"},{url:"/icons/apple-icon-32x32.png",revision:"2a82680a8c270c3ad4b8341f5ef897f8"},{url:"/icons/apple-icon.png",revision:"538a91302401ac461adfe1b509181921"},{url:"/icons/safari-pinned-tab.svg",revision:"71900474b7472e9395f81cda3f8abd6a"},{url:"/icons/share.png",revision:"f04a8d2b41543ef4669c07e6d04e2d94"},{url:"/manifest.json",revision:"eef848e691272f3f0ee962dc50b322da"},{url:"/tamagui.css",revision:"22be1a2573fa6a7d54315ab51842bbe8"},{url:"/vercel.svg",revision:"26bf2d0adaf1028a4d4c6ee77005e819"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({response:e})=>e&&"opaqueredirect"===e.type?new Response(e.body,{status:200,statusText:"OK",headers:e.headers}):e}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e,url:{pathname:s}})=>!(!e||s.startsWith("/api/auth/callback")||!s.startsWith("/api/"))),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:{pathname:e},sameOrigin:s})=>s&&!e.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e})=>!e),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}));
 
1
+ if(!self.define){let e,s={};const n=(n,a)=>(n=new URL(n+".js",a).href,s[n]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()})).then((()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e})));self.define=(a,i)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(s[c])return;let t={};const r=e=>n(e,c),o={module:{uri:c},exports:t,require:r};s[c]=Promise.all(a.map((e=>o[e]||r(e)))).then((e=>(i(...e),t)))}}define(["./workbox-c06b064f"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/static/chunks/190-df929413349aa216.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/413.c625d8cd4651c113.js",revision:"c625d8cd4651c113"},{url:"/_next/static/chunks/590caa2a.d521cb8a83d5d957.js",revision:"d521cb8a83d5d957"},{url:"/_next/static/chunks/6139e184.386a648ad105fc36.js",revision:"386a648ad105fc36"},{url:"/_next/static/chunks/881.edac2d034d19d100.js",revision:"edac2d034d19d100"},{url:"/_next/static/chunks/app/_not-found/page-0d80861c700ec4be.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/app/layout-ce2469687f902f56.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/app/page-b2abe5878ca250a0.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/b2db8554.2f90d90ec938bc93.js",revision:"2f90d90ec938bc93"},{url:"/_next/static/chunks/fd9d1056-4e1a26e2d413ba3c.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/framework-aec844d2ccbe7592.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/main-81d254d9c6853693.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/main-app-8591d221f05263ff.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/pages/_app-6a626577ffa902a4.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/pages/_error-1be831200e60c5c0.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js",revision:"79330112775102f91e1010318bae2bd3"},{url:"/_next/static/chunks/webpack-be89c114a742069c.js",revision:"ss7CKkqdkp8gKJJffXP0l"},{url:"/_next/static/css/340fba77366dfc7d.css",revision:"340fba77366dfc7d"},{url:"/_next/static/ss7CKkqdkp8gKJJffXP0l/_buildManifest.js",revision:"2ec694eb52ae4f523f265a46bae4d768"},{url:"/_next/static/ss7CKkqdkp8gKJJffXP0l/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/favicon.ico",revision:"4106c96e0a55d35b1b13fa4281a907b7"},{url:"/icons/android-icon-192x192.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/android-icon-512x512.png",revision:"9f29f1d7c8f6da2d2e64bce1d3136d3f"},{url:"/icons/apple-icon-16x16.png",revision:"5998cde017dee1b68827ac575ce6a300"},{url:"/icons/apple-icon-32x32.png",revision:"2a82680a8c270c3ad4b8341f5ef897f8"},{url:"/icons/apple-touch-icon.png",revision:"538a91302401ac461adfe1b509181921"},{url:"/icons/safari-pinned-tab.svg",revision:"5876746bbc008fdab40fd1abf568ca6b"},{url:"/icons/share.png",revision:"f04a8d2b41543ef4669c07e6d04e2d94"},{url:"/manifest.json",revision:"4a29967a121410a5d56683f4a762f67d"},{url:"/vercel.svg",revision:"26bf2d0adaf1028a4d4c6ee77005e819"}],{ignoreURLParametersMatching:[/^utm_/,/^fbclid$/]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({response:e})=>e&&"opaqueredirect"===e.type?new Response(e.body,{status:200,statusText:"OK",headers:e.headers}):e}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(/\/_next\/static.+\.js$/i,new e.CacheFirst({cacheName:"next-static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4|webm)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:48,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e,url:{pathname:s}})=>!(!e||s.startsWith("/api/auth/callback")||!s.startsWith("/api/"))),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&"1"===e.headers.get("Next-Router-Prefetch")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc-prefetch",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({request:e,url:{pathname:s},sameOrigin:n})=>"1"===e.headers.get("RSC")&&n&&!s.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages-rsc",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:{pathname:e},sameOrigin:s})=>s&&!e.startsWith("/api/")),new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({sameOrigin:e})=>!e),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}));
tamagui.css DELETED
The diff for this file is too large to render. See raw diff
 
vercel.svg CHANGED