@tempots/beatui 0.30.1 → 0.31.0

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 (371) hide show
  1. package/dist/2019-BY_FFnZU.cjs +1 -0
  2. package/dist/{2019-Cd9nHhvg.js → 2019-C660mMK6.js} +9 -10
  3. package/dist/{2020-CyKJpuK6.js → 2020-C3P-aGet.js} +30 -31
  4. package/dist/2020-Cyyhc8pv.cjs +1 -0
  5. package/dist/{ar-Dz8Mg5la.js → ar-BUxQ3yNv.js} +30 -15
  6. package/dist/ar-DcFl4tkv.cjs +1 -0
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +85 -84
  9. package/dist/beatui.css +37 -11
  10. package/dist/beatui.tailwind.css +37 -11
  11. package/dist/{de-ToWTQGEo.js → de-CKKQr2-K.js} +27 -12
  12. package/dist/de-DEUS3n0J.cjs +1 -0
  13. package/dist/{es-CruxS0Tz.js → es-C5VUn_X1.js} +27 -12
  14. package/dist/es-CIeoDpkc.cjs +1 -0
  15. package/dist/{fa-Cf0NZLWA.js → fa-Cs2LZsfr.js} +30 -15
  16. package/dist/fa-gXa9Xdjn.cjs +1 -0
  17. package/dist/fr-6SpJ-gVV.cjs +1 -0
  18. package/dist/{fr-YKXmqMGr.js → fr-Dlw8mKFp.js} +20 -5
  19. package/dist/{he-D8ZOduPw.js → he-Cm4NxsyE.js} +30 -15
  20. package/dist/he-D9cwxZOb.cjs +1 -0
  21. package/dist/hi-CNRHnMsQ.cjs +1 -0
  22. package/dist/{hi-CIamzVEf.js → hi-Cjz1aQX2.js} +30 -15
  23. package/dist/index-BI5w0jSz.js +2707 -0
  24. package/dist/index-Bv2gn_kV.cjs +4 -0
  25. package/dist/index-C-FUCwXi.js +14275 -0
  26. package/dist/index-CKyH3jwP.cjs +1 -0
  27. package/dist/index-CXY0yKJD.cjs +34 -0
  28. package/dist/{index-O9BwR_8P.cjs → index-CYY_JLSN.cjs} +1 -1
  29. package/dist/index-DKy2mZws.cjs +1 -0
  30. package/dist/{index-B2079wM-.js → index-DjShJtXp.js} +15 -15
  31. package/dist/index-DwyUOY3r.js +68 -0
  32. package/dist/{index-DDpjzV7E.js → index-Jd2O_Iux.js} +304 -307
  33. package/dist/{index-DFJed4ks.js → index-_Kh76-c2.js} +1 -1
  34. package/dist/index-klVI8k8O.cjs +8 -0
  35. package/dist/index.cjs.js +4 -4
  36. package/dist/index.es.js +1123 -1229
  37. package/dist/it-DvBJ31Ls.cjs +1 -0
  38. package/dist/{it-Bn7tG_KC.js → it-iuFeIEsO.js} +29 -14
  39. package/dist/{ja-i1ULXeiu.js → ja-D6Dd96v-.js} +25 -10
  40. package/dist/ja-FKJGj5My.cjs +1 -0
  41. package/dist/json-schema/index.cjs.js +1 -1
  42. package/dist/json-schema/index.es.js +1 -1
  43. package/dist/{ko-BpKDmtvY.js → ko-C8GOsfIU.js} +30 -15
  44. package/dist/ko-PqVOGPUi.cjs +1 -0
  45. package/dist/markdown/index.cjs.js +1 -2
  46. package/dist/markdown/index.es.js +4 -420
  47. package/dist/{modal-DvGSDVSv.js → modal-CuhK7DqK.js} +14 -13
  48. package/dist/modal-RQtwnFy9.cjs +1 -0
  49. package/dist/{nl-Cs4PDWCJ.js → nl-Ct2cyWWi.js} +31 -16
  50. package/dist/nl-DAhT0vfu.cjs +1 -0
  51. package/dist/notice-BnX2sRrK.cjs +2 -0
  52. package/dist/notice-Dz_BJg8D.js +1467 -0
  53. package/dist/{pl-BFLNf991.js → pl-DewgRE-k.js} +31 -16
  54. package/dist/pl-JgD0mCRa.cjs +1 -0
  55. package/dist/prosemirror/index.cjs.js +1 -0
  56. package/dist/prosemirror/index.es.js +6 -0
  57. package/dist/prosemirror.css +294 -0
  58. package/dist/pt-BkoMl_PC.cjs +1 -0
  59. package/dist/{pt-BRZeOkcE.js → pt-CNyp2zeW.js} +31 -16
  60. package/dist/ru-9OW0HQFS.cjs +1 -0
  61. package/dist/{ru-KI7Gowz-.js → ru-U6PdSzha.js} +35 -20
  62. package/dist/styles-url-CF_019NX.js +4 -0
  63. package/dist/styles-url-DhmSan6u.cjs +1 -0
  64. package/dist/toolbar-D7fDCmUn.cjs +1 -0
  65. package/dist/toolbar-DTh9Ouhs.js +118 -0
  66. package/dist/{tr-CYk8Fua5.js → tr-CQVvooxi.js} +28 -13
  67. package/dist/tr-DsOaoQqh.cjs +1 -0
  68. package/dist/translations-BDRano6u.cjs +1 -0
  69. package/dist/{translations-DdNHXAWr.js → translations-Cic51rHH.js} +1 -1
  70. package/dist/translations-D4PjDB1t.js +831 -0
  71. package/dist/translations-DDFTHcX3.cjs +1 -0
  72. package/dist/types/beatui-i18n/default.d.ts +14 -0
  73. package/dist/types/beatui-i18n/locales/en.d.ts +14 -0
  74. package/dist/types/beatui-i18n/translations.d.ts +14 -0
  75. package/dist/types/components/form/controller/controller.d.ts +1 -1
  76. package/dist/types/components/form/input/input-container.d.ts +3 -1
  77. package/dist/types/components/form/input/input-options.d.ts +6 -0
  78. package/dist/types/components/form/input/option.d.ts +3 -3
  79. package/dist/types/components/form/use-form.d.ts +2 -2
  80. package/dist/types/components/prosemirror/etoolbar-button.d.ts +11 -0
  81. package/dist/types/components/prosemirror/etoolbar-group.d.ts +4 -0
  82. package/dist/types/components/prosemirror/link-control.d.ts +12 -0
  83. package/dist/types/components/prosemirror/prosemirror-markdown-input.d.ts +76 -0
  84. package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +18 -0
  85. package/dist/types/components/prosemirror/utils.d.ts +12 -0
  86. package/dist/types/prosemirror/index.d.ts +2 -0
  87. package/dist/{ur-BIcZGLWt.js → ur-C3LypxEh.js} +30 -15
  88. package/dist/ur-C8v4y2tI.cjs +1 -0
  89. package/dist/utils-D8WljbbZ.cjs +1 -0
  90. package/dist/{utils-D1op9R8_.js → utils-DY9kZecl.js} +74 -73
  91. package/dist/vi-DzLo7qhK.cjs +1 -0
  92. package/dist/{vi-BeK62QeB.js → vi-M5ObJg3d.js} +19 -4
  93. package/dist/zh-BXk4IZBo.cjs +1 -0
  94. package/dist/{zh-Dt6yWDu2.js → zh-DGA8R46s.js} +32 -17
  95. package/package.json +20 -13
  96. package/dist/2019-Bl1mhxeM.cjs +0 -1
  97. package/dist/2020-BKqFJLj6.cjs +0 -1
  98. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  99. package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
  100. package/dist/apl-B2DGVGxc.js +0 -76
  101. package/dist/apl-M-DNMvvR.cjs +0 -1
  102. package/dist/ar-CbsALGhG.cjs +0 -1
  103. package/dist/asciiarmor-2LVJmxlE.js +0 -34
  104. package/dist/asciiarmor-BMx3XVjX.cjs +0 -1
  105. package/dist/asn1-OOsVM4yU.cjs +0 -1
  106. package/dist/asn1-jKiBa2Ya.js +0 -95
  107. package/dist/asterisk-B1QUaW1C.cjs +0 -1
  108. package/dist/asterisk-DS281yxp.js +0 -271
  109. package/dist/brainfuck-BjUlYKdF.cjs +0 -1
  110. package/dist/brainfuck-C_p9pTT8.js +0 -34
  111. package/dist/clike-BEMIzMUI.cjs +0 -1
  112. package/dist/clike-DGTaUp48.js +0 -620
  113. package/dist/clojure-Ap_IXD2I.cjs +0 -1
  114. package/dist/clojure-CCKyeQKf.js +0 -800
  115. package/dist/cmake-C4D5_VmS.cjs +0 -1
  116. package/dist/cmake-CuaCgAKt.js +0 -28
  117. package/dist/cobol-BlTKFDRj.js +0 -72
  118. package/dist/cobol-Du-cT2hr.cjs +0 -1
  119. package/dist/coffeescript-BVCvwO8I.js +0 -179
  120. package/dist/coffeescript-DDFAj2ea.cjs +0 -1
  121. package/dist/commonlisp-CXBBRCTx.cjs +0 -1
  122. package/dist/commonlisp-D_kxz07b.js +0 -75
  123. package/dist/crystal-D309uH6_.js +0 -217
  124. package/dist/crystal-DAFWRDbh.cjs +0 -1
  125. package/dist/css-BkF-NPzE.js +0 -1553
  126. package/dist/css-DzFJyRJ8.cjs +0 -1
  127. package/dist/cypher-BMq4Fwjl.js +0 -68
  128. package/dist/cypher-BN0-oCze.cjs +0 -1
  129. package/dist/d-BHsqGcfm.cjs +0 -1
  130. package/dist/d-BZcgY6La.js +0 -127
  131. package/dist/de-MO-u5hoD.cjs +0 -1
  132. package/dist/diff-CemTHKfk.cjs +0 -1
  133. package/dist/diff-Cg9d_RX2.js +0 -18
  134. package/dist/dockerfile-BBTH3voH.cjs +0 -1
  135. package/dist/dockerfile-DIy8NleC.js +0 -194
  136. package/dist/dtd-ChoVQPwv.cjs +0 -1
  137. package/dist/dtd-CtLokQ-U.js +0 -84
  138. package/dist/dylan-QYeExnWK.js +0 -234
  139. package/dist/dylan-apTQIgUA.cjs +0 -1
  140. package/dist/ebnf-DUPDuY4r.js +0 -78
  141. package/dist/ebnf-LYmLy17h.cjs +0 -1
  142. package/dist/ecl-C7WNQq7-.cjs +0 -1
  143. package/dist/ecl-CiXN-g_D.js +0 -121
  144. package/dist/eiffel-BJThA8RG.cjs +0 -1
  145. package/dist/eiffel-yQhjl4T1.js +0 -110
  146. package/dist/elm-CNT9vbN0.js +0 -108
  147. package/dist/elm-CcXP9T36.cjs +0 -1
  148. package/dist/erlang-B6mpcObI.cjs +0 -1
  149. package/dist/erlang-CFOYdy9e.js +0 -487
  150. package/dist/es-CqkWVfis.cjs +0 -1
  151. package/dist/fa-DR8j7v-l.cjs +0 -1
  152. package/dist/factor-B-tsx9yW.cjs +0 -1
  153. package/dist/factor-DDOC7X6P.js +0 -65
  154. package/dist/fcl-BzAKklXo.cjs +0 -1
  155. package/dist/fcl-CPC2WYrI.js +0 -103
  156. package/dist/forth-BmxRyE9S.js +0 -60
  157. package/dist/forth-CPAzyZ_n.cjs +0 -1
  158. package/dist/fortran-9bvPyrOW.js +0 -442
  159. package/dist/fortran-DHiTlGV1.cjs +0 -1
  160. package/dist/fr-ClK0mWTO.cjs +0 -1
  161. package/dist/gas-BiPtGF2E.cjs +0 -1
  162. package/dist/gas-cpmYfFX2.js +0 -183
  163. package/dist/gherkin-CJuwpceU.js +0 -34
  164. package/dist/gherkin-Djo7Y51D.cjs +0 -1
  165. package/dist/groovy-BMVITiCm.cjs +0 -1
  166. package/dist/groovy-DZeT_VM-.js +0 -146
  167. package/dist/haskell-Bvt3Qq1t.js +0 -375
  168. package/dist/haskell-CngODaW-.cjs +0 -1
  169. package/dist/haxe-70NVW1pR.js +0 -359
  170. package/dist/haxe-Dyk-piTh.cjs +0 -1
  171. package/dist/he-DeJMBRTP.cjs +0 -1
  172. package/dist/hi-C9Anq8Ae.cjs +0 -1
  173. package/dist/http-BkLifcnL.cjs +0 -1
  174. package/dist/http-D9LttvKF.js +0 -44
  175. package/dist/idl-B6TRFYjl.js +0 -947
  176. package/dist/idl-FmHDmsE-.cjs +0 -1
  177. package/dist/index-0dpJGQbC.js +0 -94
  178. package/dist/index-52kzSRNb.cjs +0 -1
  179. package/dist/index-5a6_6F3Z.cjs +0 -6
  180. package/dist/index-BGHGZg_7.js +0 -552
  181. package/dist/index-BMn-7Ble.js +0 -1307
  182. package/dist/index-BR0F2BVZ.cjs +0 -1
  183. package/dist/index-BlCmv2EJ.cjs +0 -1
  184. package/dist/index-BlamLFdS.js +0 -76
  185. package/dist/index-By8a3eg5.cjs +0 -1
  186. package/dist/index-C0sjoDdy.js +0 -309
  187. package/dist/index-C9RMQY3t.cjs +0 -1
  188. package/dist/index-CDBeAhhM.js +0 -289
  189. package/dist/index-CH2HgQJF.cjs +0 -1
  190. package/dist/index-CT9YDHSn.js +0 -74
  191. package/dist/index-CUZnWZnQ.cjs +0 -3
  192. package/dist/index-CVNvgkJN.js +0 -342
  193. package/dist/index-C_NT6gCL.cjs +0 -1
  194. package/dist/index-CafCsH0Z.cjs +0 -1
  195. package/dist/index-Cei6J0b_.cjs +0 -8
  196. package/dist/index-CmcOKNW2.js +0 -302
  197. package/dist/index-CvpdOKX2.js +0 -136
  198. package/dist/index-CxE1PN5L.cjs +0 -1
  199. package/dist/index-D2BpI4Zz.cjs +0 -2
  200. package/dist/index-D40RPDMJ.cjs +0 -1
  201. package/dist/index-D5iq4kyE.cjs +0 -1
  202. package/dist/index-DFzKuRY8.cjs +0 -1
  203. package/dist/index-DIO9qaw5.cjs +0 -1
  204. package/dist/index-DIR2rO5B.cjs +0 -1
  205. package/dist/index-DPnQDm6f.js +0 -138
  206. package/dist/index-DU0jpFGR.cjs +0 -1
  207. package/dist/index-DUvVsNDG.cjs +0 -13
  208. package/dist/index-DVZnPL32.js +0 -953
  209. package/dist/index-DiYfLAVQ.js +0 -554
  210. package/dist/index-DnIheaHS.js +0 -251
  211. package/dist/index-Dp2K8q6O.cjs +0 -7
  212. package/dist/index-DrlNzz-e.js +0 -59
  213. package/dist/index-Dx9UDsJi.cjs +0 -1
  214. package/dist/index-DxY-AOQA.js +0 -157
  215. package/dist/index-Mmd0YHPJ.js +0 -960
  216. package/dist/index-NyiYUSW3.js +0 -101
  217. package/dist/index-alBMysbQ.js +0 -1874
  218. package/dist/index-lEkIbMCl.js +0 -612
  219. package/dist/index-qwDdlmIi.js +0 -270
  220. package/dist/index-x3mhc_C_.cjs +0 -1
  221. package/dist/it-5n3LuTHe.cjs +0 -1
  222. package/dist/ja-Bdp4_B8-.cjs +0 -1
  223. package/dist/javascript-C2yteZeJ.js +0 -691
  224. package/dist/javascript-DngSGg_0.cjs +0 -1
  225. package/dist/jinja2-DnB6dQmV.js +0 -154
  226. package/dist/jinja2-wbVbDTNi.cjs +0 -1
  227. package/dist/julia-DA67Qw9E.cjs +0 -1
  228. package/dist/julia-DpvXAuO6.js +0 -241
  229. package/dist/ko-B5SwKB-j.cjs +0 -1
  230. package/dist/livescript-Bg3URadp.cjs +0 -1
  231. package/dist/livescript-CanGTf8u.js +0 -272
  232. package/dist/lua-CIsxjGwi.cjs +0 -1
  233. package/dist/lua-XplVlWi_.js +0 -217
  234. package/dist/mathematica-BG089QIc.cjs +0 -1
  235. package/dist/mathematica-jaRHnSxC.js +0 -35
  236. package/dist/mbox-BctzC1hL.js +0 -76
  237. package/dist/mbox-CySolFFZ.cjs +0 -1
  238. package/dist/milkdown/index.cjs.js +0 -1
  239. package/dist/milkdown/index.es.js +0 -4
  240. package/dist/milkdown-input-Bkgdi-Bv.cjs +0 -944
  241. package/dist/milkdown-input-CciSI_a5.js +0 -63967
  242. package/dist/milkdown-url-D99P-nA-.js +0 -4
  243. package/dist/milkdown-url-DqoUZH3u.cjs +0 -1
  244. package/dist/milkdown.css +0 -1914
  245. package/dist/mirc-BfqEffzk.cjs +0 -1
  246. package/dist/mirc-CFBPAOaF.js +0 -72
  247. package/dist/mllike-BSnXJBGA.js +0 -272
  248. package/dist/mllike-QUjwI6zq.cjs +0 -1
  249. package/dist/modal-CAKAT7wv.cjs +0 -1
  250. package/dist/modelica-B6Zhcb-M.cjs +0 -1
  251. package/dist/modelica-vUgVs--1.js +0 -93
  252. package/dist/mscgen-BToym4Bs.cjs +0 -1
  253. package/dist/mscgen-Cpl0NYLN.js +0 -104
  254. package/dist/mumps-CQoS1kWX.js +0 -25
  255. package/dist/mumps-wfyQdxSu.cjs +0 -1
  256. package/dist/nginx-CwqyBUfA.cjs +0 -1
  257. package/dist/nginx-zDPm3Z74.js +0 -89
  258. package/dist/nl-Cenl4nr6.cjs +0 -1
  259. package/dist/notice-DBME6bFw.cjs +0 -2
  260. package/dist/notice-DVEacWKt.js +0 -2275
  261. package/dist/nsis-DPj2fUaP.cjs +0 -1
  262. package/dist/nsis-fePjrhq7.js +0 -62
  263. package/dist/ntriples-CsNjv2QF.js +0 -79
  264. package/dist/ntriples-DgwJmozm.cjs +0 -1
  265. package/dist/octave-1pkKrgAA.cjs +0 -1
  266. package/dist/octave-C8PmmSRH.js +0 -143
  267. package/dist/oz-BXOZCt0U.cjs +0 -1
  268. package/dist/oz-Ce8aN8oE.js +0 -151
  269. package/dist/pascal-De0D6mP7.js +0 -77
  270. package/dist/pascal-DtY2LEkJ.cjs +0 -1
  271. package/dist/perl-B4bSCe1C.js +0 -915
  272. package/dist/perl-CVDWbEju.cjs +0 -1
  273. package/dist/pig-D24Z8EXi.js +0 -54
  274. package/dist/pig-DMByOrnr.cjs +0 -1
  275. package/dist/pl-7xYNCk-v.cjs +0 -1
  276. package/dist/powershell-BaoYaFvj.cjs +0 -1
  277. package/dist/powershell-DkYVfTzP.js +0 -249
  278. package/dist/preprocess-CvkqwVNt.cjs +0 -3
  279. package/dist/preprocess-D898zxsP.js +0 -2295
  280. package/dist/properties-DXHJZ3WE.cjs +0 -1
  281. package/dist/properties-Dn9wna3M.js +0 -26
  282. package/dist/protobuf-BKhXdfH6.cjs +0 -1
  283. package/dist/protobuf-BPIjwpzm.js +0 -49
  284. package/dist/pt-DOLL0Jpj.cjs +0 -1
  285. package/dist/pug-CwAQJzGR.js +0 -248
  286. package/dist/pug-kEfRDOiF.cjs +0 -1
  287. package/dist/puppet-8mAyuMbW.cjs +0 -1
  288. package/dist/puppet-nyd4dhjf.js +0 -45
  289. package/dist/python-BkR3uSy8.js +0 -313
  290. package/dist/python-D-iU6WXz.cjs +0 -1
  291. package/dist/q-BPQ45Nxu.cjs +0 -1
  292. package/dist/q-DXjKs-tC.js +0 -83
  293. package/dist/r-LKEuhEGI.js +0 -104
  294. package/dist/r-r2_EZsON.cjs +0 -1
  295. package/dist/rpm-IznJm2Xc.js +0 -57
  296. package/dist/rpm-YK81m3qU.cjs +0 -1
  297. package/dist/ru-DoS9XuqG.cjs +0 -1
  298. package/dist/ruby-CcYfvIk6.js +0 -228
  299. package/dist/ruby-Cn1sFkZF.cjs +0 -1
  300. package/dist/sas-7E8yHoCW.js +0 -105
  301. package/dist/sas-DAGcJy94.cjs +0 -1
  302. package/dist/scheme-B0ZrbojV.cjs +0 -1
  303. package/dist/scheme-DjibxsNh.js +0 -124
  304. package/dist/shell-BMYo43V6.cjs +0 -1
  305. package/dist/shell-C0C2sNA_.js +0 -182
  306. package/dist/sieve-Bwz7vjP5.js +0 -72
  307. package/dist/sieve-CIYW-b_H.cjs +0 -1
  308. package/dist/simple-mode-B0dvCdAA.js +0 -89
  309. package/dist/simple-mode-BIKNPBes.cjs +0 -1
  310. package/dist/smalltalk-Bhddl2pB.js +0 -48
  311. package/dist/smalltalk-CSslY-3i.cjs +0 -1
  312. package/dist/solr-A1kSnAwJ.cjs +0 -1
  313. package/dist/solr-BNlsLglM.js +0 -41
  314. package/dist/sparql-DnHMBLLY.cjs +0 -1
  315. package/dist/sparql-FarWu_Gb.js +0 -197
  316. package/dist/spreadsheet-B7_BK8hB.cjs +0 -1
  317. package/dist/spreadsheet-C-cy4P5N.js +0 -49
  318. package/dist/sql-9VmIWHrZ.cjs +0 -1
  319. package/dist/sql-CfG5lQ3l.js +0 -282
  320. package/dist/stex-B4wyjEnp.cjs +0 -1
  321. package/dist/stex-Du4h4KAU.js +0 -129
  322. package/dist/stylus-CAdqWld3.js +0 -250
  323. package/dist/stylus-D6GYOT3Z.cjs +0 -1
  324. package/dist/swift-DGw6Cgu8.cjs +0 -1
  325. package/dist/swift-DSxqR9R6.js +0 -230
  326. package/dist/tcl-ByLXbQFo.cjs +0 -1
  327. package/dist/tcl-xfoLljhY.js +0 -81
  328. package/dist/textile-D1AWE-pc.js +0 -295
  329. package/dist/textile-iryw-lTw.cjs +0 -1
  330. package/dist/tiddlywiki-5wqsXtSk.js +0 -155
  331. package/dist/tiddlywiki-D8IJz1k7.cjs +0 -1
  332. package/dist/tiki-C5p5KSQK.cjs +0 -1
  333. package/dist/tiki-__Kn3CeS.js +0 -181
  334. package/dist/toml-3ZsH_4Qa.cjs +0 -1
  335. package/dist/toml-BHiuTcfn.js +0 -49
  336. package/dist/tr-BVmoz40w.cjs +0 -1
  337. package/dist/translations-Dv56lQia.cjs +0 -1
  338. package/dist/troff-D-3QCOYN.cjs +0 -1
  339. package/dist/troff-D2UO-fKf.js +0 -35
  340. package/dist/ttcn-Bsa4sfRm.js +0 -123
  341. package/dist/ttcn-C2MXAqcM.cjs +0 -1
  342. package/dist/ttcn-cfg-BYqcMRxC.cjs +0 -1
  343. package/dist/ttcn-cfg-Bac_acMi.js +0 -88
  344. package/dist/turtle-DSJNatSv.cjs +0 -1
  345. package/dist/turtle-xwJUxoPV.js +0 -80
  346. package/dist/types/components/milkdown/milkdown-input.d.ts +0 -15
  347. package/dist/types/milkdown/index.d.ts +0 -1
  348. package/dist/ur-orNTOdMP.cjs +0 -1
  349. package/dist/utils-Dobqjl2y.cjs +0 -1
  350. package/dist/vb-c2kQGd6-.js +0 -74
  351. package/dist/vb-qzHzzvyB.cjs +0 -1
  352. package/dist/vbscript-1f_Dhg5H.js +0 -324
  353. package/dist/vbscript-CWm8v9tE.cjs +0 -1
  354. package/dist/velocity-D3_yAIp3.cjs +0 -1
  355. package/dist/velocity-DJd0pTTC.js +0 -96
  356. package/dist/verilog-BOhLNmQo.cjs +0 -1
  357. package/dist/verilog-CiS1jyi5.js +0 -262
  358. package/dist/vhdl-CMFbi8Im.cjs +0 -1
  359. package/dist/vhdl-T9HkrbI2.js +0 -106
  360. package/dist/vi-BWyUDP07.cjs +0 -1
  361. package/dist/webidl-CWb_flNk.cjs +0 -1
  362. package/dist/webidl-CjfDENEo.js +0 -155
  363. package/dist/xquery-BUQdORAS.js +0 -422
  364. package/dist/xquery-Cjw5fRnG.cjs +0 -1
  365. package/dist/yacas-C0absKBh.js +0 -73
  366. package/dist/yacas-urx_N5C8.cjs +0 -1
  367. package/dist/z80-CsG3CM6M.cjs +0 -1
  368. package/dist/z80-Pki2zAjW.js +0 -61
  369. package/dist/zh-RVJj1NQq.cjs +0 -1
  370. /package/dist/types/{components/milkdown/milkdown-url.d.ts → prosemirror/styles-url.d.ts} +0 -0
  371. /package/dist/types/{milkdown → prosemirror}/styles.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./index-klVI8k8O.cjs"),y=require("./index-CYY_JLSN.cjs");function P(n,e){for(var s=0;s<e.length;s++){const t=e[s];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in n)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var m={exports:{}},$={};const q="https://json-schema.org/draft/2019-09/schema",R="https://json-schema.org/draft/2019-09/schema",O={"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},M=!0,I="Core and Validation specifications meta-schema",N=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],S=["object","boolean"],C={definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}},D={$schema:q,$id:R,$vocabulary:O,$recursiveAnchor:M,title:I,allOf:N,type:S,properties:C},E="https://json-schema.org/draft/2019-09/schema",V="https://json-schema.org/draft/2019-09/meta/applicator",w={"https://json-schema.org/draft/2019-09/vocab/applicator":!0},T=!0,x="Applicator vocabulary meta-schema",k=["object","boolean"],K={additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},z={schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}},G={$schema:E,$id:V,$vocabulary:w,$recursiveAnchor:T,title:x,type:k,properties:K,$defs:z},F="https://json-schema.org/draft/2019-09/schema",J="https://json-schema.org/draft/2019-09/meta/content",L={"https://json-schema.org/draft/2019-09/vocab/content":!0},U=!0,Z="Content vocabulary meta-schema",H=["object","boolean"],W={contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}},B={$schema:F,$id:J,$vocabulary:L,$recursiveAnchor:U,title:Z,type:H,properties:W},Q="https://json-schema.org/draft/2019-09/schema",X="https://json-schema.org/draft/2019-09/meta/core",Y={"https://json-schema.org/draft/2019-09/vocab/core":!0},ee=!0,te="Core vocabulary meta-schema",re=["object","boolean"],ae={$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}},ne={$schema:Q,$id:X,$vocabulary:Y,$recursiveAnchor:ee,title:te,type:re,properties:ae},oe="https://json-schema.org/draft/2019-09/schema",se="https://json-schema.org/draft/2019-09/meta/format",ie={"https://json-schema.org/draft/2019-09/vocab/format":!0},ce=!0,ue="Format vocabulary meta-schema",de=["object","boolean"],fe={format:{type:"string"}},me={$schema:oe,$id:se,$vocabulary:ie,$recursiveAnchor:ce,title:ue,type:de,properties:fe},$e="https://json-schema.org/draft/2019-09/schema",le="https://json-schema.org/draft/2019-09/meta/meta-data",pe={"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},he=!0,ye="Meta-data vocabulary meta-schema",ve=["object","boolean"],ge={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},be={$schema:$e,$id:le,$vocabulary:pe,$recursiveAnchor:he,title:ye,type:ve,properties:ge},je="https://json-schema.org/draft/2019-09/schema",_e="https://json-schema.org/draft/2019-09/meta/validation",Ae={"https://json-schema.org/draft/2019-09/vocab/validation":!0},Pe=!0,qe="Validation vocabulary meta-schema",Re=["object","boolean"],Oe={multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},Me={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Ie={$schema:je,$id:_e,$vocabulary:Ae,$recursiveAnchor:Pe,title:qe,type:Re,properties:Oe,$defs:Me};var v;function Ne(){if(v)return $;v=1,Object.defineProperty($,"__esModule",{value:!0});const n=D,e=G,s=B,t=ne,r=me,i=be,l=Ie,p=["/properties"];function h(u){return[n,e,s,t,c(this,r),i,c(this,l)].forEach(d=>this.addMetaSchema(d,void 0,!1)),this;function c(d,a){return u?d.$dataMetaSchema(a,p):a}}return $.default=h,$}var g;function Se(){return g||(g=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2019=void 0;const s=o.requireCore(),t=o.requireDraft7(),r=y.requireDynamic(),i=y.requireNext(),l=y.requireUnevaluated(),p=o.requireDiscriminator(),h=Ne(),u="https://json-schema.org/draft/2019-09/schema";class c extends s.default{constructor(f={}){super({...f,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(r.default),t.default.forEach(f=>this.addVocabulary(f)),this.addVocabulary(i.default),this.addVocabulary(l.default),this.opts.discriminator&&this.addKeyword(p.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:f,meta:A}=this.opts;A&&(h.default.call(this,f),this.refs["http://json-schema.org/schema"]=u)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.Ajv2019=c,n.exports=e=c,n.exports.Ajv2019=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=o.requireValidate();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var a=o.requireCodegen();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});var j=o.requireValidation_error();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return j.default}});var _=o.requireRef_error();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return _.default}})}(m,m.exports)),m.exports}var b=Se();const Ce=o.getDefaultExportFromCjs(b),De=P({__proto__:null,default:Ce},[b]);exports._2019=De;
