1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,686247,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(526683);function n(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function a(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-header",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function s(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("leading-none font-semibold",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-title",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function o(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("text-muted-foreground text-sm",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-description",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function l(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-action",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function u(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("px-6",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-content",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}function c(e){let n,a,s,o,l=(0,r.c)(8);return l[0]!==e?({className:n,...a}=e,l[0]=e,l[1]=n,l[2]=a):(n=l[1],a=l[2]),l[3]!==n?(s=(0,i.cn)("flex items-center px-6 [.border-t]:pt-6",n),l[3]=n,l[4]=s):s=l[4],l[5]!==a||l[6]!==s?(o=(0,t.jsx)("div",{"data-slot":"card-footer",className:s,...a}),l[5]=a,l[6]=s,l[7]=o):o=l[7],o}e.s(["Card",()=>n,"CardAction",()=>l,"CardContent",()=>u,"CardDescription",()=>o,"CardFooter",()=>c,"CardHeader",()=>a,"CardTitle",()=>s])},594751,e=>{"use strict";e.i(119635);var t=e.i(927646);e.s(["default",()=>t.Link])},370910,e=>{"use strict";e.i(910416);var t=e.i(440053);e.s(["FrameworkProvider",()=>t.FrameworkProvider,"Image",()=>t.Image,"Link",()=>t.Link,"createContext",()=>t.createContext,"useParams",()=>t.useParams,"usePathname",()=>t.usePathname,"useRouter",()=>t.useRouter])},815762,e=>{"use strict";var t=e.i(927646);e.s(["default",()=>t.Link])},728675,e=>{"use strict";let t=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u
10F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,r=Object.hasOwnProperty;class i{constructor(){this.occurrences,this.reset()}slug(e,i){var n,a;let s=(n=e,a=!0===i,"string"!=typeof n?"":(a||(n=n.toLowerCase()),n.replace(t,"").replace(/ /g,"-"))),o=s;for(;r.call(this.occurrences,s);)this.occurrences[o]++,s=o+"-"+this.occurrences[o];return this.occurrences[s]=0,s}reset(){this.occurrences=Object.create(null)}}e.s(["default",()=>i],728675)},715684,e=>{"use strict";var t=e.i(884702),r=e.i(6140),i=e.i(466471),n=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=t.forwardRef((e,t)=>
1(0,i.jsx)(r.Primitive.span,{...e,ref:t,style:{...n,...e.style}}));a.displayName="VisuallyHidden",e.s(["Root",()=>a,"VISUALLY_HIDDEN_STYLES",()=>n])},850260,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(199978),a=e.i(856270),s=e.i(526683);let o=i.forwardRef(({className:e,children:r,...i},n)=>(0,t.jsxs)(a.Root,{ref:n,className:(0,s.cn)("relative overflow-hidden",e),...i,children:[(0,t.jsx)(a.Viewport,{className:"h-full w-full rounded-[inherit]",children:r}),(0,t.jsx)(l,{}),(0,t.jsx)(a.Corner,{})]}));o.displayName=a.Root.displayName;let l=i.forwardRef(({className:e,orientation:r="vertical",...i},n)=>(0,t.jsx)(a.ScrollAreaScrollbar,{ref:n,orientation:r,className:(0,s.cn)("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...i,children:(0,t.jsx)(a.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));l.displayName=a.ScrollAreaScrollbar.displayName;var u=e.i(330771);function c(e){let a,c,h,p,f,x,g,v,D,b,w=(0,r.c)(22),{tabs:y,size:F}=e,j=(0,n.useRouter)();w[0]!==y?(a=y?.find(m)?.name||"",w[0]=y,w[1]=a):a=w[1];let[C,E]=(0,i.useState)(a);w[2]===Symbol.for("react.memo_cache_sentinel")?(c={},w[2]=c):c=w[2],(0,i.useState)(c),w[3]!==j||w[4]!==C||w[5]!==y?(h=()=>
1{if(C){let e=y?.find(e=>e.name===C)||{};e.url&&j.push(e.url)}},w[3]=j,w[4]=C,w[5]=y,w[6]=h):h=w[6],w[7]!==C?(p=[C],w[7]=C,w[8]=p):p=w[8],(0,i.useEffect)(h,p);let N="sm"===F&&"h-8";return w[9]!==N?(f=(0,s.cn)(N),w[9]=N,w[10]=f):f=w[10],w[11]!==y?(x=y.map(d),w[11]=y,w[12]=x):x=w[12],w[13]!==f||w[14]!==x?(g=(0,t.jsx)(u.TabsList,{className:f,children:x}),w[13]=f,w[14]=x,w[15]=g):g=w[15],w[16]!==g||w[17]!==C?(v=(0,t.jsx)("div",{className:"flex items-center space-x-2",children:(0,t.jsx)(u.Tabs,{value:C,onValueChange:E,children:g})}),w[16]=g,w[17]=C,w[18]=v):v=w[18],w[19]===Symbol.for("react.memo_cache_sentinel")?(D=(0,t.jsx)(l,{orientation:"horizontal",className:"invisible"}),w[19]=D):D=w[19],w[20]!==v?(b=(0,t.jsx)("div",{className:"relative mb-8",children:(0,t.jsxs)(o,{className:"w-full lg:max-w-none",children:[v,D]})}),w[20]=v,w[21]=b):b=w[21],b}function d(e,r){return(0,t.jsx)(u.TabsTrigger,{value:e.name||"",children:e.title},r)}function m(e){return e.is_active}e.s(["Tabs",()=>c],850260)},330771,e=>{"use strict";var t=e.i(466471),r=e.i(884702),i=e.i(411960),n=e.i(526683);let a=i.Root,s=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(i.List,{ref:a,className:(0,n.cn)("border inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...r}));s.displayName=i.List.displayName;let o=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(i.Trigger,{ref:a,className:(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...r}));o.displayName=i.Trigger.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(i.Content,{ref:a,className:(0,n.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...r})).displayName=i.Content.displayName,e.s(["Tabs",()=>a,"TabsList",()=>s,"TabsTrigger",()=>o])},856270,e=>{"use strict";var t=e.i(884702),r=e.i(6140),i=e.i(775827),n=e.i(352162),a=e.i(188625),s=e.i(935125),o=e.i(950074),l=e.i(385064),u=e.i(527069),c=e.i(291967),d=e.i(466471),m="ScrollArea",[h,p]=(0,n.createContextScope)(m),[f,x]=h(m),g=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,type:s="hover",dir:l,scrollHideDelay:u=600,...c}=e,[m,h]=t.useState(null),[p,x]=t.useState(null),[g,v]=t.useState(null),[D,b]=t.useState(null),[w,y]=t.useState(null),[F,j]=t.useState(0),[C,E]=t.useState(0),[N,A]=t.useState(!1),[_,k]=t.useState(!1),S=(0,a.useComposedRefs)(i,e=>h(e)),B=(0,o.useDirection)(l);return(0,d.jsx)(f,{scope:n,type:s,dir:B,scrollHideDelay:u,scrollArea:m,viewport:p,onViewportChange:x,content:g,onContentChange:v,scrollbarX:D,onScrollbarXChange:b,scrollbarXEnabled:N,onScrollbarXEnabledChange:A,scrollbarY:w,onScrollbarYChange:y,scrollbarYEnabled:_,onScrollbarYEnabledChange:k,onCornerWidthChange:j,onCornerHeightChange:E,children:(0,d.jsx)(r.Primitive.div,{dir:B,...c,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":F+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});g.displayName=m;var v="ScrollAreaViewport",D=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,children:s,nonce:o,...l}=e,u=x(v,n),c=t.useRef(null),m=(0,a.useComposedRefs)(i,c,u.onViewportChange);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,d.jsx)(r.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:m,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,d.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});D.displayName=v;var b="ScrollAreaScrollbar",w=t.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=x(b,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:o}=a,l="horizontal"===e.orientation;return t.useEffect(()=>(l?s(!0):o(!0),()=>{l?s(!1):o(!1)}),[l,s,o]),"hover"===a.type?(0,d.jsx)(y,{...n,ref:r,forceMount:i}):"scroll"===a.type?(0,d.jsx)(F,{...n,ref:r,forceMount:i}):"auto"===a.type?(0,d.jsx)(j,{...n,ref:r,forceMount:i}):"always"===a.type?(0,d.jsx)(C,{...n,ref:r}):null});w.displayName=b;var y=t.forwardRef((e,r)=>{let{forceMount:n,...a}=e,s=x(b,e.__scopeScrollArea),[o,l]=t.useState(!1);return t.useEffect(()=>{let e=s.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),l(!0)},i=()=>{t=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",i),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",i)}}},[s.scrollArea,s.scrollHideDelay]),(0,d.jsx)(i.Presence,{present:n||o,children:(0,d.jsx)(j,{"data-state":o?"visible":"hidden",...a,ref:r})})}),F=t.forwardRef((e,r)=>{var n;let{forceMount:a,...s}=e,o=x(b,e.__scopeScrollArea),l="horizontal"===e.orientation,u=$(()=>h("SCROLL_END"),100),[m,h]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},t.useReducer((e,t)=>
1n[e][t]??e,"hidden"));return t.useEffect(()=>{if("idle"===m){let e=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[m,o.scrollHideDelay,h]),t.useEffect(()=>{let e=o.viewport,t=l?"scrollLeft":"scrollTop";if(e){let r=e[t],i=()=>{let i=e[t];r!==i&&(h("SCROLL"),u()),r=i};return e.addEventListener("scroll",i),()=>e.removeEventListener("scroll",i)}},[o.viewport,l,h,u]),(0,d.jsx)(i.Presence,{present:a||"hidden"!==m,children:(0,d.jsx)(C,{"data-state":"hidden"===m?"hidden":"visible",...s,ref:r,onPointerEnter:(0,c.composeEventHandlers)(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:(0,c.composeEventHandlers)(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),j=t.forwardRef((e,r)=>{let n=x(b,e.__scopeScrollArea),{forceMount:a,...s}=e,[o,l]=t.useState(!1),u="horizontal"===e.orientation,c=$(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?e:t)}},10);return V(n.viewport,c),V(n.content,c),(0,d.jsx)(i.Presence,{present:a||o,children:(0,d.jsx)(C,{"data-state":o?"visible":"hidden",...s,ref:r})})}),C=t.forwardRef((e,r)=>{let{orientation:i="vertical",...n}=e,a=x(b,e.__scopeScrollArea),s=t.useRef(null),o=t.useRef(0),[l,u]=t.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=z(l.viewport,l.content),m={...n,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>s.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function h(e,t){return function(e,t,r,i="ltr"){let n=I(r),a=t||n/2,s=r.scrollbar.paddingStart+a,o=r.scrollbar.size-r.scrollbar.paddingEnd-(n-a),l=r.content-r.viewport;return O([s,o],"ltr"===i?[0,l]:[-1*l,0])(e)}(e,o.current,l,t)}return"horizontal"===i?(0,d.jsx)(E,{...m,ref:r,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=H(a.viewport.scrollLeft,l,a.dir);s.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=h(e,a.dir))}}):"vertical"===i?(0,d.jsx)(N,{...m,ref:r,onThumbPositionChange:()=>{if(a.viewport&&s.current){let e=H(a.viewport.scrollTop,l);s.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=h(e))}}):null}),E=t.forwardRef((e,r)=>{let{sizes:i,onSizesChange:n,...s}=e,o=x(b,e.__scopeScrollArea),[l,u]=t.useState(),c=t.useRef(null),m=(0,a.useComposedRefs)(r,c,o.onScrollbarXChange);return t.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,d.jsx)(k,{"data-orientation":"horizontal",...s,ref:m,sizes:i,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(i)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(o.viewport){var i,n;let a=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(a),i=a,n=r,i>0&&i<n&&t.preventDefault()}},onResize:()=>{c.current&&o.viewport&&l&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:M(l.paddingLeft),paddingEnd:M(l.paddingRight)}})}})}),N=t.forwardRef((e,r)=>{let{sizes:i,onSizesChange:n,...s}=e,o=x(b,e.__scopeScrollArea),[l,u]=t.useState(),c=t.useRef(null),m=(0,a.useComposedRefs)(r,c,o.onScrollbarYChange);return t.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,d.jsx)(k,{"data-orientation":"vertical",...s,ref:m,sizes:i,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(i)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(o.viewport){var i,n;let a=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(a),i=a,n=r,i>0&&i<n&&t.preventDefault()}},onResize:()=>{c.current&&o.viewport&&l&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:M(l.paddingTop),paddingEnd:M(l.paddingBottom)}})}})}),[A,_]=h(b),k=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,sizes:o,hasThumb:l,onThumbChange:u,onThumbPointerUp:m,onThumbPointerDown:h,onThumbPositionChange:p,onDragScroll:f,onWheelScroll:g,onResize:v,...D}=e,w=x(b,n),[y,F]=t.useState(null),j=(0,a.useComposedRefs)(i,e=>F(e)),C=t.useRef(null),E=t.useRef(""),N=w.viewport,_=o.content-o.viewport,k=(0,s.useCallbackRef)(g),S=(0,s.useCallbackRef)(p),B=$(v,10);function R(e){C.current&&f({x:e.clientX-C.current.left,y:e.clientY-C.current.top})}return t.useEffect(()=>{let e=e=>{let t=e.target;y?.contains(t)&&k(e,_)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})}
1,[N,y,_,k]),t.useEffect(S,[o,S]),V(y,B),V(w.content,B),(0,d.jsx)(A,{scope:n,scrollbar:y,hasThumb:l,onThumbChange:(0,s.useCallbackRef)(u),onThumbPointerUp:(0,s.useCallbackRef)(m),onThumbPositionChange:S,onThumbPointerDown:(0,s.useCallbackRef)(h),children:(0,d.jsx)(r.Primitive.div,{...D,ref:j,style:{position:"absolute",...D.style},onPointerDown:(0,c.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),C.current=y.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),R(e))}),onPointerMove:(0,c.composeEventHandlers)(e.onPointerMove,R),onPointerUp:(0,c.composeEventHandlers)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=E.current,w.viewport&&(w.viewport.style.scrollBehavior=""),C.current=null})})})}),S="ScrollAreaThumb",B=t.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=_(S,e.__scopeScrollArea);return(0,d.jsx)(i.Presence,{present:r||a.hasThumb,children:(0,d.jsx)(R,{ref:t,...n})})}),R=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,style:s,...o}=e,l=x(S,n),u=_(S,n),{onThumbPositionChange:m}=u,h=(0,a.useComposedRefs)(i,e=>u.onThumbChange(e)),p=t.useRef(void 0),f=$(()=>{p.current&&(p.current(),p.current=void 0)},100);return t.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{f(),p.current||(p.current=W(e,m),m())};return m(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,f,m]),(0,d.jsx)(r.Primitive.div,{"data-state":u.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:(0,c.composeEventHandlers)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,i=e.clientY-t.top;u.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,c.composeEventHandlers)(e.onPointerUp,u.onThumbPointerUp)})});B.displayName=S;var T="ScrollAreaCorner",L=t.forwardRef((e,t)=>{let r=x(T,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&i?(0,d.jsx)(P,{...e,ref:t}):null});L.displayName=T;var P=t.forwardRef((e,i)=>{let{__scopeScrollArea:n,...a}=e,s=x(T,n),[o,l]=t.useState(0),[u,c]=t.useState(0),m=!!(o&&u);return V(s.scrollbarX,()=>{let e=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(e),c(e)}),V(s.scrollbarY,()=>{let e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),l(e)}),m?(0,d.jsx)(r.Primitive.div,{...a,ref:i,style:{width:o,height:u,position:"absolute",right:"ltr"===s.dir?0:void 0,left:"rtl"===s.dir?0:void 0,bottom:0,...e.style}}):null});function M(e){return e?parseInt(e,10):0}function z(e,t){let r=e/t;return isNaN(r)?0:r}function I(e){let t=z(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function H(e,t,r="ltr"){let i=I(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-n,s=t.content-t.viewport,o=(0,u.clamp)(e,"ltr"===r?[0,s]:[-1*s,0]);return O([0,s],[0,a-i])(o)}function O(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(r-e[0])}}var W=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return!function n(){let a={left:e.scrollLeft,top:e.scrollTop},s=r.left!==a.left,o=r.top!==a.top;(s||o)&&t(),r=a,i=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(i)};function $(e,r){let i=(0,s.useCallbackRef)(e),n=t.useRef(0);return t.useEffect(()=>()=>window.clearTimeout(n.current),[]),t.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(i,r)},[i,r])}function V(e,t){let r=(0,s.useCallbackRef)(t);(0,l.useLayoutEffect)(()=>{let t=0;if(e){let i=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(t),i.unobserve(e)}}},[e,r])}e.s(["Corner",()=>L,"Root",()=>g,"ScrollAreaScrollbar",()=>w,"ScrollAreaThumb",()=>B,"Scrollbar",()=>w,"Viewport",()=>D])},615978,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(819232),n=e.i(294237),a=e.i(526683);let s=(0,n.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function o(e){let n,o,l,u,c,d,m=(0,r.c)(12);m[0]!==e?({className:n,variant:u,asChild:l,...o}=e,m[0]=e,m[1]=n,m[2]=o,m[3]=l,m[4]=u):(n=m[1],o=m[2],l=m[3],u=m[4]);let h=void 0!==l&&l?i.Slot:"span";return m[5]!==n||m[6]!==u?(c=(0,a.cn)(s({variant:u}),n),m[5]=n,m[6]=u,m[7]=c):c=m[7],m[8]!==h||m[9]!==o||m[10]!==c?(d=(0,t.jsx)(h,{"data-slot":"badge",className:c,...o}),m[8]=h,m[9]=o,m[10]=c,m[11]=d):d=m[11],d}e.s(["Badge",()=>o])},888391,e=>{"use strict";
1let t=(0,e.i(889522).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["default",()=>t])},225578,e=>{"use strict";function t(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let i=document;t&&(i=t.current);let n=r?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}e.s(["resolveElements",()=>t])},819023,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(98160);e.i(90985);var a=e.i(670983),s=e.i(535505);function o(e){let o,l,u,c,d,m,h,p,f,x,g,v,D,b,w,y=(0,r.c)(43),{children:F,className:j,delay:C,direction:E,stagger:N}=e,A=void 0===j?"":j,_=void 0===C?0:C,k=void 0===E?"up":E,[S,B]=(0,i.useState)(!1),R=function(){s.hasReducedMotionListener.current||(0,a.initPrefersReducedMotion)();let[e]=(0,i.useState)(s.prefersReducedMotion.current);return e}();y[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{B(!0)},l=[],y[0]=o,y[1]=l):(o=y[0],l=y[1]),(0,i.useEffect)(o,l),y[2]!==k||y[3]!==R?(u=()=>{if(R)return{x:0,y:0};switch(k){case"up":default:return{y:20,x:0};case"down":return{y:-20,x:0};case"left":return{x:20,y:0};case"right":return{x:-20,y:0}}},y[2]=k,y[3]=R,y[4]=u):u=y[4];let T=u;y[5]===Symbol.for("react.memo_cache_sentinel")?(c={opacity:0},y[5]=c):c=y[5],y[6]!==_?(d={hidden:c,visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:_}}},y[6]=_,y[7]=d):d=y[7];let L=d;y[8]!==T?(m={opacity:0,...T()},y[8]=T,y[9]=m):m=y[9],y[10]===Symbol.for("react.memo_cache_sentinel")?(h=[.21,.47,.32,.98],y[10]=h):h=y[10],y[11]===Symbol.for("react.memo_cache_sentinel")?(p={opacity:1,x:0,y:0,transition:{duration:.5,ease:h}},y[11]=p):p=y[11],y[12]!==m?(f={hidden:m,visible:p},y[12]=m,y[13]=f):f=y[13];let P=f;if(!S){let e,r;return y[14]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:.01},y[14]=e):e=y[14],y[15]!==F||y[16]!==A?(r=(0,t.jsx)("div",{className:A,style:e,children:F}),y[15]=F,y[16]=A,y[17]=r):r=y[17],r}if(R){let e;return y[18]!==F||y[19]!==A?(e=(0,t.jsx)("div",{className:A,children:F}),y[18]=F,y[19]=A,y[20]=e):e=y[20],e}if(void 0!==N&&N){let e,r,a;if(y[21]===Symbol.for("react.memo_cache_sentinel")?(e={once:!0,margin:"-10%"},y[21]=e):e=y[21],y[22]!==F||y[23]!==P){let e;y[25]!==P?(e=e=>(0,t.jsx)(n.motion.div,{variants:P,children:e}),y[25]=P,y[26]=e):e=y[26],r=i.default.Children.map(F,e),y[22]=F,y[23]=P,y[24]=r}else r=y[24];return y[27]!==A||y[28]!==L||y[29]!==r?(a=(0,t.jsx)(n.motion.div,{variants:L,initial:"hidden",whileInView:"visible",viewport:e,className:A,children:r}),y[27]=A,y[28]=L,y[29]=r,y[30]=a):a=y[30],a}return y[31]!==T?(x={opacity:0,...T()},y[31]=T,y[32]=x):x=y[32],y[33]===Symbol.for("react.memo_cache_sentinel")?(g={opacity:1,x:0,y:0},v={once:!0,margin:"-10%"},y[33]=g,y[34]=v):(g=y[33],v=y[34]),y[35]===Symbol.for("react.memo_cache_sentinel")?(D=[.21,.47,.32,.98],y[35]=D):D=y[35],y[36]!==_?(b={duration:.5,delay:_,ease:D},y[36]=_,y[37]=b):b=y[37],y[38]!==F||y[39]!==A||y[40]!==x||y[41]!==b?(w=(0,t.jsx)(n.motion.div,{initial:x,whileInView:g,viewport:v,transition:b,className:A,children:F}),y[38]=F,y[39]=A,y[40]=x,y[41]=b,y[42]=w):w=y[42],w}e.s(["ScrollAnimation",()=>o],819023)},552507,e=>{"use strict";let t=(0,e.i(889522).default)("swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);e.s(["default",()=>t])},60591,e=>{"use strict";var t=e.i(552507);e.s(["Swords",()=>t.default])},389366,e=>{"use strict";var t=e.i(466471),r=e.i(536355);e.i(741820);var i=e.i(24963),n=e.i(819023),a=e.i(526683);function s(e){let i,s,l,u,c,d,m=(0,r.c)(16),{section:h,className:p}=e,f=h.id;return m[0]!==p||m[1]!==h.className?(i=(0,a.cn)("py-16 md:py-24",h.className,p),m[0]=p,m[1]=h.className,m[2]=i):i=m[2],m[3]!==h.title?(s=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsx)("p",{className:"text-md text-center font-medium",children:h.title})}),m[3]=h.title,m[4]=s):s=m[4],m[5]!==h.items?(l=h.items?.map(o),m[5]=h.items,m[6]=l):l=m[6],m[7]!==l?(u=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"mx-auto mt-12 flex max-w-4xl flex-wrap items-center justify-center gap-x-12 gap-y-8 sm:gap-x-16 sm:gap-y-12",children:l})}),m[7]=l,m[8]=u):u=m[8],m[9]!==s||m[10]!==u?(c=(0,t.jsxs)("div",{className:"mx-auto max-w-5xl px-6",children:[s,u]}
1),m[9]=s,m[10]=u,m[11]=c):c=m[11],m[12]!==h.id||m[13]!==i||m[14]!==c?(d=(0,t.jsx)("section",{id:f,className:i,children:c}),m[12]=h.id,m[13]=i,m[14]=c,m[15]=d):d=m[15],d}function o(e,r){return(0,t.jsx)(i.LazyImage,{className:"h-8 w-fit dark:invert",src:e.image?.src??"",alt:e.image?.alt??""},r)}e.s(["Logos",()=>s])},435624,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(819023);function n(e){let n,s,o,l,u,c,d,m=(0,r.c)(18),{section:h,className:p}=e,f=`py-12 md:py-24 ${h.className} ${p}`;return m[0]!==h.title?(n=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),m[0]=h.title,m[1]=n):n=m[1],m[2]!==h.description?(s=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),m[2]=h.description,m[3]=s):s=m[3],m[4]!==n||m[5]!==s?(o=(0,t.jsx)(i.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"relative z-10 mx-auto max-w-xl space-y-6 text-center",children:[n,s]})}),m[4]=n,m[5]=s,m[6]=o):o=m[6],m[7]!==h.items?(l=h.items?.map(a),m[7]=h.items,m[8]=l):l=m[8],m[9]!==l?(u=(0,t.jsx)(i.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"grid gap-12 divide-y *:text-center md:grid-cols-3 md:gap-2 md:divide-x md:divide-y-0",children:l})}),m[9]=l,m[10]=u):u=m[10],m[11]!==o||m[12]!==u?(c=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[o,u]}),m[11]=o,m[12]=u,m[13]=c):c=m[13],m[14]!==h.id||m[15]!==f||m[16]!==c?(d=(0,t.jsx)("section",{id:h.id,className:f,children:c}),m[14]=h.id,m[15]=f,m[16]=c,m[17]=d):d=m[17],d}function a(e,r){return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("h3",{className:"sr-only",children:[e.title," ",e.description]}),(0,t.jsx)("div",{className:"text-primary text-5xl font-bold",children:e.title}),(0,t.jsx)("p",{children:e.description})]},r)}e.s(["Stats",()=>n])},944560,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(199978),n=e.i(331597),a=e.i(511398),s=e.i(819023),o=e.i(526683);function l(e){let i,n,a,l,c,d,m,h=(0,r.c)(19),{section:p,className:f}=e,x=p.id;h[0]!==f||h[1]!==p.className?(i=(0,o.cn)("py-16 md:py-24",p.className,f),h[0]=f,h[1]=p.className,h[2]=i):i=h[2],h[3]!==p.title?(n=(0,t.jsx)(s.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:p.title})}),h[3]=p.title,h[4]=n):n=h[4];let g=p.description??"";return h[5]!==g?(a=(0,t.jsx)(s.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",dangerouslySetInnerHTML:{__html:g}})}),h[5]=g,h[6]=a):a=h[6],h[7]!==p.buttons?(l=p.buttons?.map(u),h[7]=p.buttons,h[8]=l):l=h[8],h[9]!==l?(c=(0,t.jsx)(s.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mt-12 flex flex-wrap justify-center gap-4",children:l})}),h[9]=l,h[10]=c):c=h[10],h[11]!==n||h[12]!==a||h[13]!==c?(d=(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"text-center",children:[n,a,c]})}),h[11]=n,h[12]=a,h[13]=c,h[14]=d):d=h[14],h[15]!==p.id||h[16]!==i||h[17]!==d?(m=(0,t.jsx)("section",{id:x,className:i,children:d}),h[15]=p.id,h[16]=i,h[17]=d,h[18]=m):m=h[18],m}function u(e,r){return(0,t.jsx)(a.Button,{asChild:!0,size:e.size||"default",variant:e.variant||"default",children:(0,t.jsxs)(i.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon}),(0,t.jsx)("span",{children:e.title})]})},r)}e.s(["Cta",()=>l])},693287,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(331597),n=e.i(819023),a=e.i(526683);function s(e){let i,s,l,u,c,d,m,h,p=(0,r.c)(21),{section:f,className:x}=e,g=f.id;return p[0]!==x||p[1]!==f.className?(i=(0,a.cn)("py-16 md:py-24",f.className,x),p[0]=x,p[1]=f.className,p[2]=i):i=p[2],p[3]!==f.title?(s=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:f.title}),p[3]=f.title,p[4]=s):s=p[4],p[5]!==f.description?(l=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:f.description}),p[5]=f.description,p[6]=l):l=p[6],p[7]!==s||p[8]!==l?(u=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[s,l]})}),p[7]=s,p[8]=l,p[9]=u):u=p[9],p[10]!==f.items?(c=f.items?.map(o),p[10]=f.items,p[11]=c):c=p[11],p[12]!==c?(d=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"relative mx-auto grid divide-x divide-y border *:p-12 sm:grid-cols-2 lg:grid-cols-3",children:c})}),p[12]=c,p[13]=d):d=p[13],p[14]!==u||p[15]!==d?(m=(0,t.jsxs)("div",{className:"container space-y-8 md:space-y-16",children:[u,d]}),p[14]=u,p[15]=d,p[16]=m):m=p[16],p[17]!==f.id||p[18]!==i||p[19]!==m?(h=(0,t.jsx)("section",{id:g,className:i,children:m}),p[17]=f.id,p[18]=i,p[19]=m,p[20]=h):h=p[20],h}function o(e,r){return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.SmartIcon,{name:e.icon,size:24}),(0,t.jsx)("h3",{className:"text-sm font-medium",children:e.title})]}),(0,t.jsx)("p",{className:"text-sm",children:e.description})]},r)}e.s(["Features",()=>s])},276371,e=>{"use strict";let t=(0,e.i(889522).default)("users-round",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);e.s(["default",()=>t])},851522,e=>{"use strict";let t=(0,e.i(889522).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["default",()=>t])},905342,e=>{"use strict";let t=(0,e.i(889522).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["default",()=>t])},632947,792978,e=>{"use strict";var t=e.i(889522);let r=(0,t.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["default",()=>r],632947);let i=(0,t.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["default",()=>i],792978)},427777,e=>{"use strict";let t=(0,e.i(889522).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);e.s(["default",()=>t])},140880,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(184499),n=e.i(819023);function a(e){let a,o,l,u,c,d,m,h,p,f=(0,r.c)(23),{section:x,className:g}=e,v=`py-16 md:py-24 ${g}`;f[0]!==x.title?(a=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:x.title}),f[0]=x.title,f[1]=a):a=f[1],f[2]!==x.description?(o=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:x.description}),f[2]=x.description,f[3]=o):o=f[3],f[4]!==a||f[5]!==o?(l=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[a,o]})}),f[4]=a,f[5]=o,f[6]=l):l=f[6],f[7]!==x.items?(u=x.items?.map(s),f[7]=x.items,f[8]=u):u=f[8],f[9]!==u?(c=(0,t.jsx)(i.Accordion,{type:"single",collapsible:!0,className:"bg-muted dark:bg-muted/50 w-full rounded-2xl p-1",children:u}),f[9]=u,f[10]=c):c=f[10];let D=x.tip||"";return f[11]!==D?(d=(0,t.jsx)("p",{className:"text-muted-foreground mt-6 px-8",dangerouslySetInnerHTML:{__html:D}}),f[11]=D,f[12]=d):d=f[12],f[13]!==c||f[14]!==d?(m=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsxs)("div",{className:"mx-auto mt-12 max-w-full",children:[c,d]})}),f[13]=c,f[14]=d,f[15]=m):m=f[15],f[16]!==l||f[17]!==m?(h=(0,t.jsxs)("div",{className:"mx-auto max-w-full px-4 md:max-w-3xl md:px-8",children:[l,m]}),f[16]=l,f[17]=m,f[18]=h):h=f[18],f[19]!==x.id||f[20]!==v||f[21]!==
1h?(p=(0,t.jsx)("section",{id:x.id,className:v,children:h}),f[19]=x.id,f[20]=v,f[21]=h,f[22]=p):p=f[22],p}function s(e,r){return(0,t.jsxs)("div",{className:"group",children:[(0,t.jsxs)(i.AccordionItem,{value:e.question||e.title||"",className:"data-[state=open]:bg-card dark:data-[state=open]:bg-muted peer rounded-xl border-none px-7 py-1 data-[state=open]:border-none data-[state=open]:shadow-sm",children:[(0,t.jsx)(i.AccordionTrigger,{className:"cursor-pointer text-base hover:no-underline",children:e.question||e.title||""}),(0,t.jsx)(i.AccordionContent,{children:(0,t.jsx)("p",{className:"text-base",children:e.answer||e.description||""})})]}),(0,t.jsx)("hr",{className:"mx-7 border-dashed group-last:hidden peer-data-[state=open]:opacity-0"})]},r)}e.s(["Faq",()=>a])},32943,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(98160);e.i(741820);var n=e.i(24963),a=e.i(526683);function s(e){let n,s,l,u,c,d,m,h,p,f=(0,r.c)(22),{section:x}=e;if(!x.items||0===x.items.length)return null;let g=x.id||x.name;return f[0]!==x.className?(n=(0,a.cn)("py-16 md:py-24",x.className),f[0]=x.className,f[1]=n):n=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(s={initial:{opacity:0,y:20,filter:"blur(6px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{duration:.6,delay:0,ease:[.22,1,.36,1]}},f[2]=s):s=f[2],f[3]!==x.sr_only_title?(l=x.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:x.sr_only_title}),f[3]=x.sr_only_title,f[4]=l):l=f[4],f[5]!==x.title?(u=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:x.title}),f[5]=x.title,f[6]=u):u=f[6],f[7]!==x.description?(c=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:x.description}),f[7]=x.description,f[8]=c):c=f[8],f[9]!==l||f[10]!==u||f[11]!==c?(d=(0,t.jsxs)(i.motion.div,{className:"container mb-12 text-center",...s,children:[l,u,c]}),f[9]=l,f[10]=u,f[11]=c,f[12]=d):d=f[12],f[13]!==x.items?(m=x.items.map(o),f[13]=x.items,f[14]=m):m=f[14],f[15]!==m?(h=(0,t.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:m}),f[15]=m,f[16]=h):h=f[16],f[17]!==g||f[18]!==n||f[19]!==d||f[20]!==h?(p=(0,t.jsxs)("section",{id:g,className:n,children:[d,h]}),f[17]=g,f[18]=n,f[19]=d,f[20]=h,f[21]=p):p=f[21],p}function o(e,r){let s="right"===e.image_position;return(0,t.jsxs)(i.motion.div,{className:(0,a.cn)("grid items-center gap-6 py-16 sm:grid-cols-2 md:gap-12 lg:gap-24",s&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1"),initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.6,delay:.15*r,ease:[.22,1,.36,1]},children:[(0,t.jsx)(i.motion.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.5,delay:.15*r+.2,ease:[.22,1,.36,1]},children:(0,t.jsx)(n.LazyImage,{src:e.image?.src??"",className:"rounded-2xl",alt:e.image?.alt??""})}),(0,t.jsxs)(i.motion.div,{className:"relative space-y-4",initial:{opacity:0,x:s?-20:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.15*r+.3,ease:[.22,1,.36,1]},children:[(0,t.jsx)("h3",{className:"text-xl font-medium md:text-2xl lg:text-2xl",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground",children:e.description})]})]},r)}e.s(["FeaturesFlow",()=>s])},609639,e=>{"use strict";var t=e.i(466471),r=e.i(536355);e.i(741820);var i=e.i(24963),n=e.i(819023);function a(e){let i,a,o,l,u,c,d,m=(0,r.c)(18),{section:h,className:p}=e,f=`py-16 md:py-24 ${h.className} ${p}`;return m[0]!==h.title?(i=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:h.title}),m[0]=h.title,m[1]=i):i=m[1],m[2]!==h.description?(a=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:h.description}),m[2]=h.description,m[3]=a):a=m[3],m[4]!==i||m[5]!==a?(o=(0,t.jsx)(n.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center text-balance",children:[i,a]})}),m[4]=i,m[5]=a,m[6]=o):o=m[6],m[7]!==h.items?(l=h.items?.map((e,r)=>(0,t.jsx)(s,{item:e},r)),m[7]=h.items,m[8]=l):l=m[8],m[9]!==l?(u=(0,t.jsx)(n.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:"border-border/50 relative rounded-(--radius)",children:(0,t.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3 lg:gap-px lg:*:nth-1:rounded-t-none lg:*:nth-2:rounded-tl-none lg:*:nth-2:rounded-br-none lg:*:nth-3:rounded-l-none lg:*:nth-4:rounded-r-none lg:*:nth-5:rounded-tl-none lg:*:nth-5:rounded-br-none lg:*:nth-6:rounded-b-none",children:l})})}),m[9]=l,m[10]=u):u=m[10],m[11]!==o||m[12]!==u?(c=(0,t.jsxs)("div",{className:"container",children:[o,u]}),m[11]=o,m[12]=u,m[13]=c):c=m[13],m[14]!==h.id||m[15]!==f||m[16]!==c?(d=(0,t.jsx)("section",{id:h.id,className:f,children:c}),m[14]=h.id,m[15]=f,m[16]=c,m[17]=d):d=m[17],d}function s(e){let{item:r}=e;
1return(0,t.jsxs)("div",{className:"bg-card/25 ring-foreground/[0.07] flex flex-col justify-end gap-6 rounded-(--radius) border border-transparent p-8 ring-1",children:[(0,t.jsx)("p",{className:'text-foreground self-end text-balance before:mr-1 before:content-["\\201C"] after:ml-1 after:content-["\\201D"]',children:r.quote||r.description}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"ring-foreground/10 aspect-square size-9 overflow-hidden rounded-lg border border-transparent shadow-md ring-1 shadow-black/15",children:(0,t.jsx)(i.LazyImage,{src:r.image?.src||r.avatar?.src||"",alt:r.image?.alt||r.avatar?.alt||r.name||"",className:"h-full w-full object-cover"})}),(0,t.jsxs)("h3",{className:"sr-only",children:[r.name,", ",r.role||r.title]}),(0,t.jsxs)("div",{className:"space-y-px",children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[r.name," "]}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:r.role||r.title})]})]})]})}e.s(["Testimonials",()=>a])},692604,117550,e=>{"use strict";var t=e.i(889522);let r=(0,t.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["default",()=>r],692604);let i=(0,t.default)("send-horizontal",[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);e.s(["default",()=>i],117550)},471061,e=>{"use strict";var t=e.i(466471),r=e.i(884702),i=e.i(462297),n=e.i(692604),n=n,a=e.i(117550),a=a,s=e.i(779342),o=e.i(511398),l=e.i(819023),u=e.i(526683);function c({section:e,className:c}){let[d,m]=(0,r.useState)(""),[h,p]=(0,r.useState)(!1),f=async()=>{if(d&&e.submit?.action)try{p(!0);let t=await fetch(e.submit.action,{method:"POST",body:JSON.stringify({email:d})});if(!t.ok)throw Error(`request failed with status ${t.status}`);let{code:r,message:i,data:n}=await t.json();if(0!==r)throw Error(i);p(!1),i&&s.toast.success(i)}catch(e){p(!1),s.toast.error(e.message||"subscribe failed")}};return(0,t.jsx)("section",{id:e.id,className:(0,u.cn)("py-16 md:py-24",e.className,c),children:(0,t.jsx)("div",{className:"mx-auto max-w-5xl px-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(l.ScrollAnimation,{children:(0,t.jsx)("h2",{className:"text-4xl font-semibold text-balance lg:text-5xl",children:e.title})}),(0,t.jsx)(l.ScrollAnimation,{delay:.15,children:(0,t.jsx)("p",{className:"mt-4",children:e.description})}),(0,t.jsx)(l.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"mx-auto mt-10 max-w-xl overflow-hidden lg:mt-12",children:(0,t.jsxs)("div",{className:"bg-background has-[input:focus]:ring-muted relative grid grid-cols-[1fr_auto] items-center overflow-hidden rounded-[calc(var(--radius)+0.75rem)] border pr-3 shadow shadow-zinc-950/5 has-[input:focus]:ring-2",children:[(0,t.jsx)(n.default,{className:"text-caption pointer-events-none absolute inset-y-0 left-5 my-auto size-5"}),(0,t.jsx)("input",{placeholder:e.submit?.input?.placeholder||"Enter your email",className:"h-14 w-full bg-transparent pl-12 focus:outline-none",type:"email",required:!0,"aria-required":"true","aria-invalid":!d,"aria-describedby":"email-error",value:d,onChange:e=>m(e.target.value)}),e.submit?.button&&(0,t.jsx)("div",{className:"md:pr-1.5 lg:pr-0",children:(0,t.jsxs)(o.Button,{"aria-label":"submit",className:"rounded-(--radius)",onClick:f,disabled:h,type:"submit",children:[h?(0,t.jsx)(i.Loader2,{className:"animate-spin"}):(0,t.jsx)("span",{className:"hidden md:block",children:e.submit.button.title}),(0,t.jsx)(a.default,{className:"relative mx-auto size-5 md:hidden",strokeWidth:2})]})})]})})})]})})})}e.s(["Subscribe",()=>c],471061)},223833,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(199978);e.i(741820);var n=e.i(24963),a=e.i(331597),s=e.i(153394),o=e.i(511398),l=e.i(819023),u=e.i(526683);function c(e){let i,a,o,c,h,p,f,x,g,v,D,b,w,y=(0,r.c)(35),{section:F,className:j}=e;y[0]!==j||y[1]!==F.className?(i=(0,u.cn)("overflow-x-hidden py-16 md:py-24",F.className,j),y[0]=j,y[1]=F.className,y[2]=i):i=y[2];
1let C=F.twitter?"max-w-[550px]":"max-w-[500px]";return y[3]!==C?(a=(0,u.cn)("mx-auto w-full flex-shrink-0 md:mx-0",C),y[3]=C,y[4]=a):a=y[4],y[5]!==F.image?.alt||y[6]!==F.image?.src||y[7]!==F.twitter?(o=F.twitter?(0,t.jsx)(s.TwitterEmbed,{html:F.twitter}):(0,t.jsx)(n.LazyImage,{src:F.image?.src??"",alt:F.image?.alt??"",className:"h-auto w-full rounded-lg object-cover"}),y[5]=F.image?.alt,y[6]=F.image?.src,y[7]=F.twitter,y[8]=o):o=y[8],y[9]!==a||y[10]!==o?(c=(0,t.jsx)(l.ScrollAnimation,{direction:"left",children:(0,t.jsx)("div",{className:a,children:o})}),y[9]=a,y[10]=o,y[11]=c):c=y[11],y[12]!==F.title?(h=(0,t.jsx)(l.ScrollAnimation,{delay:.1,children:(0,t.jsx)("h2",{className:"text-foreground text-4xl font-semibold text-balance break-words",children:F.title})}),y[12]=F.title,y[13]=h):h=y[13],y[14]!==F.description?(p=(0,t.jsx)(l.ScrollAnimation,{delay:.2,children:(0,t.jsx)("p",{className:"text-md text-muted-foreground my-6 text-balance break-words",children:F.description})}),y[14]=F.description,y[15]=p):p=y[15],y[16]!==F.buttons?(f=F.buttons&&F.buttons.length>0&&(0,t.jsx)(l.ScrollAnimation,{delay:.3,children:(0,t.jsx)("div",{className:"flex flex-wrap items-center justify-start gap-2",children:F.buttons?.map(m)})}),y[16]=F.buttons,y[17]=f):f=y[17],y[18]!==h||y[19]!==p||y[20]!==f?(x=(0,t.jsxs)("div",{className:"w-full min-w-0 flex-1",children:[h,p,f]}),y[18]=h,y[19]=p,y[20]=f,y[21]=x):x=y[21],y[22]!==c||y[23]!==x?(g=(0,t.jsxs)("div",{className:"flex flex-col items-center gap-8 pb-12 md:flex-row md:gap-24",children:[c,x]}),y[22]=c,y[23]=x,y[24]=g):g=y[24],y[25]!==F.items?(v=F.items?.map(d),y[25]=F.items,y[26]=v):v=y[26],y[27]!==v?(D=(0,t.jsx)(l.ScrollAnimation,{delay:.1,children:(0,t.jsx)("div",{className:"relative grid min-w-0 grid-cols-1 gap-x-3 gap-y-6 border-t pt-12 break-words sm:grid-cols-2 sm:gap-6 lg:grid-cols-4",children:v})}),y[27]=v,y[28]=D):D=y[28],y[29]!==g||y[30]!==D?(b=(0,t.jsxs)("div",{className:"container overflow-x-hidden",children:[g,D]}),y[29]=g,y[30]=D,y[31]=b):b=y[31],y[32]!==i||y[33]!==b?(w=(0,t.jsx)("section",{className:i,children:b}),y[32]=i,y[33]=b,y[34]=w):w=y[34],w}function d(e,r){return(0,t.jsxs)("div",{className:"min-w-0 space-y-3 break-words",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[e.icon&&(0,t.jsx)(a.SmartIcon,{name:e.icon,size:16}),(0,t.jsx)("h3",{className:"min-w-0 text-sm font-medium break-words",children:e.title})]}),(0,t.jsx)("p",{className:"text-muted-foreground min-w-0 text-sm break-words",children:e.description??""})]},r)}function m(e,r){return(0,t.jsx)(o.Button,{asChild:!0,variant:e.variant||"default",size:e.size||"default",children:(0,t.jsxs)(i.Link,{href:e.url??"",target:e.target??"_self",className:(0,u.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-9 px-4 py-2","bg-background ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200"),children:[e.icon&&(0,t.jsx)(a.SmartIcon,{name:e.icon,size:24}),e.title]})},r)}e.s(["FeaturesList",()=>c])},514534,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(98160);e.i(741820);var n=e.i(24963),a=e.i(331597),s=e.i(526683);function o(e){let a,o,u,c,d,m,h,p,f,x,g,v,D,b,w,y,F,j,C,E,N,A,_,k,S,B=(0,r.c)(44),{section:R}=e,T="right"===(R.image_position||"left"),L=R.id||R.name;B[0]!==R.className?(a=(0,s.cn)("py-16 md:py-24",R.className),B[0]=R.className,B[1]=a):a=B[1];let P=T&&"sm:[&>*:first-child]:order-2 sm:[&>*:last-child]:order-1";B[2]!==P?(o=(0,s.cn)("grid items-center gap-6 sm:grid-cols-2 md:gap-12 lg:gap-24",P),B[2]=P,B[3]=o):o=B[3],B[4]===Symbol.for("react.memo_cache_sentinel")?(u={opacity:0,y:30},c={opacity:1,y:0},d={once:!0,margin:"-100px"},B[4]=u,B[5]=c,B[6]=d):(u=B[4],c=B[5],d=B[6]),B[7]===Symbol.for("react.memo_cache_sentinel")?(m=[.22,1,.36,1],B[7]=m):m=B[7],B[8]===Symbol.for("react.memo_cache_sentinel")?(h={duration:.6,ease:m},B[8]=h):h=B[8],B[9]===Symbol.for("react.memo_cache_sentinel")?(p={opacity:0,scale:.95},f={opacity:1,scale:1},x={once:!0},B[9]=p,B[10]=f,B[11]=x):(p=B[9],f=B[10],x=B[11]),B[12]===Symbol.for("react.memo_cache_sentinel")?(g=[.22,1,.36,1],B[12]=g):g=B[12],B[13]===Symbol.for("react.memo_cache_sentinel")?(v={duration:.5,delay:.2,ease:g},B[13]=v):v=B[13];let M=R.image?.src??"",z=R.image?.alt??"";B[14]!==M||B[15]!==z?(D=(0,t.jsx)(i.motion.div,{initial:p,whileInView:f,viewport:x,transition:v,children:(0,t.jsx)(n.LazyImage,{src:M,className:"rounded-2xl",alt:z})}),B[14]=M,B[15]=z,B[16]=D):D=B[16];let I=T?-20:20;return B[17]!==I?(b={opacity:0,x:I},B[17]=I,B[18]=b):b=B[18],B[19]===Symbol.for("react.memo_cache_sentinel")?(w={opacity:1,x:0},y={once:!0},B[19]=w,B[20]=y):(w=B[19],y=B[20]),B[21]===Symbol.for("react.memo_cache_sentinel")?(F=[.22,1,.36,1],B[21]=F):F=B[21],B[22]===Symbol.for("react.memo_cache_sentinel")?(j={duration:.5,delay:.3,ease:F},B[22]=j):j=B[22],B[23]!==R.title?(C=(0,t.jsx)("h2",{className:"text-xl font-medium md:text-lg lg:text-lg",children:R.title}),B[23]=R.title,B[24]=C):C=B[24],B[25]!==R.description?(E=(0,t.jsx)("p",{className:"text-muted-foreground text-md",children:R.description}),B[25]=R.description,B[26]=E):E=B[26],B[27]!==R.items?(N=R.items?.map(l),B[27]=R.items,B[28]=N):N=B[28],B[29]!==N?(A=(0,t.jsx)("div",{className:"mt-8 flex flex-wrap gap-4",children:N}),B[29]=N,B[30]=A):A=B[30],B[31]!==b||B[32]!==C||B[33]!==E||B[34]!==A?(_=(0,t.jsxs)(i.motion.div,{className:"relative space-y-4",initial:b,whileInView:w,viewport:y,transition:j,children:[C,E,A]}),B[31]=b,B[32]=C,B[33]=E,B[34]=A,B[35]=_):_=B[35],B[36]!==D||B[37]!==_||B[38]!==o?(k=(0,t.jsx)("div",{className:"container flex flex-col items-center justify-center space-y-8 px-6 md:space-y-16",children:(0,t.jsxs)(i.motion.div,{className:o,initial:u,whileInView:c,viewport:d,transition:h,children:[D,_]})}),B[36]=D,B[37]=_,B[38]=o,B[39]=k):k=B[39],B[40]!==L||B[41]!==a||B[42]!==k?(S=(0,t.jsx)("section",{id:L,className:a,children:k}),B[40]=L,B[41]=a,B[42]=k,B[43]=S):S=B[43],S}function l(e){return(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{className:"mb-2 flex items-center gap-2 text-sm",children:[(0,t.jsx)(a.SmartIcon,{name:e.icon,size:16}),e.title]}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm",children:e.description})]},e.title)}e.s(["FeaturesMedia",()=>o])},79112,e=>{"use strict";let t=(0,e.i(889522).default)("arrow-big-right",[["path",{d:"M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z",key:"1232du"}]]);e.s(["default",()=>t])},137114,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(79112),i=i;e.i(741820);var n=e.i(331597),a=e.i(482478),s=e.i(819023),o=e.i(526683);function l(e){let l,u,c,d,m,h,p,f,x,g,v,D,b,w,y,F=(0,r.c)(42),{section:j,className:C}=e,E=j.youtube,N=j.id;F[0]!==C||F[1]!==j.className?(l=(0,o.cn)("py-16 md:py-24",j.className,C),F[0]=C,F[1]=j.className,F[2]=l):l=F[2],F[3]!==j.label?(u=(0,t.jsx)("span",{className:"text-primary",children:j.label}),F[3]=j.label,F[4]=u):u=F[4],F[5]!==j.title?(c=(0,t.jsx)("h2",{className:"text-foreground mt-4 text-4xl font-semibold",children:j.title}),F[5]=j.title,F[6]=c):c=F[6],F[7]!==j.description?(d=(0,t.jsx)("p",{className:"text-muted-foreground mt-4 text-lg text-balance",children:j.description}),F[7]=j.description,F[8]=d):d=F[8],F[9]!==u||F[10]!==c||F[11]!==d?(m=(0,t.jsx)(s.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[u,c,d]})}),F[9]=u,F[10]=c,F[11]=d,F[12]=m):m=F[12];let A=E?"grid-cols-1 lg:grid-cols-12":"grid-cols-1";F[13]!==A?(h=(0,o.cn)("mt-16 grid items-center gap-12",A),F[13]=A,F[14]=h):h=F[14],F[15]!==E?(p=E&&(0,t.jsx)("div",{className:"lg:col-span-4 lg:pr-8",children:(0,t.jsx)(s.ScrollAnimation,{delay:.1,children:(0,t.jsx)(a.YouTubeEmbed,{videoId:E,className:"mx-auto max-w-[320px]"})})}),F[15]=E,F[16]=p):p=F[16];let _=E?"lg:col-span-8":"w-full";
1F[17]!==_?(f=(0,o.cn)(_),F[17]=_,F[18]=f):f=F[18];let k=!E&&(j.items?.length===1?"grid-cols-1":j.items?.length===2?"grid-cols-1 sm:grid-cols-2":j.items?.length===3?"grid-cols-1 sm:grid-cols-2 @3xl:grid-cols-3":"grid-cols-1 sm:grid-cols-2 @3xl:grid-cols-4"),S=E&&"grid-cols-1 md:grid-cols-2 @3xl:grid-cols-3";return F[19]!==k||F[20]!==S?(x=(0,o.cn)("grid gap-12",k,S),F[19]=k,F[20]=S,F[21]=x):x=F[21],F[22]!==j.items||F[23]!==E?(g=j.items?.map((e,r)=>(0,t.jsx)("div",{className:"space-y-6",children:(0,t.jsxs)("div",{className:"text-center md:text-left",children:[(0,t.jsx)("span",{className:"mx-auto md:ml-0 flex size-6 items-center justify-center rounded-full bg-zinc-500/15 text-sm font-medium",children:r+1}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"mx-auto md:ml-0 my-6 w-fit",children:e.icon&&(0,t.jsx)(n.SmartIcon,{name:e.icon,size:24})}),!E&&r<(j.items?.length??0)-1&&(0,t.jsx)(i.default,{className:"fill-muted stroke-primary absolute inset-y-0 right-0 my-auto mt-1 hidden translate-x-[150%] drop-shadow @3xl:block"})]}),(0,t.jsx)("h3",{className:"text-foreground mb-4 text-lg font-semibold",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground text-balance",children:e.description})]})},r)),F[22]=j.items,F[23]=E,F[24]=g):g=F[24],F[25]!==x||F[26]!==g?(v=(0,t.jsx)(s.ScrollAnimation,{delay:.2,children:(0,t.jsx)("div",{className:x,children:g})}),F[25]=x,F[26]=g,F[27]=v):v=F[27],F[28]!==f||F[29]!==v?(D=(0,t.jsx)("div",{className:f,children:v}),F[28]=f,F[29]=v,F[30]=D):D=F[30],F[31]!==D||F[32]!==h||F[33]!==p?(b=(0,t.jsxs)("div",{className:h,children:[p,D]}),F[31]=D,F[32]=h,F[33]=p,F[34]=b):b=F[34],F[35]!==b||F[36]!==m?(w=(0,t.jsx)("div",{className:"m-4 rounded-[2rem]",children:(0,t.jsxs)("div",{className:"@container relative container",children:[m,b]})}),F[35]=b,F[36]=m,F[37]=w):w=F[37],F[38]!==j.id||F[39]!==w||F[40]!==l?(y=(0,t.jsx)("section",{id:N,className:l,children:w}),F[38]=j.id,F[39]=w,F[40]=l,F[41]=y):y=F[41],y}e.s(["FeaturesStep",()=>l],137114)},755529,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(199978),n=e.i(247835);e.i(741820);var a=e.i(799112),s=e.i(54074),o=e.i(998559),l=e.i(538630),u=e.i(600195),c=e.i(331597),d=e.i(960568);function m(e){let m,p,f,x,g,v,D,b,w,y,F,j,C,E,N,A,_,k,S,B=(0,r.c)(48),{footer:R}=e,T=(0,n.useTranslations)("common.accessibility"),{setIsShowLeaderboardModal:L}=(0,d.useAppContext)(),P=`py-8 sm:py-8 ${R.className||""} overflow-x-hidden`;return B[0]!==R.brand?(m=R.brand?(0,t.jsx)(a.BrandLogo,{brand:R.brand}):null,B[0]=R.brand,B[1]=m):m=B[1],B[2]!==R.brand?(p=R.brand?.description?(0,t.jsx)("p",{className:"text-muted-foreground text-sm text-balance break-words",dangerouslySetInnerHTML:{__html:R.brand.description}}):null,B[2]=R.brand,B[3]=p):p=B[3],B[4]!==m||B[5]!==p?(f=(0,t.jsxs)("div",{className:"min-w-0 space-y-4 break-words md:col-span-2 md:space-y-6",children:[m,p]}),B[4]=m,B[5]=p,B[6]=f):f=B[6],B[7]!==R.nav?.items||B[8]!==L?(x=R.nav?.items.map((e,r)=>(0,t.jsxs)("div",{className:"min-w-0 space-y-4 text-sm break-words",children:[(0,t.jsx)("span",{className:"block font-medium break-words",children:e.title}),(0,t.jsx)("div",{className:"flex min-w-0 flex-wrap gap-4 sm:flex-col",children:e.children?.map((e,r)=>{let n="/leaderboard"===e.url;return(0,t.jsx)(i.Link,{href:n?"#":e.url||"",onClick:e=>{n&&(e.preventDefault(),L(!0))},target:e.target||"",className:"text-muted-foreground hover:text-primary block break-words duration-150",children:(0,t.jsx)("span",{className:"break-words",children:e.title||""})},r)})})]},r)),B[7]=R.nav?.items,B[8]=L,B[9]=x):x=B[9],B[10]!==x?(g=(0,t.jsx)("div",{className:"col-span-3 grid min-w-0 gap-6 sm:grid-cols-3",children:x}),B[10]=x,B[11]=g):g=B[11],B[12]!==f||B[13]!==g?(v=(0,t.jsxs)("div",{className:"grid min-w-0 gap-12 md:grid-cols-5",children:[f,g]}),B[12]=f,B[13]=g,B[14]=v):v=B[14],B[15]!==R.show_built_with?(D=!1!==R.show_built_with?(0,t.jsx)(s.BuiltWith,{}):null,B[15]=R.show_built_with,B[16]=D):D=B[16],B[17]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("div",{className:"min-w-0 flex-1"}),B[17]=b):b=B[17],B[18]!==R.show_theme?(w=!1!==R.show_theme?(0,t.jsx)(u.ThemeToggler,{type:"toggle"}):null,B[18]=R.show_theme,B[19]=w):w=B[19],B[20]!==R.show_locale?(y=!1!==R.show_locale?(0,t.jsx)(l.L
1ocaleSelector,{type:"button"}):null,B[20]=R.show_locale,B[21]=y):y=B[21],B[22]!==w||B[23]!==y||B[24]!==D?(F=(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-4 sm:gap-8",children:[D,b,w,y]}),B[22]=w,B[23]=y,B[24]=D,B[25]=F):F=B[25],B[26]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)("div",{"aria-hidden":!0,className:"h-px min-w-0 [background-image:linear-gradient(90deg,var(--color-foreground)_1px,transparent_1px)] bg-[length:6px_1px] bg-repeat-x opacity-25"}),B[26]=j):j=B[26],B[27]!==R.brand||B[28]!==R.copyright?(C=R.copyright?(0,t.jsx)("p",{className:"text-muted-foreground text-sm text-balance break-words",dangerouslySetInnerHTML:{__html:R.copyright}}):R.brand?(0,t.jsx)(o.Copyright,{brand:R.brand}):null,B[27]=R.brand,B[28]=R.copyright,B[29]=C):C=B[29],B[30]===Symbol.for("react.memo_cache_sentinel")?(E=(0,t.jsx)("div",{className:"min-w-0 flex-1"}),B[30]=E):E=B[30],B[31]!==R.agreement?(N=R.agreement?(0,t.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-4",children:R.agreement?.items.map(h)}):null,B[31]=R.agreement,B[32]=N):N=B[32],B[33]!==R.social||B[34]!==T?(A=R.social?(0,t.jsx)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:R.social?.items.map((e,r)=>(0,t.jsx)(i.Link,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary bg-background block cursor-pointer rounded-full p-2 duration-150","aria-label":e.title||T("social_link"),children:e.icon&&(0,t.jsx)(c.SmartIcon,{name:e.icon,size:20})},r))}):null,B[33]=R.social,B[34]=T,B[35]=A):A=B[35],B[36]!==C||B[37]!==N||B[38]!==A?(_=(0,t.jsxs)("div",{className:"flex min-w-0 flex-wrap justify-between gap-8",children:[C,E,N,A]}),B[36]=C,B[37]=N,B[38]=A,B[39]=_):_=B[39],B[40]!==F||B[41]!==_||B[42]!==v?(k=(0,t.jsxs)("div",{className:"container space-y-8 overflow-x-hidden",children:[v,F,j,_]}),B[40]=F,B[41]=_,B[42]=v,B[43]=k):k=B[43],B[44]!==R.id||B[45]!==P||B[46]!==k?(S=(0,t.jsx)("footer",{id:R.id,className:P,children:k}),B[44]=R.id,B[45]=P,B[46]=k,B[47]=S):S=B[47],S}function h(e,r){return(0,t.jsx)(i.Link,{href:e.url||"",target:e.target||"",className:"text-muted-foreground hover:text-primary block text-xs break-words underline duration-150",children:e.title||""},r)}e.s(["Footer",()=>m])},417374,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(103979),a=e.i(98160),s=e.i(199978),o=e.i(331597),l=e.i(511398),u=e.i(686247),c=e.i(526683);function d(e){let n,s,o,l,u,d,h,p,f,x,g,v,D,b,w,y,F=(0,r.c)(39),{section:j,className:C}=e;F[0]!==j?(n=j.groups||[],F[0]=j,F[1]=n):n=F[1];let E=n,[N,A]=(0,i.useState)(E.length>0?E[0].name:"");e:{let e;if(!j.items){let e;F[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],F[2]=e):e=F[2],s=e;break e}if(!N||!E.length||"all"===N){s=j.items;break e}if(F[3]!==j.items||F[4]!==N){let t;F[6]!==N?(t=e=>e.group===N,F[6]=N,F[7]=t):t=F[7],e=j.items.filter(t),F[3]=j.items,F[4]=N,F[5]=e}else e=F[5];s=e}let _=s,k=j.id||j.name;return F[8]!==C||F[9]!==j.className?(o=(0,c.cn)("py-24 md:py-36",j.className,C),F[8]=C,F[9]=j.className,F[10]=o):o=F[10],F[11]===Symbol.for("react.memo_cache_sentinel")?(l={opacity:0,y:20},u={opacity:1,y:0},d={once:!0},F[11]=l,F[12]=u,F[13]=d):(l=F[11],u=F[12],d=F[13]),F[14]===Symbol.for("react.memo_cache_sentinel")?(h=[.22,1,.36,1],F[14]=h):h=F[14],F[15]===Symbol.for("react.memo_cache_sentinel")?(p={duration:.6,ease:h},F[15]=p):p=F[15],F[16]!==j.sr_only_title?(f=j.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:j.sr_only_title}),F[16]=j.sr_only_title,F[17]=f):f=F[17],F[18]!==j.title?(x=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:j.title}),F[18]=j.title,F[19]=x):x=F[19],F[20]!==j.description?(g=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 max-w-full md:max-w-5xl",children:j.description}),F[20]=j.description,F[21]=g):g=F[21],F[22]!==f||F[23]!==x||F[24]!==g?(v=(0,t.jsxs)(a.motion.div,{className:"container mb-12 text-center",initial:l,whileInView:u,viewport:d,transition:p,children:[f,x,g]}),F[22]=f,F[23]=x,F[24]=g,F[25]=v):v=F[25],F[26]!==E||F[27]!==N?(D=E.length>0&&(0,t.jsx)(a.motion.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:E.map((e,r)=>{let i=N===e.name;return(0,t.jsx)(a.motion.button,{onClick:()=>
1A(e.name),className:(0,c.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",i?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.2+.1*r,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,t.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,t.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,t.jsx)("span",{children:e.title})},e.name)})}),F[26]=E,F[27]=N,F[28]=D):D=F[28],F[29]!==_?(b=_.length>0?_.map(m):(0,t.jsx)(a.motion.div,{className:"text-muted-foreground col-span-full text-center",initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},children:"No items found in this category."}),F[29]=_,F[30]=b):b=F[30],F[31]!==b?(w=(0,t.jsx)("div",{className:"container grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:b}),F[31]=b,F[32]=w):w=F[32],F[33]!==v||F[34]!==D||F[35]!==w||F[36]!==k||F[37]!==o?(y=(0,t.jsxs)("section",{id:k,className:o,children:[v,D,w]}),F[33]=v,F[34]=D,F[35]=w,F[36]=k,F[37]=o,F[38]=y):y=F[38],y}function m(e,r){let i=!!e.button,c=(0,t.jsx)(a.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*r,ease:[.22,1,.36,1]},children:(0,t.jsx)(u.Card,{className:"dark:hover:shadow-primary/10 overflow-hidden p-0 transition-all hover:shadow-lg",children:(0,t.jsxs)(u.CardContent,{className:"p-0",children:[(0,t.jsx)(a.motion.div,{className:"relative aspect-16/10 w-full overflow-hidden",whileHover:{scale:1.05},transition:{duration:.3},children:(0,t.jsx)(n.default,{src:e.image?.src??"",alt:e.image?.alt??"",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",fill:!0,className:"rounded-t-lg object-cover transition-transform duration-300"})}),(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("h3",{className:"mb-2 line-clamp-1 text-xl font-semibold text-balance",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-3 text-sm",dangerouslySetInnerHTML:{__html:e.description??""}}),i&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(l.Button,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 h-8 w-full border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,t.jsxs)(s.Link,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,t.jsx)(o.SmartIcon,{name:e.button.icon,className:"text-white"}),e.button.title]})})})]})]})})});return i?(0,t.jsx)("div",{children:c},r):(0,t.jsx)(s.Link,{href:e.url||"",target:e.target,children:c},r)}e.s(["Showcases",()=>d])},421616,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(339191),a=e.i(98160),s=e.i(570172),o=e.i(866273),l=e.i(653668),u=e.i(199978);e.i(741820);var c=e.i(24963),d=e.i(331597),m=e.i(511398),h=e.i(526683);function p(e){let p,v,D,b,w,y,F,j,C,E,N,A,_,k,S,B,R,T,L,P,M,z,I=(0,r.c)(57),{section:H,className:O}=e;I[0]!==H?(p=H.groups||[],I[0]=H,I[1]=p):p=I[1];let W=p,[$,V]=(0,i.useState)(W.length>0?W[0].name:""),[q,U]=(0,i.useState)(null);e:{let e;if(!H.items){let e;I[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],I[2]=e):e=I[2],v=e;break e}if(!$||!W.length||"all"===$){v=H.items;break e}if(I[3]!==H.items||I[4]!==$){let t;I[6]!==$?(t=e=>e.group===$,I[6]=$,I[7]=t):t=I[7],e=H.items.filter(t),I[3]=H.items,I[4]=$,I[5]=e}else e=I[5];v=e}let K=v;I[8]!==K.length?(D=()=>{U(e=>null!==e?0===e?(K.length??1)-1:e-1:null)},I[8]=K.length,I[9]=D):D=I[9];let X=D;I[10]!==K.length?(b=()=>{U(e=>null!==e?e===(K.length??1)-1?0:e+1:null)},I[10]=K.length,I[11]=b):b=I[11];let Y=b;I[12]!==Y||I[13]!==X||I[14]!==q?(w=()=>{let e=e=>{null!==q&&("Escape"===e.key&&U(null),"ArrowLeft"===e.key&&X(),"ArrowRight"===e.key&&Y())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},y=[q,X,Y],I[12]=Y,I[13]=X,I[14]=q,I[15]=w,I[16]=y):(w=I[15],y=I[16]),(0,i.useEffect)(w,y);let G=H.id||H.name;return I[17]!==O||I[18]!==H.className?(F=(0,h.cn)("py-24 md:py-36",H.className,O),I[17]=O,I[18]=H.className,I[19]=F):F=I[19],I[20]===Symbol.for("react.memo_cache_sentinel")?(E={opacity:0,y:20},j={opacity:1,y:0},C={once:!0},I[20]=j,I[21]=C,I[22]=E):(j=I[20],C=I[21],E=I[22]),I[23]===Symbol.for("react.memo_cache_sentinel")?(N=[.22,1,.36,1],I[23]=N):N=I[23],I[24]===Symbol.for("react.memo_cache_sentinel")?(A={duration:.6,ease:N},I[24]=A):A=I[24],I[25]!==H.sr_only_title?(_=H.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:H.sr_only_title}),I[25]=H.sr_only_title,I[26]=_):_=I[26],I[27]!==H.title?(k=(0,t.jsx)("h2",{className:"mx-auto mb-6 max-w-full text-3xl font-bold text-pretty md:max-w-5xl lg:text-4xl",children:H.title}),I[27]=H.title,I[28]=k):k=I[28],I[29]!==H.description?(S=(0,t.jsx)("p",{className:"text-muted-foreground text-md mx-auto mb-4 line-clamp-3 max-w-full md:max-w-5xl",children:H.description}),I[29]=H.description,I[30]=S):S=I[30],I[31]!==H.buttons?(B=H.buttons&&H.buttons.length>0&&(0,t.jsx)("div",{className:"container mx-auto mt-8 mb-12 flex flex-wrap justify-center gap-4",children:H.buttons.map(g)}),I[31]=H.buttons,I[32]=B):B=I[32],I[33]!==_||I[34]!==k||I[35]!==S||I[36]!==B?(R=(0,t.jsxs)(a.motion.div,{className:"container mb-12 text-center",initial:E,whileInView:j,viewport:C,transition:A,children:[_,k,S,B]}),I[33]=_,I[34]=k,I[35]=S,I[36]=B,I[37]=R):R=I[37],I[38]!==W||I[39]!==$?(T=W.length>0&&(0,t.jsx)(a.motion.div,{className:"container mb-12 flex flex-wrap justify-center gap-4",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},children:W.map((e,r)=>{let i=$===e.name;return(0,t.jsx)(a.motion.button,{onClick:()=>V(e.name),className:(0,h.cn)("relative rounded-lg px-3 py-1.5 text-sm font-medium transition-all",i?"":"border-border bg-background text-foreground hover:bg-accent hover:text-accent-foreground border"),initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.2+.1*r,ease:[.22,1,.36,1]},whileHover:{scale:1.05},whileTap:{scale:.95},children:i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"bg-primary absolute inset-0 rounded-lg p-[2px]",children:(0,t.jsx)("span",{className:"bg-background block h-full w-full rounded-[calc(0.5rem-2px)]"})}),(0,t.jsx)("span",{className:"bg-primary relative z-10 bg-clip-text text-transparent",children:e.title})]}):(0,t.jsx)("span",{children:e.title})},e.name)})}),I[38]=W,I[39]=$,I[40]=T):T=I[40],I[41]!==K?(L=K.length>0?(0,t.jsx)("div",{className:"container mx-auto columns-1 gap-4 space-y-4 sm:columns-2 lg:columns-3 xl:columns-4",children:K.map((e,r)=>(0,t.jsxs)(a.motion.div,{className:"group relative cursor-zoom-in break-inside-avoid overflow-hidden rounded-xl",onClick:()=>U(r),initial:{opacity:0,y:30,scale:.95},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,margin:"-50px"},transition:{duration:.6,delay:.1*r,ease:[.22,1,.36,1]},whileHover:{scale:1.02},children:[(0,t.jsx)(c.LazyImage,{src:e.image?.src??"",alt:e.image?.alt??"",className:"h-auto w-full transition-transform duration-300 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-end bg-black/60 p-6 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:[(0,t.jsx)("h3",{className:"mb-2 translate-y-4 text-sm font-medium text-white transition-transform duration-300 group-hover:translate-y-0",children:e.title}),e.button&&(0,t.jsx)("div",{className:"mt-3 translate-y-4 transition-transform delay-100 duration-300 group-hover:translate-y-0",onClick:x,children:(0,t.jsx)(m.Button,{asChild:!0,variant:e.button.variant||"default",size:e.button.size||"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground h-8 w-full border-0 px-1 py-1.5 text-sm font-medium",children:(0,t.jsxs)(u.Link,{href:e.button.url||"",target:e.button.target||"_self",children:[e.button.icon&&(0,t.jsx)(d.SmartIcon,{name:e.button.icon}),e.button.title]})})})]})]},r))}):(0,t.jsx)(a.motion.div,{className:"text-muted-foreground container text-center",initial:{opacity:0}
1,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.4},children:"No items found in this category."}),I[41]=K,I[42]=L):L=I[42],I[43]!==K||I[44]!==Y||I[45]!==X||I[46]!==q?(P=null!==q&&K&&K.length>0&&(0,t.jsxs)(a.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-black/90 p-4 backdrop-blur-sm md:p-8",onClick:()=>U(null),children:[(0,t.jsx)("button",{className:"absolute top-4 right-4 z-50 text-white/70 transition-colors hover:text-white",onClick:()=>U(null),children:(0,t.jsx)(l.X,{className:"size-8"})}),(0,t.jsx)("button",{className:"absolute top-1/2 left-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),X()},children:(0,t.jsx)(s.ChevronLeft,{className:"size-8 md:size-12"})}),(0,t.jsx)("button",{className:"absolute top-1/2 right-4 z-50 -translate-y-1/2 rounded-full bg-black/20 p-2 text-white/70 transition-colors hover:bg-black/40 hover:text-white",onClick:e=>{e.stopPropagation(),Y()},children:(0,t.jsx)(o.ChevronRight,{className:"size-8 md:size-12"})}),(0,t.jsx)(a.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},className:"relative flex h-full w-full items-center justify-center",onClick:f,children:(0,t.jsxs)("div",{className:"relative max-h-full max-w-full overflow-hidden rounded-lg",children:[(0,t.jsx)(c.LazyImage,{src:K[q].image?.src??"",alt:K[q].image?.alt??"",className:"h-auto max-h-[90vh] w-auto max-w-full object-contain"}),(0,t.jsxs)("div",{className:"absolute right-0 bottom-0 left-0 bg-gradient-to-t from-black/80 via-black/50 to-transparent p-6 text-white",children:[(0,t.jsx)("h3",{className:"mb-2 text-2xl font-bold",children:K[q].title}),K[q].description&&(0,t.jsx)("p",{className:"line-clamp-3 text-base text-white/90",children:K[q].description}),K[q].button&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(m.Button,{asChild:!0,variant:K[q].button.variant||"default",size:K[q].button.size||"default",className:"bg-primary hover:bg-primary/90 h-8 border-0 px-3 py-1.5 text-sm font-medium text-white",children:(0,t.jsxs)(u.Link,{href:K[q].button.url||"",target:K[q].button.target||"_self",children:[K[q].button.icon&&(0,t.jsx)(d.SmartIcon,{name:K[q].button.icon,className:"text-white"}),K[q].button.title]})})})]})]})},q)]}),I[43]=K,I[44]=Y,I[45]=X,I[46]=q,I[47]=P):P=I[47],I[48]!==P?(M=(0,t.jsx)(n.AnimatePresence,{children:P}),I[48]=P,I[49]=M):M=I[49],I[50]!==R||I[51]!==T||I[52]!==L||I[53]!==M||I[54]!==G||I[55]!==F?(z=(0,t.jsxs)("section",{id:G,className:F,children:[R,T,L,M]}),I[50]=R,I[51]=T,I[52]=L,I[53]=M,I[54]=G,I[55]=F,I[56]=z):z=I[56],z}function f(e){return e.stopPropagation()}function x(e){return e.stopPropagation()}function g(e){return(0,t.jsx)(m.Button,{variant:e.variant||"default",size:e.size||"sm",asChild:!0,children:(0,t.jsxs)(u.Link,{href:e.url||"",target:e.target||"_self",children:[e.icon&&(0,t.jsx)(d.SmartIcon,{name:e.icon}),e.title]})},e.title)}e.s(["ShowcasesFlow",()=>p])},943592,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(225578);let a={some:0,all:1},s="http://www.w3.org/2000/svg";class o{constructor(e){this.seed=e}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}function l(e,t,r,i,n){return{type:"path",ops:p(e,t,r,i,n)}}function u(e,t,r){let i=(e||[]).length;if(i>2){let n=[];for(let t=0;t<i-1;t++)n.push(...p(e[t][0],e[t][1],e[t+1][0],e[t+1][1],r));return t&&n.push(...p(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return 2===i?l(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function c(e,t,r,i,n){let a,s,o,l,u;return function(e,t,r,i){let[n,a]=g(i.increment,e,t,i.rx,i.ry,1,i.increment*m(.1,m(.4,1,r),r),r),s=x(n,null,r);if(!r.disableMultiStroke){let[n]=g(i.increment,e,t,i.rx,i.ry,1.5,0,r),a=x(n,null,r);s=s.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}(e,t,n,(a=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(r/2,2)+Math.pow(i/2,2))/2)),s=2*Math.PI/Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*a),o=Math.abs(r/2),l=Math.abs(i/2),u=1-n.curveFitting,o+=h(o*u,n),l+=h(l*u,n),{increment:s,rx:o,ry:l})).opset}function d(e){return e.randomizer||(e.randomizer=new o(e.seed||0)),e.randomizer.next()}function m(e,t,r,i=1){return r.roughness*i*(d(r)*(t-e)+e)}function h(e,t,r=1){return m(-e,e,t,r)}function p(e,t,r,i,n,a=!1){let s=a?n.disableMultiStrokeFill:n.disableMultiStroke,o=f(e,t,r,i,n,!0,!1);if(s)return o;let l=f(e,t,r,i,n,!0,!0);return o.concat(l)}function f(e,t,r,i,n,a,s){let o=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(o),u=1;u=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>o&&(c=l/10);let m=c/2,p=.2+.2*d(n),f=n.bowing*n.maxRandomnessOffset*(i-t)/200,x=n.bowing*n.maxRandomnessOffset*(e-r)/200;f=h(f,n,u),x=h(x,n,u);let g=[];return a&&(s?g.push({op:"move",data:[e+h(m,n,u),t+h(m,n,u)]}):g.push({op:"move",data:[e+h(c,n,u),t+h(c,n,u)]})),s?g.push({op:"bcurveTo",data:[f+e+(r-e)*p+h(m,n,u),x+t+(i-t)*p+h(m,n,u),f+e+2*(r-e)*p+h(m,n,u),x+t+2*(i-t)*p+h(m,n,u),r+h(m,n,u),i+h(m,n,u)]}):g.push({op:"bcurveTo",data:[f+e+(r-e)*p+h(c,n,u),x+t+(i-t)*p+h(c,n,u),f+e+2*(r-e)*p+h(c,n,u),x+t+2*(i-t)*p+h(c,n,u),r+h(c,n,u),i+h(c,n,u)]}),g}function x(e,t,r){let i=e.length,n=[];if(i>3){let a=[],s=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let t=1;t+2<i;t++){let r=e[t];a[0]=[r[0],r[1]],a[1]=[r[0]+(s*e[t+1][0]-s*e[t-1][0])/6,r[1]+(s*e[t+1][1]-s*e[t-1][1])/6],a[2]=[e[t+1][0]+(s*e[t][0]-s*e[t+2][0])/6,e[t+1
1][1]+(s*e[t][1]-s*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&2===t.length){let e=r.maxRandomnessOffset;n.push({op:"lineTo",data:[t[0]+h(e,r),t[1]+h(e,r)]})}}else 3===i?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):2===i&&n.push(...p(e[0][0],e[0][1],e[1][0],e[1][1],r));return n}function g(e,t,r,i,n,a,s,o){let l=[],u=[],c=h(.5,o)-Math.PI/2;u.push([h(a,o)+t+.9*i*Math.cos(c-e),h(a,o)+r+.9*n*Math.sin(c-e)]);for(let s=c;s<2*Math.PI+c-.01;s+=e){let e=[h(a,o)+t+i*Math.cos(s),h(a,o)+r+n*Math.sin(s)];l.push(e),u.push(e)}return u.push([h(a,o)+t+i*Math.cos(c+2*Math.PI+.5*s),h(a,o)+r+n*Math.sin(c+2*Math.PI+.5*s)]),u.push([h(a,o)+t+.98*i*Math.cos(c+s),h(a,o)+r+.98*n*Math.sin(c+s)]),u.push([h(a,o)+t+.9*i*Math.cos(c+.5*s),h(a,o)+r+.9*n*Math.sin(c+.5*s)]),[u,l]}function v(e,t){return{maxRandomnessOffset:2,roughness:"highlight"===e?3:1.5,bowing:1,stroke:"#000",strokeWidth:1.5,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,combineNestedSvgPaths:!1,disableMultiStroke:"double"!==e,disableMultiStrokeFill:!1,seed:t}}class D{constructor(e,t){this._state="unattached",this._resizing=!1,this._seed=Math.floor(0x80000000*Math.random()),this._lastSizes=[],this._animationDelay=0,this._resizeListener=()=>{this._resizing||(this._resizing=!0,setTimeout(()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()},400))},this._e=e,this._config=JSON.parse(JSON.stringify(t)),this.attach()}get animate(){return this._config.animate}set animate(e){this._config.animate=e}get animationDuration(){return this._config.animationDuration}set animationDuration(e){this._config.animationDuration=e}get iterations(){return this._config.iterations}set iterations(e){this._config.iterations=e}get color(){return this._config.color}set color(e){this._config.color!==e&&(this._config.color=e,this.refresh())}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(e){this._config.strokeWidth!==e&&(this._config.strokeWidth=e,this.refresh())}get padding(){return this._config.padding}set padding(e){this._config.padding!==e&&(this._config.padding=e,this.refresh())}attach(){if("unattached"===this._state&&this._e.parentElement){if(!window.__rno_kf_s){let e=window.__rno_kf_s=document.createElement("style");e.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(e)}let e=this._svg=document.createElementNS(s,"svg");e.setAttribute("class","rough-annotation");let t=e.style;t.position="absolute",t.top="0",t.left="0",t.overflow="visible",t.pointerEvents="none",t.width="100px",t.height="100px";let r="highlight"===this._config.type;if(this._e.insertAdjacentElement(r?"beforebegin":"afterend",e),this._state="not-showing",r){let e=window.getComputedStyle(this._e).position;e&&"static"!==e||(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver(e=>{for(let t of e)t.contentRect&&this._resizeListener()})),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){let e=this.rects();if(e.length!==this._lastSizes.length)return!0;for(let t=0;t<e.length;t++)if(!this.isSameRect(e[t],this._lastSizes[t]))return!0}return!1}isSameRect(e,t){let r=(e,t)=>Math.round(e)===Math.round(t);return r(e.x,t.x)&&r(e.y,t.y)&&r(e.w,t.w)&&r(e.h,t.h)}isShowing(){return"not-showing"!==this._state}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then(()=>{this.isShowing()&&this.show(),delete this.pendingRefresh}))}show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}
1hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}render(e,t){let r=this._config;t&&((r=JSON.parse(JSON.stringify(this._config))).animate=!1);let i=this.rects(),n=0;i.forEach(e=>n+=e.w);let a=r.animationDuration||800,o=0;for(let t=0;t<i.length;t++){let d=a*(i[t].w/n);(function(e,t,r,i,n,a){let o=[],d=r.strokeWidth||2,m=function(e){let t=e.padding;if(t||0===t){if("number"==typeof t)return[t,t,t,t];if(Array.isArray(t)&&t.length)switch(t.length){case 4:return[...t];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[...t,...t];case 3:return[...t,t[1]];default:return[t[0],t[1],t[2],t[3]]}}return[5,5,5,5]}(r),h=void 0===r.animate||!!r.animate,p=r.iterations||2,f=+!!r.rtl,x=v("single",a);switch(r.type){case"underline":{let e=t.y+t.h+m[2];for(let r=f;r<p+f;r++)r%2?o.push(l(t.x+t.w,e,t.x,e,x)):o.push(l(t.x,e,t.x+t.w,e,x));break}case"strike-through":{let e=t.y+t.h/2;for(let r=f;r<p+f;r++)r%2?o.push(l(t.x+t.w,e,t.x,e,x)):o.push(l(t.x,e,t.x+t.w,e,x));break}case"box":{let e=t.x-m[3],r=t.y-m[0],i=t.w+(m[1]+m[3]),n=t.h+(m[0]+m[2]);for(let t=0;t<p;t++){var g,D,b,w;o.push(u([[g=e,D=r],[g+(b=i),D],[g+b,D+(w=n)],[g,D+w]],!0,x))}break}case"bracket":{let e=Array.isArray(r.brackets)?r.brackets:r.brackets?[r.brackets]:["right"],i=t.x-2*m[3],n=t.x+t.w+2*m[1],a=t.y-2*m[0],s=t.y+t.h+2*m[2];for(let r of e){let e;switch(r){case"bottom":e=[[i,t.y+t.h],[i,s],[n,s],[n,t.y+t.h]];break;case"top":e=[[i,t.y],[i,a],[n,a],[n,t.y]];break;case"left":e=[[t.x,a],[i,a],[i,s],[t.x,s]];break;case"right":e=[[t.x+t.w,a],[n,a],[n,s],[t.x+t.w,s]]}e&&o.push(u(e,!1,x))}break}case"crossed-off":{let e=t.x,r=t.y,i=e+t.w,n=r+t.h;for(let t=f;t<p+f;t++)t%2?o.push(l(i,n,e,r,x)):o.push(l(e,r,i,n,x));for(let t=f;t<p+f;t++)t%2?o.push(l(e,n,i,r,x)):o.push(l(i,r,e,n,x));break}case"circle":{let e=v("double",a),r=t.w+(m[1]+m[3]),i=t.h+(m[0]+m[2]),n=t.x-m[3]+r/2,s=t.y-m[0]+i/2,l=Math.floor(p/2),u=p-2*l;for(let t=0;t<l;t++)o.push(c(n,s,r,i,e));for(let e=0;e<u;e++)o.push(c(n,s,r,i,x));break}case"highlight":{let e=v("highlight",a);d=.95*t.h;let r=t.y+t.h/2;for(let i=f;i<p+f;i++)i%2?o.push(l(t.x+t.w,r,t.x,r,e)):o.push(l(t.x,r,t.x+t.w,r,e))}}if(o.length){let t=function(e){let t=[];for(let r of e){let e="";for(let i of r.ops){let r=i.data;switch(i.op){case"move":e.trim()&&t.push(e.trim()),e=`M${r[0]} ${r[1]} `;break;case"bcurveTo":e+=`C${r[0]} ${r[1]}, ${r[2]} ${r[3]}, ${r[4]} ${r[5]} `;break;case"lineTo":e+=`L${r[0]} ${r[1]} `}}e.trim()&&t.push(e.trim())}return t}(o),a=[],l=[],u=0,c=(e,t,r)=>e.setAttribute(t,r);for(let i of t){let t=document.createElementNS(s,"path");if(c(t,"d",i),c(t,"fill","none"),c(t,"stroke",r.color||"currentColor"),c(t,"stroke-width",""+d),h){let e=t.getTotalLength();a.push(e),u+=e}e.appendChild(t),l.push(t)}if(h){let e=0;for(let t=0;t<l.length;t++){let r=l[t],s=a[t],o=u?s/u*n:0,c=i+e,d=r.style;d.strokeDashoffset=""+s,d.strokeDasharray=""+s,d.animation=`rough-notation-dash ${o}ms ease-out ${c}ms forwards`,e+=o}}}})(e,i[t],r,o+this._animationDelay,d,this._seed),o+=d}this._lastSizes=i,this._state="showing"}rects(){let e=[];
1if(this._svg)if(this._config.multiline){let t=this._e.getClientRects();for(let r=0;r<t.length;r++)e.push(this.svgRect(this._svg,t[r]))}else e.push(this.svgRect(this._svg,this._e.getBoundingClientRect()));return e}svgRect(e,t){let r=e.getBoundingClientRect();return{x:(t.x||t.left)-(r.x||r.left),y:(t.y||t.top)-(r.y||r.top),w:t.width,h:t.height}}}function b(e){let s,o,l,u,c=(0,r.c)(13),{children:d,action:m,color:h,strokeWidth:p,animationDuration:f,iterations:x,padding:g,multiline:v,isView:b}=e,w=void 0===m?"highlight":m,y=void 0===h?"#ffd1dc":h,F=void 0===p?1.5:p,j=void 0===f?600:f,C=void 0===x?2:x,E=void 0===g?2:g,N=void 0===v||v,A=(0,i.useRef)(null),_=(0,i.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(s={once:!0,margin:"-10%"},c[0]=s):s=c[0];let k=function(e,{root:t,margin:r,amount:s,once:o=!1,initial:l=!1}={}){let[u,c]=(0,i.useState)(l);return(0,i.useEffect)(()=>{if(!e.current||o&&u)return;let i={root:t&&t.current||void 0,margin:r,amount:s};return function(e,t,{root:r,margin:i,amount:s="some"}={}){let o=(0,n.resolveElements)(e),l=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let r=l.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e.target,e);"function"==typeof r?l.set(e.target,r):u.unobserve(e.target)}else"function"==typeof r&&(r(e),l.delete(e.target))})},{root:r,rootMargin:i,threshold:"number"==typeof s?s:a[s]});return o.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(c(!0),o?void 0:()=>c(!1)),i)},[t,e,r,o,s]),u}(A,s),S=!(void 0!==b&&b)||k;return c[1]!==w||c[2]!==j||c[3]!==y||c[4]!==C||c[5]!==N||c[6]!==E||c[7]!==S||c[8]!==F?(o=()=>{if(!S)return;let e=A.current;if(!e)return;let t=new D(e,{type:w,color:y,strokeWidth:F,animationDuration:j,iterations:C,padding:E,multiline:N});_.current=t,_.current.show();let r=new ResizeObserver(()=>{t.hide(),t.show()});return r.observe(e),r.observe(document.body),()=>{e&&(new D(e,{type:w}).remove(),r.disconnect())}},l=[S,w,y,F,j,C,E,N],c[1]=w,c[2]=j,c[3]=y,c[4]=C,c[5]=N,c[6]=E,c[7]=S,c[8]=F,c[9]=o,c[10]=l):(o=c[9],l=c[10]),(0,i.useEffect)(o,l),c[11]!==d?(u=(0,t.jsx)("span",{ref:A,className:"relative inline-block bg-transparent",children:d}),c[11]=d,c[12]=u):u=c[12],u}e.s(["Highlighter",()=>b],943592)},339191,e=>{"use strict";e.i(90985);var t=e.i(466471),r=e.i(884702),i=e.i(991531),n=e.i(94158),a=e.i(649163),s=e.i(194932),o=e.i(443390),l=r,u=e.i(263137);class c extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:r,anchorX:i,root:n}){let a=(0,l.useId)(),s=(0,l.useRef)(null),o=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,l.useContext)(u.MotionConfigContext);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:l,left:u,right:c}=o.current;if(r||!s.current||!e||!t)return;let m="left"===i?`left: ${u}`:`right: ${c}`;s.current.dataset.motionPopId=a;let h=document.createElement("style");d&&(h.nonce=d);let p=n??document.head;return p.appendChild(h),h.sheet&&h.sheet.insertRule(` 2 [data-motion-pop-id="${a}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${m}px !important; 7 top: ${l}px !important; 8 } 9 `),()=>{p.contains(h)&&p.removeChild(h)}},[r]),(0,t.jsx)(c,{isPresent:r,childRef:s,sizeRef:o,children:l.cloneElement(e,{ref:s})})}let m=({children:e,initial:i,isPresent:a,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:c,anchorX:m,root:p})=>{let f=(0,n.useConstant)(h),x=(0,r.useId)(),g=!0,v=(0,r.useMemo)(()=>(g=!1,{id:x,initial:i,isPresent:a,custom:l,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;o&&o()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[a,f,o]);return u&&g&&(v={...v}),(0,r.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[a]),r.useEffect(()=>{a||f.size||!o||o()},[a]),"popLayout"===c&&(e=(0,t.jsx)(d,{isPresent:a,anchorX:m,root:p,children:e})),(0,t.jsx)(s.PresenceContext.Provider,{value:v,children:e})};function h(){return new Map}var p=e.i(635149);let f=e=>e.key||"";function x(e){let t=[];
9return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let g=({children:e,custom:s,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",root:g})=>{let[v,D]=(0,p.usePresence)(d),b=(0,r.useMemo)(()=>x(e),[e]),w=d&&!v?[]:b.map(f),y=(0,r.useRef)(!0),F=(0,r.useRef)(b),j=(0,n.useConstant)(()=>new Map),[C,E]=(0,r.useState)(b),[N,A]=(0,r.useState)(b);(0,a.useIsomorphicLayoutEffect)(()=>{y.current=!1,F.current=b;for(let e=0;e<N.length;e++){let t=f(N[e]);w.includes(t)?j.delete(t):!0!==j.get(t)&&j.set(t,!1)}},[N,w.length,w.join("-")]);let _=[];if(b!==C){let e=[...b];for(let t=0;t<N.length;t++){let r=N[t],i=f(r);w.includes(i)||(e.splice(t,0,r),_.push(r))}return"wait"===c&&_.length&&(e=_),A(x(e)),E(b),null}let{forceRender:k}=(0,r.useContext)(i.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:N.map(e=>{let r=f(e),i=(!d||!!v)&&(b===N||w.includes(r));return(0,t.jsx)(m,{isPresent:i,initial:(!y.current||!!o)&&void 0,custom:s,presenceAffectsLayout:u,mode:c,root:g,onExitComplete:i?void 0:()=>{if(!j.has(r))return;j.set(r,!0);let e=!0;j.forEach(t=>{t||(e=!1)}),e&&(k?.(),A(F.current),d&&D?.(),l&&l())},anchorX:h,children:e},r)})})};e.s(["AnimatePresence",()=>g],339191)},550974,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(339191),a=e.i(98160);e.i(741820);var s=e.i(24963),o=e.i(331597),l=e.i(526683);let u=e=>{let i,n,s,o,u,c,d,m,h=(0,r.c)(28),{className:p,size:f,delay:x,duration:g,colorFrom:v,colorTo:D,transition:b,style:w,reverse:y,initialOffset:F,borderWidth:j}=e,C=void 0===f?50:f,E=void 0===g?6:g,N=void 0===v?"#ffaa40":v,A=void 0===D?"#9c40ff":D,_=void 0!==y&&y,k=void 0===F?0:F,S=`${void 0===j?1:j}px`;h[0]!==S?(i={"--border-beam-width":S},h[0]=S,h[1]=i):i=h[1];let B=i;h[2]!==p?(n=(0,l.cn)("absolute aspect-square","bg-gradient-to-l from-[var(--color-from)] via-[var(--color-to)] to-transparent",p),h[2]=p,h[3]=n):n=h[3];let R=`rect(0 auto auto 0 round ${C}px)`;h[4]!==N||h[5]!==A||h[6]!==C||h[7]!==w||h[8]!==R?(s={width:C,offsetPath:R,"--color-from":N,"--color-to":A,...w},h[4]=N,h[5]=A,h[6]=C,h[7]=w,h[8]=R,h[9]=s):s=h[9];let T=s,L=`${k}%`;h[10]!==L?(o={offsetDistance:L},h[10]=L,h[11]=o):o=h[11],h[12]!==k||h[13]!==_?(u={offsetDistance:_?[`${100-k}%`,`${-k}%`]:[`${k}%`,`${100+k}%`]},h[12]=k,h[13]=_,h[14]=u):u=h[14];let P=-(void 0===x?0:x);return h[15]!==E||h[16]!==P||h[17]!==b?(c={repeat:1/0,ease:"linear",duration:E,delay:P,...b},h[15]=E,h[16]=P,h[17]=b,h[18]=c):c=h[18],h[19]!==n||h[20]!==T||h[21]!==o||h[22]!==u||h[23]!==c?(d=(0,t.jsx)(a.motion.div,{className:n,style:T,initial:o,animate:u,transition:c}),h[19]=n,h[20]=T,h[21]=o,h[22]=u,h[23]=c,h[24]=d):d=h[24],h[25]!==B||h[26]!==d?(m=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 rounded-[inherit] border-transparent [mask-clip:padding-box,border-box] [mask-composite:intersect] [mask-image:linear-gradient(transparent,transparent),linear-gradient(#000,#000)] border-(length:--border-beam-width)",style:B,children:d}),h[25]=B,h[26]=d,h[27]=m):m=h[27],m};var c=e.i(184499),d=e.i(819023);function m(e){let o,m,p,f,x,g,v,D,b,w,y,F,j,C,E,N,A,_,k,S,B=(0,r.c)(41),{section:R,className:T}=e,[L,P]=(0,i.useState)("item-1");B[0]!==R.items?(o={},R.items?.forEach((e,t)=>{o[`item-${t+1}`]={image:e.image?.src??"",alt:e.image?.alt||e.title||""}}),B[0]=R.items,B[1]=o):o=B[1],B[2]!==T||B[3]!==R.className?(m=(0,l.cn)("overflow-x-hidden py-16 md:py-24",R.className,T),B[2]=T,B[3]=R.className,B[4]=m):m=B[4],B[5]!==R.title?(p=(0,t.jsx)("h2",{className:"text-foreground mb-4 text-3xl font-semibold tracking-tight md:text-4xl",children:R.title}),B[5]=R.title,B[6]=p):p=B[6],B[7]!==R.description?(f=(0,t.jsx)("p",{className:"text-muted-foreground mb-6 md:mb-12 lg:mb-16",children:R.description}),B[7]=R.description,B[8]=f):f=B[8],B[9]!==p||B[10]!==f?(x=(0,t.jsx)(d.ScrollAnimation,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl text-center text-balance",children:[p,f]})}),B[9]=p,B[10]=f,B[11]=x):x=B[11],B[12]===Symbol.for("react.memo_cache_sentinel")?(g=e=>P(e),B[12]=g):g=B[12],B[13]!==R.items?(v=R.items?.map(h),B[13]=R.items,B[14]=v):v=B[14],B[15]!==L||B[16]!==v?(D=(0,t.jsx)(d.ScrollAnimation,{delay:.1,direction:"left",children:(0,t.jsx)(c.Accordion,{type:"single",value:L,onValueChange:g,className:"w-full",children:v})}),B[15]=L,B[16]=v,B[17]=D):D=B[17],B[18]===Symbol.for("react.memo_cache_sentinel")?(b=(0,t.jsx)("div",{className:"absolute inset-0 right-0 ml-auto w-15 border-l bg-[repeating-linear-gradient(-45deg,var(--color-border),var(--color-border)_1px,transparent_1px,transparent_8px)]"}),B[18]=b):b=B[18];let M=`${L}-id`;B[19]===Symbol.for("react.memo_cache_sentinel")?(w={opacity:0,y:6,scale:.98},y={opacity:1,y:0,scale:1},F={opacity:0,y:6,scale:.98},j={duration:.2},B[19]=w,B[20]=y,B[21]=F,B[22]=j):(w=B[19],y=B[20],F=B[21],j=B[22]);let z=o[L],I=o[L];return B[23]!==z.image||B[24]!==I.alt?(C=(0,t.jsx)(s.LazyImage,{src:z.image,className:"size-full object-cover object-left-top dark:mix-blend-lighten",alt:I.alt}),B[23]=z.image,B[24]=I.alt,B[25]=C):C=B[25],B[26]!==C||B[27]!==M?(E=(0,t.jsx)("div",{className:"bg-background relative aspect-76/59 w-full min-w-0 rounded-2xl sm:w-[calc(3/4*100%+3rem)]",children:(0,t.jsx)(n.AnimatePresence,{mode:"wait",children:(0,t.jsx)(a.motion.div,{initial:w,animate:y,exit:F,transition:j,className:"size-full overflow-hidden rounded-2xl border shadow-md",children:C},M)})}),B[26]=C,B[27]=M,B[28]=E):E=B[28],B[29]===Symbol.for("react.memo_cache_sentinel")?(N=(0,t.jsx)(u,{duration:6,size:200,className:"from-transparent via-yellow-700 to-transparent dark:via-white/50"}),B[29]=N):N=B[29],B[30]!==E?(A=(0,t.jsx)(d.ScrollAnimation,{delay:.2,direction:"right",children:(0,t.jsxs)("div",{className:"bg-background relative flex min-w-0 flex-shrink overflow-hidden rounded-3xl border p-2",children:[b,E,N]})}),B[30]=E,B[31]=A):A=B[31],B[32]!==A||B[33]!==D?(_=(0,t.jsxs)("div",{className:"grid min-w-0 gap-12 sm:px-6 md:grid-cols-2 lg:gap-20 lg:px-0",children:[D,A]}
9),B[32]=A,B[33]=D,B[34]=_):_=B[34],B[35]!==_||B[36]!==x?(k=(0,t.jsxs)("div",{className:"container space-y-8 overflow-x-hidden px-2 sm:px-6 md:space-y-16 lg:space-y-20 dark:[--color-border:color-mix(in_oklab,var(--color-white)_10%,transparent)]",children:[x,_]}),B[35]=_,B[36]=x,B[37]=k):k=B[37],B[38]!==m||B[39]!==k?(S=(0,t.jsx)("section",{className:m,children:k}),B[38]=m,B[39]=k,B[40]=S):S=B[40],S}function h(e,r){return(0,t.jsxs)(c.AccordionItem,{value:`item-${r+1}`,children:[(0,t.jsx)(c.AccordionTrigger,{children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-base",children:[e.icon&&(0,t.jsx)(o.SmartIcon,{name:e.icon,size:24}),e.title]})}),(0,t.jsx)(c.AccordionContent,{children:e.description})]},r)}e.s(["FeaturesAccordion",()=>m],550974)},175484,e=>{"use strict";var t=e.i(884702);let r={search:"Search",searchNoResult:"No results found",toc:"On this page",tocNoHeadings:"No Headings",lastUpdate:"Last updated on",chooseLanguage:"Choose a language",nextPage:"Next Page",previousPage:"Previous Page",chooseTheme:"Theme",editOnGithub:"Edit on GitHub"},i=(0,t.createContext)({text:r});function n(e){let{text:t}=a();return t[e.label]}function a(){return(0,t.useContext)(i)}e.s(["I18nContext",0,i,"I18nLabel",()=>n,"defaultTranslations",0,r,"useI18n",()=>a])},41178,834355,e=>{"use strict";var t=e.i(884702);function r(e,i,n=function e(t,r){return Array.isArray(t)&&Array.isArray(r)?r.length!==t.length||t.some((t,i)=>e(t,r[i])):t!==r}){let[a,s]=(0,t.useState)(e);n(a,e)&&(i(e,a),s(e))}e.s(["useOnChange",()=>r],834355),e.i(368035),e.s([],41178)},187484,e=>{"use strict";let t=e=>"object"==typeof e&&null!=e&&1===e.nodeType,r=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let i,n=getComputedStyle(e,null);return r(n.overflowY,t)||r(n.overflowX,t)||!!(i=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(i.clientHeight<e.scrollHeight||i.clientWidth<e.scrollWidth)}return!1},n=(e,t,r,i,n,a,s,o)=>a<e&&s>t||a>e&&s<t?0:a<=e&&o<=r||s>=t&&o>=r?a-e-i:s>t&&o<r||a<e&&o>r?s-t+n:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,r)=>{var s,o,l,u;let c;if("undefined"==typeof document)return[];let{scrollMode:d,block:m,inline:h,boundary:p,skipOverflowHiddenElements:f}=r,x="function"==typeof p?p:e=>e!==p;if(!t(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,v=[],D=e;for(;t(D)&&x(D);){if((D=a(D))===g){v.push(D);break}null!=D&&D===document.body&&i(D)&&!i(document.documentElement)||null!=D&&i(D,f)&&v.push(D)}let b=null!=(o=null==(s=window.visualViewport)?void 0:s.width)?o:innerWidth,w=null!=(u=null==(l=window.visualViewport)?void 0:l.height)?u:innerHeight,{scrollX:y,scrollY:F}=window,{height:j,width:C,top:E,right:N,bottom:A,left:_}=e.getBoundingClientRect(),{top:k,right:S,bottom:B,left:R}={top:parseFloat((c=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0},T="start"===m||"nearest"===m?E-k:"end"===m?A+B:E+j/2-k+B,L="center"===h?_+C/2-R+S:"end"===h?N+S:_-R,P=[];for(let e=0;e<v.length;e++){let t=v[e],{height:r,width:a,top:s,right:o,bottom:l,left:u}=t.getBoundingClientRect();if("if-needed"===d&&E>=0&&_>=0&&A<=w&&N<=b&&(t===g&&!i(t)||E>=s&&A<=l&&_>=u&&N<=o))break;let c=getComputedStyle(t),p=parseInt(c.borderLeftWidth,10),f=parseInt(c.borderTopWidth,10),x=parseInt(c.borderRightWidth,10),D=parseInt(c.borderBottomWidth,10),k=0,S=0,B="offsetWidth"in t?t.offsetWidth-t.clientWidth-p-x:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-f-D:0,M="offsetWidth"in t?0===t.offsetWidth?0:a/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(g===t)k="start"===m?T:"end"===m?T-w:"nearest"===m?n(F,F+w,w,f,D,F+T,F+T+j,j):T-w/2,S="start"===h?L:"center"===h?L-b/2:"end"===h?L-b:n(y,y+b,b,p,x,y+L,y+L+C,C),k=Math.max(0,k+F),S=Math.max(0,S+y);else{k="start"===m?T-s-f:"end"===m?T-l+D+R:"nearest"===m?n(s,l,r,f,D+R,T,T+j,j):T-(s+r/2)+R/2,S="start"===h?L-u-p:"center"===h?L-(u+a/2)+B/2:"end"===h?L-o+x+B:n(u,o,a,p,x+B,L,L+C,C);let{scrollLeft:e,scrollTop:i}=t;k=0===z?0:Math.max(0,Math.min(i+k/z,t.scrollHeight-r/z+R)),S=0===M?0:Math.max(0,Math.min(e+S/M,t.scrollWidth-a/M+B)),T+=i-k,L+=e-S}P.push({el:t,top:k,left:S})}return P};function o(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let i={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||
90,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:a,left:o}of s(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=a-i.top+i.bottom,t=o-i.left+i.right;r.scroll({top:e,left:t,behavior:n})}}e.s(["default",()=>o],187484)},147126,254828,818595,e=>{"use strict";var t=e.i(466471),r=e.i(834355);e.i(368035);var i=e.i(884702),n=e.i(187484),a=(0,i.createContext)([]),s=(0,i.createContext)({current:null});function o(){return(0,i.useContext)(a).at(-1)}function l(){return(0,i.useContext)(a)}function u({containerRef:e,children:r}){return(0,t.jsx)(s.Provider,{value:e,children:r})}function c({toc:e,single:r=!0,children:n}){let s=(0,i.useMemo)(()=>e.map(e=>e.url.split("#")[1]),[e]);return(0,t.jsx)(a.Provider,{value:function(e,t){let[r,n]=(0,i.useState)([]);return(0,i.useEffect)(()=>{let r=[],i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!r.includes(t.target.id)?r=[...r,t.target.id]:!t.isIntersecting&&r.includes(t.target.id)&&(r=r.filter(e=>e!==t.target.id));r.length>0&&n(r)},{rootMargin:t?"-80px 0% -70% 0%":"-20px 0% -40% 0%",threshold:1});function a(){let r=document.scrollingElement;if(!r)return;let i=r.scrollTop;i<=0&&t?n(e.slice(0,1)):i+r.clientHeight>=r.scrollHeight-6&&n(r=>r.length>0&&!t?e.slice(e.indexOf(r[0])):e.slice(-1))}for(let t of e){let e=document.getElementById(t);e&&i.observe(e)}return a(),window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a),i.disconnect()}},[t,e]),t?r.slice(0,1):r}(s,r),children:n})}var d=(0,i.forwardRef)(({onActiveChange:e,...a},o)=>{let u=(0,i.useContext)(s),c=l(),d=(0,i.useRef)(null),m=function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)})}}(d,o),h=c.includes(a.href.slice(1));return(0,r.useOnChange)(h,t=>{let r=d.current;r&&(t&&u.current&&(0,n.default)(r,{behavior:"smooth",block:"center",inline:"center",scrollMode:"always",boundary:u.current}),e?.(t))}),(0,t.jsx)("a",{ref:m,"data-active":h,...a,children:a.children})});d.displayName="TOCItem",e.s(["AnchorProvider",()=>c,"ScrollProvider",()=>u,"TOCItem",()=>d,"useActiveAnchor",()=>o,"useActiveAnchors",()=>l],254828),e.i(857073);var m=e.i(266438),h=e.i(175484);e.i(41178);var p=e.i(739188);function f(e,t){if(0===t.length||0===e.clientHeight)return[0,0];let r=Number.MAX_VALUE,i=0;for(let n of t){let t=e.querySelector(`a[href="#${n}"]`);if(!t)continue;let a=getComputedStyle(t);r=Math.min(r,t.offsetTop+parseFloat(a.paddingTop)),i=Math.max(i,t.offsetTop+t.clientHeight-parseFloat(a.paddingBottom))}return[r,i-r]}function x(e,t){e.style.setProperty("--fd-top",`${t[0]}px`),e.style.setProperty("--fd-height",`${t[1]}px`)}function g({containerRef:e,...n}){let a=l(),s=(0,i.useRef)(null),o=(0,p.useEffectEvent)(()=>{e.current&&s.current&&x(s.current,f(e.current,a))});return(0,i.useEffect)(()=>{if(!e.current)return;let t=e.current;o();let r=new ResizeObserver(o);return r.observe(t),()=>{r.disconnect()}},[e,o]),(0,r.useOnChange)(a,()=>{e.current&&s.current&&x(s.current,f(e.current,a))}),(0,t.jsx)("div",{ref:s,role:"none",...n})}e.s(["TocThumb",()=>g],818595);var v=e.i(315754);let D=(0,i.createContext)([]);function b(){return(0,i.useContext)(D)}function w({toc:e,children:r,...i}){return(0,t.jsx)(D,{value:e,children:(0,t.jsx)(c,{toc:e,...i,children:r})})}function y({ref:e,className:r,...n}){let a=(0,i.useRef)(null);return(0,t.jsx)("div",{ref:(0,v.mergeRefs)(a,e),className:(0,m.cn)("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] [mask-image:linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",r),...n,children:(0,t.jsx)(u,{containerRef:a,children:n.children})})}function F({ref:e,className:r,...n}){let a=(0,i.useRef)(null),s=b(),{text:o}=(0,h.useI18n)();return 0===s.length?(0,t.jsx)("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:o.tocNoHeadings}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g,{containerRef:a,className:"absolute top-(--fd-top) h-(--fd-height) w-px bg-fd-primary transition-all"}),(0,t.jsx)("div",{ref:(0,v.mergeRefs)(e,a),className:(0,m.cn)("flex flex-col border-s border-fd-foreground
9/10",r),...n,children:s.map(e=>(0,t.jsx)(j,{item:e},e.url))})]})}function j({item:e}){return(0,t.jsx)(d,{href:e.url,className:(0,m.cn)("prose py-1.5 text-sm text-fd-muted-foreground transition-colors [overflow-wrap:anywhere] first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",e.depth<=2&&"ps-3",3===e.depth&&"ps-6",e.depth>=4&&"ps-8"),children:e.title})}e.s(["TOCItems",()=>F,"TOCProvider",()=>w,"TOCScrollArea",()=>y,"useTOCItems",()=>b],147126)},475507,496831,e=>{"use strict";var t=e.i(889522);let r=(0,t.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["default",()=>r],475507);let i=(0,t.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);e.s(["default",()=>i],496831)},387115,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(147126),n=e.i(475507),n=n,a=e.i(496831),a=a,s=e.i(247835);e.i(741820);var o=e.i(111643),l=e.i(866273),u=e.i(199978),c=e.i(331597);function d(e){let i,n,a=(0,r.c)(4),{items:s}=e;return a[0]!==s?(i=s.map(m),a[0]=s,a[1]=i):i=a[1],a[2]!==i?(n=(0,t.jsx)("nav",{className:"text-muted-foreground flex items-center text-sm md:px-3",children:i}),a[2]=i,a[3]=n):n=a[3],n}function m(e,r){let i=e.is_active;return(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsxs)(u.Link,{href:e.url||"",className:`hover:text-foreground line-clamp-1 flex min-w-8 items-center gap-2 transition-colors ${i?"text-primary hover:text-primary font-medium":""}`,children:[e.icon&&(0,t.jsx)(c.SmartIcon,{name:e.icon,className:"size-4"}),e.title]}),!i&&(0,t.jsx)(l.ChevronRight,{className:"text-muted-foreground/40 mx-2 h-4 w-4"})]},r)}function h(e){let l,u,c,m,h,p,f,x,g,v,D,b,w,y,F,j,C,E,N,A,_=(0,r.c)(56),{post:k}=e,S=(0,s.useTranslations)("pages.blog.messages");_[0]!==S?(l=S("crumb"),_[0]=S,_[1]=l):l=_[1],_[2]!==l?(u={title:l,url:"/blog",icon:"Newspaper",is_active:!1},_[2]=l,_[3]=u):u=_[3];let B=k.title||"",R=`/blog/${k.slug}`;_[4]!==B||_[5]!==R?(c={title:B,url:R,is_active:!0},_[4]=B,_[5]=R,_[6]=c):c=_[6],_[7]!==u||_[8]!==c?(m=[u,c],_[7]=u,_[8]=c,_[9]=m):m=_[9];let T=m,L=k.toc&&k.toc.length>0,P=k.author_name||k.author_image||k.author_role;_[10]!==P||_[11]!==L?(h=()=>L&&P?"lg:col-span-6":L||P?"lg:col-span-9":"lg:col-span-12",_[10]=P,_[11]=L,_[12]=h):h=_[12];let M=h;_[13]!==k.toc?(p=k.toc||[],_[13]=k.toc,_[14]=p):p=_[14];let z=k.id;_[15]!==T?(f=(0,t.jsx)(d,{items:T}),_[15]=T,_[16]=f):f=_[16],_[17]!==k.title?(x=(0,t.jsx)("h1",{className:"text-foreground mx-auto mb-4 w-full text-3xl font-bold md:max-w-4xl md:text-4xl",children:k.title}),_[17]=k.title,_[18]=x):x=_[18],_[19]!==k.created_at?(g=k.created_at&&(0,t.jsxs)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-2",children:[(0,t.jsx)(n.default,{className:"size-4"})," ",k.created_at]}),_[19]=k.created_at,_[20]=g):g=_[20],_[21]!==g?(v=(0,t.jsx)("div",{className:"text-muted-foreground text-md mb-8 flex items-center justify-center gap-4",children:g}),_[21]=g,_[22]=v):v=_[22],_[23]!==x||_[24]!==v?(D=(0,t.jsxs)("div",{className:"mt-16 text-center",children:[x,v]}),_[23]=x,_[24]=v,_[25]=D):D=_[25],_[26]!==L||_[27]!==S?(b=L&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24 hidden md:block",children:(0,t.jsxs)("div",{className:"bg-muted/30 rounded-lg p-4",children:[(0,t.jsxs)("h2",{className:"text-foreground mb-4 flex items-center gap-2 font-semibold",children:[(0,t.jsx)(a.default,{className:"size-4"})," ",S("toc")]}),(0,t.jsx)(i.TOCItems,{})]})})}),_[26]=L,_[27]=S,_[28]=b):b=_[28];let I=M();return _[29]!==k.body||_[30]!==k.content?(w=k.body?(0,t.jsx)("div",{className:"docs text-foreground text-md space-y-4 font-normal *:leading-relaxed",children:k.body}):k.content&&(0,t.jsx)("div",{className:"prose prose-lg text-muted-foreground max-w-none space-y-6 *:leading-relaxed",children:(0,t.jsx)(o.MarkdownPreview,{content:k.content})}),_[29]=k.body,_[30]=k.content,_[31]=w):w=_[31],_[32]!==w?(y=(0,t.jsx)("article",{className:"p-0",children:w}),_[32]=w,_[33]=y):y=_[33],_[34]!==I||_[35]!==y?(F=(0,t.jsx)("div",{className:I,children:y}),_[34]=I,_[35]=y,_[36]=F):F=_[36],_[37]!==k.author_image||_[38]!==k.author_name||_[39]!==k.author_role||_[40]!==P?(j=P&&(0,t.jsx)("div",{className:"lg:col-span-3",children:(0,t.jsx)("div",{className:"sticky top-24",children:(0,t.jsx)("div",{className:"bg-muted/30 rounded-lg p-6",children:(0,t.jsxs)("div",{className:"text-center",children:[k.author_image&&(0,t.jsx)("div",{className:"ring-foreground
9/10 mx-auto mb-4 aspect-square size-20 overflow-hidden rounded-xl border border-transparent shadow-md ring-1 shadow-black/15",children:(0,t.jsx)("img",{src:k.author_image,alt:k.author_name,className:"h-full w-full object-cover"})}),k.author_name&&(0,t.jsx)("p",{className:"text-foreground mb-1 text-lg font-semibold",children:k.author_name}),k.author_role&&(0,t.jsx)("p",{className:"text-muted-foreground mb-4 text-sm",children:k.author_role})]})})})}),_[37]=k.author_image,_[38]=k.author_name,_[39]=k.author_role,_[40]=P,_[41]=j):j=_[41],_[42]!==b||_[43]!==F||_[44]!==j?(C=(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:mt-12 lg:grid-cols-12",children:[b,F,j]}),_[42]=b,_[43]=F,_[44]=j,_[45]=C):C=_[45],_[46]!==f||_[47]!==D||_[48]!==C?(E=(0,t.jsx)("div",{className:"py-24 md:py-32",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-7xl px-6 md:px-8",children:[f,D,C]})}),_[46]=f,_[47]=D,_[48]=C,_[49]=E):E=_[49],_[50]!==k.id||_[51]!==E?(N=(0,t.jsx)("section",{id:z,children:E}),_[50]=k.id,_[51]=E,_[52]=N):N=_[52],_[53]!==N||_[54]!==p?(A=(0,t.jsx)(i.TOCProvider,{toc:p,children:N}),_[53]=N,_[54]=p,_[55]=A):A=_[55],A}e.s(["BlogDetail",()=>h],387115)},669764,e=>{"use strict";var t=e.i(466471),r=e.i(884702),i=e.i(636680),n=e.i(462297),a=e.i(623099),s=e.i(247835),o=e.i(779342);e.i(741820);var l=e.i(331597),u=e.i(536355),c=e.i(511398),d=e.i(122913),m=e.i(422812),h=e.i(960568),p=e.i(581682),f=e.i(103979),x=e.i(199978),g=e.i(851239),v=e.i(526683);function D({configs:e,callbackUrl:i,loading:l,setLoading:u,pricingItem:d,onCheckout:m,className:p}){(0,s.useTranslations)("common.payment"),(0,x.useRouter)();let{setIsShowPaymentModal:D}=(0,h.useAppContext)(),[b,w]=(0,r.useState)(null);if(i){let e=(0,a.useLocale)();e!==g.defaultLocale&&i.startsWith("/")&&!i.startsWith(`/${e}`)&&(i=`/${e}${i}`)}let y=async({provider:e})=>{e?d?m(d,e):o.toast.error("please select a pricing item"):o.toast.error("please select payment method")},F=d?.payment_providers,j=e=>!F||0===F.length||F.includes(e),C=[];return"true"===e.stripe_enabled&&j("stripe")&&C.push({name:"stripe",title:"Stripe",icon_url:"/imgs/icons/stripe.png",onClick:()=>y({provider:"stripe"})}),"true"===e.creem_enabled&&j("creem")&&C.push({name:"creem",title:"Creem",icon_url:"/imgs/icons/creem.png",onClick:()=>y({provider:"creem"})}),"true"===e.paypal_enabled&&j("paypal")&&C.push({name:"paypal",title:"Paypal",icon_url:"/imgs/icons/paypal.svg",onClick:()=>y({provider:"paypal"})}),(0,t.jsx)("div",{className:(0,v.cn)("flex w-full items-center gap-2","flex-col justify-between",p),children:C.map(e=>(0,t.jsxs)(c.Button,{variant:"outline",className:(0,v.cn)("w-full gap-2"),disabled:l,onClick:()=>{e.onClick&&e.name?(w(e.name),e.onClick()):o.toast.error("invalid payment method")},children:[e.icon_url&&(0,t.jsx)(f.default,{src:e.icon_url,alt:e.title||e.name||"",width:24,height:24,className:"rounded-full"}),(0,t.jsx)("h3",{children:e.title}),b===e.name&&l&&(0,t.jsx)(n.Loader2,{className:"size-4 animate-spin"})]},e.name))})}function b(e){let r,i,n,a,o,l,f,x,g,v,b=(0,u.c)(51),{isLoading:F,pricingItem:j,onCheckout:C}=e,E=(0,s.useTranslations)("common.payment"),{isShowPaymentModal:N,setIsShowPaymentModal:A}=(0,h.useAppContext)(),{configs:_}=(0,h.useAppContext)();if((0,p.useMediaQuery)("(min-width: 768px)")){let e,r,i,n,a,s,o,l;return b[0]!==E?(e=E("choose_payment_method"),b[0]=E,b[1]=e):e=b[1],b[2]!==e?(r=(0,t.jsx)(d.DialogTitle,{children:e}),b[2]=e,b[3]=r):r=b[3],b[4]!==E?(i=E("choose_payment_method_description"),b[4]=E,b[5]=i):i=b[5],b[6]!==i?(n=(0,t.jsx)(d.DialogDescription,{children:i}),b[6]=i,b[7]=n):n=b[7],b[8]!==r||b[9]!==n?(a=(0,t.jsxs)(d.DialogHeader,{children:[r,n]}),b[8]=r,b[9]=n,b[10]=a):a=b[10],b[11]!==_||b[12]!==F||b[13]!==C||b[14]!==j?(s=(0,t.jsx)(D,{callbackUrl:"/",configs:_,loading:F,setLoading:y,pricingItem:j,onCheckout:C}),b[11]=_,b[12]=F,b[13]=C,b[14]=j,b[15]=s):s=b[15],b[16]!==a||b[17]!==s?(o=(0,t.jsxs)(d.DialogContent,{className:"sm:max-w-[425px]",children:[a,s]}),b[16]=a,b[17]=s,b[18]=o):o=b[18],b[19]!==N||b[20]!==A||b[21]!==o?(l=(0,t.jsx)(d.Dialog,{open:N,onOpenChange:A,children:o}),b[19]=N,b[20]=A,b[21]=o,b[22]=l):l=b[22],l}return b[23]!==E?(r=E("choose_payment_method"),b[23]=E,b[24]=r):r=b[24],b[25]!==r?(i=(0,t.jsx)(m.DrawerTitle,{children:r}),b[25]=r,b[26]=i):i=b[26],b[27]!==E?(n=E("choose_payment_method_description"),b[27]=E,b[28]=n):n=b[28],b[29]!==n?(a=(0,t.jsx)(m.DrawerDescription,{children:n}),b[29]=n,b[30]=a):a=b[30],b[31]!==i||b[32]!==a?(o=(0,t.jsxs)(m.DrawerHeader,{className:"text-left",children:[i,a]}),b[31]=i,b[32]=a,b[33]=o):o=b[33],b[34]!==_||b[35]!==F||b[36]!==C||b[37]!==j?(l=(0,t.jsx)(D,{callbackUrl:"/",configs:_,loading:F,setLoa
9ding:w,pricingItem:j,onCheckout:C,className:"px-4"}),b[34]=_,b[35]=F,b[36]=C,b[37]=j,b[38]=l):l=b[38],b[39]!==E?(f=E("cancel_title"),b[39]=E,b[40]=f):f=b[40],b[41]!==f?(x=(0,t.jsx)(m.DrawerFooter,{className:"pt-4",children:(0,t.jsx)(m.DrawerClose,{asChild:!0,children:(0,t.jsx)(c.Button,{variant:"outline",children:f})})}),b[41]=f,b[42]=x):x=b[42],b[43]!==o||b[44]!==l||b[45]!==x?(g=(0,t.jsxs)(m.DrawerContent,{children:[o,l,x]}),b[43]=o,b[44]=l,b[45]=x,b[46]=g):g=b[46],b[47]!==N||b[48]!==A||b[49]!==g?(v=(0,t.jsx)(m.Drawer,{open:N,onOpenChange:A,children:g}),b[47]=N,b[48]=A,b[49]=g,b[50]=v):v=b[50],v}function w(){}function y(){}var F=e.i(615978),j=e.i(686247),C=e.i(638678),E=e.i(330771),N=e.i(788250);function A(e){if(!e)return[];let t={currency:e.currency,amount:e.amount,price:e.price||"",original_price:e.original_price||""};return e.currencies&&e.currencies.length>0?[t,...e.currencies]:[t]}function _({section:e,className:u,currentSubscription:d}){let m=(0,a.useLocale)(),p=(0,s.useTranslations)("pages.pricing.messages"),{user:f,isShowPaymentModal:x,setIsShowSignModal:g,setIsShowPaymentModal:D,configs:w}=(0,h.useAppContext)(),[y,_]=(0,r.useState)(()=>{let t=e.items?.find(e=>e.product_id===d?.productId),r=e.groups?.find(e=>e.is_featured);return t?.group||r?.name||e.groups?.[0]?.name}),[k,S]=(0,r.useState)(null),[B,R]=(0,r.useState)(!1),[T,L]=(0,r.useState)(null),[P,M]=(0,r.useState)({});(0,r.useEffect)(()=>{if(e.items&&e.items.length>0){let t={};e.items.forEach(e=>{let r=A(e),i=function(e,t,r){if(0===e.length)return r;if("zh"===t){let t=e.find(e=>"cny"===e.currency.toLowerCase());if(t)return t.currency}return r}(r,m,e.currency),n=r.find(e=>e.currency.toLowerCase()===i.toLowerCase()),a=n?{...e,currency:n.currency,amount:n.amount,price:n.price,original_price:n.original_price,payment_product_id:n.payment_product_id||e.payment_product_id,payment_providers:n.payment_providers||e.payment_providers}:e;t[e.product_id]={selectedCurrency:i,displayedItem:a}}),M(t)}},[e.items,m]);let z=async e=>{if(!f)return void g(!0);let t=P[e.product_id]?.displayedItem||e;"true"===w.select_payment_enabled?(S(t),D(!0)):I(t,w.default_payment_provider)},I=async(e,t)=>{try{if(!f)return void g(!0);let r=(({paymentProvider:e})=>{let t={};return"true"===w.affonso_enabled&&["stripe","creem"].includes(e)&&(t.affonso_referral=(0,N.getCookie)("affonso_referral")||""),"true"===w.promotekit_enabled&&["stripe"].includes(e)&&(t.promotekit_referral=window.promotekit_referral?window.promotekit_referral:(0,N.getCookie)("promotekit_referral")||""),t})({paymentProvider:t||""}),i={product_id:e.product_id,currency:e.currency,locale:m||"en",payment_provider:t||"",metadata:r};R(!0),L(e.product_id);let n=await fetch("/api/payment/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(401===n.status){R(!1),L(null),S(null),g(!0);return}if(!n.ok)throw Error(`request failed with status ${n.status}`);let{code:a,message:s,data:o}=await n.json();if(0!==a)throw Error(s);let{checkoutUrl:l}=o;if(!l)throw Error("checkout url not found");window.location.href=l}catch(e){console.log("checkout failed: ",e),o.toast.error("checkout failed: "+e.message),R(!1),L(null)}};return(0,r.useEffect)(()=>{if(e.items){let t=e.items.find(e=>e.is_featured);L(t?.product_id||e.items[0]?.product_id),R(!1)}},[e.items]),(0,t.jsxs)("section",{id:e.id,className:(0,v.cn)("py-24 md:py-36",e.className,u),children:[(0,t.jsxs)("div",{className:"mx-auto mb-12 px-4 text-center md:px-8",children:[e.sr_only_title&&(0,t.jsx)("h1",{className:"sr-only",children:e.sr_only_title}),(0,t.jsx)("h2",{className:"mb-6 text-3xl font-bold text-pretty lg:text-4xl",children:e.title}),(0,t.jsx)("p",{className:"text-muted-foreground mx-auto mb-4 max-w-xl lg:max-w-none lg:text-lg",children:e.description})]}),(0,t.jsxs)("div",{className:"container",children:[e.groups&&e.groups.length>0&&(0,t.jsx)("div",{className:"mx-auto mt-8 mb-16 flex w-full justify-center md:max-w-lg",children:(0,t.jsx)(E.Tabs,{value:y,onValueChange:_,className:"",children:(0,t.jsx)(E.TabsList,{children:e.groups.map((e,r)=>(0,t.jsxs)(E.TabsTrigger,{value:e.name||"",children:[e.title,e.label&&(0,t.jsx)(F.Badge,{className:"ml-2",children:e.label})]},r))})})}),(0,t.jsx)("div",{className:`mx-auto mt-0 grid w-full gap-6 md:grid-cols-${e.items?.filter(e=>!e.group||e.group===y)?.length}`,children:e.items?.map((r,a)=>{if(r.group&&r.group!==y)return null;let s=!1;d&&d.productId===r.product_id&&(s=!0);
9let o=P[r.product_id],u=o?.displayedItem||r,m=o?.selectedCurrency||r.currency,h=A(r);return(0,t.jsxs)(j.Card,{className:"relative",children:[r.label&&(0,t.jsx)("span",{className:"absolute inset-x-0 -top-3 mx-auto flex h-6 w-fit items-center rounded-full bg-linear-to-br/increasing from-purple-400 to-amber-300 px-3 py-1 text-xs font-medium text-amber-950 ring-1 ring-white/20 ring-offset-1 ring-offset-gray-950/5 ring-inset",children:r.label}),(0,t.jsxs)(j.CardHeader,{children:[(0,t.jsx)(j.CardTitle,{className:"font-medium",children:(0,t.jsx)("h3",{className:"text-sm font-medium",children:r.title})}),(0,t.jsxs)("div",{className:"my-3 flex items-baseline gap-2",children:[u.original_price&&(0,t.jsx)("span",{className:"text-muted-foreground text-sm line-through",children:u.original_price}),(0,t.jsxs)("div",{className:"my-3 block text-2xl font-semibold",children:[(0,t.jsx)("span",{className:"text-primary",children:u.price})," ",u.unit?(0,t.jsx)("span",{className:"text-muted-foreground text-sm font-normal",children:u.unit}):""]}),h.length>1&&(0,t.jsxs)(C.Select,{value:m,onValueChange:t=>((t,r)=>{let i=e.items?.find(e=>e.product_id===t);if(!i)return;let n=A(i).find(e=>e.currency.toLowerCase()===r.toLowerCase());if(n){let e={...i,currency:n.currency,amount:n.amount,price:n.price,original_price:n.original_price,payment_product_id:n.payment_product_id||i.payment_product_id,payment_providers:n.payment_providers||i.payment_providers};M(i=>({...i,[t]:{selectedCurrency:r,displayedItem:e}}))}})(r.product_id,t),children:[(0,t.jsx)(C.SelectTrigger,{size:"sm",className:"border-muted-foreground/30 bg-background/50 h-6 min-w-[60px] px-2 text-xs",children:(0,t.jsx)(C.SelectValue,{placeholder:"Currency"})}),(0,t.jsx)(C.SelectContent,{children:h.map(e=>(0,t.jsx)(C.SelectItem,{value:e.currency,className:"text-xs",children:e.currency.toUpperCase()},e.currency))})]})]}),(0,t.jsx)(j.CardDescription,{className:"text-sm",children:r.description}),r.tip&&(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:r.tip}),s?(0,t.jsx)(c.Button,{variant:"outline",className:"mt-4 h-9 w-full px-4 py-2",disabled:!0,children:(0,t.jsx)("span",{className:"hidden text-sm md:block",children:p("current_plan")})}):(0,t.jsx)(c.Button,{onClick:()=>z(r),disabled:B,className:(0,v.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","mt-4 h-9 w-full px-4 py-2","bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md shadow-black/20"),children:B&&r.product_id===T?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Loader2,{className:"size-4 animate-spin"}),(0,t.jsx)("span",{className:"block",children:p("processing")})]}):(0,t.jsxs)(t.Fragment,{children:[r.button?.icon&&(0,t.jsx)(l.SmartIcon,{name:r.button?.icon,className:"size-4"}),(0,t.jsx)("span",{className:"block",children:r.button?.title})]})})]}),(0,t.jsxs)(j.CardContent,{className:"space-y-4",children:[(0,t.jsx)("hr",{className:"border-dashed"}),r.features_title&&(0,t.jsx)("p",{className:"text-sm font-medium",children:r.features_title}),(0,t.jsx)("ul",{className:"list-outside space-y-3 text-sm",children:r.features?.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.Check,{className:"size-3"}),e]},r))})]})]},a)})})]}),(0,t.jsx)(b,{isLoading:B,pricingItem:k,onCheckout:(e,t)=>I(e,t)})]})}e.s(["Pricing",()=>_],669764)},900972,e=>{"use strict";let t=(0,e.i(889522).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["default",()=>t])},654243,e=>{"use strict";var t=e.i(466471),r=e.i(536355),i=e.i(884702),n=e.i(900972),n=n,a=e.i(653668),s=e.i(199978);e.i(741820);var o=e.i(799112),l=e.i(538630),u=e.i(642616),c=e.i(331597),d=e.i(600195),m=e.i(184499),h=e.i(847257),p=e.i(352162),f=e.i(291967),x=e.i(6140),g=e.i(575301),v=e.i(188625),D=e.i(950074),b=e.i(775827),w=e.i(987438),y=e.i(408896),F=e.i(415839),j=e.i(898175),C=e.i(385064),E=e.i(935125),N=e.i(715684),A="NavigationMenu",[_,k,S]=(0,y.createCollection)(A),[B,R,T]=(0,y.createCollection)(A),[L,P]=(0,p.createContextScope)(A,[S,T]),[M,z]=L(A),[I,H]=L(A),O=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,onValueChange:s,defaultValue:o,delayDuration:l=200,skipDelayDuration:u=300,orientation:c="horizontal",dir:d,...m}=e,[h,p]=i.useState(null),f=(0,v.useComposedRefs)(r,e=>p(e)),b=(0,D.useDirection)(d),w=i.useRef(0),y=i.useRef(0),F=i.useRef(0),[j,C]=i.useState(!0),[E,N]=(0,g.useControllableState)({prop:a,onChange:e=>{let t=u>0;""!==e?(window.clearTimeout(F.current),t&&C(!1)):(window.clearTimeout(F.current),F.current=window.setTimeout(()=>C(!0),u)),s?.(e)},defaultProp:o??"",caller:A}),_=i.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>N(""),150)},[N]),k=i.useCallback(e=>{window.clearTimeout(y.current),N(e)},[N]),S=i.useCallback(e=>{E===e?window.clearTimeout(y.current):w.current=window.setTimeout(()=>{window.clearTimeout(y.current),N(e)},l)},[E,N,l]);return i.useEffect(()=>()=>{window.clearTimeout(w.current),window.clearTimeout(y.current),window.clearTimeout(F.current)},[]),(0,t.jsx)($,{scope:n,isRootMenu:!0,value:E,dir:b,orientation:c,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(w.current),j?S(e):k(e)},onTriggerLeave:()=>{window.clearTimeout(w.current),_()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:_,onItemSelect:e=>{N(t=>t===e?"":e)},onItemDismiss:()=>N(""),children:(0,t.jsx)(x.Primitive.nav,{"aria-label":"Main","data-orientation":c,dir:b,...m,ref:f})})});O.displayName=A;var W="NavigationMenuSub";i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,value:n,onValueChange:a,defaultValue:s,orientation:o="horizontal",...l}=e,u=z(W,i),[c,d]=(0,g.useControllableState)({prop:n,onChange:a,defaultProp:s??"",caller:W});return(0,t.jsx)($,{scope:i,isRootMenu:!1,value:c,dir:u.dir,orientation:o,rootNavigationMenu:u.rootNavigationMenu,onTriggerEnter:e=>d(e),onItemSelect:e=>d(e),onItemDismiss:()=>d(""),children:(0,t.jsx)(x.Primitive.div,{"data-orientation":o,...l,ref:r})})}).displayName=W;var $=e=>{let{scope:r,isRootMenu:n,rootNavigationMenu:a,dir:s,orientation:o,children:l,value:u,onItemSelect:c,onItemDismiss:d,onTriggerEnter:m,onTriggerLeave:h,onContentEnter:p,onContentLeave:f}=e,[x,g]=i.useState(null),[v,D]=i.useState(new Map),[b,y]=i.useState(null);return(0,t.jsx)(M,{scope:r,isRootMenu:n,rootNavigationMenu:a,value:u,previousValue:(0,j.usePrevious)(u),baseId:(0,w.useId)(),dir:s,orientation:o,viewport:x,onViewportChange:g,indicatorTrack:b,onIndicatorTrackChange:y,onTriggerEnter:(0,E.useCallbackRef)(m),onTriggerLeave:(0,E.useCallbackRef)(h),onContentEnter:(0,E.useCallbackRef)(p),onContentLeave:(0,E.useCallbackRef)(f),onItemSelect:(0,E.useCallbackRef)(c),onItemDismiss:(0,E.useCallbackRef)(d),onViewportContentChange:i.useCallback((e,t)=>{D(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:i.useCallback(e=>{D(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(_.Provider,{scope:r,children:(0,t.jsx)(I,{scope:r,items:v,children:l})})})},V="NavigationMenuList",q=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,...n}=e,a=z(V,i),s=(0,t.jsx)(x.Primitive.ul,{"data-orientation":a.orientation,...n,ref:r});return(0,t.jsx)(x.Primitive.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,t.jsx)(_.Slot,{scope:i,children:a.isRootMenu?(0,t.jsx)(ec,{asChild:!0,children:s}):s})})});q.displayName=V;var U="NavigationMenuItem",[K,X]=L(U),Y=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,...s}=e,o=(0,w.useId)(),l=i.useRef(null),u=i.useRef(null),c=i.useRef(null),d=i.useRef(()=>{}),m=i.useRef(!1),h=i.useCallback((e="start")=>{if(l.current){d.current();let t=eh(l.current);t.length&&ep("start"===e?t:t.reverse())}},[]),p=i.useCallback(()=>
9{if(l.current){var e;let t=eh(l.current);t.length&&((e=t).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),d.current=()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})})}},[]);return(0,t.jsx)(K,{scope:n,value:a||o||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:m,onEntryKeyDown:h,onFocusProxyEnter:h,onRootContentClose:p,onContentFocusOutside:p,children:(0,t.jsx)(x.Primitive.li,{...s,ref:r})})});Y.displayName=U;var G="NavigationMenuTrigger",J=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,disabled:a,...s}=e,o=z(G,e.__scopeNavigationMenu),l=X(G,e.__scopeNavigationMenu),u=i.useRef(null),c=(0,v.useComposedRefs)(u,l.triggerRef,r),d=eg(o.baseId,l.value),m=ev(o.baseId,l.value),h=i.useRef(!1),p=i.useRef(!1),g=l.value===o.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(_.ItemSlot,{scope:n,value:l.value,children:(0,t.jsx)(em,{asChild:!0,children:(0,t.jsx)(x.Primitive.button,{id:d,disabled:a,"data-disabled":a?"":void 0,"data-state":ex(g),"aria-expanded":g,"aria-controls":m,...s,ref:c,onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,()=>{p.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:(0,f.composeEventHandlers)(e.onPointerMove,eD(()=>{a||p.current||l.wasEscapeCloseRef.current||h.current||(o.onTriggerEnter(l.value),h.current=!0)})),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eD(()=>{a||(o.onTriggerLeave(),h.current=!1)})),onClick:(0,f.composeEventHandlers)(e.onClick,()=>{o.onItemSelect(l.value),p.current=g}),onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===o.dir?"ArrowLeft":"ArrowRight"}[o.orientation];g&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Root,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,r=e.relatedTarget,i=r===u.current,n=t?.contains(r);(i||!n)&&l.onFocusProxyEnter(i?"start":"end")}}),o.viewport&&(0,t.jsx)("span",{"aria-owns":m})]})]})});J.displayName=G;var Q="navigationMenu.linkSelect",Z=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,active:n,onSelect:a,...s}=e;return(0,t.jsx)(em,{asChild:!0,children:(0,t.jsx)(x.Primitive.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...s,ref:r,onClick:(0,f.composeEventHandlers)(e.onClick,e=>{let t=e.target,r=new CustomEvent(Q,{bubbles:!0,cancelable:!0});if(t.addEventListener(Q,e=>a?.(e),{once:!0}),(0,x.dispatchDiscreteCustomEvent)(t,r),!r.defaultPrevented&&!e.metaKey){let e=new CustomEvent(ea,{bubbles:!0,cancelable:!0});(0,x.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})});Z.displayName="NavigationMenuLink";var ee="NavigationMenuIndicator";i.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=z(ee,e.__scopeNavigationMenu),s=!!a.value;return a.indicatorTrack?h.default.createPortal((0,t.jsx)(b.Presence,{present:i||s,children:(0,t.jsx)(et,{...n,ref:r})}),a.indicatorTrack):null}).displayName=ee;var et=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,...a}=e,s=z(ee,n),o=k(n),[l,u]=i.useState(null),[c,d]=i.useState(null),m="horizontal"===s.orientation,h=!!s.value;i.useEffect(()=>{let e=o(),t=e.find(e=>e.value===s.value)?.ref.current;t&&u(t)},[o,s.value]);let p=()=>{l&&d({size:m?l.offsetWidth:l.offsetHeight,offset:m?l.offsetLeft:l.offsetTop})};return ef(l,p),ef(s.indicatorTrack,p),c?(0,t.jsx)(x.Primitive.div,{"aria-hidden":!0,"data-state":h?"visible":"hidden","data-orientation":s.orientation,...a,ref:r,style:{position:"absolute",...m?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...a.style}}):null}),er="NavigationMenuContent",ei=i.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=z(er,e.__scopeNavigationMenu),s=X(er,e.__scopeNavigationMenu),o=(0,v.useComposedRefs)(s.contentRef,r),l=s.value===a.value,u={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...n};return a.viewport?(0,t.jsx)(en,{forceMount:i,...u,ref:o}):(0,t.jsx)(b.Presence,{present:i||l,children:(0,t.jsx)(es,{"data-state":ex(l),...u,ref:o,onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,a.onContentEnter),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eD(a.onContentLeave)),style:{pointerEvents:!l&&a.isRootMenu?"none":void 0,...u.style}})})});ei.displayName=er;var en=i.forwardRef((e,t)=>
9{let{onViewportContentChange:r,onViewportContentRemove:i}=z(er,e.__scopeNavigationMenu);return(0,C.useLayoutEffect)(()=>{r(e.value,{ref:t,...e})},[e,t,r]),(0,C.useLayoutEffect)(()=>()=>i(e.value),[e.value,i]),null}),ea="navigationMenu.rootContentDismiss",es=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,value:a,triggerRef:s,focusProxyRef:o,wasEscapeCloseRef:l,onRootContentClose:u,onContentFocusOutside:c,...d}=e,m=z(er,n),h=i.useRef(null),p=(0,v.useComposedRefs)(h,r),x=eg(m.baseId,a),g=ev(m.baseId,a),D=k(n),b=i.useRef(null),{onItemDismiss:w}=m;i.useEffect(()=>{let e=h.current;if(m.isRootMenu&&e){let t=()=>{w(),u(),e.contains(document.activeElement)&&s.current?.focus()};return e.addEventListener(ea,t),()=>e.removeEventListener(ea,t)}},[m.isRootMenu,e.value,s,w,u]);let y=i.useMemo(()=>{let e=D().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),r=e.indexOf(m.previousValue),i=a===m.value,n=r===e.indexOf(a);if(!i&&!n)return b.current;let s=(()=>{if(t!==r){if(i&&-1!==r)return t>r?"from-end":"from-start";if(n&&-1!==t)return t>r?"to-start":"to-end"}return null})();return b.current=s,s},[m.previousValue,m.value,m.dir,D,a]);return(0,t.jsx)(ec,{asChild:!0,children:(0,t.jsx)(F.DismissableLayer,{id:g,"aria-labelledby":x,"data-motion":y,"data-orientation":m.orientation,...d,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(ea,{bubbles:!0,cancelable:!0});h.current?.dispatchEvent(e)},onFocusOutside:(0,f.composeEventHandlers)(e.onFocusOutside,e=>{c();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,f.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,r=D().some(e=>e.ref.current?.contains(t)),i=m.isRootMenu&&m.viewport?.contains(t);(r||i||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eh(e.currentTarget),r=document.activeElement,i=t.findIndex(e=>e===r);ep(e.shiftKey?t.slice(0,i).reverse():t.slice(i+1,t.length))?e.preventDefault():o.current?.focus()}}),onEscapeKeyDown:(0,f.composeEventHandlers)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),eo="NavigationMenuViewport",el=i.forwardRef((e,r)=>{let{forceMount:i,...n}=e,a=!!z(eo,e.__scopeNavigationMenu).value;return(0,t.jsx)(b.Presence,{present:i||a,children:(0,t.jsx)(eu,{...n,ref:r})})});el.displayName=eo;var eu=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:n,children:a,...s}=e,o=z(eo,n),l=(0,v.useComposedRefs)(r,o.onViewportChange),u=H(er,e.__scopeNavigationMenu),[c,d]=i.useState(null),[m,h]=i.useState(null),p=c?c?.width+"px":void 0,g=c?c?.height+"px":void 0,D=!!o.value,w=D?o.value:o.previousValue;return ef(m,()=>{m&&d({width:m.offsetWidth,height:m.offsetHeight})}),(0,t.jsx)(x.Primitive.div,{"data-state":ex(D),"data-orientation":o.orientation,...s,ref:l,style:{pointerEvents:!D&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":g,...s.style},onPointerEnter:(0,f.composeEventHandlers)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,f.composeEventHandlers)(e.onPointerLeave,eD(o.onContentLeave)),children:Array.from(u.items).map(([e,{ref:r,forceMount:i,...n}])=>{let a=w===e;return(0,t.jsx)(b.Presence,{present:i||a,children:(0,t.jsx)(es,{...n,ref:(0,v.composeRefs)(r,e=>{a&&e&&h(e)})})},e)})})}),ec=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,...n}=e,a=z("FocusGroup",i);return(0,t.jsx)(B.Provider,{scope:i,children:(0,t.jsx)(B.Slot,{scope:i,children:(0,t.jsx)(x.Primitive.div,{dir:a.dir,...n,ref:r})})})}),ed=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],em=i.forwardRef((e,r)=>{let{__scopeNavigationMenu:i,...n}=e,a=R(i),s=z("FocusGroupItem",i);return(0,t.jsx)(B.ItemSlot,{scope:i,children:(0,t.jsx)(x.Primitive.button,{...n,ref:r,onKeyDown:(0,f.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...ed].includes(e.key)){let t=a().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),ed.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>ep(t)),e.preventDefault()}})})})});function eh(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ep(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ef(e,t){let r=(0,E.useCallbackRef)(t);(0,C.useLayoutEffect)(()=>{let t=0;if(e){let i=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(t),i.unobserve(e)}}},[e,r])}function ex(e){return e?"open":"closed"}function eg(e,t){return`${e}-trigger-${t}`}function ev(e,t){return`${e}-content-${t}`}function eD(e){return t=>
9"mouse"===t.pointerType?e(t):void 0}var eb=e.i(294237),ew=e.i(152378),ey=e.i(526683);let eF=i.forwardRef((e,i)=>{let n,a,s,o,l,u,c,d=(0,r.c)(16);d[0]!==e?({className:a,children:n,viewport:o,...s}=e,d[0]=e,d[1]=n,d[2]=a,d[3]=s,d[4]=o):(n=d[1],a=d[2],s=d[3],o=d[4]);let m=void 0===o||o;return d[5]!==a?(l=(0,ey.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",a),d[5]=a,d[6]=l):l=d[6],d[7]!==m?(u=m&&(0,t.jsx)(e_,{}),d[7]=m,d[8]=u):u=d[8],d[9]!==n||d[10]!==s||d[11]!==i||d[12]!==l||d[13]!==u||d[14]!==m?(c=(0,t.jsxs)(O,{ref:i,"data-slot":"navigation-menu","data-viewport":m,role:"navigation",className:l,...s,children:[n,u]}),d[9]=n,d[10]=s,d[11]=i,d[12]=l,d[13]=u,d[14]=m,d[15]=c):c=d[15],c});function ej(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ey.cn)("group flex flex-1 list-none items-center justify-center gap-1",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(q,{"data-slot":"navigation-menu-list",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}function eC(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ey.cn)("relative",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(Y,{"data-slot":"navigation-menu-item",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}eF.displayName=O.displayName;let eE=(0,eb.cva)("group inline-flex h-8 w-max items-center justify-center rounded-md px-4 py-1 text-sm text-muted-foreground font-medium hover:bg-foreground
9/5 hover:text-foreground focus:bg-foreground/5 focus:text-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-foreground/5 data-[state=open]:text-foreground data-[state=open]:focus:bg-foreground/5 data-[state=open]:bg-foreground/5 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function eN(e){let i,n,a,s,o,l,u=(0,r.c)(11);return u[0]!==e?({className:n,children:i,...a}=e,u[0]=e,u[1]=i,u[2]=n,u[3]=a):(i=u[1],n=u[2],a=u[3]),u[4]!==n?(s=(0,ey.cn)(eE(),"group",n),u[4]=n,u[5]=s):s=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(ew.ChevronDownIcon,{className:"relative top-[1px] ml-1.5 size-3 opacity-75 transition duration-300 group-data-[state=open]:translate-y-px","aria-hidden":"true",strokeWidth:2.5}),u[6]=o):o=u[6],u[7]!==i||u[8]!==a||u[9]!==s?(l=(0,t.jsxs)(J,{"data-slot":"navigation-menu-trigger",className:s,...a,children:[i," ",o]}),u[7]=i,u[8]=a,u[9]=s,u[10]=l):l=u[10],l}function eA(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ey.cn)("left-0 top-0 w-full p-2 pr-2.5 md:absolute md:w-auto","data-[motion=from-end]:animate-enter-from-right data-[motion=from-start]:animate-enter-from-left data-[motion=to-end]:animate-exit-to-right data-[motion=to-start]:animate-exit-to-left","group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:rounded-(--radius) group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:-translate-x-1/3 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:border-transparent group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-200",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(ei,{"data-slot":"navigation-menu-content",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}function e_(e){let i,n,a,s,o,l=(0,r.c)(9);return l[0]!==e?({className:i,...n}=e,l[0]=e,l[1]=i,l[2]=n):(i=l[1],n=l[2]),l[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,ey.cn)("px-(--viewport-outer-px) fixed inset-x-0 top-12 isolate z-50 mx-auto flex max-w-6xl"),l[3]=a):a=l[3],l[4]!==i?(s=(0,ey.cn)("bg-popover text-popover-foreground h-(--radix-navigation-menu-viewport-height) ring-foreground/10 rounded-(--radius) md:w-(--radix-navigation-menu-viewport-width) relative mt-1.5 w-full origin-top overflow-hidden border border-transparent p-0.5 shadow-xl shadow-black/10 ring-1 transition-[width,height] duration-200","data-[state=closed]:animate-scale-out data-[state=open]:animate-scale-in",i),l[4]=i,l[5]=s):s=l[5],l[6]!==n||l[7]!==s?(o=(0,t.jsx)("div",{className:a,children:(0,t.jsx)(el,{"data-slot":"navigation-menu-viewport",className:s,...n})}),l[6]=n,l[7]=s,l[8]=o):o=l[8],o}function ek(e){let i,n,a,s,o=(0,r.c)(8);return o[0]!==e?({className:i,...n}=e,o[0]=e,o[1]=i,o[2]=n):(i=o[1],n=o[2]),o[3]!==i?(a=(0,ey.cn)("data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 data-[active=true]:text-foreground hover:bg-muted hover:text-foreground focus:bg-muted focus:text-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-md p-2 text-sm outline-none transition-all focus-visible:outline-1 focus-visible:ring-[3px] [&_svg:not([class*='size-'])]:size-4",i),o[3]=i,o[4]=a):a=o[4],o[5]!==n||o[6]!==a?(s=(0,t.jsx)(Z,{"data-slot":"navigation-menu-link",className:a,...n}),o[5]=n,o[6]=a,o[7]=s):s=o[7],s}var eS=e.i(960568),eB=e.i(247835);function eR(e){let n,a,s,o=(0,r.c)(4),[l,u]=(0,i.useState)(!1);return(o[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{u(!0)},a=[],o[0]=n,o[1]=a):(n=o[0],a=o[1]),(0,i.useEffect)(n,a),l)?(o[2]!==e?(s=(0,t.jsx)(eN,{...e}),o[2]=e,o[3]=s):s=o[3],s):null}function eT({header:e}){let h=(0,eB.useTranslations)("common.accessibility"),{setIsShowLeaderboardModal:p}=(0,eS.useAppContext)(),[f,x]=(0,i.useState)(!1),[g,v]=(0,i.useState)(!1),D=(0,i.useRef)(!1),b=(0,i.useRef)(null),w=function(e){let t,n,a=(0,r.c)(3),[s,o]=(0,i.useState)(!0);return a[0]!==e?(t=()=>{let t=window.matchMedia(e);o(t.matches);let r=()=>o(t.matches);return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},n=[e],a[0]=e,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,i.useEffect)(t,n),s}("(min-width: 64rem)"),y=(0,s.usePathname)();function F({title:e,description:r,children:i,href:n,target:a,...o}){return(0,t.jsx)("li",{...o,children:(0,t.jsx)(ek,{asChild:!0,children:(0,t.jsxs)(s.Link,{href:n,target:a||"_self",className:"grid grid-cols-[auto_1fr] gap-3.5",children:[(0,t.jsx)("div",{className:"bg-background ring-foreground
9/10 relative flex size-9 items-center justify-center rounded border border-transparent shadow-sm ring-1",children:i}),(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsx)("div",{className:"text-foreground text-sm font-medium",children:e}),(0,t.jsx)("p",{className:"text-muted-foreground line-clamp-1 text-xs",children:r})]})]})})})}return(0,i.useEffect)(()=>{let e=()=>{null==b.current&&(b.current=window.requestAnimationFrame(()=>{b.current=null;let e=window.scrollY>50;e!==D.current&&(D.current=e,v(e))}))};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),null!=b.current&&(window.cancelAnimationFrame(b.current),b.current=null)}},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("header",{"data-state":f?"active":"inactive",...g&&{"data-scrolled":!0},className:"has-data-[state=open]:bg-background/50 fixed inset-x-0 top-0 z-50 has-data-[state=open]:h-screen has-data-[state=open]:backdrop-blur",children:(0,t.jsx)("div",{className:(0,ey.cn)("absolute inset-x-0 top-0 z-50 h-18 border-transparent ring-1 ring-transparent transition-all duration-300","in-data-scrolled:border-foreground
9/5 in-data-scrolled:bg-background/75 in-data-scrolled:border-b in-data-scrolled:backdrop-blur","has-data-[state=open]:ring-foreground/5 has-data-[state=open]:bg-card/75 has-data-[state=open]:h-[calc(var(--navigation-menu-viewport-height)+3.4rem)] has-data-[state=open]:border-b has-data-[state=open]:shadow-lg has-data-[state=open]:shadow-black/10 has-data-[state=open]:backdrop-blur","max-lg:in-data-[state=active]:bg-background/75 max-lg:h-14 max-lg:overflow-hidden max-lg:border-b max-lg:in-data-[state=active]:h-screen max-lg:in-data-[state=active]:backdrop-blur"),children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between lg:py-5",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-8 max-lg:h-14 max-lg:w-full max-lg:border-b",children:[e.brand&&(0,t.jsx)(o.BrandLogo,{brand:e.brand}),w&&(0,t.jsx)(()=>(0,t.jsx)(eF,{viewport:!1,className:"**:data-[slot=navigation-menu-content]:top-10 max-lg:hidden",children:(0,t.jsx)(ej,{className:"gap-2",children:e.nav?.items?.map((e,r)=>{if(!e.children||0===e.children.length){let i="/leaderboard"===e.url;return(0,t.jsx)(ek,{asChild:!0,children:(0,t.jsxs)(s.Link,{href:i?"#":e.url||"",onClick:e=>{i&&(e.preventDefault(),p(!0))},target:e.target||"_self",className:`flex flex-row items-center gap-2 px-4 py-1.5 text-sm ${e.is_active||y.endsWith(e.url)?"bg-muted/40 text-muted-foreground":""}`,children:[e.icon&&(0,t.jsx)(c.SmartIcon,{name:e.icon}),e.title]})},r)}return(0,t.jsxs)(eC,{children:[(0,t.jsxs)(eR,{className:"flex flex-row items-center gap-2 text-sm",children:[e.icon&&(0,t.jsx)(c.SmartIcon,{name:e.icon,className:"h-4 w-4"}),e.title]}),(0,t.jsx)(eA,{className:"min-w-2xs origin-top p-0.5",children:(0,t.jsx)("div",{className:"border-foreground
9/5 bg-card ring-foreground/5 rounded-[calc(var(--radius)-2px)] border border-transparent p-2 shadow ring-1",children:(0,t.jsx)("ul",{className:"mt-1 space-y-2",children:e.children?.map((e,r)=>(0,t.jsx)(F,{href:e.url||"",target:e.target||"_self",title:e.title||"",description:e.description||"",children:e.icon&&(0,t.jsx)(c.SmartIcon,{name:e.icon})},r))})})})]},r)})})}),{}),(0,t.jsxs)("button",{onClick:()=>x(!f),"aria-label":h(!0==f?"close_menu":"open_menu"),className:"relative z-20 -m-2.5 -mr-3 block cursor-pointer p-2.5 lg:hidden",children:[(0,t.jsx)(n.default,{className:"m-auto size-5 duration-200 in-data-[state=active]:scale-0 in-data-[state=active]:rotate-180 in-data-[state=active]:opacity-0"}),(0,t.jsx)(a.X,{className:"absolute inset-0 m-auto size-5 scale-0 -rotate-180 opacity-0 duration-200 in-data-[state=active]:scale-100 in-data-[state=active]:rotate-0 in-data-[state=active]:opacity-100"})]})]}),!w&&f&&(0,t.jsx)(({closeMenu:r})=>(0,t.jsx)("nav",{role:"navigation",className:"w-full [--color-border:--alpha(var(--color-foreground)/5%)] [--color-muted:--alpha(var(--color-foreground)/5%)]",children:(0,t.jsx)(m.Accordion,{type:"single",collapsible:!0,className:"-mx-4 mt-0.5 space-y-0.5 **:hover:no-underline",children:e.nav?.items?.map((e,i)=>(0,t.jsx)(m.AccordionItem,{value:e.title||"",className:"group relative border-b-0 before:pointer-events-none before:absolute before:inset-x-4 before:bottom-0 before:border-b",children:e.children&&e.children.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.AccordionTrigger,{className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title}),(0,t.jsx)(m.AccordionContent,{className:"pb-5",children:(0,t.jsx)("ul",{children:e.children?.map((e,i)=>(0,t.jsx)("li",{children:(0,t.jsxs)(s.Link,{href:e.url||"",onClick:r,className:"grid grid-cols-[auto_1fr] items-center gap-2.5 px-4 py-2",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"flex items-center justify-center *:size-4",children:e.icon&&(0,t.jsx)(c.SmartIcon,{name:e.icon})}),(0,t.jsx)("div",{className:"text-base",children:e.title})]})},i))})})]}):(0,t.jsx)(s.Link,{href:"/leaderboard"===e.url?"#":e.url||"",onClick:t=>{"/leaderboard"===e.url&&(t.preventDefault(),p(!0)),r()},className:"data-[state=open]:bg-muted flex items-center justify-between px-4 py-3 text-lg **:!font-normal",children:e.title})},i))})}),{closeMenu:()=>x(!1)}),(0,t.jsx)("div",{className:"mb-6 hidden w-full flex-wrap items-center justify-end space-y-8 in-data-[state=active]:flex max-lg:in-data-[state=active]:mt-6 md:flex-nowrap lg:m-0 lg:flex lg:w-fit lg:gap-6 lg:space-y-0 lg:border-transparent lg:bg-transparent lg:p-0 lg:shadow-none dark:shadow-none dark:lg:bg-transparent",children:(0,t.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 sm:flex-row sm:gap-6 sm:space-y-0 md:w-fit",children:[e.buttons&&e.buttons.map((e,r)=>(0,t.jsxs)(s.Link,{href:e.url||"",target:e.target||"_self",className:(0,ey.cn)("focus-visible:ring-ring inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50","h-7 px-3 ring-0","outline"===e.variant?"bg-background border-primary ring-foreground/10 hover:bg-muted/50 dark:ring-foreground/15 dark:hover:bg-muted/50 border border-transparent shadow-sm ring-1 shadow-black/15 duration-200":"bg-primary text-primary-foreground hover:bg-primary/90 border-[0.5px] border-white/25 shadow-md ring-1 shadow-black/20 ring-(--ring-color) [--ring-color:color-mix(in_oklab,var(--color-foreground)15%,var(--color-primary))]"),children:[e.icon&&(0,t.jsx)(c.SmartIcon,{name:e.icon,className:"size-4"}),(0,t.jsx)("span",{children:e.title})]},r)),e.show_theme?(0,t.jsx)(d.ThemeToggler,{}):null,e.show_locale?(0,t.jsx)(l.LocaleSelector,{}):null,(0,t.jsx)("div",{className:"flex-1 md:hidden"}),e.show_sign?(0,t.jsx)(u.SignUser,{userNav:e.user_nav}):null]})})]})})})})})}e.s(["Header",()=>eT],654243)},275031,e=>{"use strict";var t=e.i(536355),r=e.i(884702),i=e.i(788250);let n="waitlist_ref";function a(){let e,i=(0,t.c)(1);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],i[0]=e):e=i[0],(0,r.useEffect)(s,e),null}function s(){if((0,i.getCookie)(n))return;let e=new URLSearchParams(window.location.search).get("ref");if(!e)return;let t=e.replace(/[^\w]/g,"").slice(0,20);t&&((0,i.setCookie)(n,t,30),console.log("Referral code captured:",t))}e.s(["WaitlistReferralCapture",()=>
9a])},721590,e=>{e.v(t=>Promise.all(["static/chunks/cf7dfe7688c3b7f3.js","static/chunks/16c1881eadc302f1.js"].map(t=>e.l(t))).then(()=>t(617299)))},639058,e=>{e.v(e=>Promise.resolve().then(()=>e(389125)))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.