@bkm016/basalt 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/{chunk-0039s4jt.js → chunk-02d3x4mj.js} +3 -3
  2. package/{chunk-ky55taar.js → chunk-0xd9mnc2.js} +327 -316
  3. package/{chunk-ckjw3b61.js → chunk-13gvs0ax.js} +2 -2
  4. package/{chunk-0d51ggzj.js → chunk-1n7dat03.js} +4 -4
  5. package/{chunk-ppxv5q7y.js → chunk-1zj3zvw5.js} +3 -3
  6. package/{chunk-2ek3wq4b.js → chunk-29qrxygd.js} +1 -1
  7. package/{chunk-7p6e2f5s.js → chunk-30rjf7my.js} +3 -3
  8. package/{chunk-v2srrqcv.js → chunk-38g3gctw.js} +2 -2
  9. package/{chunk-3j2kkgsc.js → chunk-4dw43syb.js} +1 -1
  10. package/{chunk-t66jqz12.js → chunk-4gtgqcct.js} +2 -2
  11. package/chunk-66h5qpc6.js +479 -0
  12. package/{chunk-qmdpgbg3.js → chunk-755sy11p.js} +1 -1
  13. package/{chunk-n015c8nx.js → chunk-7zkswxvk.js} +1 -1
  14. package/{chunk-91r5nvth.js → chunk-82v8jh1h.js} +2 -2
  15. package/{chunk-12trygzx.js → chunk-95964592.js} +16 -16
  16. package/{chunk-nmtk9xra.js → chunk-9as0p561.js} +2 -2
  17. package/{chunk-pn413hjw.js → chunk-a1352w87.js} +1 -1
  18. package/{chunk-rnt1ckk9.js → chunk-a1rb1a48.js} +5 -5
  19. package/{chunk-fzcmzbsq.js → chunk-a98wma9j.js} +1 -1
  20. package/{chunk-kgkrccr1.js → chunk-asyr3gnq.js} +2 -2
  21. package/{chunk-5gxj9560.js → chunk-ax04trym.js} +1 -1
  22. package/chunk-b2bxqeb4.js +2 -0
  23. package/{chunk-xjw78yey.js → chunk-bdjr0kfr.js} +4 -4
  24. package/{chunk-7kjr9gdx.js → chunk-bk4rpnm8.js} +2 -2
  25. package/{chunk-47vf66t6.js → chunk-c0zfefq8.js} +1 -1
  26. package/{chunk-kpvaqb7c.js → chunk-c6q04xrd.js} +2 -2
  27. package/chunk-c71173py.js +25 -0
  28. package/{chunk-adys4qq4.js → chunk-cmwdjes8.js} +5 -5
  29. package/{chunk-dcwdmpw2.js → chunk-d0a1jxk5.js} +1 -1
  30. package/{chunk-2nrkqq45.js → chunk-d5j74pcp.js} +7 -7
  31. package/{chunk-pkpj7s2k.js → chunk-dfh9m9n7.js} +1 -1
  32. package/{chunk-26cz8et8.js → chunk-dq01v5eq.js} +1 -1
  33. package/{chunk-fpxc6qjr.js → chunk-e1x629v0.js} +2 -2
  34. package/{chunk-86xhmz7k.js → chunk-en218k4y.js} +1 -1
  35. package/{chunk-3hg7yn1t.js → chunk-fgwda4m0.js} +1 -1
  36. package/chunk-gbjn6d81.js +2 -0
  37. package/{chunk-x496kg3v.js → chunk-gkf5jwvj.js} +1 -1
  38. package/{chunk-k3q5jqjj.js → chunk-hb4f2v34.js} +2 -2
  39. package/{chunk-mr807v9n.js → chunk-hbnmymaq.js} +1 -1
  40. package/{chunk-818nd6s1.js → chunk-jj4hqbrx.js} +2 -2
  41. package/{chunk-jyv9cae6.js → chunk-jn5pqy5v.js} +1 -1
  42. package/{chunk-yyy2yp6f.js → chunk-jtsve11b.js} +9 -9
  43. package/chunk-m1eam0s5.js +2 -0
  44. package/{chunk-6vnjg5x9.js → chunk-mbpb5c7w.js} +1 -1
  45. package/{chunk-t40fag3z.js → chunk-msm9hmk9.js} +1 -1
  46. package/{chunk-j781n7ca.js → chunk-n0ybj4h9.js} +2 -2
  47. package/{chunk-jp5afrwm.js → chunk-n2jcx65v.js} +2 -2
  48. package/{chunk-2ks2tnac.js → chunk-nrsd810j.js} +2 -2
  49. package/chunk-pnspvnyd.js +2 -0
  50. package/chunk-pz2afna8.js +2 -0
  51. package/{chunk-d37gemt2.js → chunk-q9f4xb0w.js} +3 -3
  52. package/{chunk-hd3x1w46.js → chunk-qaeyhe65.js} +1 -1
  53. package/chunk-qnkrrwmg.js +2 -0
  54. package/{chunk-e6c2mzxc.js → chunk-r4ttdkrz.js} +2 -2
  55. package/{chunk-r9aatvwm.js → chunk-stj493dn.js} +2 -2
  56. package/{chunk-g3ed130w.js → chunk-tevejprz.js} +4 -4
  57. package/{chunk-k3rmjrf1.js → chunk-v3ee9z3f.js} +1 -1
  58. package/{chunk-4n49ptbz.js → chunk-vtqr7dm8.js} +2 -2
  59. package/{chunk-z3ch1wg6.js → chunk-xh444pfn.js} +14 -14
  60. package/{chunk-pehyqj8k.js → chunk-zc9ar0r4.js} +1 -1
  61. package/{chunk-ef9yhnk3.js → chunk-zyyzk5ha.js} +1 -1
  62. package/compiled.js +9 -9
  63. package/package.json +1 -1
  64. package/ui-test-worker.js +8 -8
  65. package/web/chunk-08sq3cwm.js +1 -0
  66. package/web/chunk-0pghpg4y.js +2 -0
  67. package/web/chunk-12qf1r6m.js +1 -0
  68. package/web/chunk-24fjnnee.js +1 -0
  69. package/web/chunk-24jhbz82.js +24 -0
  70. package/web/{chunk-v14s4vgc.js → chunk-2dvbeqt0.js} +1 -1
  71. package/web/chunk-2hrswh3d.js +2 -0
  72. package/web/chunk-2j2atyjw.js +1 -0
  73. package/web/{chunk-s7e93552.js → chunk-2x4g9t37.js} +4 -4
  74. package/web/{chunk-hstbgb83.js → chunk-3ak5dg10.js} +5 -5
  75. package/web/chunk-3ecrkvr3.js +106 -0
  76. package/web/chunk-3h3g3ca3.js +1 -0
  77. package/web/chunk-3hr3ew9w.js +1 -0
  78. package/web/chunk-3pcrxg6m.js +1 -0
  79. package/web/{chunk-7a4xk6j9.js → chunk-3pd0qt83.js} +5 -5
  80. package/web/chunk-3txxt0a7.js +1 -0
  81. package/web/chunk-43g4wd7a.js +1 -0
  82. package/web/{chunk-nky3bqfg.js → chunk-4a6gdrbs.js} +1 -1
  83. package/web/{chunk-d0m0h0eb.js → chunk-5a4mj3qz.js} +1 -1
  84. package/web/{chunk-rkjkynm3.js → chunk-5baeh8q7.js} +11 -11
  85. package/web/{chunk-qq2v8h6d.js → chunk-5dr4tkem.js} +4 -4
  86. package/web/chunk-5jdrev9p.js +36 -0
  87. package/web/{chunk-p0cjvjdx.js → chunk-5v2c0aqk.js} +1 -1
  88. package/web/chunk-5z2n4z9x.css +1 -0
  89. package/web/{chunk-6e38yf3a.js → chunk-601k823s.js} +4 -4
  90. package/web/{chunk-8dp7h6w8.js → chunk-60axh4sa.js} +16 -16
  91. package/web/chunk-66wb0p6e.js +62 -0
  92. package/web/{chunk-qcge7d6s.js → chunk-6e87m0nm.js} +2 -2
  93. package/web/chunk-6y55gk1n.js +1 -0
  94. package/web/{chunk-8wg44w91.js → chunk-79e08rk1.js} +2 -2
  95. package/web/{chunk-svh2gkx8.js → chunk-7qkav30b.js} +1 -1
  96. package/web/chunk-814kkkmq.js +8 -0
  97. package/web/chunk-8jcvdd5d.js +2 -0
  98. package/web/{chunk-rbdvc8x7.js → chunk-8w7fyb3v.js} +1 -1
  99. package/web/chunk-8w8atrdh.js +1 -0
  100. package/web/{chunk-sda7cyrt.js → chunk-8z0r0wtk.js} +21 -21
  101. package/web/chunk-935mjq1c.js +39 -0
  102. package/web/chunk-942g3eqn.js +1 -0
  103. package/web/{chunk-1gx0zpmp.js → chunk-98y92vmh.js} +9 -9
  104. package/web/chunk-9ctg0f30.js +3 -0
  105. package/web/chunk-9fnr00kv.js +4 -0
  106. package/web/{chunk-fe31sv6t.js → chunk-9yfftz38.js} +1 -1
  107. package/web/chunk-a0ryzdnp.js +7 -0
  108. package/web/chunk-a61zrp66.js +1 -0
  109. package/web/{chunk-dtg5yhhs.js → chunk-af9evdza.js} +1 -1
  110. package/web/chunk-arnzrqnm.js +1 -0
  111. package/web/chunk-avxk6jpc.js +2 -0
  112. package/web/{chunk-c01176kn.js → chunk-awkdw9rw.js} +2 -2
  113. package/web/{chunk-tkp72r9b.js → chunk-b5h52neg.js} +1 -1
  114. package/web/chunk-bwy3e58v.js +1 -0
  115. package/web/{chunk-ja7w629n.js → chunk-c57f714b.js} +2 -2
  116. package/web/chunk-c6yacwbc.js +30 -0
  117. package/web/{chunk-823b7866.js → chunk-ctzkqx2g.js} +18 -18
  118. package/web/{chunk-w37n09px.js → chunk-db3twjvk.js} +10 -10
  119. package/web/{chunk-hbkasy6c.js → chunk-ddyyc20r.js} +22 -22
  120. package/web/{chunk-z0zrp8n8.js → chunk-dnv8dx72.js} +1 -1
  121. package/web/{chunk-jzte2phh.js → chunk-dwjmr0zj.js} +1 -1
  122. package/web/chunk-dz7g1gnv.js +2 -0
  123. package/web/{chunk-cez1k71m.js → chunk-eadfxfkw.js} +1 -1
  124. package/web/{chunk-d9wdsjkk.js → chunk-eqndhs21.js} +2 -2
  125. package/web/{chunk-cyjnert7.js → chunk-ewx42c11.js} +16 -16
  126. package/web/chunk-f7jpakwh.js +1 -0
  127. package/web/{chunk-r4ffr96e.js → chunk-ff1pmd3g.js} +1 -1
  128. package/web/chunk-fjb3ksfd.js +78 -0
  129. package/web/chunk-fpb2dd2d.js +2 -0
  130. package/web/{chunk-fv6vm14n.js → chunk-frnh4zqf.js} +2 -2
  131. package/web/{chunk-0j9a7811.js → chunk-gn8kyz76.js} +6 -6
  132. package/web/chunk-gv99c8zv.js +1 -0
  133. package/web/chunk-h0767tjv.js +1 -0
  134. package/web/chunk-hqynf99g.js +1 -0
  135. package/web/{chunk-jam45rqg.js → chunk-jccz14ye.js} +2 -2
  136. package/web/{chunk-33w36n91.js → chunk-kcjz03h5.js} +2 -2
  137. package/web/chunk-ket6g0yd.js +1 -0
  138. package/web/chunk-m9q5nr8f.js +1 -0
  139. package/web/chunk-mdfksj61.js +1 -0
  140. package/web/chunk-me7dza1c.js +1 -0
  141. package/web/{chunk-8773nwdc.js → chunk-myd6sc76.js} +1 -1
  142. package/web/{chunk-sf101c23.js → chunk-mykrm8ba.js} +2 -2
  143. package/web/chunk-mzzaet63.js +1 -0
  144. package/web/chunk-n0wazxgz.js +1 -0
  145. package/web/{chunk-1s8zg6fb.js → chunk-nnyc889n.js} +5 -5
  146. package/web/{chunk-xabcx3ry.js → chunk-nvpp0ghj.js} +3 -3
  147. package/web/chunk-nvt9tkt4.js +1139 -0
  148. package/web/{chunk-dgwkqcz6.js → chunk-p9hfcamx.js} +2 -2
  149. package/web/chunk-ph1dgffm.js +1 -0
  150. package/web/chunk-q34as3v6.js +1 -0
  151. package/web/{chunk-sd3cdqcm.js → chunk-qh62nkem.js} +2 -2
  152. package/web/{chunk-j1bw5v1g.js → chunk-qq6m2my8.js} +2 -2
  153. package/web/{chunk-f93pe4kb.js → chunk-qsqtwf34.js} +4 -4
  154. package/web/{chunk-85gdsmt4.js → chunk-qz6r9v1z.js} +1 -1
  155. package/web/chunk-rad2s9ha.js +1 -0
  156. package/web/{chunk-8nv7q5ac.js → chunk-rasjtvsb.js} +15 -15
  157. package/web/{chunk-s38s9ff9.js → chunk-rayf24gy.js} +28 -28
  158. package/web/{chunk-cn0tmwjs.js → chunk-rrpn5r5w.js} +2 -2
  159. package/web/{chunk-m5y2d4zv.js → chunk-s37beysw.js} +1 -1
  160. package/web/chunk-s60s09mb.js +1 -0
  161. package/web/chunk-sk1wkgjw.js +4 -0
  162. package/web/{chunk-xqyazzm7.js → chunk-spbs56wz.js} +5 -5
  163. package/web/{chunk-h5cfg3vv.js → chunk-t893141g.js} +2 -2
  164. package/web/chunk-tftc5v89.js +24 -0
  165. package/web/chunk-tfvcs2xx.js +1 -0
  166. package/web/{chunk-q1xxs319.js → chunk-ts6jsfdk.js} +4 -4
  167. package/web/{chunk-xsz1dfm2.js → chunk-v1exk5wd.js} +20 -20
  168. package/web/{chunk-3q0v8w45.js → chunk-veam6vk4.js} +79 -79
  169. package/web/{chunk-xb9m0092.js → chunk-vqmj6peg.js} +1 -1
  170. package/web/{chunk-cn1xpg3q.js → chunk-vsjpnwsr.js} +2 -2
  171. package/web/{chunk-et8q775x.js → chunk-w3w18stt.js} +5 -5
  172. package/web/chunk-wdq2tp9e.js +1 -0
  173. package/web/chunk-wkf5xfyr.js +1 -0
  174. package/web/{chunk-fx4mackk.js → chunk-wzd2a4k5.js} +4 -4
  175. package/web/{chunk-jjjtv2r1.js → chunk-xa43ndfj.js} +2 -2
  176. package/web/chunk-xh4xn1az.js +1 -0
  177. package/web/{chunk-2axwda8c.js → chunk-xx11yv61.js} +7 -7
  178. package/web/chunk-xzwxcxb4.js +1 -0
  179. package/web/chunk-y1qty77a.js +1 -0
  180. package/web/{chunk-4anjs6yp.js → chunk-y2rzeb4v.js} +2 -2
  181. package/web/chunk-ys2tns0p.js +1 -0
  182. package/web/chunk-z05x9cbm.js +1 -0
  183. package/web/{chunk-mf6xng5b.js → chunk-zb2bkr7f.js} +2 -2
  184. package/web/{chunk-wj3ymejj.js → chunk-zdyys4ar.js} +3 -3
  185. package/web/chunk-zgavhnt8.js +1 -0
  186. package/web/index.html +1 -1
  187. package/worker.js +1 -1
  188. package/chunk-2gcp3xdc.js +0 -2
  189. package/chunk-320174qe.js +0 -2
  190. package/chunk-dvb5nd2x.js +0 -2
  191. package/chunk-frt9k18g.js +0 -480
  192. package/chunk-ndt6rjt9.js +0 -2
  193. package/chunk-xy2bxwq8.js +0 -2
  194. package/chunk-yzevjkms.js +0 -25
  195. package/chunk-zdyd8hbn.js +0 -2
  196. package/web/chunk-0jfda4jw.js +0 -2
  197. package/web/chunk-2p3fkhy8.js +0 -1
  198. package/web/chunk-3sz5qcwj.js +0 -1
  199. package/web/chunk-433c80pc.js +0 -1
  200. package/web/chunk-48cnmhvd.js +0 -106
  201. package/web/chunk-5r37rwq1.js +0 -4
  202. package/web/chunk-6bwgdvf6.js +0 -1
  203. package/web/chunk-7f1t7z72.js +0 -2
  204. package/web/chunk-7x35g67d.js +0 -78
  205. package/web/chunk-8pzg8qw4.js +0 -1
  206. package/web/chunk-8r0s8tx7.js +0 -1
  207. package/web/chunk-9p5dfvav.js +0 -1
  208. package/web/chunk-9q9w9pay.js +0 -1
  209. package/web/chunk-a3teqvz2.js +0 -39
  210. package/web/chunk-ahztazsg.js +0 -1
  211. package/web/chunk-bd8ftfxn.js +0 -3
  212. package/web/chunk-c03bt2pz.js +0 -1
  213. package/web/chunk-c1ha2xg6.js +0 -8
  214. package/web/chunk-cgng31df.js +0 -1
  215. package/web/chunk-cvd4f51j.js +0 -1
  216. package/web/chunk-cybvxssy.js +0 -1
  217. package/web/chunk-d22wq71s.js +0 -1
  218. package/web/chunk-dynajx8x.js +0 -2
  219. package/web/chunk-f3vv7n52.js +0 -1
  220. package/web/chunk-fpa81dv7.js +0 -62
  221. package/web/chunk-g17n6asp.js +0 -1
  222. package/web/chunk-g9dzaw9e.js +0 -30
  223. package/web/chunk-gcwhx3av.js +0 -1139
  224. package/web/chunk-gf8vm6b5.js +0 -1
  225. package/web/chunk-gnmeyy4h.js +0 -1
  226. package/web/chunk-hn7mhsbg.js +0 -1
  227. package/web/chunk-jfvxxp5c.js +0 -1
  228. package/web/chunk-k8h8zx6r.js +0 -24
  229. package/web/chunk-m3ajw575.js +0 -1
  230. package/web/chunk-mz9b5bsa.js +0 -1
  231. package/web/chunk-np33kmn4.js +0 -1
  232. package/web/chunk-nvk8mazs.js +0 -1
  233. package/web/chunk-nyw5ewgv.js +0 -1
  234. package/web/chunk-p56dcqpr.js +0 -1
  235. package/web/chunk-pdn4r8x4.js +0 -1
  236. package/web/chunk-qpt34d8d.js +0 -1
  237. package/web/chunk-qskt3tqa.js +0 -1
  238. package/web/chunk-qt3n897m.js +0 -4
  239. package/web/chunk-r1rt48h9.js +0 -1
  240. package/web/chunk-r7tgd2fm.js +0 -7
  241. package/web/chunk-rznszqmy.js +0 -1
  242. package/web/chunk-s1pefd34.js +0 -1
  243. package/web/chunk-sc29azev.js +0 -1
  244. package/web/chunk-t4jc4nac.js +0 -1
  245. package/web/chunk-t7g366a5.js +0 -24
  246. package/web/chunk-thbqwq6b.js +0 -1
  247. package/web/chunk-v94v68xg.js +0 -36
  248. package/web/chunk-wcphswcx.js +0 -2
  249. package/web/chunk-wwcnvyjh.css +0 -1
  250. package/web/chunk-xce8n339.js +0 -1
  251. package/web/chunk-xfd3b01q.js +0 -1
  252. package/web/chunk-xtss82z2.js +0 -1
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{g}from"./chunk-nmtk9xra.js";import{se}from"./chunk-h1kb8b49.js";import{q,V}from"./chunk-ypqjfv3a.js";import{y}from"./chunk-3k627vf2.js";import{j,ge}from"./chunk-2ks2tnac.js";var P=async(e,s,t)=>{let a={api:e.api,provider:e.provider,model:e.id,output:[],stopReason:"stop",timestamp:Date.now()};try{let r=t?.apiKey;if(!r)throw Error(`No API key for provider: ${e.provider}`);let c=x(e,r,t?.headers,t?.fetch),n=_(e,s),i=await t?.onPayload?.(n,e);if(i!==void 0)n=i;let o={...t?.signal?{signal:t.signal}:{},...t?.timeoutMs!==void 0?{timeout:t.timeoutMs}:{},maxRetries:0},{data:R,response:l}=await se(()=>c.chat.completions.create(n,o).withResponse(),{maxRetries:t?.maxRetries,maxRetryDelayMs:t?.maxRetryDelayMs,signal:t?.signal});await t?.onResponse?.({status:l.status,headers:j(l.headers)},e);let u=R;if(a.responseId=u.id,u.usage)a.usage=k(u.usage,e);let p=u.choices[0];if(p){let m=p.message.content;if(typeof m==="string"&&m.length>0)a.output.push({type:"text",text:m});for(let d of p.message.images??[]){let f=typeof d.image_url==="string"?d.image_url:d.image_url?.url;if(!f?.startsWith("data:"))continue;let h=f.match(/^data:([^;]+);base64,(.+)$/);if(!h)continue;a.output.push({type:"image",mimeType:h[1],data:h[2]})}}return a}catch(r){return a.stopReason=t?.signal?.aborted?"aborted":"error",a.errorMessage=V(q(r)),a}};function x(e,s,t,a){return new g({apiKey:s,baseURL:e.baseUrl,dangerouslyAllowBrowser:!0,fetch:a,defaultHeaders:ge({...e.headers,...t})})}function _(e,s){let t=s.input.map((a)=>{if(a.type==="text")return{type:"text",text:y(a.text)};return{type:"image_url",image_url:{url:`data:${a.mimeType};base64,${a.data}`}}});return{model:e.id,messages:[{role:"user",content:t}],stream:!1,modalities:e.output.includes("text")?["image","text"]:["image"]}}function k(e,s){let t=e.prompt_tokens||0,a=e.prompt_tokens_details?.cached_tokens||0,r=e.prompt_tokens_details?.cache_write_tokens||0,c=r>0?Math.max(0,a-r):a,n=Math.max(0,t-c-r),i=e.completion_tokens||0,o={input:n,output:i,cacheRead:c,cacheWrite:r,totalTokens:n+i+c+r,cost:{input:s.cost.input/1e6*n,output:s.cost.output/1e6*i,cacheRead:s.cost.cacheRead/1e6*c,cacheWrite:s.cost.cacheWrite/1e6*r,total:0}};return o.cost.total=o.cost.input+o.cost.output+o.cost.cacheRead+o.cost.cacheWrite,o}export{P as generateImages};
2
+ import{g}from"./chunk-9as0p561.js";import{se}from"./chunk-h1kb8b49.js";import{q,V}from"./chunk-ypqjfv3a.js";import{y}from"./chunk-3k627vf2.js";import{j,ye}from"./chunk-nrsd810j.js";var P=async(e,s,t)=>{let a={api:e.api,provider:e.provider,model:e.id,output:[],stopReason:"stop",timestamp:Date.now()};try{let r=t?.apiKey;if(!r)throw Error(`No API key for provider: ${e.provider}`);let c=x(e,r,t?.headers,t?.fetch),n=_(e,s),i=await t?.onPayload?.(n,e);if(i!==void 0)n=i;let o={...t?.signal?{signal:t.signal}:{},...t?.timeoutMs!==void 0?{timeout:t.timeoutMs}:{},maxRetries:0},{data:R,response:l}=await se(()=>c.chat.completions.create(n,o).withResponse(),{maxRetries:t?.maxRetries,maxRetryDelayMs:t?.maxRetryDelayMs,signal:t?.signal});await t?.onResponse?.({status:l.status,headers:j(l.headers)},e);let u=R;if(a.responseId=u.id,u.usage)a.usage=k(u.usage,e);let p=u.choices[0];if(p){let m=p.message.content;if(typeof m==="string"&&m.length>0)a.output.push({type:"text",text:m});for(let d of p.message.images??[]){let f=typeof d.image_url==="string"?d.image_url:d.image_url?.url;if(!f?.startsWith("data:"))continue;let h=f.match(/^data:([^;]+);base64,(.+)$/);if(!h)continue;a.output.push({type:"image",mimeType:h[1],data:h[2]})}}return a}catch(r){return a.stopReason=t?.signal?.aborted?"aborted":"error",a.errorMessage=V(q(r)),a}};function x(e,s,t,a){return new g({apiKey:s,baseURL:e.baseUrl,dangerouslyAllowBrowser:!0,fetch:a,defaultHeaders:ye({...e.headers,...t})})}function _(e,s){let t=s.input.map((a)=>{if(a.type==="text")return{type:"text",text:y(a.text)};return{type:"image_url",image_url:{url:`data:${a.mimeType};base64,${a.data}`}}});return{model:e.id,messages:[{role:"user",content:t}],stream:!1,modalities:e.output.includes("text")?["image","text"]:["image"]}}function k(e,s){let t=e.prompt_tokens||0,a=e.prompt_tokens_details?.cached_tokens||0,r=e.prompt_tokens_details?.cache_write_tokens||0,c=r>0?Math.max(0,a-r):a,n=Math.max(0,t-c-r),i=e.completion_tokens||0,o={input:n,output:i,cacheRead:c,cacheWrite:r,totalTokens:n+i+c+r,cost:{input:s.cost.input/1e6*n,output:s.cost.output/1e6*i,cacheRead:s.cost.cacheRead/1e6*c,cacheWrite:s.cost.cacheWrite/1e6*r,total:0}};return o.cost.total=o.cost.input+o.cost.output+o.cost.cacheRead+o.cost.cacheWrite,o}export{P as generateImages};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{hr}from"./chunk-pn413hjw.js";import{ae}from"./chunk-2ek3wq4b.js";var t={api:"typesafe-system-one",label:"System One API",url:(e)=>new URL("systemone",`${e.baseUrl.replace(/\/+$/u,"")}/`),payload:(e,r)=>({model:e.id,...r}),output:(e)=>{if(!ae(e))throw Error("System One API returned an unexpected response");return e}},a=(e,r,s)=>hr(t,e,r,s);export{a as classify};
2
+ import{hr}from"./chunk-a1352w87.js";import{ae}from"./chunk-29qrxygd.js";var t={api:"typesafe-system-one",label:"System One API",url:(e)=>new URL("systemone",`${e.baseUrl.replace(/\/+$/u,"")}/`),payload:(e,r)=>({model:e.id,...r}),output:(e)=>{if(!ae(e))throw Error("System One API returned an unexpected response");return e}},a=(e,r,s)=>hr(t,e,r,s);export{a as classify};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Gt}from"./chunk-bwawt15q.js";var ur={};Gt(ur,{Activity:()=>Y,Children:()=>U,Component:()=>k,Fragment:()=>b,Profiler:()=>q,PureComponent:()=>G,StrictMode:()=>z,Suspense:()=>K,ViewTransition:()=>B,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>pr,__COMPILER_RUNTIME:()=>V,addTransitionType:()=>W,cache:()=>X,cacheSignal:()=>Q,cloneElement:()=>Z,createContext:()=>Bn,createElement:()=>C,createRef:()=>J,forwardRef:()=>F,isValidElement:()=>ee,lazy:()=>te,memo:()=>re,startTransition:()=>ne,unstable_useCacheRefresh:()=>oe,use:()=>ue,useActionState:()=>se,useCallback:()=>ie,useContext:()=>Fn,useDebugValue:()=>fe,useDeferredValue:()=>ce,useEffect:()=>Wn,useEffectEvent:()=>pe,useId:()=>ae,useImperativeHandle:()=>le,useInsertionEffect:()=>ye,useLayoutEffect:()=>_e,useMemo:()=>Ee,useOptimistic:()=>ve,useReducer:()=>de,useRef:()=>$n,useState:()=>jr,useSyncExternalStore:()=>Hn,useTransition:()=>ge,version:()=>qn},{Activity:(rt)=>Y=rt,Children:(rt)=>U=rt,Component:(rt)=>k=rt,Fragment:(rt)=>b=rt,Profiler:(rt)=>q=rt,PureComponent:(rt)=>G=rt,StrictMode:(rt)=>z=rt,Suspense:(rt)=>K=rt,ViewTransition:(rt)=>B=rt,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(rt)=>pr=rt,__COMPILER_RUNTIME:(rt)=>V=rt,addTransitionType:(rt)=>W=rt,cache:(rt)=>X=rt,cacheSignal:(rt)=>Q=rt,cloneElement:(rt)=>Z=rt,createContext:(rt)=>Bn=rt,createElement:(rt)=>C=rt,createRef:(rt)=>J=rt,forwardRef:(rt)=>F=rt,isValidElement:(rt)=>ee=rt,lazy:(rt)=>te=rt,memo:(rt)=>re=rt,startTransition:(rt)=>ne=rt,unstable_useCacheRefresh:(rt)=>oe=rt,use:(rt)=>ue=rt,useActionState:(rt)=>se=rt,useCallback:(rt)=>ie=rt,useContext:(rt)=>Fn=rt,useDebugValue:(rt)=>fe=rt,useDeferredValue:(rt)=>ce=rt,useEffect:(rt)=>Wn=rt,useEffectEvent:(rt)=>pe=rt,useId:(rt)=>ae=rt,useImperativeHandle:(rt)=>le=rt,useInsertionEffect:(rt)=>ye=rt,useLayoutEffect:(rt)=>_e=rt,useMemo:(rt)=>Ee=rt,useOptimistic:(rt)=>ve=rt,useReducer:(rt)=>de=rt,useRef:(rt)=>$n=rt,useState:(rt)=>jr=rt,useSyncExternalStore:(rt)=>Hn=rt,useTransition:(rt)=>ge=rt,version:(rt)=>qn=rt});var Vr={};Gt(Vr,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>Gn,browser:()=>Re,createPortal:()=>xe,flushSync:()=>mt,preconnect:()=>Se,prefetchDNS:()=>Oe,preinit:()=>Ce,preinitModule:()=>Ae,preload:()=>Pe,preloadModule:()=>he,requestFormReset:()=>Ne,unstable_batchedUpdates:()=>we,useFormState:()=>He,useFormStatus:()=>Ie,version:()=>Le},{});var T=Symbol.for("react.transitional.element"),Me=Symbol.for("react.portal"),$e=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),be=Symbol.for("react.context"),qe=Symbol.for("react.forward_ref"),Ge=Symbol.for("react.suspense"),ze=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),Ke=Symbol.for("react.activity"),Be=Symbol.for("react.view_transition"),O=Symbol.iterator;function Ve(e){if(e===null||typeof e!=="object")return null;return e=O&&e[O]||e["@@iterator"],typeof e==="function"?e:null}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,I={};function y(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}y.prototype.isReactComponent={};y.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L(){}L.prototype=y.prototype;function m(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}var R=m.prototype=new L;R.constructor=m;H(R,y.prototype);R.isPureReactComponent=!0;var A=Array.isArray;function g(){}var s={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function x(e,t,r){var n=r.ref;return{$$typeof:T,type:e,key:t,ref:n!==void 0?n:null,props:r}}function We(e,t){return x(e.type,t,e.props)}function S(e){return typeof e==="object"&&e!==null&&e.$$typeof===T}function Xe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var P=/\/+/g;function d(e,t){return typeof e==="object"&&e!==null&&e.key!=null?Xe(""+e.key):t.toString(36)}function Qe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(g,g):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,t,r,n,o){var u=typeof e;if(u==="undefined"||u==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case T:case Me:i=!0;break;case N:return i=e._init,l(i(e._payload),t,r,n,o)}}if(i)return o=o(e),i=n===""?"."+d(e,0):n,A(o)?(r="",i!=null&&(r=i.replace(P,"$&/")+"/"),l(o,t,r,"",function(De){return De})):o!=null&&(S(o)&&(o=We(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+i)),t.push(o)),1;i=0;var p=n===""?".":n+":";if(A(e))for(var c=0;c<e.length;c++)n=e[c],u=p+d(n,c),i+=l(n,t,r,u,o);else if(c=Ve(e),typeof c==="function")for(e=c.call(e),c=0;!(n=e.next()).done;)n=n.value,u=p+d(n,c++),i+=l(n,t,r,u,o);else if(u==="object"){if(typeof e.then==="function")return l(Qe(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function E(e,t,r){if(e==null)return e;var n=[],o=0;return l(e,n,"","",function(u){return t.call(r,u,o++)}),n}function Ze(e){if(e._status===-1){var t=e._result,r=t();r.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n)},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n,r.status===void 0&&(r.status="rejected",r.reason=n)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var h=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)};function D(e){var t=s.T,r={};r.types=t!==null?t.types:null,s.T=r;try{var n=e(),o=s.S;o!==null&&o(r,n),typeof n==="object"&&n!==null&&typeof n.then==="function"&&n.then(g,h)}catch(u){h(u)}finally{t!==null&&r.types!==null&&(t.types=r.types),s.T=t}}function M(e){var t=s.T;if(t!==null){var r=t.types;r===null?t.types=[e]:r.indexOf(e)===-1&&r.push(e)}else D(M.bind(null,e))}var Je={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};var Y=Ke,U=Je,k=y,b=$e,q=Ue,G=m,z=Ye,K=Ge,B=Be,pr=s,V={__proto__:null,c:function(e){return s.H.useMemoCache(e)}},W=M,X=function(e){return function(){return e.apply(null,arguments)}},Q=function(){return null},Z=function(e,t,r){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var n=H({},e.props),o=e.key;if(t!=null)for(u in t.key!==void 0&&(o=""+t.key),t)!j.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(n[u]=t[u]);var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){for(var i=Array(u),p=0;p<u;p++)i[p]=arguments[p+2];n.children=i}return x(e.type,o,n)},Bn=function(e){return e={$$typeof:be,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ke,_context:e},e},C=function(e,t,r){var n,o={},u=null;if(t!=null)for(n in t.key!==void 0&&(u=""+t.key),t)j.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=t[n]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var p=Array(i),c=0;c<i;c++)p[c]=arguments[c+2];o.children=p}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)o[n]===void 0&&(o[n]=i[n]);return x(e,u,o)},J=function(){return{current:null}},F=function(e){return{$$typeof:qe,render:e}},ee=S,te=function(e){return{$$typeof:N,_payload:{_status:-1,_result:e},_init:Ze}},re=function(e,t){return{$$typeof:ze,type:e,compare:t===void 0?null:t}},ne=D,oe=function(){return s.H.useCacheRefresh()},ue=function(e){return s.H.use(e)},se=function(e,t,r){return s.H.useActionState(e,t,r)},ie=function(e,t){return s.H.useCallback(e,t)},Fn=function(e){return s.H.useContext(e)},fe=function(){},ce=function(e,t){return s.H.useDeferredValue(e,t)},Wn=function(e,t){return s.H.useEffect(e,t)},pe=function(e){return s.H.useEffectEvent(e)},ae=function(){return s.H.useId()},le=function(e,t,r){return s.H.useImperativeHandle(e,t,r)},ye=function(e,t){return s.H.useInsertionEffect(e,t)},_e=function(e,t){return s.H.useLayoutEffect(e,t)},Ee=function(e,t){return s.H.useMemo(e,t)},ve=function(e,t){return s.H.useOptimistic(e,t)},de=function(e,t,r){return s.H.useReducer(e,t,r)},$n=function(e){return s.H.useRef(e)},jr=function(e){return s.H.useState(e)},Hn=function(e,t,r){return s.H.useSyncExternalStore(e,t,r)},ge=function(){return s.H.useTransition()},qn="19.3.1";function je(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(je)}catch(e){console.error(e)}}function me(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var f={d:{f:a,r:function(){throw Error(me(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},Fe=Symbol.for("react.portal"),et=Symbol.for("react.recoverable"),Te=Symbol.for("react.optimistic_key");function tt(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fe,key:n==null?null:n===Te?Te:""+n,children:e,containerInfo:t,implementation:r}}var _=pr;function v(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}var Gn=f,Re=function(e){return{$$typeof:et,_reason:e}},xe=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(me(299));return tt(e,t,null,r)},mt=function(e){var t=_.T,r=f.p;try{if(_.T=null,f.p=2,e)return e()}finally{_.T=t,f.p=r,f.d.f()}},Se=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,f.d.C(e,t))},Oe=function(e){typeof e==="string"&&f.d.D(e)},Ce=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin),o=typeof t.integrity==="string"?t.integrity:void 0,u=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;r==="style"?f.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:u}):r==="script"&&f.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:u,nonce:typeof t.nonce==="string"?t.nonce:void 0})}},Ae=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var r=v(t.as,t.crossOrigin);f.d.M(e,{crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}}else t==null&&f.d.M(e)},Pe=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin);f.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}},he=function(e,t){if(typeof e==="string")if(t){var r=v(t.as,t.crossOrigin);f.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}else f.d.m(e)},Ne=function(e){f.d.r(e)},we=function(e,t){return e(t)},He=function(e,t,r){return _.H.useFormState(e,t,r)},Ie=function(){return _.H.useHostTransitionStatus()},Le="19.3.1";je();
3
- export{ur,pr,Bn,C,Fn,Wn,$n,jr,Hn,qn,Gn,mt,Vr};
2
+ import{Gt}from"./chunk-bwawt15q.js";var ur={};Gt(ur,{Activity:()=>Y,Children:()=>U,Component:()=>k,Fragment:()=>b,Profiler:()=>q,PureComponent:()=>G,StrictMode:()=>z,Suspense:()=>K,ViewTransition:()=>B,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>pr,__COMPILER_RUNTIME:()=>V,addTransitionType:()=>W,cache:()=>X,cacheSignal:()=>Q,cloneElement:()=>Z,createContext:()=>Un,createElement:()=>C,createRef:()=>J,forwardRef:()=>F,isValidElement:()=>ee,lazy:()=>te,memo:()=>re,startTransition:()=>ne,unstable_useCacheRefresh:()=>oe,use:()=>ue,useActionState:()=>se,useCallback:()=>ie,useContext:()=>Bn,useDebugValue:()=>fe,useDeferredValue:()=>ce,useEffect:()=>Fn,useEffectEvent:()=>pe,useId:()=>ae,useImperativeHandle:()=>le,useInsertionEffect:()=>ye,useLayoutEffect:()=>_e,useMemo:()=>Ee,useOptimistic:()=>ve,useReducer:()=>de,useRef:()=>Wn,useState:()=>jr,useSyncExternalStore:()=>$n,useTransition:()=>ge,version:()=>Hn},{Activity:(rt)=>Y=rt,Children:(rt)=>U=rt,Component:(rt)=>k=rt,Fragment:(rt)=>b=rt,Profiler:(rt)=>q=rt,PureComponent:(rt)=>G=rt,StrictMode:(rt)=>z=rt,Suspense:(rt)=>K=rt,ViewTransition:(rt)=>B=rt,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:(rt)=>pr=rt,__COMPILER_RUNTIME:(rt)=>V=rt,addTransitionType:(rt)=>W=rt,cache:(rt)=>X=rt,cacheSignal:(rt)=>Q=rt,cloneElement:(rt)=>Z=rt,createContext:(rt)=>Un=rt,createElement:(rt)=>C=rt,createRef:(rt)=>J=rt,forwardRef:(rt)=>F=rt,isValidElement:(rt)=>ee=rt,lazy:(rt)=>te=rt,memo:(rt)=>re=rt,startTransition:(rt)=>ne=rt,unstable_useCacheRefresh:(rt)=>oe=rt,use:(rt)=>ue=rt,useActionState:(rt)=>se=rt,useCallback:(rt)=>ie=rt,useContext:(rt)=>Bn=rt,useDebugValue:(rt)=>fe=rt,useDeferredValue:(rt)=>ce=rt,useEffect:(rt)=>Fn=rt,useEffectEvent:(rt)=>pe=rt,useId:(rt)=>ae=rt,useImperativeHandle:(rt)=>le=rt,useInsertionEffect:(rt)=>ye=rt,useLayoutEffect:(rt)=>_e=rt,useMemo:(rt)=>Ee=rt,useOptimistic:(rt)=>ve=rt,useReducer:(rt)=>de=rt,useRef:(rt)=>Wn=rt,useState:(rt)=>jr=rt,useSyncExternalStore:(rt)=>$n=rt,useTransition:(rt)=>ge=rt,version:(rt)=>Hn=rt});var Vr={};Gt(Vr,{__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>qn,browser:()=>Re,createPortal:()=>xe,flushSync:()=>mt,preconnect:()=>Se,prefetchDNS:()=>Oe,preinit:()=>Ce,preinitModule:()=>Ae,preload:()=>Pe,preloadModule:()=>he,requestFormReset:()=>Ne,unstable_batchedUpdates:()=>we,useFormState:()=>He,useFormStatus:()=>Ie,version:()=>Le},{});var T=Symbol.for("react.transitional.element"),Me=Symbol.for("react.portal"),$e=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),Ue=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),be=Symbol.for("react.context"),qe=Symbol.for("react.forward_ref"),Ge=Symbol.for("react.suspense"),ze=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),Ke=Symbol.for("react.activity"),Be=Symbol.for("react.view_transition"),O=Symbol.iterator;function Ve(e){if(e===null||typeof e!=="object")return null;return e=O&&e[O]||e["@@iterator"],typeof e==="function"?e:null}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,I={};function y(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}y.prototype.isReactComponent={};y.prototype.setState=function(e,t){if(typeof e!=="object"&&typeof e!=="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L(){}L.prototype=y.prototype;function m(e,t,r){this.props=e,this.context=t,this.refs=I,this.updater=r||w}var R=m.prototype=new L;R.constructor=m;H(R,y.prototype);R.isPureReactComponent=!0;var A=Array.isArray;function g(){}var s={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function x(e,t,r){var n=r.ref;return{$$typeof:T,type:e,key:t,ref:n!==void 0?n:null,props:r}}function We(e,t){return x(e.type,t,e.props)}function S(e){return typeof e==="object"&&e!==null&&e.$$typeof===T}function Xe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var P=/\/+/g;function d(e,t){return typeof e==="object"&&e!==null&&e.key!=null?Xe(""+e.key):t.toString(36)}function Qe(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status==="string"?e.then(g,g):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function l(e,t,r,n,o){var u=typeof e;if(u==="undefined"||u==="boolean")e=null;var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case T:case Me:i=!0;break;case N:return i=e._init,l(i(e._payload),t,r,n,o)}}if(i)return o=o(e),i=n===""?"."+d(e,0):n,A(o)?(r="",i!=null&&(r=i.replace(P,"$&/")+"/"),l(o,t,r,"",function(De){return De})):o!=null&&(S(o)&&(o=We(o,r+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+i)),t.push(o)),1;i=0;var p=n===""?".":n+":";if(A(e))for(var c=0;c<e.length;c++)n=e[c],u=p+d(n,c),i+=l(n,t,r,u,o);else if(c=Ve(e),typeof c==="function")for(e=c.call(e),c=0;!(n=e.next()).done;)n=n.value,u=p+d(n,c++),i+=l(n,t,r,u,o);else if(u==="object"){if(typeof e.then==="function")return l(Qe(e),t,r,n,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function E(e,t,r){if(e==null)return e;var n=[],o=0;return l(e,n,"","",function(u){return t.call(r,u,o++)}),n}function Ze(e){if(e._status===-1){var t=e._result,r=t();r.then(function(n){if(e._status===0||e._status===-1)e._status=1,e._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n)},function(n){if(e._status===0||e._status===-1)e._status=2,e._result=n,r.status===void 0&&(r.status="rejected",r.reason=n)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var h=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)};function D(e){var t=s.T,r={};r.types=t!==null?t.types:null,s.T=r;try{var n=e(),o=s.S;o!==null&&o(r,n),typeof n==="object"&&n!==null&&typeof n.then==="function"&&n.then(g,h)}catch(u){h(u)}finally{t!==null&&r.types!==null&&(t.types=r.types),s.T=t}}function M(e){var t=s.T;if(t!==null){var r=t.types;r===null?t.types=[e]:r.indexOf(e)===-1&&r.push(e)}else D(M.bind(null,e))}var Je={map:E,forEach:function(e,t,r){E(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(t){return t})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};var Y=Ke,U=Je,k=y,b=$e,q=Ue,G=m,z=Ye,K=Ge,B=Be,pr=s,V={__proto__:null,c:function(e){return s.H.useMemoCache(e)}},W=M,X=function(e){return function(){return e.apply(null,arguments)}},Q=function(){return null},Z=function(e,t,r){if(e===null||e===void 0)throw Error("The argument must be a React element, but you passed "+e+".");var n=H({},e.props),o=e.key;if(t!=null)for(u in t.key!==void 0&&(o=""+t.key),t)!j.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(n[u]=t[u]);var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){for(var i=Array(u),p=0;p<u;p++)i[p]=arguments[p+2];n.children=i}return x(e.type,o,n)},Un=function(e){return e={$$typeof:be,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:ke,_context:e},e},C=function(e,t,r){var n,o={},u=null;if(t!=null)for(n in t.key!==void 0&&(u=""+t.key),t)j.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=t[n]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var p=Array(i),c=0;c<i;c++)p[c]=arguments[c+2];o.children=p}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)o[n]===void 0&&(o[n]=i[n]);return x(e,u,o)},J=function(){return{current:null}},F=function(e){return{$$typeof:qe,render:e}},ee=S,te=function(e){return{$$typeof:N,_payload:{_status:-1,_result:e},_init:Ze}},re=function(e,t){return{$$typeof:ze,type:e,compare:t===void 0?null:t}},ne=D,oe=function(){return s.H.useCacheRefresh()},ue=function(e){return s.H.use(e)},se=function(e,t,r){return s.H.useActionState(e,t,r)},ie=function(e,t){return s.H.useCallback(e,t)},Bn=function(e){return s.H.useContext(e)},fe=function(){},ce=function(e,t){return s.H.useDeferredValue(e,t)},Fn=function(e,t){return s.H.useEffect(e,t)},pe=function(e){return s.H.useEffectEvent(e)},ae=function(){return s.H.useId()},le=function(e,t,r){return s.H.useImperativeHandle(e,t,r)},ye=function(e,t){return s.H.useInsertionEffect(e,t)},_e=function(e,t){return s.H.useLayoutEffect(e,t)},Ee=function(e,t){return s.H.useMemo(e,t)},ve=function(e,t){return s.H.useOptimistic(e,t)},de=function(e,t,r){return s.H.useReducer(e,t,r)},Wn=function(e){return s.H.useRef(e)},jr=function(e){return s.H.useState(e)},$n=function(e,t,r){return s.H.useSyncExternalStore(e,t,r)},ge=function(){return s.H.useTransition()},Hn="19.3.1";function je(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(je)}catch(e){console.error(e)}}function me(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var f={d:{f:a,r:function(){throw Error(me(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},Fe=Symbol.for("react.portal"),et=Symbol.for("react.recoverable"),Te=Symbol.for("react.optimistic_key");function tt(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fe,key:n==null?null:n===Te?Te:""+n,children:e,containerInfo:t,implementation:r}}var _=pr;function v(e,t){if(e==="font")return"";if(typeof t==="string")return t==="use-credentials"?t:""}var qn=f,Re=function(e){return{$$typeof:et,_reason:e}},xe=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(me(299));return tt(e,t,null,r)},mt=function(e){var t=_.T,r=f.p;try{if(_.T=null,f.p=2,e)return e()}finally{_.T=t,f.p=r,f.d.f()}},Se=function(e,t){typeof e==="string"&&(t?(t=t.crossOrigin,t=typeof t==="string"?t==="use-credentials"?t:"":void 0):t=null,f.d.C(e,t))},Oe=function(e){typeof e==="string"&&f.d.D(e)},Ce=function(e,t){if(typeof e==="string"&&t&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin),o=typeof t.integrity==="string"?t.integrity:void 0,u=typeof t.fetchPriority==="string"?t.fetchPriority:void 0;r==="style"?f.d.S(e,typeof t.precedence==="string"?t.precedence:void 0,{crossOrigin:n,integrity:o,fetchPriority:u}):r==="script"&&f.d.X(e,{crossOrigin:n,integrity:o,fetchPriority:u,nonce:typeof t.nonce==="string"?t.nonce:void 0})}},Ae=function(e,t){if(typeof e==="string")if(typeof t==="object"&&t!==null){if(t.as==null||t.as==="script"){var r=v(t.as,t.crossOrigin);f.d.M(e,{crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}}else t==null&&f.d.M(e)},Pe=function(e,t){if(typeof e==="string"&&typeof t==="object"&&t!==null&&typeof t.as==="string"){var r=t.as,n=v(r,t.crossOrigin);f.d.L(e,r,{crossOrigin:n,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,type:typeof t.type==="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==="string"?t.imageSizes:void 0,media:typeof t.media==="string"?t.media:void 0})}},he=function(e,t){if(typeof e==="string")if(t){var r=v(t.as,t.crossOrigin);f.d.m(e,{as:typeof t.as==="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity==="string"?t.integrity:void 0,nonce:typeof t.nonce==="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==="string"?t.fetchPriority:void 0})}else f.d.m(e)},Ne=function(e){f.d.r(e)},we=function(e,t){return e(t)},He=function(e,t,r){return _.H.useFormState(e,t,r)},Ie=function(){return _.H.useHostTransitionStatus()},Le="19.3.1";je();
3
+ export{ur,pr,Un,C,Bn,Fn,Wn,jr,$n,Hn,qn,mt,Vr};