@@ -1,6 +1,5 @@
1
- import { g as _ } from "./_commonjsHelpers-C6fGbg64.js";
2
- import { r as A, a as P, b as R, c as O, d as q, e as M, f as I } from "./index-DDpjzV7E.js";
3
- import { r as N, a as S, b as C } from "./index-DFJed4ks.js";
1
+ import { r as _, a as A, b as P, c as R, d as O, e as q, f as M, g as I } from "./index-Jd2O_Iux.js";
2
+ import { r as N, a as S, b as C } from "./index-_Kh76-c2.js";
4
3
  function D(o, e) {
5
4
  for (var n = 0; n < e.length; n++) {
6
5
  const t = e[n];
@@ -103,7 +102,7 @@ var y;
103
102
  function Ke() {
104
103
  return y || (y = 1, function(o, e) {
105
104
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv2019 = void 0;
106
- const n = A(), t = P(), r = N(), s = S(), $ = C(), l = R(), p = ke(), c = "https://json-schema.org/draft/2019-09/schema";
105
+ const n = _(), t = A(), r = N(), s = S(), $ = C(), l = P(), p = ke(), c = "https://json-schema.org/draft/2019-09/schema";
107
106
  class i extends n.default {
108
107
  constructor(d = {}) {
109
108
  super({
@@ -126,11 +125,11 @@ function Ke() {
126
125
  }
127
126
  }
128
127
  e.Ajv2019 = i, o.exports = e = i, o.exports.Ajv2019 = i, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = i;
129
- var u = O();
128
+ var u = R();
130
129
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
131
130
  return u.KeywordCxt;
132
131
  } });
133
- var a = q();
132
+ var a = O();
134
133
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
135
134
  return a._;
136
135
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -144,21 +143,21 @@ function Ke() {
144
143
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
145
144
  return a.CodeGen;
146
145
  } });
147
- var g = M();
146
+ var g = q();
148
147
  Object.defineProperty(e, "ValidationError", { enumerable: !0, get: function() {
149
148
  return g.default;
150
149
  } });
151
- var b = I();
150
+ var b = M();
152
151
  Object.defineProperty(e, "MissingRefError", { enumerable: !0, get: function() {
153
152
  return b.default;
154
153
  } });
155
154
  }(f, f.exports)), f.exports;
156
155
  }
157
156
  var v = Ke();
158
- const ze = /* @__PURE__ */ _(v), Ue = /* @__PURE__ */ D({
157
+ const ze = /* @__PURE__ */ I(v), Le = /* @__PURE__ */ D({
159
158
  __proto__: null,
160
159
  default: ze
161
160
  }, [v]);
162
161
  export {
163
- Ue as _
162
+ Le as _
164
163
  };
@@ -1,6 +1,5 @@
1
- import { g as _ } from "./_commonjsHelpers-C6fGbg64.js";
2
- import { g as A, h as R, i as q, j as P, k as S, r as O, b as M, c as I, d as N, e as C, f as D } from "./index-DDpjzV7E.js";
3
- import { r as V, a as E, b as T } from "./index-DFJed4ks.js";
1
+ import { h as _, i as A, j as R, k as q, l as P, r as S, b as O, c as M, d as I, e as N, f as C, g as D } from "./index-Jd2O_Iux.js";
2
+ import { r as V, a as E, b as T } from "./index-_Kh76-c2.js";
4
3
  function w(r, e) {
5
4
  for (var n = 0; n < e.length; n++) {
6
5
  const t = e[n];
@@ -17,11 +16,11 @@ function w(r, e) {
17
16
  }
18
17
  return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
19
18
  }
20
- var $ = { exports: {} }, p = {}, h;
19
+ var $ = { exports: {} }, l = {}, h;
21
20
  function x() {
22
- if (h) return p;
23
- h = 1, Object.defineProperty(p, "__esModule", { value: !0 });
24
- const r = A(), e = R(), n = q(), t = V(), a = E(), o = T(), d = P(), s = S(), m = [
21
+ if (h) return l;
22
+ h = 1, Object.defineProperty(l, "__esModule", { value: !0 });
23
+ const r = _(), e = A(), n = R(), t = V(), a = E(), o = T(), d = q(), s = P(), m = [
25
24
  t.default,
26
25
  r.default,
27
26
  e.default,
@@ -32,9 +31,9 @@ function x() {
32
31
  a.default,
33
32
  o.default
34
33
  ];
35
- return p.default = m, p;
34
+ return l.default = m, l;
36
35
  }
37
- var l = {};
36
+ var p = {};
38
37
  const K = "https://json-schema.org/draft/2020-12/schema", k = "https://json-schema.org/draft/2020-12/schema", z = { "https://json-schema.org/draft/2020-12/vocab/core": !0, "https://json-schema.org/draft/2020-12/vocab/applicator": !0, "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0, "https://json-schema.org/draft/2020-12/vocab/validation": !0, "https://json-schema.org/draft/2020-12/vocab/meta-data": !0, "https://json-schema.org/draft/2020-12/vocab/format-annotation": !0, "https://json-schema.org/draft/2020-12/vocab/content": !0 }, F = "meta", G = "Core and Validation specifications meta-schema", U = [{ $ref: "meta/core" }, { $ref: "meta/applicator" }, { $ref: "meta/unevaluated" }, { $ref: "meta/validation" }, { $ref: "meta/meta-data" }, { $ref: "meta/format-annotation" }, { $ref: "meta/content" }], J = ["object", "boolean"], L = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.", Z = { definitions: { $comment: '"definitions" has been replaced by "$defs".', type: "object", additionalProperties: { $dynamicRef: "#meta" }, deprecated: !0, default: {} }, dependencies: { $comment: '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', type: "object", additionalProperties: { anyOf: [{ $dynamicRef: "#meta" }, { $ref: "meta/validation#/$defs/stringArray" }] }, deprecated: !0, default: {} }, $recursiveAnchor: { $comment: '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', $ref: "meta/core#/$defs/anchorString", deprecated: !0 }, $recursiveRef: { $comment: '"$recursiveRef" has been replaced by "$dynamicRef".', $ref: "meta/core#/$defs/uriReferenceString", deprecated: !0 } }, H = {
39
38
  $schema: K,
40
39
  $id: k,
@@ -54,7 +53,7 @@ const K = "https://json-schema.org/draft/2020-12/schema", k = "https://json-sche
54
53
  type: ee,
55
54
  properties: te,
56
55
  $defs: ae
57
- }, ne = "https://json-schema.org/draft/2020-12/schema", oe = "https://json-schema.org/draft/2020-12/meta/unevaluated", se = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, ce = "meta", ie = "Unevaluated applicator vocabulary meta-schema", de = ["object", "boolean"], me = { unevaluatedItems: { $dynamicRef: "#meta" }, unevaluatedProperties: { $dynamicRef: "#meta" } }, fe = {
56
+ }, ne = "https://json-schema.org/draft/2020-12/schema", oe = "https://json-schema.org/draft/2020-12/meta/unevaluated", se = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": !0 }, ce = "meta", ie = "Unevaluated applicator vocabulary meta-schema", de = ["object", "boolean"], me = { unevaluatedItems: { $dynamicRef: "#meta" }, unevaluatedProperties: { $dynamicRef: "#meta" } }, ue = {
58
57
  $schema: ne,
59
58
  $id: oe,
60
59
  $vocabulary: se,
@@ -62,11 +61,11 @@ const K = "https://json-schema.org/draft/2020-12/schema", k = "https://json-sche
62
61
  title: ie,
63
62
  type: de,
64
63
  properties: me
65
- }, ue = "https://json-schema.org/draft/2020-12/schema", $e = "https://json-schema.org/draft/2020-12/meta/content", pe = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, le = "meta", ye = "Content vocabulary meta-schema", he = ["object", "boolean"], be = { contentEncoding: { type: "string" }, contentMediaType: { type: "string" }, contentSchema: { $dynamicRef: "#meta" } }, ge = {
66
- $schema: ue,
64
+ }, fe = "https://json-schema.org/draft/2020-12/schema", $e = "https://json-schema.org/draft/2020-12/meta/content", le = { "https://json-schema.org/draft/2020-12/vocab/content": !0 }, pe = "meta", ye = "Content vocabulary meta-schema", he = ["object", "boolean"], be = { contentEncoding: { type: "string" }, contentMediaType: { type: "string" }, contentSchema: { $dynamicRef: "#meta" } }, ge = {
65
+ $schema: fe,
67
66
  $id: $e,
68
- $vocabulary: pe,
69
- $dynamicAnchor: le,
67
+ $vocabulary: le,
68
+ $dynamicAnchor: pe,
70
69
  title: ye,
71
70
  type: he,
72
71
  properties: be
@@ -107,9 +106,9 @@ const K = "https://json-schema.org/draft/2020-12/schema", k = "https://json-sche
107
106
  };
108
107
  var b;
109
108
  function et() {
110
- if (b) return l;
111
- b = 1, Object.defineProperty(l, "__esModule", { value: !0 });
112
- const r = H, e = re, n = fe, t = ge, a = Oe, o = Te, d = Ue, s = Ye, m = ["/properties"];
109
+ if (b) return p;
110
+ b = 1, Object.defineProperty(p, "__esModule", { value: !0 });
111
+ const r = H, e = re, n = ue, t = ge, a = Oe, o = Te, d = Ue, s = Ye, m = ["/properties"];
113
112
  function c(y) {
114
113
  return [
115
114
  r,
@@ -117,21 +116,21 @@ function et() {
117
116
  n,
118
117
  t,
119
118
  a,
120
- f(this, o),
119
+ u(this, o),
121
120
  d,
122
- f(this, s)
123
- ].forEach((u) => this.addMetaSchema(u, void 0, !1)), this;
124
- function f(u, i) {
125
- return y ? u.$dataMetaSchema(i, m) : i;
121
+ u(this, s)
122
+ ].forEach((f) => this.addMetaSchema(f, void 0, !1)), this;
123
+ function u(f, i) {
124
+ return y ? f.$dataMetaSchema(i, m) : i;
126
125
  }
127
126
  }
128
- return l.default = c, l;
127
+ return p.default = c, p;
129
128
  }
130
129
  var g;
131
130
  function tt() {
132
131
  return g || (g = 1, function(r, e) {
133
132
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv2020 = void 0;
134
- const n = O(), t = x(), a = M(), o = et(), d = "https://json-schema.org/draft/2020-12/schema";
133
+ const n = S(), t = x(), a = O(), o = et(), d = "https://json-schema.org/draft/2020-12/schema";
135
134
  class s extends n.default {
136
135
  constructor(i = {}) {
137
136
  super({
@@ -154,11 +153,11 @@ function tt() {
154
153
  }
155
154
  }
156
155
  e.Ajv2020 = s, r.exports = e = s, r.exports.Ajv2020 = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
157
- var m = I();
156
+ var m = M();
158
157
  Object.defineProperty(e, "KeywordCxt", { enumerable: !0, get: function() {
159
158
  return m.KeywordCxt;
160
159
  } });
161
- var c = N();
160
+ var c = I();
162
161
  Object.defineProperty(e, "_", { enumerable: !0, get: function() {
163
162
  return c._;
164
163
  } }), Object.defineProperty(e, "str", { enumerable: !0, get: function() {
@@ -172,21 +171,21 @@ function tt() {
172
171
  } }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
173
172
  return c.CodeGen;
174
173
  } });
175
- var y = C();
174
+ var y = N();
176
175
  Object.defineProperty(e, "ValidationError", { enumerable: !0, get: function() {
177
176
  return y.default;
178
177
  } });
179
- var f = D();
178
+ var u = C();
180
179
  Object.defineProperty(e, "MissingRefError", { enumerable: !0, get: function() {
181
- return f.default;
180
+ return u.default;
182
181
  } });
183
182
  }($, $.exports)), $.exports;
184
183
  }
185
184
  var v = tt();
186
- const at = /* @__PURE__ */ _(v), st = /* @__PURE__ */ w({
185
+ const at = /* @__PURE__ */ D(v), ot = /* @__PURE__ */ w({
187
186
  __proto__: null,
188
187
  default: at
189
188
  }, [v]);
190
189
  export {
191
- st as _
190
+ ot as _
192
191
  };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("./index-klVI8k8O.cjs"),b=require("./index-CYY_JLSN.cjs");function R(n,e){for(var o=0;o<e.length;o++){const a=e[o];if(typeof a!="string"&&!Array.isArray(a)){for(const r in a)if(r!=="default"&&!(r in n)){const s=Object.getOwnPropertyDescriptor(a,r);s&&Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:()=>a[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var l={exports:{}},p={},g;function q(){if(g)return p;g=1,Object.defineProperty(p,"__esModule",{value:!0});const n=t.requireCore$1(),e=t.requireValidation(),o=t.requireApplicator(),a=b.requireDynamic(),r=b.requireNext(),s=b.requireUnevaluated(),m=t.requireFormat(),c=t.requireMetadata(),u=[a.default,n.default,e.default,(0,o.default)(!0),m.default,c.metadataVocabulary,c.contentVocabulary,r.default,s.default];return p.default=u,p}var y={};const P="https://json-schema.org/draft/2020-12/schema",S="https://json-schema.org/draft/2020-12/schema",O={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},M="meta",I="Core and Validation specifications meta-schema",N=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],C=["object","boolean"],D="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",V={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},E={$schema:P,$id:S,$vocabulary:O,$dynamicAnchor:M,title:I,allOf:N,type:C,$comment:D,properties:V},T="https://json-schema.org/draft/2020-12/schema",w="https://json-schema.org/draft/2020-12/meta/applicator",x={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},K="meta",z="Applicator vocabulary meta-schema",F=["object","boolean"],G={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},U={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},k={$schema:T,$id:w,$vocabulary:x,$dynamicAnchor:K,title:z,type:F,properties:G,$defs:U},J="https://json-schema.org/draft/2020-12/schema",L="https://json-schema.org/draft/2020-12/meta/unevaluated",Z={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},H="meta",B="Unevaluated applicator vocabulary meta-schema",Q=["object","boolean"],W={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},X={$schema:J,$id:L,$vocabulary:Z,$dynamicAnchor:H,title:B,type:Q,properties:W},Y="https://json-schema.org/draft/2020-12/schema",ee="https://json-schema.org/draft/2020-12/meta/content",te={"https://json-schema.org/draft/2020-12/vocab/content":!0},ae="meta",re="Content vocabulary meta-schema",ne=["object","boolean"],oe={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},se={$schema:Y,$id:ee,$vocabulary:te,$dynamicAnchor:ae,title:re,type:ne,properties:oe},ce="https://json-schema.org/draft/2020-12/schema",ie="https://json-schema.org/draft/2020-12/meta/core",de={"https://json-schema.org/draft/2020-12/vocab/core":!0},me="meta",ue="Core vocabulary meta-schema",fe=["object","boolean"],$e={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},le={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},pe={$schema:ce,$id:ie,$vocabulary:de,$dynamicAnchor:me,title:ue,type:fe,properties:$e,$defs:le},ye="https://json-schema.org/draft/2020-12/schema",he="https://json-schema.org/draft/2020-12/meta/format-annotation",be={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},ge="meta",ve="Format vocabulary meta-schema for annotation results",je=["object","boolean"],_e={format:{type:"string"}},Ae={$schema:ye,$id:he,$vocabulary:be,$dynamicAnchor:ge,title:ve,type:je,properties:_e},Re="https://json-schema.org/draft/2020-12/schema",qe="https://json-schema.org/draft/2020-12/meta/meta-data",Pe={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},Se="meta",Oe="Meta-data vocabulary meta-schema",Me=["object","boolean"],Ie={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},Ne={$schema:Re,$id:qe,$vocabulary:Pe,$dynamicAnchor:Se,title:Oe,type:Me,properties:Ie},Ce="https://json-schema.org/draft/2020-12/schema",De="https://json-schema.org/draft/2020-12/meta/validation",Ve={"https://json-schema.org/draft/2020-12/vocab/validation":!0},Ee="meta",Te="Validation vocabulary meta-schema",we=["object","boolean"],xe={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},Ke={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ze={$schema:Ce,$id:De,$vocabulary:Ve,$dynamicAnchor:Ee,title:Te,type:we,properties:xe,$defs:Ke};var v;function Fe(){if(v)return y;v=1,Object.defineProperty(y,"__esModule",{value:!0});const n=E,e=k,o=X,a=se,r=pe,s=Ae,m=Ne,c=ze,u=["/properties"];function i(h){return[n,e,o,a,r,f(this,s),m,f(this,c)].forEach($=>this.addMetaSchema($,void 0,!1)),this;function f($,d){return h?$.$dataMetaSchema(d,u):d}}return y.default=i,y}var j;function Ge(){return j||(j=1,function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv2020=void 0;const o=t.requireCore(),a=q(),r=t.requireDiscriminator(),s=Fe(),m="https://json-schema.org/draft/2020-12/schema";class c extends o.default{constructor(d={}){super({...d,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),a.default.forEach(d=>this.addVocabulary(d)),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:d,meta:A}=this.opts;A&&(s.default.call(this,d),this.refs["http://json-schema.org/schema"]=m)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(m)?m:void 0)}}e.Ajv2020=c,n.exports=e=c,n.exports.Ajv2020=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var u=t.requireValidate();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var i=t.requireCodegen();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});var h=t.requireValidation_error();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=t.requireRef_error();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(l,l.exports)),l.exports}var _=Ge();const Ue=t.getDefaultExportFromCjs(_),ke=R({__proto__:null,default:Ue},[_]);exports._2020=ke;
@@ -1,5 +1,5 @@
1
- import { f as l } from "./notice-DVEacWKt.js";
2
- const s = {
1
+ import { f as r } from "./translations-D4PjDB1t.js";
2
+ const c = {
3
3
  loadingExtended: "جاري التحميل، يرجى الانتظار",
4
4
  loadingShort: "جاري التحميل...",
5
5
  locale: "اللغة",
@@ -57,26 +57,41 @@ const s = {
57
57
  // inputs reset
58
58
  clearValue: "مسح القيمة",
59
59
  unknownType: "نوع غير معروف",
60
- filesInputInstructions: (e, t, n) => {
61
- let r = e == null || e > 1 ? "انقر للاختيار أو اسحب الملفات هنا" : "انقر للاختيار أو اسحب ملف هنا";
60
+ filesInputInstructions: (e, t, l) => {
61
+ let n = e == null || e > 1 ? "انقر للاختيار أو اسحب الملفات هنا" : "انقر للاختيار أو اسحب ملف هنا";
62
62
  if (e || t) {
63
63
  const o = [];
64
- if (e != null && e > 1 && o.push(`حتى ${e} ملفات`), t && n) {
65
- const a = l(t, {
66
- units: n
64
+ if (e != null && e > 1 && o.push(`حتى ${e} ملفات`), t && l) {
65
+ const i = r(t, {
66
+ units: l
67
67
  });
68
- o.push(`حد أقصى ${a} لكل ملف`);
68
+ o.push(`حد أقصى ${i} لكل ملف`);
69
69
  }
70
- o.length > 0 && (r += ` (${o.join("، ")})`);
71
- } else if (t && n) {
72
- const o = l(t, {
73
- units: n
70
+ o.length > 0 && (n += ` (${o.join("، ")})`);
71
+ } else if (t && l) {
72
+ const o = r(t, {
73
+ units: l
74
74
  });
75
- r += ` (حد أقصى ${o})`;
75
+ n += ` (حد أقصى ${o})`;
76
76
  }
77
- return r;
77
+ return n;
78
+ },
79
+ // prosemirror
80
+ prosemirror: {
81
+ bold: "Bold",
82
+ italic: "Italic",
83
+ code: "Code",
84
+ link: "Link",
85
+ removeLink: "Remove Link",
86
+ heading: (e) => `Heading ${e}`,
87
+ bulletList: "Bullet List",
88
+ orderedList: "Ordered List",
89
+ blockquote: "Blockquote",
90
+ codeBlock: "Code Block",
91
+ horizontalRule: "Horizontal Rule",
92
+ linkUrlPlaceholder: "https://example.com"
78
93
  }
79
94
  };
80
95
  export {
81
- s as default
96
+ c as default
82
97
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-BDRano6u.cjs"),a={loadingExtended:"جاري التحميل، يرجى الانتظار",loadingShort:"جاري التحميل...",locale:"اللغة",iconDescription:"أيقونة",loadingIcon:"أيقونة التحميل",failedToLoadIcon:"فشل في تحميل الأيقونة",editLabel:"تحرير",selectOne:"اختر واحد",selectMany:"اختر عدة",noResults:"لا نتائج",passwordPlaceholderText:"كلمة المرور السرية",togglePasswordVisibility:"إظهار/إخفاء كلمة المرور",toggleMenu:"تبديل القائمة",toggleAside:"تبديل اللوحة الجانبية",mainNavigation:"القائمة الرئيسية",sidebar:"الشريط الجانبي",closeDrawer:"إغلاق الدرج",closeModal:"إغلاق النافذة المنبثقة",confirm:"تأكيد",cancel:"إلغاء",addLabel:"إضافة",removeItem:"إزالة العنصر",currentLocale:"العربية",ar:"العربية",de:"الألمانية",en:"الإنجليزية",es:"الأسبانية",fr:"الفرنسية",hi:"الهندية",it:"الإيطالية",ja:"اليابانية",ko:"الكورية",nl:"الهولندية",pl:"البولندية",pt:"البرتغالية",ru:"الروسية",tr:"التركية",vi:"الفيتنامية",zh:"الصينية",he:"العبرية",fa:"الفارسية",ur:"الأردية",emailPlaceholderText:"بريدك الإلكتروني",incrementValue:"زيادة القيمة",decrementValue:"تقليل القيمة",dropZoneInstructions:e=>e?"انقر للاختيار أو اسحب الملفات هنا، أو اضغط Enter أو Space لفتح محدد الملفات":"اسحب الملفات هنا",fileSizeUnits:["بايت","ك.ب","م.ب","ج.ب","ت.ب"],removeFile:"إزالة الملف",clearAllFiles:"مسح كل الملفات",clearValue:"مسح القيمة",unknownType:"نوع غير معروف",filesInputInstructions:(e,t,l)=>{let n=e==null||e>1?"انقر للاختيار أو اسحب الملفات هنا":"انقر للاختيار أو اسحب ملف هنا";if(e||t){const o=[];if(e!=null&&e>1&&o.push(`حتى ${e} ملفات`),t&&l){const i=r.formatFileSize(t,{units:l});o.push(`حد أقصى ${i} لكل ملف`)}o.length>0&&(n+=` (${o.join("، ")})`)}else if(t&&l){const o=r.formatFileSize(t,{units:l});n+=` (حد أقصى ${o})`}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@tempots/dom"),m=require("../notice-DBME6bFw.cjs"),w=require("../modal-CAKAT7wv.cjs"),S=require("../translations-Dv56lQia.cjs"),H=require("@tempots/ui"),x={google:{name:"Google",icon:"logos:google-icon",color:"#4285f4"},github:{name:"GitHub",icon:"logos:github-icon",color:"#333"},apple:{name:"Apple",icon:"logos:apple",color:"#000"},facebook:{name:"Facebook",icon:"logos:facebook",color:"#1877f2"},twitter:{name:"Twitter",icon:"logos:twitter",color:"#1da1f2"},microsoft:{name:"Microsoft",icon:"logos:microsoft-icon",color:"#00a4ef"},discord:{name:"Discord",icon:"logos:discord-icon",color:"#5865f2"},linkedin:{name:"LinkedIn",icon:"logos:linkedin-icon",color:"#0077b5"},instagram:{name:"Instagram",icon:"logos:instagram-icon",color:"#e4405f"},tiktok:{name:"TikTok",icon:"logos:tiktok-icon",color:"#000"},snapchat:{name:"Snapchat",icon:"logos:snapchat-icon",color:"#fffc00"},reddit:{name:"Reddit",icon:"logos:reddit-icon",color:"#ff4500"},pinterest:{name:"Pinterest",icon:"logos:pinterest-icon",color:"#bd081c"},twitch:{name:"Twitch",icon:"logos:twitch",color:"#9146ff"},steam:{name:"Steam",icon:"logos:steam-icon",color:"#000"},epic:{name:"Epic Games",icon:"simple-icons:epicgames",color:"#313131"},playstation:{name:"PlayStation",icon:"logos:playstation-icon",color:"#003791"},xbox:{name:"Xbox",icon:"logos:xbox-icon",color:"#107c10"},whatsapp:{name:"WhatsApp",icon:"logos:whatsapp-icon",color:"#25d366"},wechat:{name:"WeChat",icon:"logos:wechat-icon",color:"#1aad19"},amazon:{name:"Amazon",icon:"logos:amazon-icon",color:"#ff9900"},yahoo:{name:"Yahoo",icon:"logos:yahoo-icon",color:"#720e9e"},paypal:{name:"PayPal",icon:"logos:paypal",color:"#0070ba"},x:{name:"X",icon:"simple-icons:x",color:"#000"}};function F(o){return x[o]?.name||o}function X(o){return x[o]?.icon||"mdi:account"}function Y(o){return x[o]?.color||"#666"}function Z(o,e="Continue with {provider}"){return e.replace("{provider}",F(o))}const P={minLength:8,requireUppercase:!0,requireLowercase:!0,requireNumbers:!0,requireSymbols:!1};function J(o){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)}function D(o=32){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(let l=0;l<o;l++)i+=e.charAt(Math.floor(Math.random()*e.length));return i}function K(o,e,i,l=[],c={}){const r={google:"https://accounts.google.com/oauth/authorize",github:"https://github.com/login/oauth/authorize",apple:"https://appleid.apple.com/auth/authorize",facebook:"https://www.facebook.com/v18.0/dialog/oauth",twitter:"https://twitter.com/i/oauth2/authorize",microsoft:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",discord:"https://discord.com/api/oauth2/authorize",linkedin:"https://www.linkedin.com/oauth/v2/authorization",instagram:"https://api.instagram.com/oauth/authorize",tiktok:"https://www.tiktok.com/v2/auth/authorize",snapchat:"https://accounts.snapchat.com/accounts/oauth2/authorize",reddit:"https://www.reddit.com/api/v1/authorize",pinterest:"https://api.pinterest.com/oauth/",twitch:"https://id.twitch.tv/oauth2/authorize",steam:"https://steamcommunity.com/oauth/authorize",epic:"https://auth.epicgames.com/authorize",playstation:"https://auth.api.sonyentertainmentnetwork.com/oauth/authorize",xbox:"https://login.live.com/oauth20_authorize.srf",whatsapp:"https://web.whatsapp.com/oauth/authorize",wechat:"https://open.weixin.qq.com/connect/qrconnect",amazon:"https://www.amazon.com/ap/oa",yahoo:"https://api.login.yahoo.com/oauth2/request_auth",paypal:"https://www.paypal.com/signin/authorize",x:"https://api.twitter.com/oauth2/authorize"},a={google:["openid","email","profile"],github:["user:email"],apple:["email","name"],facebook:["email"],twitter:["users.read"],microsoft:["openid","email","profile"],discord:["identify","email"],linkedin:["r_liteprofile","r_emailaddress"],instagram:["user_profile","user_media"],tiktok:["user.info.basic","user.external.id"],snapchat:["user.info.basic","user.external.id"],reddit:["identity","email"],pinterest:["read_public","read_relationships"],twitch:["openid","email","profile"],steam:["openid","email","profile"],epic:["openid","email","profile"],playstation:["openid","email","profile"],xbox:["openid","email","profile"],whatsapp:["openid","email","profile"],wechat:["openid","email","profile"],amazon:["openid","email","profile"],yahoo:["openid","email","profile"],paypal:["openid","email","profile"],x:["openid","email","profile"]},n=r[o];if(!n)throw new Error(`Unsupported provider: ${o}`);const u=l.length>0?l:a[o],s=D(),f=new URLSearchParams({client_id:e,redirect_uri:i,scope:u.join(" "),state:s,response_type:"code",...c});return`${n}?${f.toString()}`}function Q(o,e,i,l){const c=window.open(o,`${e}_login`,"width=500,height=600,scrollbars=yes,resizable=yes");if(!c){l?.(new Error("Failed to open popup window"));return}const r=setInterval(()=>{c.closed&&(clearInterval(r),l?.(new Error("Login cancelled")))},1e3),a=n=>{n.origin===window.location.origin&&(n.data.type==="SOCIAL_LOGIN_SUCCESS"?(clearInterval(r),c.close(),window.removeEventListener("message",a),i?.(n.data.result)):n.data.type==="SOCIAL_LOGIN_ERROR"&&(clearInterval(r),c.close(),window.removeEventListener("message",a),l?.(new Error(n.data.error))))};window.addEventListener("message",a)}function tt(o){return o instanceof Error?o.message:typeof o=="string"?o:o&&typeof o=="object"&&"message"in o?String(o.message):"An unexpected error occurred"}function ot(){return typeof window<"u"&&typeof document<"u"}function q({task:o,message:e,onStart:i,onEnd:l}){return async c=>{i?.();const r=await m.taskToValidation({task:o!=null?()=>o(c):async()=>null,errorMessage:e,errorPath:["root"],validation:a=>a!=null?m.a.invalid({message:a}):m.a.valid});return l?.(),r}}function A(o=P){let e=w.string();return o.minLength&&(e=e.min(o.minLength,`Password must be at least ${o.minLength} characters`)),o.requireUppercase&&(e=e.regex(/[A-Z]/,"Password must contain at least one uppercase letter")),o.requireLowercase&&(e=e.regex(/[a-z]/,"Password must contain at least one lowercase letter")),o.requireNumbers&&(e=e.regex(/[0-9]/,"Password must contain at least one number")),o.requireSymbols&&(e=e.regex(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,"Password must contain at least one special character")),o.customValidation&&(e=e.refine(i=>o.customValidation(i))),e}const y=w.string().min(1,"Email is required").email("Please enter a valid email address");function C(o){const e=o?A(o):w.string().refine(i=>i.length>0?null:"Password is required");return w.object({email:y,password:e,rememberMe:w.boolean().default(!1)}).schema()}function T(o=P,e){const i=A(o),l=e?.showNameField!==!1,c=e?.showConfirmPassword!==!1,r=e?.showAcceptTermsAndConditions!==!1,a={name:l?w.string().min(1,"Name is required").optional():w.string().optional(),email:y,password:i,confirmPassword:c?w.string().min(1,"Please confirm your password"):w.string(),acceptTerms:r?w.boolean().refine(u=>u===!0,"You must accept the terms and conditions"):w.boolean().default(!0)},n=w.object(a);return c?n.refine(u=>u.password===u.confirmPassword?null:"Passwords don't match",{path:["confirmPassword"]}).schema():n.schema()}const U=w.object({email:y}).schema(),et=C(),at=T(),nt={signIn:C,signUp:T,resetPassword:()=>U};function rt(o){const e=y.validate(o);return e.success?null:e.errors[0]?.message||"Invalid email"}function st(o,e=P){const l=A(e).validate(o);return l.success?null:l.errors[0]?.message||"Invalid password"}function $(o,e=P){const i={length:o.length>=(e.minLength||8),uppercase:/[A-Z]/.test(o),lowercase:/[a-z]/.test(o),numbers:/[0-9]/.test(o),symbols:/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(o),custom:e.customValidation?e.customValidation(o)===null:o.length>0},l=[!0,e.requireUppercase,e.requireLowercase,e.requireNumbers,e.requireSymbols,!!e.customValidation].filter(Boolean).length,c=[i.length,e.requireUppercase?i.uppercase:null,e.requireLowercase?i.lowercase:null,e.requireNumbers?i.numbers:null,e.requireSymbols?i.symbols:null,e.customValidation?i.custom:null].filter(n=>n===!0).length,r=l>0?Math.round(c/l*100):0;let a;return r<40?a="weak":r<60?a="fair":r<80?a="good":a="strong",{strength:a,score:r,checks:i}}const W=()=>t.localStorageProp({key:"bui_auth_email",defaultValue:null});function V({onSignIn:o,passwordRules:e,labels:i,showRememberMe:l}){const c=t.prop(!1),r=W(),a=C(e),n=m.useForm({schema:a,onSubmit:q({task:o,message:"Reset password failed",onStart:()=>{c.set(!0),n.controller.disable()},onEnd:()=>{c.set(!1),n.controller.enable()}}),initialValue:{email:"",password:""}}),{controller:u,submit:s}=n;c.on(u.setDisabled);const f=u.field("email"),b=u.field("password");return r.on(h=>{h!=null&&f.change(h)}),f.value.on(h=>{r.value!=null&&(r.value=h)}),t.Use(S.AuthI18n,h=>t.html.form(t.OnDispose(u.dispose,r.dispose,c.dispose),t.attr.class("bc-auth-form__form"),t.on.submit(s),m.Stack(t.attr.class("bc-auth-form__fields"),t.Ensure(u.error,g=>m.Notice({variant:"danger",tone:"prominent",role:"alert"},t.html.div(g))),m.Control(m.EmailInput,{controller:f,label:t.coalesce(i?.emailLabel,h.$.emailLabel)}),m.Control(m.PasswordInput,{controller:b,label:t.coalesce(i?.passwordLabel,h.$.passwordLabel)}),t.When(l??!0,()=>t.html.div(t.attr.class("bc-auth-form__remember-me"),t.html.label(t.attr.class("bc-auth-form__checkbox-label"),m.CheckboxInput({value:r.map(g=>g!=null),after:t.html.span(t.coalesce(i?.rememberMeLabel,h.$.rememberMeLabel)),onChange:g=>{g?r.value=f.value.value??"":r.value=null}}))))),m.Button({type:"submit",variant:"filled",color:"primary",loading:c,disabled:u.disabledOrHasErrors},t.attr.class("bc-auth-form__submit"),t.coalesce(i?.signInButton,h.$.signInButton))))}function R({password:o,rules:e=P,showLabel:i=!0,className:l}){const c=t.computedOf(o)(s=>!s||s.length===0?{strength:"weak",score:0,checks:{length:!1,uppercase:!1,lowercase:!1,numbers:!1,symbols:!1,custom:!1}}:$(s,e)),r=c.map(s=>s.strength),a=c.map(s=>s.score),n=c.map(s=>s.checks),u=t.computedOf(r,l)((s,f)=>["bc-password-strength",`bc-password-strength--${s}`,f].filter(Boolean).join(" "));return t.html.div(t.attr.class(u),t.html.div(t.attr.class("bc-password-strength__bar"),t.html.div(t.attr.class("bc-password-strength__fill"),t.attr.style(a.map(s=>`width: ${s}%`)))),t.When(i,()=>t.Use(S.AuthI18n,s=>t.html.div(t.attr.class("bc-password-strength__label"),t.computedOf(r,s)((f,b)=>{switch(f){case"weak":return b.passwordStrengthWeak;case"fair":return b.passwordStrengthFair;case"good":return b.passwordStrengthGood;case"strong":return b.passwordStrengthStrong;default:return b.passwordStrengthWeak}})))),t.html.div(t.attr.class("bc-password-strength__requirements"),t.When(e.minLength!==void 0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.length?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.length?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),`At least ${e.minLength} characters`))),t.When(e.requireUppercase===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.uppercase?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.uppercase?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One uppercase letter"))),t.When(e.requireLowercase===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.lowercase?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.lowercase?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One lowercase letter"))),t.When(e.requireNumbers===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.numbers?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.numbers?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One number"))),t.When(e.requireSymbols===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.symbols?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.symbols?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One special character")))))}function it({password:o,rules:e=P,className:i}){const l=t.computedOf(o)(n=>!n||n.length===0?{strength:"weak",score:0}:$(n,e)),c=l.map(n=>n.strength),r=l.map(n=>n.score),a=t.computedOf(c,i)((n,u)=>["bc-password-strength-bar",`bc-password-strength-bar--${n}`,u].filter(Boolean).join(" "));return t.html.div(t.attr.class(a),t.html.div(t.attr.class("bc-password-strength-bar__fill"),t.attr.style(r.map(n=>`width: ${n}%`))))}function ct({password:o,rules:e=P,className:i}){const l=t.computedOf(o)(r=>!r||r.length===0?"weak":$(r,e).strength),c=t.computedOf(l,i)((r,a)=>["bc-password-strength-text",`bc-password-strength-text--${r}`,a].filter(Boolean).join(" "));return t.Use(S.AuthI18n,r=>t.html.span(t.attr.class(c),t.computedOf(l,r)((a,n)=>{switch(a){case"weak":return n.passwordStrengthWeak;case"fair":return n.passwordStrengthFair;case"good":return n.passwordStrengthGood;case"strong":return n.passwordStrengthStrong;default:return n.passwordStrengthWeak}})))}function M({passwordRules:o,labels:e,showPasswordStrength:i,onSignUp:l,showNameField:c,showConfirmPassword:r,showAcceptTermsAndConditions:a,termsAndConditions:n}){const u=t.prop(!1),s=o||P,f=T(s,{showNameField:c!==!1,showConfirmPassword:r!==!1,showAcceptTermsAndConditions:a!==!1}),b=m.useForm({schema:f,onSubmit:q({task:l!=null?k=>l({email:k.email,password:k.password,name:k.name}):void 0,message:"Reset password failed",onStart:()=>{u.set(!0),b.controller.disable()},onEnd:()=>{u.set(!1),b.controller.enable()}}),initialValue:{name:"",email:"",password:"",confirmPassword:"",acceptTerms:!1}}),{controller:h,submit:g}=b;u.on(h.setDisabled);const _=h.field("name"),B=h.field("email"),I=h.field("password"),O=h.field("confirmPassword"),v=h.field("acceptTerms");return t.Use(S.AuthI18n,k=>t.html.form(t.OnDispose(h.dispose,u.dispose),t.attr.class("bc-auth-form__form"),t.on.submit(g),m.Stack(t.attr.class("bc-auth-form__fields"),t.Ensure(h.error,L=>m.Notice({variant:"danger",tone:"prominent",role:"alert"},t.html.div(L))),t.When(c!==!1,()=>m.Control(m.TextInput,{controller:_.transform(L=>L??"",L=>L===""?void 0:L),label:t.coalesce(e?.nameLabel,k.$.nameLabel)})),m.Control(m.EmailInput,{controller:B,label:t.coalesce(e?.emailLabel,k.$.emailLabel)}),m.Control(m.PasswordInput,{controller:I,label:t.coalesce(e?.passwordLabel,k.$.passwordLabel)}),t.When(i??!1,()=>R({password:I.value,rules:s,showLabel:!0})),t.When(r??!1,()=>m.Control(m.PasswordInput,{controller:O,label:t.coalesce(e?.confirmPasswordLabel,k.$.confirmPasswordLabel)})),t.When(a??!1,()=>t.html.div(t.attr.class("bc-auth-form__terms"),t.html.label(t.attr.class("bc-auth-form__checkbox-label"),m.CheckboxInput({value:v.value.map(L=>L??!1),onChange:L=>v.change(L)}),t.html.span(n||t.coalesce(e?.acceptTermsLabel,k.$.acceptTermsLabel))),t.When(v.errorVisible,()=>t.html.div(t.attr.class("bc-auth-form__field-error"),v.error.map(L=>L||"")))))),m.Button({type:"submit",variant:"filled",color:"primary",loading:u,disabled:h.disabledOrHasErrors},t.attr.class("bc-auth-form__submit"),t.coalesce(e?.signUpButton,k.$.signUpButton))))}function N({onResetPassword:o,labels:e={}}){const i=W(),l=t.prop(!1),c=m.useForm({schema:U,onSubmit:q({task:o,message:"Reset password failed",onStart:()=>{l.set(!0),c.controller.disable()},onEnd:()=>{l.set(!1),c.controller.enable()}}),initialValue:{email:""}}),{controller:r,submit:a}=c;l.on(r.setDisabled);const n=r.field("email");return i.on(u=>{u!=null&&n.change(u)}),t.Use(S.AuthI18n,u=>t.html.form(t.OnDispose(r.dispose,i.dispose,l.dispose),t.attr.class("bc-auth-form__form"),t.Ensure(r.error,s=>m.Notice({variant:"danger",tone:"prominent",role:"alert"},t.html.div(s))),t.html.p(t.attr.class("bc-auth-form__description"),t.coalesce(e?.resetPasswordDescription,u.$.resetPasswordDescription)),t.on.submit(a),m.Stack(t.attr.class("bc-auth-form__fields"),m.Control(m.EmailInput,{controller:n,label:t.coalesce(e?.emailLabel,u.$.emailLabel)})),m.Button({loading:l,type:"submit",variant:"filled",color:"primary",disabled:r.disabledOrHasErrors},t.attr.class("bc-auth-form__submit"),t.coalesce(e?.resetPasswordButton,u.$.resetPasswordButton))))}function p({provider:o,onClick:e,size:i="md",name:l,icon:c,color:r,flow:a,labels:n}){const u=async()=>{if(e)try{a==="popup"?await e():await e()}catch(s){console.error(`Social login error for ${o} (${a||"redirect"} flow):`,s)}};return m.Button({type:"button",variant:"filled",size:i,color:r,onClick:u,roundedness:"full"},t.attr.class("bc-social-login-button"),t.attr.class(t.computedOf(o)(s=>`bc-social-login-button--${s}`)),t.html.span(t.attr.class("bc-social-login-button__inner"),t.html.span(t.attr.class("bc-social-login-button__icon"),m.Icon({icon:c,size:i},t.attr.class("bc-social-login-button__icon-inner"))),t.Use(S.AuthI18n,s=>t.html.span(t.attr.class("bc-social-login-button__label"),t.bind(t.coalesce(n?.continueWithProvider,s.$.continueWithProvider))(l)))))}function G({providers:o,onProviderClick:e,size:i="md",className:l}){return m.Stack(t.attr.class("bc-social-login-buttons"),t.attr.class(l),t.ForEach(o,c=>p({provider:c.$.provider,flow:c.$.flow,color:c.map(({provider:r})=>d[r].color),name:c.map(({provider:r})=>d[r].name),icon:c.map(({provider:r})=>d[r].icon),onClick:async()=>{e&&await e(c.$.provider.value)},size:i})))}const d={google:{name:"Google",icon:"logos:google-icon",color:"red"},github:{name:"GitHub",icon:"logos:github-icon",color:"black"},apple:{name:"Apple",icon:"logos:apple",color:"stone"},facebook:{name:"Facebook",icon:"logos:facebook",color:"blue"},twitter:{name:"Twitter",icon:"logos:twitter",color:"sky"},x:{name:"X",icon:"logos:x",color:"zinc"},microsoft:{name:"Microsoft",icon:"logos:microsoft-icon",color:"amber"},discord:{name:"Discord",icon:"logos:discord-icon",color:"indigo"},linkedin:{name:"LinkedIn",icon:"logos:linkedin-icon",color:"cyan"},instagram:{name:"Instagram",icon:"logos:instagram-icon",color:"fuchsia"},tiktok:{name:"TikTok",icon:"logos:tiktok-icon",color:"teal"},snapchat:{name:"Snapchat",icon:"streamline-logos:snapchat-logo-solid",color:"yellow"},reddit:{name:"Reddit",icon:"logos:reddit-icon",color:"orange"},pinterest:{name:"Pinterest",icon:"logos:pinterest",color:"rose"},twitch:{name:"Twitch",icon:"logos:twitch",color:"purple"},steam:{name:"Steam",icon:"logos:steam",color:"slate"},epic:{name:"Epic Games",icon:"streamline-logos:epic-games-logo-solid",color:"neutral"},playstation:{name:"PlayStation",icon:"streamline-logos:playstation-logo-solid",color:"violet"},xbox:{name:"Xbox",icon:"streamline-logos:xbox-live-logo-solid",color:"green"},whatsapp:{name:"WhatsApp",icon:"logos:whatsapp-icon",color:"emerald"},wechat:{name:"WeChat",icon:"streamline-logos:wechat-logo",color:"lime"},amazon:{name:"Amazon",icon:"streamline-logos:amazon-logo-solid",color:"red"},yahoo:{name:"Yahoo",icon:"logos:yahoo",color:"rose"},paypal:{name:"PayPal",icon:"logos:paypal",color:"blue"}},lt=o=>p({...o,...d.google,provider:"google"}),mt=o=>p({...o,...d.github,provider:"github"}),ut=o=>p({...o,...d.apple,provider:"apple"}),dt=o=>p({...o,...d.facebook,provider:"facebook"}),pt=o=>p({...o,...d.x,provider:"x"}),ht=o=>p({...o,...d.twitter,provider:"twitter"}),gt=o=>p({...o,...d.microsoft,provider:"microsoft"}),ft=o=>p({...o,...d.discord,provider:"discord"}),bt=o=>p({...o,...d.linkedin,provider:"linkedin"}),wt=o=>p({...o,...d.instagram,provider:"instagram"}),Lt=o=>p({...o,...d.tiktok,provider:"tiktok"}),_t=o=>p({...o,...d.snapchat,provider:"snapchat"}),vt=o=>p({...o,...d.reddit,provider:"reddit"}),kt=o=>p({...o,...d.pinterest,provider:"pinterest"}),St=o=>p({...o,...d.twitch,provider:"twitch"}),Pt=o=>p({...o,...d.steam,provider:"steam"}),yt=o=>p({...o,...d.epic,provider:"epic"}),Bt=o=>p({...o,...d.playstation,provider:"playstation"}),It=o=>p({...o,...d.xbox,provider:"xbox"}),xt=o=>p({...o,...d.whatsapp,provider:"whatsapp"}),qt=o=>p({...o,...d.wechat,provider:"wechat"}),At=o=>p({...o,...d.amazon,provider:"amazon"}),Ct=o=>p({...o,...d.yahoo,provider:"yahoo"}),Tt=o=>p({...o,...d.paypal,provider:"paypal"});function z({providers:o}){return m.Stack(G({providers:o}))}function j({mode:o,socialProviders:e,passwordRules:i,showRememberMe:l,showSocialDivider:c,showPasswordStrength:r,labels:a,onSignIn:n,onSignUp:u,onResetPassword:s,onModeChange:f,showContainer:b},...h){const g=o!=null?t.Value.deriveProp(o):t.prop("signin");return g.on(_=>f?.(_)),t.Use(S.AuthI18n,_=>{function B(){const v=t.coalesce(a?.hasAccountLink,_.$.hasAccountLink);return t.html.button(t.attr.type("button"),t.attr.class("bc-auth-form__link"),t.on.click(()=>g.set("signin")),v)}function I(){return t.html.button(t.attr.type("button"),t.attr.class("bc-auth-form__link"),t.on.click(()=>g.set("signup")),t.coalesce(a?.noAccountLink,_.$.noAccountLink))}function O(){return t.html.button(t.attr.type("button"),t.attr.class("bc-auth-form__link"),t.on.click(()=>g.set("reset-password")),t.coalesce(a?.forgotPasswordLink,_.$.forgotPasswordLink))}return t.html.div(H.classes({"bc-auth-container":!0,"bc-auth-container--styled":t.Value.map(b??!0,v=>v)}),t.attr.class(g.map(v=>`bc-auth-container--${v}`)),t.attr.class("bc-auth-form"),t.OnDispose(g.dispose),t.OneOfValue(g,{signin:()=>t.Fragment(t.html.h2(t.attr.class("bc-auth-form__title"),t.coalesce(a?.signInTitle,_.$.signInTitle)),e!=null?t.Fragment(z({providers:e}),t.When(c??!1,E)):null,V({onSignIn:n,showRememberMe:l,passwordRules:i,labels:{emailLabel:a?.emailLabel,passwordLabel:a?.passwordLabel,rememberMeLabel:a?.rememberMeLabel,signInButton:a?.signInButton,forgotPasswordLink:a?.forgotPasswordLink,noAccountLink:a?.noAccountLink}}),m.Stack(t.attr.class("bc-auth-form__footer"),I(),O())),signup:()=>t.Fragment(t.html.h2(t.attr.class("bc-auth-form__title"),t.coalesce(a?.signUpTitle,_.$.signUpTitle)),e!=null?t.Fragment(z({providers:e}),t.When(c??!1,E)):null,M({labels:{nameLabel:a?.nameLabel,emailLabel:a?.emailLabel,passwordLabel:a?.passwordLabel,confirmPasswordLabel:a?.confirmPasswordLabel,acceptTermsLabel:a?.acceptTermsLabel,signUpButton:a?.signUpButton,hasAccountLink:a?.hasAccountLink},onSignUp:u,passwordRules:i,showPasswordStrength:r}),m.Stack(t.attr.class("bc-auth-form__footer"),B())),"reset-password":()=>t.Fragment(t.html.h2(t.attr.class("bc-auth-form__title"),t.coalesce(a?.resetPasswordTitle,_.$.resetPasswordTitle)),N({labels:{backToSignInLink:a?.backToSignInLink,emailLabel:a?.emailLabel,resetPasswordButton:a?.resetPasswordButton,resetPasswordDescription:a?.resetPasswordDescription},onResetPassword:s}),m.Stack(t.attr.class("bc-auth-form__footer"),B()))}),...h)})}function $t(o){return w.Modal({size:"sm",dismissable:!0,showCloseButton:!0},(e,i)=>o(l=>e({body:j({showContainer:!1,...l}),header:t.Use(S.AuthI18n,c=>t.coalesce(l.modalTitle,c.$.authenticationTitle))})))}function E({labels:o,className:e}={}){return t.html.div(t.attr.class("bc-auth-divider"),t.attr.class(e),t.html.div(t.attr.class("bc-auth-divider__line")),t.Use(S.AuthI18n,i=>t.html.span(t.attr.class("bc-auth-divider__text"),t.coalesce(o?.text,i.$.orDivider))),t.html.div(t.attr.class("bc-auth-divider__line")))}exports.AmazonLoginButton=At;exports.AppleLoginButton=ut;exports.AuthContainer=j;exports.AuthDivider=E;exports.AuthModal=$t;exports.DiscordLoginButton=ft;exports.EpicLoginButton=yt;exports.FacebookLoginButton=dt;exports.GitHubLoginButton=mt;exports.GoogleLoginButton=lt;exports.InstagramLoginButton=wt;exports.LinkedInLoginButton=bt;exports.MicrosoftLoginButton=gt;exports.PasswordStrengthBar=it;exports.PasswordStrengthIndicator=R;exports.PasswordStrengthText=ct;exports.PayPalLoginButton=Tt;exports.PinterestLoginButton=kt;exports.PlayStationLoginButton=Bt;exports.RedditLoginButton=vt;exports.ResetPasswordForm=N;exports.SignInForm=V;exports.SignUpForm=M;exports.SnapchatLoginButton=_t;exports.SocialLoginButton=p;exports.SocialLoginButtons=G;exports.SocialProviders=z;exports.SteamLoginButton=Pt;exports.TiktokLoginButton=Lt;exports.TwitchLoginButton=St;exports.TwitterLoginButton=ht;exports.WeChatLoginButton=qt;exports.WhatsAppLoginButton=xt;exports.XLoginButtin=pt;exports.XboxLoginButton=It;exports.YahooLoginButton=Ct;exports.authSchemas=nt;exports.calculatePasswordStrength=$;exports.createPasswordSchema=A;exports.createSignInSchema=C;exports.createSignUpSchema=T;exports.createSocialLoginUrl=K;exports.defaultPasswordRules=P;exports.defaultSignInSchema=et;exports.defaultSignUpSchema=at;exports.emailSchema=y;exports.formatAuthError=tt;exports.formatProviderName=F;exports.formatSocialLoginText=Z;exports.generateRandomString=D;exports.getProviderColor=Y;exports.getProviderIcon=X;exports.isBrowser=ot;exports.isValidEmail=J;exports.openSocialLoginPopup=Q;exports.providerInfo=x;exports.requestToControllerValidation=q;exports.resetPasswordSchema=U;exports.socialProviderInfo=d;exports.useAuthEmailProp=W;exports.validateEmail=rt;exports.validatePassword=st;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@tempots/dom"),u=require("../notice-BnX2sRrK.cjs"),w=require("../modal-RQtwnFy9.cjs"),S=require("../translations-DDFTHcX3.cjs"),y=require("../translations-BDRano6u.cjs"),X=require("@tempots/ui"),q={google:{name:"Google",icon:"logos:google-icon",color:"#4285f4"},github:{name:"GitHub",icon:"logos:github-icon",color:"#333"},apple:{name:"Apple",icon:"logos:apple",color:"#000"},facebook:{name:"Facebook",icon:"logos:facebook",color:"#1877f2"},twitter:{name:"Twitter",icon:"logos:twitter",color:"#1da1f2"},microsoft:{name:"Microsoft",icon:"logos:microsoft-icon",color:"#00a4ef"},discord:{name:"Discord",icon:"logos:discord-icon",color:"#5865f2"},linkedin:{name:"LinkedIn",icon:"logos:linkedin-icon",color:"#0077b5"},instagram:{name:"Instagram",icon:"logos:instagram-icon",color:"#e4405f"},tiktok:{name:"TikTok",icon:"logos:tiktok-icon",color:"#000"},snapchat:{name:"Snapchat",icon:"logos:snapchat-icon",color:"#fffc00"},reddit:{name:"Reddit",icon:"logos:reddit-icon",color:"#ff4500"},pinterest:{name:"Pinterest",icon:"logos:pinterest-icon",color:"#bd081c"},twitch:{name:"Twitch",icon:"logos:twitch",color:"#9146ff"},steam:{name:"Steam",icon:"logos:steam-icon",color:"#000"},epic:{name:"Epic Games",icon:"simple-icons:epicgames",color:"#313131"},playstation:{name:"PlayStation",icon:"logos:playstation-icon",color:"#003791"},xbox:{name:"Xbox",icon:"logos:xbox-icon",color:"#107c10"},whatsapp:{name:"WhatsApp",icon:"logos:whatsapp-icon",color:"#25d366"},wechat:{name:"WeChat",icon:"logos:wechat-icon",color:"#1aad19"},amazon:{name:"Amazon",icon:"logos:amazon-icon",color:"#ff9900"},yahoo:{name:"Yahoo",icon:"logos:yahoo-icon",color:"#720e9e"},paypal:{name:"PayPal",icon:"logos:paypal",color:"#0070ba"},x:{name:"X",icon:"simple-icons:x",color:"#000"}};function D(o){return q[o]?.name||o}function Y(o){return q[o]?.icon||"mdi:account"}function Z(o){return q[o]?.color||"#666"}function J(o,e="Continue with {provider}"){return e.replace("{provider}",D(o))}const P={minLength:8,requireUppercase:!0,requireLowercase:!0,requireNumbers:!0,requireSymbols:!1};function K(o){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)}function V(o=32){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(let l=0;l<o;l++)i+=e.charAt(Math.floor(Math.random()*e.length));return i}function Q(o,e,i,l=[],c={}){const r={google:"https://accounts.google.com/oauth/authorize",github:"https://github.com/login/oauth/authorize",apple:"https://appleid.apple.com/auth/authorize",facebook:"https://www.facebook.com/v18.0/dialog/oauth",twitter:"https://twitter.com/i/oauth2/authorize",microsoft:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",discord:"https://discord.com/api/oauth2/authorize",linkedin:"https://www.linkedin.com/oauth/v2/authorization",instagram:"https://api.instagram.com/oauth/authorize",tiktok:"https://www.tiktok.com/v2/auth/authorize",snapchat:"https://accounts.snapchat.com/accounts/oauth2/authorize",reddit:"https://www.reddit.com/api/v1/authorize",pinterest:"https://api.pinterest.com/oauth/",twitch:"https://id.twitch.tv/oauth2/authorize",steam:"https://steamcommunity.com/oauth/authorize",epic:"https://auth.epicgames.com/authorize",playstation:"https://auth.api.sonyentertainmentnetwork.com/oauth/authorize",xbox:"https://login.live.com/oauth20_authorize.srf",whatsapp:"https://web.whatsapp.com/oauth/authorize",wechat:"https://open.weixin.qq.com/connect/qrconnect",amazon:"https://www.amazon.com/ap/oa",yahoo:"https://api.login.yahoo.com/oauth2/request_auth",paypal:"https://www.paypal.com/signin/authorize",x:"https://api.twitter.com/oauth2/authorize"},a={google:["openid","email","profile"],github:["user:email"],apple:["email","name"],facebook:["email"],twitter:["users.read"],microsoft:["openid","email","profile"],discord:["identify","email"],linkedin:["r_liteprofile","r_emailaddress"],instagram:["user_profile","user_media"],tiktok:["user.info.basic","user.external.id"],snapchat:["user.info.basic","user.external.id"],reddit:["identity","email"],pinterest:["read_public","read_relationships"],twitch:["openid","email","profile"],steam:["openid","email","profile"],epic:["openid","email","profile"],playstation:["openid","email","profile"],xbox:["openid","email","profile"],whatsapp:["openid","email","profile"],wechat:["openid","email","profile"],amazon:["openid","email","profile"],yahoo:["openid","email","profile"],paypal:["openid","email","profile"],x:["openid","email","profile"]},n=r[o];if(!n)throw new Error(`Unsupported provider: ${o}`);const m=l.length>0?l:a[o],s=V(),f=new URLSearchParams({client_id:e,redirect_uri:i,scope:m.join(" "),state:s,response_type:"code",...c});return`${n}?${f.toString()}`}function tt(o,e,i,l){const c=window.open(o,`${e}_login`,"width=500,height=600,scrollbars=yes,resizable=yes");if(!c){l?.(new Error("Failed to open popup window"));return}const r=setInterval(()=>{c.closed&&(clearInterval(r),l?.(new Error("Login cancelled")))},1e3),a=n=>{n.origin===window.location.origin&&(n.data.type==="SOCIAL_LOGIN_SUCCESS"?(clearInterval(r),c.close(),window.removeEventListener("message",a),i?.(n.data.result)):n.data.type==="SOCIAL_LOGIN_ERROR"&&(clearInterval(r),c.close(),window.removeEventListener("message",a),l?.(new Error(n.data.error))))};window.addEventListener("message",a)}function ot(o){return o instanceof Error?o.message:typeof o=="string"?o:o&&typeof o=="object"&&"message"in o?String(o.message):"An unexpected error occurred"}function et(){return typeof window<"u"&&typeof document<"u"}function A({task:o,message:e,onStart:i,onEnd:l}){return async c=>{i?.();const r=await u.taskToValidation({task:o!=null?()=>o(c):async()=>null,errorMessage:e,errorPath:["root"],validation:a=>a!=null?u.a.invalid({message:a}):u.a.valid});return l?.(),r}}function C(o=P){let e=w.string();return o.minLength&&(e=e.min(o.minLength,`Password must be at least ${o.minLength} characters`)),o.requireUppercase&&(e=e.regex(/[A-Z]/,"Password must contain at least one uppercase letter")),o.requireLowercase&&(e=e.regex(/[a-z]/,"Password must contain at least one lowercase letter")),o.requireNumbers&&(e=e.regex(/[0-9]/,"Password must contain at least one number")),o.requireSymbols&&(e=e.regex(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/,"Password must contain at least one special character")),o.customValidation&&(e=e.refine(i=>o.customValidation(i))),e}const B=w.string().min(1,"Email is required").email("Please enter a valid email address");function T(o){const e=o?C(o):w.string().refine(i=>i.length>0?null:"Password is required");return w.object({email:B,password:e,rememberMe:w.boolean().default(!1)}).schema()}function $(o=P,e){const i=C(o),l=e?.showNameField!==!1,c=e?.showConfirmPassword!==!1,r=e?.showAcceptTermsAndConditions!==!1,a={name:l?w.string().min(1,"Name is required").optional():w.string().optional(),email:B,password:i,confirmPassword:c?w.string().min(1,"Please confirm your password"):w.string(),acceptTerms:r?w.boolean().refine(m=>m===!0,"You must accept the terms and conditions"):w.boolean().default(!0)},n=w.object(a);return c?n.refine(m=>m.password===m.confirmPassword?null:"Passwords don't match",{path:["confirmPassword"]}).schema():n.schema()}const W=w.object({email:B}).schema(),at=T(),nt=$(),rt={signIn:T,signUp:$,resetPassword:()=>W};function st(o){const e=B.validate(o);return e.success?null:e.errors[0]?.message||"Invalid email"}function it(o,e=P){const l=C(e).validate(o);return l.success?null:l.errors[0]?.message||"Invalid password"}function O(o,e=P){const i={length:o.length>=(e.minLength||8),uppercase:/[A-Z]/.test(o),lowercase:/[a-z]/.test(o),numbers:/[0-9]/.test(o),symbols:/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(o),custom:e.customValidation?e.customValidation(o)===null:o.length>0},l=[!0,e.requireUppercase,e.requireLowercase,e.requireNumbers,e.requireSymbols,!!e.customValidation].filter(Boolean).length,c=[i.length,e.requireUppercase?i.uppercase:null,e.requireLowercase?i.lowercase:null,e.requireNumbers?i.numbers:null,e.requireSymbols?i.symbols:null,e.customValidation?i.custom:null].filter(n=>n===!0).length,r=l>0?Math.round(c/l*100):0;let a;return r<40?a="weak":r<60?a="fair":r<80?a="good":a="strong",{strength:a,score:r,checks:i}}const F=()=>t.localStorageProp({key:"bui_auth_email",defaultValue:null});function R({onSignIn:o,passwordRules:e,labels:i,showRememberMe:l}){const c=t.prop(!1),r=F(),a=T(e),n=u.useForm({schema:a,onSubmit:A({task:o,message:"Reset password failed",onStart:()=>{c.set(!0),n.controller.disable()},onEnd:()=>{c.set(!1),n.controller.enable()}}),initialValue:{email:"",password:""}}),{controller:m,submit:s}=n;c.on(m.setDisabled);const f=m.field("email"),b=m.field("password");return r.on(h=>{h!=null&&f.change(h)}),f.value.on(h=>{r.value!=null&&(r.value=h)}),t.Use(S.AuthI18n,h=>t.html.form(t.OnDispose(m.dispose,r.dispose,c.dispose),t.attr.class("bc-auth-form__form"),t.on.submit(s),u.Stack(t.attr.class("bc-auth-form__fields"),t.Ensure(m.error,g=>u.Notice({variant:"danger",tone:"prominent",role:"alert"},t.html.div(g))),u.Control(u.EmailInput,{controller:f,label:t.coalesce(i?.emailLabel,h.$.emailLabel)}),u.Control(u.PasswordInput,{controller:b,label:t.coalesce(i?.passwordLabel,h.$.passwordLabel)}),t.When(l??!0,()=>t.html.div(t.attr.class("bc-auth-form__remember-me"),t.html.label(t.attr.class("bc-auth-form__checkbox-label"),u.CheckboxInput({value:r.map(g=>g!=null),after:t.html.span(t.coalesce(i?.rememberMeLabel,h.$.rememberMeLabel)),onChange:g=>{g?r.value=f.value.value??"":r.value=null}}))))),y.Button({type:"submit",variant:"filled",color:"primary",loading:c,disabled:m.disabledOrHasErrors},t.attr.class("bc-auth-form__submit"),t.coalesce(i?.signInButton,h.$.signInButton))))}function M({password:o,rules:e=P,showLabel:i=!0,className:l}){const c=t.computedOf(o)(s=>!s||s.length===0?{strength:"weak",score:0,checks:{length:!1,uppercase:!1,lowercase:!1,numbers:!1,symbols:!1,custom:!1}}:O(s,e)),r=c.map(s=>s.strength),a=c.map(s=>s.score),n=c.map(s=>s.checks),m=t.computedOf(r,l)((s,f)=>["bc-password-strength",`bc-password-strength--${s}`,f].filter(Boolean).join(" "));return t.html.div(t.attr.class(m),t.html.div(t.attr.class("bc-password-strength__bar"),t.html.div(t.attr.class("bc-password-strength__fill"),t.attr.style(a.map(s=>`width: ${s}%`)))),t.When(i,()=>t.Use(S.AuthI18n,s=>t.html.div(t.attr.class("bc-password-strength__label"),t.computedOf(r,s)((f,b)=>{switch(f){case"weak":return b.passwordStrengthWeak;case"fair":return b.passwordStrengthFair;case"good":return b.passwordStrengthGood;case"strong":return b.passwordStrengthStrong;default:return b.passwordStrengthWeak}})))),t.html.div(t.attr.class("bc-password-strength__requirements"),t.When(e.minLength!==void 0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.length?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.length?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),`At least ${e.minLength} characters`))),t.When(e.requireUppercase===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.uppercase?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.uppercase?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One uppercase letter"))),t.When(e.requireLowercase===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.lowercase?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.lowercase?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One lowercase letter"))),t.When(e.requireNumbers===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.numbers?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.numbers?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One number"))),t.When(e.requireSymbols===!0,()=>t.html.div(t.attr.class("bc-password-strength__requirement"),t.attr.class(t.computedOf(n)(s=>s.symbols?"bc-password-strength__requirement--met":"")),t.html.span(t.attr.class("bc-password-strength__requirement-icon"),t.computedOf(n)(s=>s.symbols?"✓":"○")),t.html.span(t.attr.class("bc-password-strength__requirement-text"),"One special character")))))}function ct({password:o,rules:e=P,className:i}){const l=t.computedOf(o)(n=>!n||n.length===0?{strength:"weak",score:0}:O(n,e)),c=l.map(n=>n.strength),r=l.map(n=>n.score),a=t.computedOf(c,i)((n,m)=>["bc-password-strength-bar",`bc-password-strength-bar--${n}`,m].filter(Boolean).join(" "));return t.html.div(t.attr.class(a),t.html.div(t.attr.class("bc-password-strength-bar__fill"),t.attr.style(r.map(n=>`width: ${n}%`))))}function lt({password:o,rules:e=P,className:i}){const l=t.computedOf(o)(r=>!r||r.length===0?"weak":O(r,e).strength),c=t.computedOf(l,i)((r,a)=>["bc-password-strength-text",`bc-password-strength-text--${r}`,a].filter(Boolean).join(" "));return t.Use(S.AuthI18n,r=>t.html.span(t.attr.class(c),t.computedOf(l,r)((a,n)=>{switch(a){case"weak":return n.passwordStrengthWeak;case"fair":return n.passwordStrengthFair;case"good":return n.passwordStrengthGood;case"strong":return n.passwordStrengthStrong;default:return n.passwordStrengthWeak}})))}function N({passwordRules:o,labels:e,showPasswordStrength:i,onSignUp:l,showNameField:c,showConfirmPassword:r,showAcceptTermsAndConditions:a,termsAndConditions:n}){const m=t.prop(!1),s=o||P,f=$(s,{showNameField:c!==!1,showConfirmPassword:r!==!1,showAcceptTermsAndConditions:a!==!1}),b=u.useForm({schema:f,onSubmit:A({task:l!=null?k=>l({email:k.email,password:k.password,name:k.name}):void 0,message:"Reset password failed",onStart:()=>{m.set(!0),b.controller.disable()},onEnd:()=>{m.set(!1),b.controller.enable()}}),initialValue:{name:"",email:"",password:"",confirmPassword:"",acceptTerms:!1}}),{controller:h,submit:g}=b;m.on(h.setDisabled);const _=h.field("name"),I=h.field("email"),x=h.field("password"),z=h.field("confirmPassword"),v=h.field("acceptTerms");return t.Use(S.AuthI18n,k=>t.html.form(t.OnDispose(h.dispose,m.dispose),t.attr.class("bc-auth-form__form"),t.on.submit(g),u.Stack(t.attr.class("bc-auth-form__fields"),t.Ensure(h.error,L=>u.Notice({variant:"danger",tone:"prominent",role:"alert"},t.html.div(L))),t.When(c!==!1,()=>u.Control(y.TextInput,{controller:_.transform(L=>L??"",L=>L===""?void 0:L),label:t.coalesce(e?.nameLabel,k.$.nameLabel)})),u.Control(u.EmailInput,{controller:I,label:t.coalesce(e?.emailLabel,k.$.emailLabel)}),u.Control(u.PasswordInput,{controller:x,label:t.coalesce(e?.passwordLabel,k.$.passwordLabel)}),t.When(i??!1,()=>M({password:x.value,rules:s,showLabel:!0})),t.When(r??!1,()=>u.Control(u.PasswordInput,{controller:z,label:t.coalesce(e?.confirmPasswordLabel,k.$.confirmPasswordLabel)})),t.When(a??!1,()=>t.html.div(t.attr.class("bc-auth-form__terms"),t.html.label(t.attr.class("bc-auth-form__checkbox-label"),u.CheckboxInput({value:v.value.map(L=>L??!1),onChange:L=>v.change(L)}),t.html.span(n||t.coalesce(e?.acceptTermsLabel,k.$.acceptTermsLabel))),t.When(v.errorVisible,()=>t.html.div(t.attr.class("bc-auth-form__field-error"),v.error.map(L=>L||"")))))),y.Button({type:"submit",variant:"filled",color:"primary",loading:m,disabled:h.disabledOrHasErrors},t.attr.class("bc-auth-form__submit"),t.coalesce(e?.signUpButton,k.$.signUpButton))))}function G({onResetPassword:o,labels:e={}}){const i=F(),l=t.prop(!1),c=u.useForm({schema:W,onSubmit:A({task:o,message:"Reset password failed",onStart:()=>{l.set(!0),c.controller.disable()},onEnd:()=>{l.set(!1),c.controller.enable()}}),initialValue:{email:""}}),{controller:r,submit:a}=c;l.on(r.setDisabled);const n=r.field("email");return i.on(m=>{m!=null&&n.change(m)}),t.Use(S.AuthI18n,m=>t.html.form(t.OnDispose(r.dispose,i.dispose,l.dispose),t.attr.class("bc-auth-form__form"),t.Ensure(r.error,s=>u.Notice({variant:"danger",tone:"prominent",role:"alert"},t.html.div(s))),t.html.p(t.attr.class("bc-auth-form__description"),t.coalesce(e?.resetPasswordDescription,m.$.resetPasswordDescription)),t.on.submit(a),u.Stack(t.attr.class("bc-auth-form__fields"),u.Control(u.EmailInput,{controller:n,label:t.coalesce(e?.emailLabel,m.$.emailLabel)})),y.Button({loading:l,type:"submit",variant:"filled",color:"primary",disabled:r.disabledOrHasErrors},t.attr.class("bc-auth-form__submit"),t.coalesce(e?.resetPasswordButton,m.$.resetPasswordButton))))}function p({provider:o,onClick:e,size:i="md",name:l,icon:c,color:r,flow:a,labels:n}){const m=async()=>{if(e)try{a==="popup"?await e():await e()}catch(s){console.error(`Social login error for ${o} (${a||"redirect"} flow):`,s)}};return y.Button({type:"button",variant:"filled",size:i,color:r,onClick:m,roundedness:"full"},t.attr.class("bc-social-login-button"),t.attr.class(t.computedOf(o)(s=>`bc-social-login-button--${s}`)),t.html.span(t.attr.class("bc-social-login-button__inner"),t.html.span(t.attr.class("bc-social-login-button__icon"),y.Icon({icon:c,size:i},t.attr.class("bc-social-login-button__icon-inner"))),t.Use(S.AuthI18n,s=>t.html.span(t.attr.class("bc-social-login-button__label"),t.bind(t.coalesce(n?.continueWithProvider,s.$.continueWithProvider))(l)))))}function j({providers:o,onProviderClick:e,size:i="md",className:l}){return u.Stack(t.attr.class("bc-social-login-buttons"),t.attr.class(l),t.ForEach(o,c=>p({provider:c.$.provider,flow:c.$.flow,color:c.map(({provider:r})=>d[r].color),name:c.map(({provider:r})=>d[r].name),icon:c.map(({provider:r})=>d[r].icon),onClick:async()=>{e&&await e(c.$.provider.value)},size:i})))}const d={google:{name:"Google",icon:"logos:google-icon",color:"red"},github:{name:"GitHub",icon:"logos:github-icon",color:"black"},apple:{name:"Apple",icon:"logos:apple",color:"stone"},facebook:{name:"Facebook",icon:"logos:facebook",color:"blue"},twitter:{name:"Twitter",icon:"logos:twitter",color:"sky"},x:{name:"X",icon:"logos:x",color:"zinc"},microsoft:{name:"Microsoft",icon:"logos:microsoft-icon",color:"amber"},discord:{name:"Discord",icon:"logos:discord-icon",color:"indigo"},linkedin:{name:"LinkedIn",icon:"logos:linkedin-icon",color:"cyan"},instagram:{name:"Instagram",icon:"logos:instagram-icon",color:"fuchsia"},tiktok:{name:"TikTok",icon:"logos:tiktok-icon",color:"teal"},snapchat:{name:"Snapchat",icon:"streamline-logos:snapchat-logo-solid",color:"yellow"},reddit:{name:"Reddit",icon:"logos:reddit-icon",color:"orange"},pinterest:{name:"Pinterest",icon:"logos:pinterest",color:"rose"},twitch:{name:"Twitch",icon:"logos:twitch",color:"purple"},steam:{name:"Steam",icon:"logos:steam",color:"slate"},epic:{name:"Epic Games",icon:"streamline-logos:epic-games-logo-solid",color:"neutral"},playstation:{name:"PlayStation",icon:"streamline-logos:playstation-logo-solid",color:"violet"},xbox:{name:"Xbox",icon:"streamline-logos:xbox-live-logo-solid",color:"green"},whatsapp:{name:"WhatsApp",icon:"logos:whatsapp-icon",color:"emerald"},wechat:{name:"WeChat",icon:"streamline-logos:wechat-logo",color:"lime"},amazon:{name:"Amazon",icon:"streamline-logos:amazon-logo-solid",color:"red"},yahoo:{name:"Yahoo",icon:"logos:yahoo",color:"rose"},paypal:{name:"PayPal",icon:"logos:paypal",color:"blue"}},mt=o=>p({...o,...d.google,provider:"google"}),ut=o=>p({...o,...d.github,provider:"github"}),dt=o=>p({...o,...d.apple,provider:"apple"}),pt=o=>p({...o,...d.facebook,provider:"facebook"}),ht=o=>p({...o,...d.x,provider:"x"}),gt=o=>p({...o,...d.twitter,provider:"twitter"}),ft=o=>p({...o,...d.microsoft,provider:"microsoft"}),bt=o=>p({...o,...d.discord,provider:"discord"}),wt=o=>p({...o,...d.linkedin,provider:"linkedin"}),Lt=o=>p({...o,...d.instagram,provider:"instagram"}),_t=o=>p({...o,...d.tiktok,provider:"tiktok"}),vt=o=>p({...o,...d.snapchat,provider:"snapchat"}),kt=o=>p({...o,...d.reddit,provider:"reddit"}),St=o=>p({...o,...d.pinterest,provider:"pinterest"}),Pt=o=>p({...o,...d.twitch,provider:"twitch"}),yt=o=>p({...o,...d.steam,provider:"steam"}),Bt=o=>p({...o,...d.epic,provider:"epic"}),It=o=>p({...o,...d.playstation,provider:"playstation"}),xt=o=>p({...o,...d.xbox,provider:"xbox"}),qt=o=>p({...o,...d.whatsapp,provider:"whatsapp"}),At=o=>p({...o,...d.wechat,provider:"wechat"}),Ct=o=>p({...o,...d.amazon,provider:"amazon"}),Tt=o=>p({...o,...d.yahoo,provider:"yahoo"}),$t=o=>p({...o,...d.paypal,provider:"paypal"});function E({providers:o}){return u.Stack(j({providers:o}))}function H({mode:o,socialProviders:e,passwordRules:i,showRememberMe:l,showSocialDivider:c,showPasswordStrength:r,labels:a,onSignIn:n,onSignUp:m,onResetPassword:s,onModeChange:f,showContainer:b},...h){const g=o!=null?t.Value.deriveProp(o):t.prop("signin");return g.on(_=>f?.(_)),t.Use(S.AuthI18n,_=>{function I(){const v=t.coalesce(a?.hasAccountLink,_.$.hasAccountLink);return t.html.button(t.attr.type("button"),t.attr.class("bc-auth-form__link"),t.on.click(()=>g.set("signin")),v)}function x(){return t.html.button(t.attr.type("button"),t.attr.class("bc-auth-form__link"),t.on.click(()=>g.set("signup")),t.coalesce(a?.noAccountLink,_.$.noAccountLink))}function z(){return t.html.button(t.attr.type("button"),t.attr.class("bc-auth-form__link"),t.on.click(()=>g.set("reset-password")),t.coalesce(a?.forgotPasswordLink,_.$.forgotPasswordLink))}return t.html.div(X.classes({"bc-auth-container":!0,"bc-auth-container--styled":t.Value.map(b??!0,v=>v)}),t.attr.class(g.map(v=>`bc-auth-container--${v}`)),t.attr.class("bc-auth-form"),t.OnDispose(g.dispose),t.OneOfValue(g,{signin:()=>t.Fragment(t.html.h2(t.attr.class("bc-auth-form__title"),t.coalesce(a?.signInTitle,_.$.signInTitle)),e!=null?t.Fragment(E({providers:e}),t.When(c??!1,U)):null,R({onSignIn:n,showRememberMe:l,passwordRules:i,labels:{emailLabel:a?.emailLabel,passwordLabel:a?.passwordLabel,rememberMeLabel:a?.rememberMeLabel,signInButton:a?.signInButton,forgotPasswordLink:a?.forgotPasswordLink,noAccountLink:a?.noAccountLink}}),u.Stack(t.attr.class("bc-auth-form__footer"),x(),z())),signup:()=>t.Fragment(t.html.h2(t.attr.class("bc-auth-form__title"),t.coalesce(a?.signUpTitle,_.$.signUpTitle)),e!=null?t.Fragment(E({providers:e}),t.When(c??!1,U)):null,N({labels:{nameLabel:a?.nameLabel,emailLabel:a?.emailLabel,passwordLabel:a?.passwordLabel,confirmPasswordLabel:a?.confirmPasswordLabel,acceptTermsLabel:a?.acceptTermsLabel,signUpButton:a?.signUpButton,hasAccountLink:a?.hasAccountLink},onSignUp:m,passwordRules:i,showPasswordStrength:r}),u.Stack(t.attr.class("bc-auth-form__footer"),I())),"reset-password":()=>t.Fragment(t.html.h2(t.attr.class("bc-auth-form__title"),t.coalesce(a?.resetPasswordTitle,_.$.resetPasswordTitle)),G({labels:{backToSignInLink:a?.backToSignInLink,emailLabel:a?.emailLabel,resetPasswordButton:a?.resetPasswordButton,resetPasswordDescription:a?.resetPasswordDescription},onResetPassword:s}),u.Stack(t.attr.class("bc-auth-form__footer"),I()))}),...h)})}function Ot(o){return w.Modal({size:"sm",dismissable:!0,showCloseButton:!0},(e,i)=>o(l=>e({body:H({showContainer:!1,...l}),header:t.Use(S.AuthI18n,c=>t.coalesce(l.modalTitle,c.$.authenticationTitle))})))}function U({labels:o,className:e}={}){return t.html.div(t.attr.class("bc-auth-divider"),t.attr.class(e),t.html.div(t.attr.class("bc-auth-divider__line")),t.Use(S.AuthI18n,i=>t.html.span(t.attr.class("bc-auth-divider__text"),t.coalesce(o?.text,i.$.orDivider))),t.html.div(t.attr.class("bc-auth-divider__line")))}exports.AmazonLoginButton=Ct;exports.AppleLoginButton=dt;exports.AuthContainer=H;exports.AuthDivider=U;exports.AuthModal=Ot;exports.DiscordLoginButton=bt;exports.EpicLoginButton=Bt;exports.FacebookLoginButton=pt;exports.GitHubLoginButton=ut;exports.GoogleLoginButton=mt;exports.InstagramLoginButton=Lt;exports.LinkedInLoginButton=wt;exports.MicrosoftLoginButton=ft;exports.PasswordStrengthBar=ct;exports.PasswordStrengthIndicator=M;exports.PasswordStrengthText=lt;exports.PayPalLoginButton=$t;exports.PinterestLoginButton=St;exports.PlayStationLoginButton=It;exports.RedditLoginButton=kt;exports.ResetPasswordForm=G;exports.SignInForm=R;exports.SignUpForm=N;exports.SnapchatLoginButton=vt;exports.SocialLoginButton=p;exports.SocialLoginButtons=j;exports.SocialProviders=E;exports.SteamLoginButton=yt;exports.TiktokLoginButton=_t;exports.TwitchLoginButton=Pt;exports.TwitterLoginButton=gt;exports.WeChatLoginButton=At;exports.WhatsAppLoginButton=qt;exports.XLoginButtin=ht;exports.XboxLoginButton=xt;exports.YahooLoginButton=Tt;exports.authSchemas=rt;exports.calculatePasswordStrength=O;exports.createPasswordSchema=C;exports.createSignInSchema=T;exports.createSignUpSchema=$;exports.createSocialLoginUrl=Q;exports.defaultPasswordRules=P;exports.defaultSignInSchema=at;exports.defaultSignUpSchema=nt;exports.emailSchema=B;exports.formatAuthError=ot;exports.formatProviderName=D;exports.formatSocialLoginText=J;exports.generateRandomString=V;exports.getProviderColor=Z;exports.getProviderIcon=Y;exports.isBrowser=et;exports.isValidEmail=K;exports.openSocialLoginPopup=tt;exports.providerInfo=q;exports.requestToControllerValidation=A;exports.resetPasswordSchema=W;exports.socialProviderInfo=d;exports.useAuthEmailProp=F;exports.validateEmail=st;exports.validatePassword=it;