@sakaniui/react 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./TopBar-BgW6DlPo.cjs"),n=require("./help-circle-BKFYrUSW.cjs"),r=require("./current-location-D6hMSldS.cjs");let i=require("react");i=e.t(i,1);let a=require("react/jsx-runtime"),o=require("recharts"),s=require("react-dom");var c={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},l=({message:e,linkLabel:r,linkHref:i,onLinkClick:o,onDismiss:s,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,a.jsxs)(`div`,{className:[c.announcement,c[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:c.content,children:[(0,a.jsx)(`span`,{className:c.icon,"aria-hidden":`true`,children:d?(0,a.jsx)(n.G,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,a.jsx)(n.K,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:c.icon__neutral})}),(0,a.jsx)(`p`,{className:c.message,children:e}),!d&&r&&(0,a.jsx)(t.Nt,{href:i,onClick:o,className:c.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:r})]}),s&&(0,a.jsx)(t.Rt,{icon:n.W,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:s})]})},u={snippet:`_snippet_44b2o_1`,header:`_header_44b2o_12`,filename:`_filename_44b2o_19`,body:`_body_44b2o_31`,tokenKeyword:`_tokenKeyword_44b2o_42`,tokenString:`_tokenString_44b2o_43`,editableBody:`_editableBody_44b2o_50`,textarea:`_textarea_44b2o_55`},d=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],f=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${d.join(`|`)})\\b)`,`g`),p=e=>e.split(f).map((e,t)=>{if(!e)return null;let n=/^['"`]/.test(e),r=!n&&d.includes(e);return n?(0,a.jsx)(`span`,{className:u.tokenString,children:e},t):r?(0,a.jsx)(`span`,{className:u.tokenKeyword,children:e},t):(0,a.jsx)(i.default.Fragment,{children:e},t)}),m=({code:e,filename:r,onCopy:o,editable:s=!1,onChange:c,placeholder:l,className:d})=>{let[f,m]=i.default.useState(!1),[h,g]=i.default.useState(e);i.default.useEffect(()=>g(e),[e]);let _=()=>{navigator.clipboard?.writeText(h),o?.(h),m(!0),window.setTimeout(()=>m(!1),1500)},v=e=>{g(e),c?.(e)},y=s?(0,a.jsxs)(`div`,{className:u.editableBody,children:[(0,a.jsx)(`pre`,{className:u.body,"aria-hidden":`true`,children:p(h)}),(0,a.jsx)(`textarea`,{className:u.textarea,value:h,placeholder:l,spellCheck:!1,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${h.slice(0,n)} ${h.slice(r)}`;v(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,a.jsx)(`pre`,{className:u.body,children:p(h)});return r?(0,a.jsxs)(`div`,{className:[u.snippet,d??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:u.header,children:[(0,a.jsx)(`p`,{className:u.filename,children:r}),(0,a.jsx)(t.Rt,{icon:f?n.R:n.X,variant:`ghost`,size:`sm`,"aria-label":f?`Copied`:`Copy code`,onClick:_})]}),y]}):(0,a.jsx)(`div`,{className:[u.snippet,d??``].filter(Boolean).join(` `),children:y})},h={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},g=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),_=({categories:e,variant:n=`default`,formatAmount:r=g,className:i})=>{let o=n===`compact`,s=Math.max(1,...e.map(e=>e.amount));return(0,a.jsx)(`div`,{className:[h.expenses,i??``].filter(Boolean).join(` `),children:e.map((e,n)=>(0,a.jsxs)(`div`,{className:h.row,children:[(0,a.jsxs)(`div`,{className:h.top,children:[(0,a.jsxs)(`div`,{className:h.left,children:[(0,a.jsx)(`span`,{className:h.icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`p`,{className:h.label,children:e.label})]}),(0,a.jsx)(`p`,{className:h.amount,children:r(e.amount)})]}),!o&&(0,a.jsx)(t.Ot,{value:e.amount/s*100,size:`lg`,label:`${e.label} spending`})]},e.id??n))})},v={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},y=14,b=({message:e,variant:i=`neutral`,className:o})=>{let s=i===`warning`?n.G:r.s;return(0,a.jsxs)(`div`,{className:[v.hint,v[`hint--${i}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:v.bar,"aria-hidden":`true`}),(0,a.jsx)(s,{size:y,strokeWidth:t.Ht(y),className:v.icon}),(0,a.jsx)(`p`,{className:v.message,children:e})]})},x={item:`_item_jnz6o_1`,"item--horizontal":`_item--horizontal_jnz6o_6`,"item--vertical":`_item--vertical_jnz6o_11`,"text--single":`_text--single_jnz6o_18`,text:`_text_jnz6o_18`,value:`_value_jnz6o_28`,topRow:`_topRow_jnz6o_43`,connectorHorizontal:`_connectorHorizontal_jnz6o_48`,rail:`_rail_jnz6o_56`,connectorVertical:`_connectorVertical_jnz6o_63`,title:`_title_jnz6o_77`,description:`_description_jnz6o_85`},S=({step:e,title:r,description:i,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,a.jsx)(`span`,{className:x.value,"aria-hidden":`true`,children:o?(0,a.jsx)(n.R,{size:14,strokeWidth:t.Ht(14)}):e}),f=(0,a.jsxs)(`div`,{className:[x.text,i?``:x[`text--single`]].filter(Boolean).join(` `),children:[(0,a.jsx)(`p`,{className:x.title,children:r}),i&&(0,a.jsx)(`p`,{className:x.description,children:i})]});return u?(0,a.jsxs)(`div`,{className:[x.item,x[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.rail,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorVertical})]}),f]}):(0,a.jsxs)(`div`,{className:[x.item,x[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.topRow,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorHorizontal})]}),f]})},C={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},w=({children:e,label:n,className:r})=>(0,a.jsxs)(`div`,{className:[C.separator,r??``].filter(Boolean).join(` `),role:`separator`,children:[(0,a.jsx)(t.xt,{className:C.line}),e??(n&&(0,a.jsx)(`span`,{className:C.overline,children:n})),(0,a.jsx)(t.xt,{className:C.line})]}),T={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},E=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),D=({logo:e,symbol:i,name:o,price:s,change:c,formatAmount:l=E,chart:u,periodLabel:d=`Last 6 months`,onPeriodClick:f,className:p})=>{let m=c.amount>=0,h=m?n.B:n.z,g=m?`+`:`-`,_=`${g}${l(c.amount)} (${g}${Math.abs(c.percent)}%)`,v=m?T.trendUp:T.trendDown;return u?(0,a.jsxs)(`div`,{className:[T.card,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.header,children:[(0,a.jsx)(r.o,{size:16,strokeWidth:t.Ht(16),className:T.headerIcon}),(0,a.jsx)(`span`,{className:T.headerLabel,children:`Stock market`})]}),(0,a.jsxs)(`div`,{className:T.tickerRow,children:[(0,a.jsx)(`span`,{className:T.logoLg,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.body,children:[(0,a.jsxs)(`div`,{className:T.priceRow,children:[(0,a.jsxs)(`div`,{className:T.priceGroup,children:[(0,a.jsx)(`p`,{className:T.priceLg,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRowLg,children:[(0,a.jsx)(h,{size:24,strokeWidth:t.Ht(24),className:v}),(0,a.jsx)(`span`,{className:[T.changeTextLg,v].join(` `),children:_})]})]}),(0,a.jsx)(t.Mt,{variant:`outline`,size:`sm`,rightIcon:(0,a.jsx)(n.I,{size:16,strokeWidth:t.Ht(16)}),onClick:f,children:d})]}),(0,a.jsx)(t.pt,{data:u,className:T.chart})]})]}):(0,a.jsxs)(`div`,{className:[T.row,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.left,children:[(0,a.jsx)(`span`,{className:T.logo,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.right,children:[(0,a.jsx)(`p`,{className:T.price,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRow,children:[(0,a.jsx)(h,{size:20,strokeWidth:t.Ht(20),className:v}),(0,a.jsx)(`span`,{className:[T.changeText,v].join(` `),children:_})]})]})]})},O={tags:`_tags_13ws8_1`,remove:`_remove_13ws8_8`,tag:`_tag_13ws8_1`,"tag--leaving":`_tag--leaving_13ws8_22`},k=160,A=({tags:e,onRemove:r,className:o})=>{let[s,c]=i.default.useState(null),l=i.default.useRef(void 0);i.default.useEffect(()=>()=>window.clearTimeout(l.current),[]);let u=(e,t)=>{if(!(!r||s)){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){r(e,t);return}c(e),l.current=window.setTimeout(()=>{r(e,t),c(null)},k)}};return(0,a.jsx)(`div`,{className:[O.tags,o??``].filter(Boolean).join(` `),children:e.map((e,i)=>(0,a.jsx)(t.ft,{className:[O.tag,s===e?O[`tag--leaving`]:``].filter(Boolean).join(` `),rightIcon:r&&(0,a.jsx)(`button`,{type:`button`,className:O.remove,onClick:()=>u(e,i),"aria-label":`Remove ${e}`,children:(0,a.jsx)(n.W,{size:12,strokeWidth:t.Ht(12)})}),children:e},e))})},j={ticker:`_ticker_v1g9v_1`,track:`_track_v1g9v_9`,"ticker-scroll":`_ticker-scroll_v1g9v_1`,row:`_row_v1g9v_26`,item:`_item_v1g9v_35`,symbol:`_symbol_v1g9v_42`,change:`_change_v1g9v_51`,trendUp:`_trendUp_v1g9v_59`,trendDown:`_trendDown_v1g9v_60`,fadeLeft:`_fadeLeft_v1g9v_62`,fadeRight:`_fadeRight_v1g9v_63`},M=e=>`${e>=0?`+`:``}${e}%`,N=({items:e,formatChange:r,ariaHidden:i})=>(0,a.jsx)(`div`,{className:j.row,"aria-hidden":i,children:e.map((e,i)=>{let o=e.changePercent>=0,s=o?n.B:n.z,c=o?j.trendUp:j.trendDown;return(0,a.jsxs)(`div`,{className:j.item,children:[(0,a.jsx)(`span`,{className:j.symbol,children:e.symbol}),(0,a.jsx)(s,{size:14,strokeWidth:t.Ht(14),className:c}),(0,a.jsx)(`span`,{className:[j.change,c].join(` `),children:r(e.changePercent)})]},`${e.symbol}-${i}`)})}),ee=({items:e,speed:t=40,formatChange:n=M,className:r})=>{let o=i.default.useRef(null),[s,c]=i.default.useState(20);return i.default.useEffect(()=>{let e=o.current;if(!e)return;let n=e.firstElementChild;if(!n)return;let r=()=>{let e=n.scrollWidth;e>0&&c(e/t)};r();let i=new ResizeObserver(r);return i.observe(n),()=>i.disconnect()},[e,t]),(0,a.jsxs)(`div`,{className:[j.ticker,r??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{ref:o,className:j.track,style:{"--ticker-duration":`${s}s`},children:[(0,a.jsx)(N,{items:e,formatChange:n}),(0,a.jsx)(N,{items:e,formatChange:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:j.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:j.fadeRight,"aria-hidden":`true`})]})},P={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},te=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,ne=({transactions:e,formatAmount:n=te,emptyTitle:i=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>e.length===0?(0,a.jsxs)(`div`,{className:[P.empty,s??``].filter(Boolean).join(` `),children:[(0,a.jsx)(r.a,{size:24,strokeWidth:t.Ht(24),className:P.emptyIcon}),(0,a.jsx)(`p`,{className:P.emptyTitle,children:i}),(0,a.jsx)(`p`,{className:P.emptyDesc,children:o})]}):(0,a.jsx)(`div`,{className:[P.list,s??``].filter(Boolean).join(` `),children:e.map((t,r)=>{let i=t.amount>=0;return(0,a.jsxs)(`div`,{className:[P.row,r===e.length-1?P.rowLast:``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:P.left,children:[(0,a.jsx)(`span`,{className:P.iconWrap,"aria-hidden":`true`,children:t.icon}),(0,a.jsxs)(`div`,{className:P.info,children:[(0,a.jsx)(`p`,{className:P.name,children:t.name}),(0,a.jsx)(`p`,{className:P.category,children:t.category})]})]}),(0,a.jsx)(`p`,{className:[P.amount,i?P.amountUp:P.amountDown].join(` `),children:n(t.amount)})]},t.id??`${t.name}-${r}`)})}),F={ring:`_ring_1yqts_4`,"ring-spin":`_ring-spin_1yqts_1`},re=({size:e=14,className:t})=>(0,a.jsx)(`span`,{className:[F.ring,t??``].filter(Boolean).join(` `),style:{"--ring-size":`${e}px`},"aria-hidden":`true`}),I={chip:`_chip_utbea_3`,"chip--error":`_chip--error_utbea_16`,"chip-in":`_chip-in_utbea_1`,row:`_row_utbea_22`,preview:`_preview_utbea_23`,"chip--image":`_chip--image_utbea_28`,text:`_text_utbea_31`,name:`_name_utbea_32`,meta:`_meta_utbea_33`,remove:`_remove_utbea_38`,track:`_track_utbea_49`,fill:`_fill_utbea_50`},ie=({type:e=`file`,name:i,meta:o,preview:s,progress:c=0,onRemove:l,className:u})=>{let d=Math.min(100,Math.max(0,c)),f=o??(e===`uploading`?`Uploading ${Math.round(d)}%`:e===`error`?`Upload failed. Try again`:``);return(0,a.jsxs)(`div`,{className:[I.chip,I[`chip--${e}`],u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:I.row,children:[(0,a.jsx)(`span`,{className:I.preview,"aria-hidden":`true`,style:e===`image`&&s?{backgroundImage:`url(${s})`}:void 0,children:e===`uploading`?(0,a.jsx)(re,{size:14}):e===`error`?(0,a.jsx)(n.G,{size:16,strokeWidth:t.Ht(16)}):e===`image`?s?null:(0,a.jsx)(r.i,{size:16,strokeWidth:t.Ht(16)}):(0,a.jsx)(n.F,{size:16,strokeWidth:t.Ht(16)})}),(0,a.jsxs)(`span`,{className:I.text,children:[(0,a.jsx)(`span`,{className:I.name,children:i}),f&&(0,a.jsx)(`span`,{className:I.meta,children:f})]}),l&&(0,a.jsx)(`button`,{type:`button`,className:I.remove,onClick:l,"aria-label":`Remove ${i}`,children:(0,a.jsx)(n.W,{size:16,strokeWidth:t.Ht(16)})})]}),e===`uploading`&&(0,a.jsx)(`div`,{className:I.track,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(d),"aria-label":`Uploading ${i}`,children:(0,a.jsx)(`div`,{className:I.fill,style:{width:`${d}%`}})})]})},L={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},ae=({quote:e,author:r,className:i})=>{let o=!!r;return(0,a.jsxs)(`div`,{className:[L.root,o?L.rootAttributed:L.rootSimple,i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.xt,{orientation:`vertical`,className:L.rail}),(0,a.jsxs)(`div`,{className:L.body,children:[o&&(0,a.jsx)(`span`,{className:L.markRow,"aria-hidden":`true`,children:(0,a.jsx)(n.k,{size:12,strokeWidth:t.Ht(12),className:L.mark,fill:`currentColor`})}),(0,a.jsx)(`p`,{className:o?L.quoteAttributed:L.quoteSimple,children:o?e:`"${e}"`}),o&&(0,a.jsx)(`span`,{className:[L.markRow,L.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(n.k,{size:12,strokeWidth:t.Ht(12),className:L.mark,fill:`currentColor`})}),r&&(0,a.jsxs)(`div`,{className:L.author,children:[(0,a.jsx)(t.It,{size:`sm`,src:r.avatarSrc,alt:r.avatarAlt??r.name}),(0,a.jsxs)(`p`,{className:L.authorText,children:[(0,a.jsx)(`span`,{className:L.authorName,children:r.name}),(0,a.jsxs)(`span`,{className:L.authorRole,children:[`, `,r.role]})]})]})]})]})},oe={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},se=({text:e,align:t=`left`,className:n})=>(0,a.jsxs)(`div`,{className:[oe.root,t===`top`?oe.rootTop:oe.rootLeft,n??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:t===`top`?oe.ruleTop:oe.ruleLeft,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:oe.text,children:e})]}),R={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},ce=({src:e,alt:t=``,size:n=`large`,caption:r,className:i})=>(0,a.jsxs)(`figure`,{className:[R.root,R[`root--${n}`],i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:R.imageWrap,children:(0,a.jsx)(`img`,{src:e,alt:t,className:R.image})}),r&&(0,a.jsx)(`figcaption`,{className:R.caption,children:r})]}),z={root:`_root_1seqp_1`,rootCenter:`_rootCenter_1seqp_10`,rootLeft:`_rootLeft_1seqp_15`,title:`_title_1seqp_20`,description:`_description_1seqp_30`,ctaRow:`_ctaRow_1seqp_39`,avatarBlock:`_avatarBlock_1seqp_45`,avatarsCaption:`_avatarsCaption_1seqp_57`},le=({title:e,description:n,badgeLabel:i,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,a.jsxs)(`div`,{className:[z.root,u===`left`?z.rootLeft:z.rootCenter,d??``].filter(Boolean).join(` `),children:[i&&(0,a.jsx)(t.ft,{variant:`accent`,emphasis:`subtle`,children:i}),(0,a.jsx)(`p`,{className:z.title,children:e}),n&&(0,a.jsx)(`p`,{className:z.description,children:n}),f&&(0,a.jsxs)(`div`,{className:z.ctaRow,children:[o&&(0,a.jsx)(t.Mt,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,a.jsx)(t.Mt,{variant:`secondary`,leftIcon:(0,a.jsx)(r.r,{size:16,strokeWidth:t.Ht(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,a.jsxs)(`div`,{className:z.avatarBlock,children:[(0,a.jsx)(t.Y,{size:`md`,avatars:c}),l&&(0,a.jsx)(`p`,{className:z.avatarsCaption,children:l})]})]})},B={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},ue=({items:e,style:r=`check`,className:i})=>(0,a.jsx)(`ul`,{className:[B.root,i??``].filter(Boolean).join(` `),children:e.map((e,i)=>(0,a.jsxs)(`li`,{className:B.item,children:[(0,a.jsxs)(`span`,{className:B.marker,"aria-hidden":`true`,children:[r===`check`&&(0,a.jsx)(n.R,{size:18,strokeWidth:t.Ht(18)}),r===`arrow`&&(0,a.jsx)(n.O,{size:16,strokeWidth:t.Ht(16)}),r===`bullet`&&(0,a.jsx)(`span`,{className:B.dot})]}),(0,a.jsx)(`span`,{className:B.label,children:e})]},i))}),de={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},fe=({items:e,gap:t,ariaHidden:n})=>(0,a.jsx)(`div`,{className:de.row,style:{gap:t,paddingRight:t},"aria-hidden":n,children:e.map((e,t)=>(0,a.jsx)(`div`,{className:de.item,children:e},t))}),pe=({items:e,speed:t=40,gap:n,className:r})=>{let o=i.default.useRef(null),s=i.default.useRef(0),c=i.default.useRef(0),l=i.default.useRef(!1);return i.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,n]),i.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let n,r=performance.now(),i=()=>{let a=performance.now(),o=(a-r)/1e3;r=a;let u=l.current?t*.2:t,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),n=setTimeout(i,16)};return n=setTimeout(i,16),()=>clearTimeout(n)},[t]),(0,a.jsxs)(`div`,{className:[de.marquee,r??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,a.jsxs)(`div`,{ref:o,className:de.track,children:[(0,a.jsx)(fe,{items:e,gap:n}),(0,a.jsx)(fe,{items:e,gap:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:de.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:de.fadeRight,"aria-hidden":`true`})]})},me={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},he=({value:e,label:r,trend:i,className:o})=>{let s=i!==void 0,c=s&&i>=0,l=c?n.B:n.z;return(0,a.jsxs)(`div`,{className:[me.root,o??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:me.numRow,children:[(0,a.jsx)(`p`,{className:me.value,children:e}),s&&(0,a.jsxs)(`span`,{className:[me.trend,c?me.trendUp:me.trendDown].join(` `),children:[(0,a.jsx)(l,{size:24,strokeWidth:t.Ht(24)}),Math.abs(i),`%`]})]}),(0,a.jsx)(`p`,{className:me.label,children:r})]})},V={root:`_root_ew7dg_1`,header:`_header_ew7dg_14`,label:`_label_ew7dg_22`,toggle:`_toggle_ew7dg_35`,fullWidth:`_fullWidth_ew7dg_49`,collapse:`_collapse_ew7dg_68`,collapseOpen:`_collapseOpen_ew7dg_75`,collapseInner:`_collapseInner_ew7dg_79`,navLinks:`_navLinks_ew7dg_92`,navLink:`_navLink_ew7dg_92`},ge=({label:e,links:r,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=i.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=i.default.useRef(null),[v,y]=i.default.useState(0);return i.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[r,o]),(0,a.jsxs)(`div`,{className:[V.root,d??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:V.header,children:[(0,a.jsx)(`p`,{className:V.label,children:e}),(0,a.jsx)(`button`,{type:`button`,className:V.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,a.jsx)(n.W,{size:16,strokeWidth:t.Ht(16)}):(0,a.jsx)(n.D,{size:16,strokeWidth:t.Ht(16)})})]}),(0,a.jsx)(`div`,{className:[V.collapse,h?V.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,a.jsxs)(`div`,{ref:_,className:V.collapseInner,children:[(0,a.jsx)(`nav`,{className:V.navLinks,"aria-label":e,children:r.map(e=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:V.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,a.jsx)(t.xt,{className:V.fullWidth}),(0,a.jsx)(t.Mt,{variant:`primary`,className:V.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},_e={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},ve={sm:14,md:16,lg:18},ye=({size:e=`md`,logo:n,label:r,className:o})=>{let s=ve[e],c=i.default.isValidElement(n)?i.default.cloneElement(n,{size:s,strokeWidth:t.Ht(s)}):n??(0,a.jsx)(`span`,{className:_e.defaultMark,style:{width:s,height:s},children:(0,a.jsx)(t.K,{size:s})});return(0,a.jsx)(`span`,{className:[_e.root,_e[`root--${e}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":r??`Logo placeholder`,children:c})},H={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},be=({name:e,role:n,avatarSrc:r,avatarAlt:i,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,a.jsxs)(`div`,{className:[H.root,l?H.rootDetailed:H.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.It,{size:`xl`,src:r,alt:i??e}),(0,a.jsxs)(`div`,{className:l?H.infoDetailed:H.infoCompact,children:[(0,a.jsx)(`p`,{className:H.name,children:e}),(0,a.jsx)(`p`,{className:H.role,children:n})]}),l&&o&&(0,a.jsx)(`p`,{className:H.bio,children:o}),l&&s.length>0&&(0,a.jsx)(`div`,{className:H.social,children:s.map((e,t)=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:H.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},xe=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,fill:`currentColor`,d:`M9.48933 6.77467L15.318 0H13.9367L8.876 5.88267L4.834 0H0.172L6.284 8.89533L0.172 16H1.55333L6.89733 9.788L11.166 16H15.828L9.48933 6.77467ZM7.598 8.974L6.97867 8.088L2.05067 1.04H4.172L8.14867 6.728L8.768 7.614L13.9373 15.0073H11.816L7.598 8.974Z`})}),Se=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fill:`currentColor`,stroke:`currentColor`,strokeWidth:`0.5`,d:`M5.2627 14.9109C5.24063 14.9019 5.21825 14.8937 5.19629 14.8845C5.21828 14.8846 5.2404 14.8849 5.2627 14.8845C5.26277 14.8934 5.26262 14.9022 5.2627 14.9109ZM8 0.948C12.0038 0.948 15.25 4.19421 15.25 8.198C15.25 11.2321 13.382 13.8337 10.7119 14.9041C10.7126 14.8154 10.7132 14.7175 10.7139 14.6111C10.7164 14.2289 10.7197 13.7443 10.7197 13.2068C10.7197 12.8702 10.6752 12.5602 10.5967 12.282C11.2251 12.1236 11.8603 11.8618 12.4033 11.407C13.3035 10.6531 13.8291 9.48051 13.8291 7.78003C13.8291 6.87672 13.5529 6.10004 13.0859 5.46265C13.1914 4.97309 13.2464 4.1873 12.8779 3.24292L12.748 2.91089L12.4082 2.80152L12.1885 3.48902C12.4086 2.8019 12.407 2.80174 12.4062 2.80152L12.4053 2.80054L12.3965 2.79761C12.3923 2.79634 12.3874 2.79501 12.3828 2.7937C12.3738 2.79113 12.364 2.78851 12.3535 2.78589C12.3324 2.78061 12.3081 2.77611 12.2812 2.77124C12.2271 2.76146 12.1615 2.75326 12.085 2.74976C11.9315 2.74276 11.7366 2.75416 11.499 2.80445C11.0816 2.8928 10.5376 3.09872 9.85352 3.52808C9.24662 3.38844 8.61824 3.31986 7.99414 3.31616H7.98535C7.36044 3.31984 6.73069 3.3881 6.12305 3.52808C5.43488 3.09865 4.88896 2.89272 4.4707 2.80445C4.23272 2.75425 4.03733 2.74275 3.88379 2.74976C3.80726 2.75325 3.74164 2.76049 3.6875 2.77027C3.66056 2.77514 3.63643 2.78059 3.61523 2.78589C3.60476 2.78851 3.59499 2.79113 3.58594 2.7937C3.58136 2.79501 3.57647 2.79634 3.57227 2.79761L3.56348 2.80054L3.56152 2.80152C3.56163 2.80419 3.57406 2.84531 3.78906 3.51636L3.56055 2.80152L3.2207 2.91089L3.09082 3.24292C2.72472 4.18117 2.77327 4.9675 2.88574 5.46851C2.41945 6.10504 2.14648 6.88031 2.14648 7.78003C2.14649 8.97574 2.40791 9.91025 2.87598 10.6228C2.76692 10.5961 2.65215 10.5747 2.53027 10.5662L2.50879 10.5642H2.46289C2.45155 10.5643 2.43701 10.5646 2.41992 10.5652C2.3862 10.5664 2.33899 10.569 2.28516 10.575C2.20712 10.5835 2.00131 10.6093 1.80762 10.7195C1.70282 10.7791 1.53342 10.9016 1.43457 11.1267C1.42275 11.1537 1.41196 11.181 1.40332 11.2078C0.984401 10.291 0.75 9.27198 0.75 8.198C0.75 4.19409 3.99434 0.948 8 0.948ZM4.51855 11.9919C4.75868 12.0994 5.00485 12.1834 5.25098 12.2517C5.17809 12.2603 5.10423 12.266 5.03125 12.2595C4.87853 12.2459 4.69843 12.1922 4.51855 11.9919Z`})}),Ce={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},we=({children:e,level:t=`h2`,className:n})=>(0,a.jsx)(t,{className:[Ce.heading,Ce[t],n??``].filter(Boolean).join(` `),children:e}),Te={paragraph:`_paragraph_8pqdi_1`},Ee=({children:e,className:t})=>(0,a.jsx)(`p`,{className:[Te.paragraph,t??``].filter(Boolean).join(` `),children:e}),De={rootBordered:`_rootBordered_14u95_1`,rail:`_rail_14u95_12`,contentHorizontal:`_contentHorizontal_14u95_18`,contentVertical:`_contentVertical_14u95_26`,textHorizontal:`_textHorizontal_14u95_34`,textVertical:`_textVertical_14u95_44`,title:`_title_14u95_52`,description:`_description_14u95_60`},Oe=({icon:e,title:n,description:r,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,a.jsxs)(`div`,{className:l?De.contentVertical:De.contentHorizontal,children:[(0,a.jsx)(t.X,{icon:e,size:`sm`,variant:`light`}),(0,a.jsxs)(`div`,{className:l?De.textVertical:De.textHorizontal,children:[(0,a.jsx)(`p`,{className:De.title,children:n}),(0,a.jsx)(`p`,{className:De.description,children:r})]})]});return s?(0,a.jsxs)(`div`,{className:[De.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.xt,{orientation:`vertical`,className:De.rail}),u]}):i.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},ke=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M11.6667 4.33333H11.6733M4.66667 1.33333H11.3333C13.1743 1.33333 14.6667 2.82572 14.6667 4.66667V11.3333C14.6667 13.1743 13.1743 14.6667 11.3333 14.6667H4.66667C2.82572 14.6667 1.33333 13.1743 1.33333 11.3333V4.66667C1.33333 2.82572 2.82572 1.33333 4.66667 1.33333ZM10.6666 7.58004C10.7489 8.13487 10.6541 8.70152 10.3958 9.19938C10.1375 9.69725 9.72873 10.101 9.22772 10.3532C8.7267 10.6053 8.15893 10.6931 7.60516 10.604C7.05138 10.5149 6.53981 10.2534 6.14319 9.85681C5.74658 9.4602 5.48512 8.94862 5.39601 8.39485C5.3069 7.84107 5.39468 7.2733 5.64685 6.77229C5.89903 6.27127 6.30276 5.86253 6.80062 5.6042C7.29849 5.34587 7.86514 5.2511 8.41997 5.33337C8.98592 5.41729 9.50987 5.68101 9.91443 6.08558C10.319 6.49014 10.5827 7.01409 10.6666 7.58004Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Ae=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M12 1.33333H10C9.11594 1.33333 8.2681 1.68452 7.64298 2.30964C7.01786 2.93477 6.66667 3.78261 6.66667 4.66667V6.66667H4.66667V9.33333H6.66667V14.6667H9.33333V9.33333H11.3333L12 6.66667H9.33333V4.66667C9.33333 4.48986 9.40357 4.32029 9.5286 4.19526C9.65362 4.07024 9.82319 4 10 4H12V1.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),je=({size:e=16})=>(0,a.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:`M10.6667 5.33333C11.7275 5.33333 12.7449 5.75476 13.4951 6.50491C14.2452 7.25505 14.6667 8.27247 14.6667 9.33333V14H12V9.33333C12 8.97971 11.8595 8.64057 11.6095 8.39052C11.3594 8.14048 11.0203 8 10.6667 8C10.313 8 9.97391 8.14048 9.72386 8.39052C9.47381 8.64057 9.33333 8.97971 9.33333 9.33333V14H6.66667V9.33333C6.66667 8.27247 7.08809 7.25505 7.83824 6.50491C8.58838 5.75476 9.6058 5.33333 10.6667 5.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M4 6H1.33333V14H4V6Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M2.66667 4C3.40305 4 4 3.40305 4 2.66667C4 1.93029 3.40305 1.33333 2.66667 1.33333C1.93029 1.33333 1.33333 1.93029 1.33333 2.66667C1.33333 3.40305 1.93029 4 2.66667 4Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Me={chart:`_chart_qqaox_2`},Ne={sm:180,md:240,lg:320,xl:420},Pe=({data:e,variant:n=`default`,seriesLabels:r=[`Value`,`Value 2`],size:s=`md`,height:c,className:l})=>{let u=i.default.useRef(null),d=t.gt(u),f=d(`--color-chart-5`)??`#dca84f`,p=d(`--color-chart-2`)??`#5b92dd`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-muted`)??`#78716a`,g=e.some(e=>e.value2!==void 0),_=n===`step`?`step`:n===`linear`?`linear`:`monotone`,v=n===`stacked`?`stack`:void 0;return(0,a.jsx)(`div`,{ref:u,className:[Me.chart,l??``].filter(Boolean).join(` `),children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:c??Ne[s],children:(0,a.jsxs)(o.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,a.jsxs)(`defs`,{children:[(0,a.jsxs)(`linearGradient`,{id:`sakani-area-1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`5%`,stopColor:f,stopOpacity:.35}),(0,a.jsx)(`stop`,{offset:`95%`,stopColor:f,stopOpacity:.02})]}),(0,a.jsxs)(`linearGradient`,{id:`sakani-area-2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`5%`,stopColor:p,stopOpacity:.35}),(0,a.jsx)(`stop`,{offset:`95%`,stopColor:p,stopOpacity:.02})]})]}),(0,a.jsx)(o.CartesianGrid,{strokeDasharray:`3 3`,stroke:m,vertical:!1}),(0,a.jsx)(o.XAxis,{dataKey:`label`,stroke:h,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,a.jsx)(o.Tooltip,{cursor:{stroke:d(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,a.jsx)(t.mt,{}),wrapperStyle:{zIndex:50}}),g&&(0,a.jsx)(o.Area,{type:_,dataKey:`value2`,name:r[1]??`Value 2`,stackId:v,stroke:p,strokeWidth:2,fill:`url(#sakani-area-2)`,dot:!1,activeDot:{r:4,fill:p,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}}),(0,a.jsx)(o.Area,{type:_,dataKey:`value`,name:r[0]??`Value`,stackId:v,stroke:f,strokeWidth:2,fill:`url(#sakani-area-1)`,dot:!1,activeDot:{r:4,fill:f,stroke:d(`--color-bg-canvas`),strokeWidth:1.5}})]})})})},U={col:`_col_1a9o7_2`,col__header:`_col__header_1a9o7_11`,col__dot:`_col__dot_1a9o7_12`,col__title:`_col__title_1a9o7_13`,col__count:`_col__count_1a9o7_14`,col__spacer:`_col__spacer_1a9o7_15`,col__action:`_col__action_1a9o7_16`,col__body:`_col__body_1a9o7_26`,col__drop:`_col__drop_1a9o7_27`,col__add:`_col__add_1a9o7_33`},Fe=({state:e=`default`,title:r,count:i,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,a.jsxs)(`div`,{className:[U.col,u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:U.col__header,children:[(0,a.jsx)(`span`,{className:U.col__dot,style:{background:o},"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:U.col__title,children:r}),i!=null&&(0,a.jsx)(`span`,{className:U.col__count,children:i}),(0,a.jsx)(`span`,{className:U.col__spacer}),(0,a.jsx)(`button`,{type:`button`,className:U.col__action,onClick:c,"aria-label":`Add task`,children:(0,a.jsx)(n.N,{size:16,strokeWidth:t.Ht(16)})}),(0,a.jsx)(`button`,{type:`button`,className:U.col__action,onClick:l,"aria-label":`Column options`,children:(0,a.jsx)(n.E,{size:16,strokeWidth:t.Ht(16)})})]}),(0,a.jsx)(`div`,{className:U.col__body,children:e===`empty`?(0,a.jsx)(`div`,{className:U.col__drop,children:`Drop tasks here`}):s}),(0,a.jsxs)(`button`,{type:`button`,className:U.col__add,onClick:c,children:[(0,a.jsx)(n.N,{size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`}),`Add task`]})]}),W={calendar:`_calendar_c1fll_2`,header:`_header_c1fll_14`,header__label:`_header__label_c1fll_15`,navBtn:`_navBtn_c1fll_16`,weekdays:`_weekdays_c1fll_29`,weekday:`_weekday_c1fll_29`,grid:`_grid_c1fll_36`,day:`_day_c1fll_37`,"day--default":`_day--default_c1fll_52`,"day--hover":`_day--hover_c1fll_54`,"day--selected":`_day--selected_c1fll_55`,"day--today":`_day--today_c1fll_56`,"day--in-range":`_day--in-range_c1fll_57`,"day--outside":`_day--outside_c1fll_58`,"day--disabled":`_day--disabled_c1fll_59`,dropdowns:`_dropdowns_c1fll_62`,dropdown:`_dropdown_c1fll_62`},Ie=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Le=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Re=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),G=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),ze=({mode:e=`single`,value:r,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=i.default.useState(()=>{let e=u??r??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=i.default.useState({}),v=t.V(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),E=e=>d&&e<G(d)||f&&e>f,D=e=>{s===void 0&&_(e),c?.(e)},O=t=>{if(e===`single`){o?.(t);return}let{from:n,to:r}=y;D(!n||n&&r?{from:t,to:void 0}:t<n?{from:t,to:n}:{from:n,to:t})},k=t=>{if(E(t))return`disabled`;if(e===`single`){if(Re(t,r))return`selected`}else{let{from:e,to:n}=y;if(Re(t,e)||Re(t,n))return`selected`;if(e&&n&&t>e&&t<n)return`in-range`}return t.getMonth()===S?Re(t,b)?`today`:`default`:`outside`},A=d?d.getFullYear():x-10,j=f?f.getFullYear():x+10,M=Array.from({length:j-A+1},(e,t)=>A+t);return(0,a.jsxs)(`div`,{className:[W.calendar,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:W.header,children:[(0,a.jsx)(`button`,{type:`button`,className:W.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,a.jsx)(n.T,{size:16,strokeWidth:t.Ht(16)})}),l===`dropdowns`?(0,a.jsxs)(`span`,{className:W.dropdowns,children:[(0,a.jsx)(`select`,{className:W.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Le.map((e,t)=>(0,a.jsx)(`option`,{value:t,children:e},e))}),(0,a.jsx)(`select`,{className:W.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:M.map(e=>(0,a.jsx)(`option`,{value:e,children:e},e))})]}):(0,a.jsxs)(`span`,{className:W.header__label,children:[Le[S],` `,x]}),(0,a.jsx)(`button`,{type:`button`,className:W.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,a.jsx)(n.w,{size:16,strokeWidth:t.Ht(16)})})]}),(0,a.jsx)(`div`,{className:W.weekdays,children:Ie.map(e=>(0,a.jsx)(`span`,{className:W.weekday,children:e},e))}),(0,a.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:W.grid,children:[v.highlight,T.map((e,t)=>{let n=k(e);return(0,a.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[W.day,W[`day--${n}`]].filter(Boolean).join(` `),disabled:n===`disabled`,"aria-current":n===`today`?`date`:void 0,"aria-selected":n===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>O(e),children:e.getDate()},t)})]})]})},K={card:`_card_jj2s2_3`,"card--interactive":`_card--interactive_jj2s2_22`,card__header:`_card__header_jj2s2_32`,card__title:`_card__title_jj2s2_36`,card__description:`_card__description_jj2s2_45`,card__body:`_card__body_jj2s2_55`,card__actions:`_card__actions_jj2s2_59`,"card__actions--split":`_card__actions--split_jj2s2_68`,card__actionsGroup:`_card__actionsGroup_jj2s2_69`},Be=({title:e,description:t,actions:n,leadingAction:r,interactive:i,children:o,className:s})=>(0,a.jsxs)(`div`,{className:[K.card,i?K[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,a.jsxs)(`div`,{className:K.card__header,children:[e&&(0,a.jsx)(`h3`,{className:K.card__title,children:e}),t&&(0,a.jsx)(`p`,{className:K.card__description,children:t})]}),o&&(0,a.jsx)(`div`,{className:K.card__body,children:o}),(n||r)&&(r?(0,a.jsxs)(`div`,{className:[K.card__actions,K[`card__actions--split`]].join(` `),children:[r,(0,a.jsx)(`div`,{className:K.card__actionsGroup,children:n})]}):(0,a.jsx)(`div`,{className:K.card__actions,children:n}))]}),q={sr:`_sr_1nido_5`,root:`_root_1nido_17`,header:`_header_1nido_26`,header__icon:`_header__icon_1nido_44`,header__title:`_header__title_1nido_45`,header__chevron:`_header__chevron_1nido_46`,panel:`_panel_1nido_51`,panel__inner:`_panel__inner_1nido_59`,step:`_step_1nido_61`,steps:`_steps_1nido_71`,step__body:`_step__body_1nido_83`,step__row:`_step__row_1nido_115`,step__icon:`_step__icon_1nido_116`,step__content:`_step__content_1nido_117`,step__label:`_step__label_1nido_118`,step__query:`_step__query_1nido_119`,step__count:`_step__count_1nido_129`,"step--done":`_step--done_1nido_136`,"step--active":`_step--active_1nido_137`,"step--pending":`_step--pending_1nido_139`,step__sources:`_step__sources_1nido_145`,"step__sources--button":`_step__sources--button_1nido_157`,step__sourcesLabel:`_step__sourcesLabel_1nido_159`,step__sourcesChevron:`_step__sourcesChevron_1nido_162`,stack:`_stack_1nido_165`,chip:`_chip_1nido_166`,working:`_working_1nido_181`,indicator:`_indicator_1nido_182`,indicator__icon:`_indicator__icon_1nido_183`,indicator__label:`_indicator__label_1nido_184`,indicator__time:`_indicator__time_1nido_185`,"indicator--working":`_indicator--working_1nido_191`,"chain-of-thought-shimmer":`_chain-of-thought-shimmer_1nido_1`,"chain-of-thought-open":`_chain-of-thought-open_1nido_1`,"chain-of-thought-rail-down":`_chain-of-thought-rail-down_1nido_1`,"chain-of-thought-rail-across":`_chain-of-thought-rail-across_1nido_1`,"chain-of-thought-land":`_chain-of-thought-land_1nido_1`,"chain-of-thought-write":`_chain-of-thought-write_1nido_1`,"chain-of-thought-type":`_chain-of-thought-type_1nido_1`,"chain-of-thought-fade-in":`_chain-of-thought-fade-in_1nido_1`,"chain-of-thought-row-open":`_chain-of-thought-row-open_1nido_1`,"chain-of-thought-fan":`_chain-of-thought-fan_1nido_1`,"chain-of-thought-spark-down":`_chain-of-thought-spark-down_1nido_1`,"chain-of-thought-spark-across":`_chain-of-thought-spark-across_1nido_1`,"chain-of-thought-beat":`_chain-of-thought-beat_1nido_1`,"chain-of-thought-sweep":`_chain-of-thought-sweep_1nido_1`,"chain-of-thought-glint":`_chain-of-thought-glint_1nido_1`,"indicator--done":`_indicator--done_1nido_290`,"chain-of-thought-pop":`_chain-of-thought-pop_1nido_1`,"chain-of-thought-check":`_chain-of-thought-check_1nido_1`,"chain-of-thought-rise":`_chain-of-thought-rise_1nido_1`,"chain-of-thought-title":`_chain-of-thought-title_1nido_1`},Ve=(...e)=>e.filter(Boolean).join(` `),He=i.default.createContext(!1);function Ue(){let e=i.default.useContext(He),[t]=i.default.useState(e);return t}function We(e,t=700,n=()=>!0){let[r,a]=i.default.useState(!1),o=i.default.useRef(!0);return i.default.useEffect(()=>{if(o.current){o.current=!1;return}if(!n(e)){a(!1);return}a(!0);let r=setTimeout(()=>a(!1),t);return()=>clearTimeout(r)},[e]),r}var Ge=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function Ke(e){return e<60?`${e.toFixed(1)}s`:`${Math.floor(e/60)}m ${Math.floor(e%60)}s`}var qe=({status:e=`working`,label:r,elapsed:o,startedAt:s,lookAt:c,className:l})=>{let u=e===`working`,[d,f]=i.default.useState(()=>Date.now());i.default.useEffect(()=>{if(!u||s==null||o!=null)return;f(Date.now());let e=setInterval(()=>f(Date.now()),100);return()=>clearInterval(e)},[u,s,o]);let p=o??(s==null?void 0:Math.max(0,(d-s)/1e3)),m=We(e,2400);return(0,a.jsxs)(`div`,{className:Ve(q.indicator,u?q[`indicator--working`]:q[`indicator--done`],l),"data-changed":m||void 0,role:`status`,children:[u?(0,a.jsx)(t.zt,{size:20,lookAt:c,className:q.indicator__icon}):(0,a.jsx)(n.S,{className:q.indicator__icon,size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:q.indicator__label,children:r??(u?`Working`:`Worked for`)}),p!=null&&(0,a.jsx)(`span`,{className:q.indicator__time,"aria-hidden":u||void 0,children:Ke(p)})]})};qe.displayName=`WorkingIndicator`;var Je=({sources:e,className:n})=>{let i=Ue();return(0,a.jsx)(`ul`,{className:Ve(q.stack,n),"aria-label":`${e.length} source${e.length===1?``:`s`}`,children:e.map((e,n)=>{let o=e.icon??r.n;return(0,a.jsxs)(`li`,{className:q.chip,title:e.label,"data-fresh":i||void 0,style:{"--i":n},children:[(0,a.jsx)(o,{size:10,strokeWidth:t.Ht(10,1),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:q.sr,children:e.label})]},`${e.label}-${n}`)})})};Je.displayName=`SourceStack`;var Ye=({children:e,delay:t})=>{let n=Ue(),[r,o]=i.default.useState(null);return i.default.useEffect(()=>{let r=n&&(typeof e==`string`||typeof e==`number`)?/^(\d+)(.*)$/s.exec(String(e)):null,i=r?Number(r[1]):0;if(!r||i<2||Ge())return;let a=r[2],s=Math.max(2,Math.round(i*.25)),c=performance.now()+t,l=Math.min(900,380+i*30),u=0,d=e=>{let t=Math.min(1,Math.max(0,(e-c)/l)),n=1-(1-t)**3;o(t<1?`${Math.round(s+n*(i-s))}${a}`:null),t<1&&(u=requestAnimationFrame(d))};return o(`${s}${a}`),u=requestAnimationFrame(d),()=>cancelAnimationFrame(u)},[]),(0,a.jsx)(`span`,{className:q.step__count,"data-fresh":n||void 0,children:r??e})},Xe=({onClick:e,children:t})=>{let n=Ue();return e?(0,a.jsx)(`button`,{type:`button`,className:Ve(q.step__sources,q[`step__sources--button`]),"data-fresh":n||void 0,onClick:e,children:t}):(0,a.jsx)(`div`,{className:q.step__sources,"data-fresh":n||void 0,children:t})},Ze={pending:`Pending: `,active:`In progress: `,done:`Done: `},Qe=({status:e=`done`,icon:r,label:o,query:s,count:c,accent:l,sources:u,sourcesLabel:d=`Sources`,onSourcesClick:f,className:p})=>{let m=r??n.C,h=l??m.brandColor??void 0,g=Ue(),[_,v]=i.default.useState(g),[y]=i.default.useState(g&&(c!=null||u!=null));i.default.useEffect(()=>{if(!_)return;let e=setTimeout(()=>v(!1),2e3);return()=>clearTimeout(e)},[_]);let b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:q.step__sourcesLabel,children:d}),u,f&&(0,a.jsx)(n.I,{className:q.step__sourcesChevron,size:12,strokeWidth:t.Ht(12),"aria-hidden":`true`})]});return(0,a.jsx)(`li`,{className:Ve(q.step,q[`step--${e}`],p),style:h?{"--cot-spark":h}:void 0,"data-entering":_||void 0,"data-with-results":_&&y||void 0,"aria-current":e===`active`?`step`:void 0,children:(0,a.jsxs)(`div`,{className:q.step__body,children:[(0,a.jsxs)(`div`,{className:q.step__row,children:[(0,a.jsx)(m,{className:q.step__icon,size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:q.step__content,children:[(0,a.jsx)(`span`,{className:q.sr,children:Ze[e]}),(0,a.jsx)(`span`,{className:q.step__label,children:o}),s&&(0,a.jsx)(`code`,{className:q.step__query,style:{"--chars":Math.max(1,s.length)},children:s})]}),c!=null&&(0,a.jsx)(Ye,{delay:_&&y?760:0,children:c})]}),u&&(0,a.jsx)(Xe,{onClick:f,children:b})]})})};Qe.displayName=`ChainOfThoughtStep`;var $e=({title:e,icon:r,open:o,defaultOpen:s=!0,onOpenChange:c,status:l,elapsed:u,startedAt:d,children:f,className:p})=>{let m=r??n.C,h=i.default.useId(),[g,_]=i.default.useState(!1);i.default.useEffect(()=>{let e=requestAnimationFrame(()=>_(!0));return()=>cancelAnimationFrame(e)},[]);let v=We(typeof e==`string`?e:void 0,600),[y,b]=i.default.useState(s),x=o??y,S=i.default.useRef(null),[C,w]=i.default.useState(0),[T,E]=i.default.useState(null);i.default.useLayoutEffect(()=>{let e=S.current?Array.from(S.current.children):[];e.forEach((e,t)=>e.style.setProperty(`--step`,String(t))),e.length!==C&&w(e.length);let t=e[e.length-1]?.querySelector(`.${q.step__content}`)??null;E(e=>e===t?e:t)});let D=We(l,900+C*110,e=>e===`done`),O=We(x,700+C*45,e=>e===!0);return(0,a.jsxs)(`div`,{className:Ve(q.root,p),"data-open":x||void 0,"data-finishing":D||void 0,"data-opening":O||void 0,style:{"--steps":C},children:[(0,a.jsxs)(`button`,{type:`button`,className:q.header,"aria-expanded":x,"aria-controls":h,onClick:()=>{let e=!x;o===void 0&&b(e),c?.(e)},children:[(0,a.jsx)(m,{className:q.header__icon,size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:q.header__title,"data-changed":v||void 0,children:e}),(0,a.jsx)(n.I,{className:q.header__chevron,size:14,strokeWidth:t.Ht(14),"aria-hidden":`true`})]}),(0,a.jsx)(`div`,{id:h,className:q.panel,"aria-hidden":!x||void 0,children:(0,a.jsxs)(`div`,{className:q.panel__inner,children:[(0,a.jsx)(He.Provider,{value:g,children:f!=null&&(0,a.jsx)(`ol`,{ref:S,className:q.steps,children:f})}),l&&(0,a.jsx)(`div`,{className:q.working,children:(0,a.jsx)(qe,{status:l,elapsed:u,startedAt:d,lookAt:T})})]})})]})};$e.displayName=`ChainOfThought`;var et={google:{label:`Google`,color:`#4285F4`,path:`M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z`},x:{label:`X`,color:null,path:`M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z`},reddit:{label:`Reddit`,color:`#FF4500`,path:`M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z`},github:{label:`GitHub`,color:null,path:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`},linkedin:{label:`LinkedIn`,color:`#0A66C2`,path:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1`},youtube:{label:`YouTube`,color:`#FF0000`,path:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`},hackernews:{label:`Hacker News`,color:`#FF6600`,path:`M0 24V0h24v24H0zM6.951 5.896l4.112 7.708v5.064h1.583v-4.972l4.148-7.799h-1.749l-2.457 4.875c-.372.745-.688 1.434-.688 1.434s-.297-.708-.651-1.434L8.831 5.896h-1.88z`},wikipedia:{label:`Wikipedia`,color:null,path:`M12.09 13.119c-.936 1.932-2.217 4.548-2.853 5.728-.616 1.074-1.127.931-1.532.029-1.406-3.321-4.293-9.144-5.651-12.409-.251-.601-.441-.987-.619-1.139-.181-.15-.554-.24-1.122-.271C.103 5.033 0 4.982 0 4.898v-.455l.052-.045c.924-.005 5.401 0 5.401 0l.051.045v.434c0 .119-.075.176-.225.176l-.564.031c-.485.029-.727.164-.727.436 0 .135.053.33.166.601 1.082 2.646 4.818 10.521 4.818 10.521l.136.046 2.411-4.81-.482-1.067-1.658-3.264s-.318-.654-.428-.872c-.728-1.443-.712-1.518-1.447-1.617-.207-.023-.313-.05-.313-.149v-.468l.06-.045h4.292l.113.037v.451c0 .105-.076.15-.227.15l-.308.047c-.792.061-.661.381-.136 1.422l1.582 3.252 1.758-3.504c.293-.64.233-.801.111-.947-.07-.084-.305-.22-.812-.24l-.201-.021c-.052 0-.098-.015-.145-.051-.045-.031-.067-.076-.067-.129v-.427l.061-.045c1.247-.008 4.043 0 4.043 0l.059.045v.436c0 .121-.059.178-.193.178-.646.03-.782.095-1.023.439-.12.186-.375.589-.646 1.039l-2.301 4.273-.065.135 2.792 5.712.17.048 4.396-10.438c.154-.422.129-.722-.064-.895-.197-.172-.346-.273-.857-.295l-.42-.016c-.061 0-.105-.014-.152-.045-.043-.029-.072-.075-.072-.119v-.436l.059-.045h4.961l.041.045v.437c0 .119-.074.18-.209.18-.648.03-1.127.18-1.443.421-.314.255-.557.616-.736 1.067 0 0-4.043 9.258-5.426 12.339-.525 1.007-1.053.917-1.503-.031-.571-1.171-1.773-3.786-2.646-5.71l.053-.036z`},stackoverflow:{label:`Stack Overflow`,color:`#F58025`,path:`M15.725 0l-1.72 1.277 6.39 8.588 1.716-1.277L15.725 0zm-3.94 3.418l-1.369 1.644 8.225 6.85 1.369-1.644-8.225-6.85zm-3.15 4.465l-.905 1.94 9.702 4.517.904-1.94-9.701-4.517zm-1.85 4.86l-.44 2.093 10.473 2.201.44-2.092-10.473-2.203zM1.89 15.47V24h19.19v-8.53h-2.133v6.397H4.021v-6.396H1.89zm4.265 2.133v2.13h10.66v-2.13H6.154Z`},producthunt:{label:`Product Hunt`,color:`#DA552F`,path:`M13.604 8.4h-3.405V12h3.405c.995 0 1.801-.806 1.801-1.801 0-.993-.805-1.799-1.801-1.799zM12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm1.604 14.4h-3.405V18H7.801V6h5.804c2.319 0 4.2 1.88 4.2 4.199 0 2.321-1.881 4.201-4.201 4.201z`},medium:{label:`Medium`,color:null,path:`M4.21 0A4.201 4.201 0 0 0 0 4.21v15.58A4.201 4.201 0 0 0 4.21 24h15.58A4.201 4.201 0 0 0 24 19.79v-1.093c-.137.013-.278.02-.422.02-2.577 0-4.027-2.146-4.09-4.832a7.592 7.592 0 0 1 .022-.708c.093-1.186.475-2.241 1.105-3.022a3.885 3.885 0 0 1 1.395-1.1c.468-.237 1.127-.367 1.664-.367h.023c.101 0 .202.004.303.01V4.211A4.201 4.201 0 0 0 19.79 0Zm.198 5.583h4.165l3.588 8.435 3.59-8.435h3.864v.146l-.019.004c-.705.16-1.063.397-1.063 1.254h-.003l.003 10.274c.06.676.424.885 1.063 1.03l.02.004v.145h-4.923v-.145l.019-.005c.639-.144.994-.353 1.054-1.03V7.267l-4.745 11.15h-.261L6.15 7.569v9.445c0 .857.358 1.094 1.063 1.253l.02.004v.147H4.405v-.147l.019-.004c.705-.16 1.065-.397 1.065-1.253V6.987c0-.857-.358-1.094-1.064-1.254l-.018-.004zm19.25 3.668c-1.086.023-1.733 1.323-1.813 3.124H24V9.298a1.378 1.378 0 0 0-.342-.047Zm-1.862 3.632c-.1 1.756.86 3.239 2.204 3.634v-3.634z`},notion:{label:`Notion`,color:null,path:`M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z`},substack:{label:`Substack`,color:`#FF6719`,path:`M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z`},arxiv:{label:`arXiv`,color:`#B31B1B`,path:`M3.8423 0a1.0037 1.0037 0 0 0-.922.6078c-.1536.3687-.0438.6275.2938 1.1113l6.9185 8.3597-1.0223 1.1058a1.0393 1.0393 0 0 0 .003 1.4229l1.2292 1.3135-5.4391 6.4444c-.2803.299-.4538.823-.2971 1.1986a1.0253 1.0253 0 0 0 .9585.635.9133.9133 0 0 0 .6891-.3405l5.783-6.126 7.4902 8.0051a.8527.8527 0 0 0 .6835.2597.9575.9575 0 0 0 .8777-.6138c.1577-.377-.017-.7502-.306-1.1407l-7.0518-8.3418 1.0632-1.13a.9626.9626 0 0 0 .0089-1.3165L4.6336.4639s-.3733-.4535-.768-.463zm0 .272h.0166c.2179.0052.4874.2715.5644.3639l.005.006.0052.0055 10.169 10.9905a.6915.6915 0 0 1-.0072.945l-1.0666 1.133-1.4982-1.7724-8.5994-10.39c-.3286-.472-.352-.6183-.2592-.841a.7307.7307 0 0 1 .6704-.4401Zm14.341 1.5701a.877.877 0 0 0-.6554.2418l-5.6962 6.1584 1.6944 1.8319 5.3089-6.5138c.3251-.4335.479-.6603.3247-1.0292a1.1205 1.1205 0 0 0-.9763-.689zm-7.6557 12.2823 1.3186 1.4135-5.7864 6.1295a.6494.6494 0 0 1-.4959.26.7516.7516 0 0 1-.706-.4669c-.1119-.2682.0359-.6864.2442-.9083l.0051-.0055.0047-.0055z`},bluesky:{label:`Bluesky`,color:`#1185FE`,path:`M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026`},perplexity:{label:`Perplexity`,color:`#1FB8CD`,path:`M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z`},duckduckgo:{label:`DuckDuckGo`,color:`#DE5833`,path:`M12 0C5.37 0 0 5.37 0 12s5.37 12 12 12 12-5.37 12-12S18.63 0 12 0zm0 .984C18.083.984 23.016 5.916 23.016 12S18.084 23.016 12 23.016.984 18.084.984 12C.984 5.917 5.916.984 12 .984zm0 .938C6.434 1.922 1.922 6.434 1.922 12c0 4.437 2.867 8.205 6.85 9.55-.237-.82-.776-2.753-1.6-6.052-1.184-4.741-2.064-8.606 2.379-9.813.047-.011.064-.064.03-.093-.514-.467-1.382-.548-2.233-.38a.06.06 0 0 1-.07-.058c0-.011 0-.023.011-.035.205-.286.572-.507.822-.64a1.843 1.843 0 0 0-.607-.335c-.059-.022-.059-.12-.006-.144.006-.006.012-.012.024-.012 1.749-.233 3.586.292 4.49 1.448.011.011.023.017.035.023 2.968.635 3.509 4.837 3.328 5.998a9.607 9.607 0 0 0 2.346-.576c.746-.286 1.008-.222 1.101-.053.1.193-.018.513-.28.81-.496.567-1.393 1.01-2.974 1.137-.546.044-1.029.024-1.445.006-.789-.035-1.339-.059-1.633.39-.192.298-.041.998 1.487 1.22 1.09.157 2.078.047 2.798-.034.643-.07 1.073-.118 1.172.069.21.402-.996 1.207-3.066 1.224-.158 0-.315-.006-.467-.011-1.283-.065-2.227-.414-2.816-.735a.094.094 0 0 1-.035-.017c-.105-.059-.31.045-.188.267.07.134.444.478 1.004.776-.058.466.087 1.184.338 2l.088-.016c.041-.009.087-.019.134-.025.507-.082.775.012.926.175.717-.536 1.913-1.294 2.03-1.154.583.694.66 2.332.53 2.99-.004.012-.017.024-.04.035-.274.117-1.783-.296-1.783-.511-.059-1.075-.26-1.173-.493-1.225h-.156c.006.006.012.018.018.03l.052.12c.093.257.24 1.063.13 1.26-.112.199-.835.297-1.284.303-.443.006-.543-.158-.637-.408-.07-.204-.103-.675-.103-.95a.857.857 0 0 1 .012-.216c-.134.058-.333.193-.397.281-.017.262-.017.682.123 1.149.07.221-1.518 1.164-1.74.99-.227-.181-.634-1.952-.459-2.67-.187.017-.338.075-.42.191-.367.508.093 2.933.582 3.248.257.169 1.54-.553 2.176-1.095.105.145.305.158.553.158.326-.012.782-.06 1.103-.158.192.45.423.972.613 1.388 4.47-1.032 7.803-5.037 7.803-9.82 0-5.566-4.512-10.078-10.078-10.078zm1.791 5.646c-.42 0-.678.146-.795.332-.023.047.047.094.094.07.14-.075.357-.161.701-.156.328.006.516.09.67.159l.023.01c.041.017.088-.03.059-.065-.134-.18-.332-.35-.752-.35zm-5.078.198a1.24 1.24 0 0 0-.522.082c-.454.169-.67.526-.67.76 0 .051.112.057.141.011.081-.123.21-.31.617-.478.408-.17.73-.146.951-.094.047.012.083-.041.041-.07a.989.989 0 0 0-.558-.211zm5.434 1.423a.651.651 0 0 0-.655.647.652.652 0 0 0 1.307 0 .646.646 0 0 0-.652-.647zm.283.262h.008a.17.17 0 0 1 .17.17c0 .093-.077.17-.17.17a.17.17 0 0 1-.17-.17c0-.09.072-.165.162-.17zm-5.358.076a.752.752 0 0 0-.758.758c0 .42.338.758.758.758s.758-.337.758-.758a.756.756 0 0 0-.758-.758zm.328.303h.01c.112 0 .2.089.2.2 0 .11-.088.197-.2.197a.195.195 0 0 1-.197-.198c0-.107.082-.194.187-.199z`}},tt=i.default.forwardRef(function({name:e,size:t=16,title:n,className:r,...i},o){let s=et[e],c=n?{role:`img`,"aria-label":n}:{"aria-hidden":!0,focusable:`false`};return s?(0,a.jsxs)(`svg`,{ref:o,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,viewBox:`0 0 24 24`,fill:s.color??`currentColor`,className:[`sakani-source-logo`,`sakani-source-logo-${e}`,r].filter(Boolean).join(` `),...c,...i,children:[n?(0,a.jsx)(`title`,{children:n}):null,(0,a.jsx)(`path`,{d:s.path})]}):null});tt.displayName=`SourceLogo`;var nt=Object.keys(et),rt=new Map;function it(e){let t=rt.get(e);if(!t){let n=({size:t,className:n,style:r,"aria-hidden":i})=>(0,a.jsx)(tt,{name:e,size:t,className:n,style:r,"aria-hidden":i});n.displayName=`SourceLogo(${e})`,t=Object.assign(n,{logoName:e,brandColor:et[e].color}),rt.set(e,t)}return t}var at={kbd:`_kbd_1yaxs_4`},ot=({children:e,className:t})=>(0,a.jsx)(`kbd`,{className:[at.kbd,t??``].filter(Boolean).join(` `),children:e}),st={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},ct=({size:e=`md`,label:t=`Loading...`,className:n})=>(0,a.jsx)(`span`,{role:`status`,"aria-label":t,className:[st.spinner,st[`spinner--${e}`],n??``].filter(Boolean).join(` `),children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:st.spinner__svg,children:[(0,a.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,a.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:st.spinner__arc})]})}),J={sr:`_sr_1qhd2_5`,backdrop:`_backdrop_1qhd2_11`,panel:`_panel_1qhd2_23`,trigger:`_trigger_1qhd2_27`,"panel--simple":`_panel--simple_1qhd2_50`,"panel--preview":`_panel--preview_1qhd2_51`,field:`_field_1qhd2_54`,field__icon:`_field__icon_1qhd2_63`,field__content:`_field__content_1qhd2_64`,input:`_input_1qhd2_65`,field__clear:`_field__clear_1qhd2_81`,token:`_token_1qhd2_91`,token__icon:`_token__icon_1qhd2_105`,token__remove:`_token__remove_1qhd2_106`,scopes:`_scopes_1qhd2_116`,scopes__pill:`_scopes__pill_1qhd2_126`,"scopes__pill--glide":`_scopes__pill--glide_1qhd2_133`,scope:`_scope_1qhd2_116`,"scope--active":`_scope--active_1qhd2_157`,scope__count:`_scope__count_1qhd2_158`,scopes__hint:`_scopes__hint_1qhd2_169`,split:`_split_1qhd2_179`,body:`_body_1qhd2_181`,groups:`_groups_1qhd2_193`,group:`_group_1qhd2_193`,group__label:`_group__label_1qhd2_195`,group__action:`_group__action_1qhd2_207`,item:`_item_1qhd2_217`,"item--disabled":`_item--disabled_1qhd2_227`,item__lead:`_item__lead_1qhd2_228`,"item__lead--ai":`_item__lead--ai_1qhd2_239`,"item__lead--person":`_item__lead--person_1qhd2_240`,item__status:`_item__status_1qhd2_241`,"item__status--online":`_item__status--online_1qhd2_250`,item__bare:`_item__bare_1qhd2_251`,item__text:`_item__text_1qhd2_252`,item__label:`_item__label_1qhd2_253`,dim:`_dim_1qhd2_254`,match:`_match_1qhd2_255`,item__desc:`_item__desc_1qhd2_256`,item__trail:`_item__trail_1qhd2_257`,item__meta:`_item__meta_1qhd2_258`,item__keys:`_item__keys_1qhd2_259`,item__enter:`_item__enter_1qhd2_260`,message:`_message_1qhd2_263`,"message--error":`_message--error_1qhd2_271`,message__tile:`_message__tile_1qhd2_272`,message__text:`_message__text_1qhd2_280`,message__chips:`_message__chips_1qhd2_284`,message__actions:`_message__actions_1qhd2_285`,chip:`_chip_1qhd2_288`,chip__em:`_chip__em_1qhd2_303`,ghost:`_ghost_1qhd2_306`,ghost__track:`_ghost__track_1qhd2_307`,ghost__row:`_ghost__row_1qhd2_313`,ghost__lens:`_ghost__lens_1qhd2_330`,ghost__glass:`_ghost__glass_1qhd2_350`,ghost__zoom:`_ghost__zoom_1qhd2_361`,loading:`_loading_1qhd2_371`,skeleton:`_skeleton_1qhd2_372`,skeleton__lines:`_skeleton__lines_1qhd2_373`,answerSlot:`_answerSlot_1qhd2_376`,answer:`_answer_1qhd2_376`,"answer--glow":`_answer--glow_1qhd2_399`,"sakani-cmd-card-light":`_sakani-cmd-card-light_1qhd2_1`,"answer--glowFade":`_answer--glowFade_1qhd2_400`,answer__header:`_answer__header_1qhd2_402`,answer__mark:`_answer__mark_1qhd2_403`,answer__title:`_answer__title_1qhd2_408`,answer__status:`_answer__status_1qhd2_409`,answer__copy:`_answer__copy_1qhd2_410`,answer__body:`_answer__body_1qhd2_414`,answer__sources:`_answer__sources_1qhd2_415`,answer__sourcesLabel:`_answer__sourcesLabel_1qhd2_416`,answer__source:`_answer__source_1qhd2_415`,answer__footer:`_answer__footer_1qhd2_425`,answer__openInChat:`_answer__openInChat_1qhd2_426`,preview__stack:`_preview__stack_1qhd2_429`,preview__layer:`_preview__layer_1qhd2_430`,preview__empty:`_preview__empty_1qhd2_432`,preview__scroll:`_preview__scroll_1qhd2_433`,preview__actions:`_preview__actions_1qhd2_434`,preview:`_preview_1qhd2_429`,footer:`_footer_1qhd2_445`,footer__workspace:`_footer__workspace_1qhd2_456`,footer__dot:`_footer__dot_1qhd2_457`,footer__chevron:`_footer__chevron_1qhd2_458`,footer__hints:`_footer__hints_1qhd2_459`,hint:`_hint_1qhd2_460`,hint__keys:`_hint__keys_1qhd2_461`,trigger__icon:`_trigger__icon_1qhd2_488`,trigger__text:`_trigger__text_1qhd2_489`,trigger__keys:`_trigger__keys_1qhd2_490`,"backdrop--in":`_backdrop--in_1qhd2_493`,"sakani-cmd-backdrop-in":`_sakani-cmd-backdrop-in_1qhd2_1`,"backdrop--out":`_backdrop--out_1qhd2_494`,"sakani-cmd-backdrop-out":`_sakani-cmd-backdrop-out_1qhd2_1`,"panel--in":`_panel--in_1qhd2_495`,"sakani-cmd-panel-in":`_sakani-cmd-panel-in_1qhd2_1`,"panel--out":`_panel--out_1qhd2_496`,"sakani-cmd-panel-out":`_sakani-cmd-panel-out_1qhd2_1`,"message--empty":`_message--empty_1qhd2_510`,"sakani-cmd-fade":`_sakani-cmd-fade_1qhd2_1`,"sakani-cmd-feed":`_sakani-cmd-feed_1qhd2_1`,"sakani-cmd-feed-clear":`_sakani-cmd-feed-clear_1qhd2_1`,"sakani-cmd-lens-in":`_sakani-cmd-lens-in_1qhd2_1`,"sakani-cmd-lens-x":`_sakani-cmd-lens-x_1qhd2_1`,"sakani-cmd-lens-y":`_sakani-cmd-lens-y_1qhd2_1`,"sakani-cmd-rise":`_sakani-cmd-rise_1qhd2_1`,answer__word:`_answer__word_1qhd2_558`,"sakani-cmd-word-in":`_sakani-cmd-word-in_1qhd2_1`,"answer--stream":`_answer--stream_1qhd2_559`,"sakani-cmd-answer-in":`_sakani-cmd-answer-in_1qhd2_1`,"sakani-cmd-answer-mark":`_sakani-cmd-answer-mark_1qhd2_1`,"sakani-cmd-answer-text":`_sakani-cmd-answer-text_1qhd2_1`,"sakani-cmd-answer-fan":`_sakani-cmd-answer-fan_1qhd2_1`},lt=(...e)=>e.filter(Boolean).join(` `),ut={page:`pages`,person:`people`,file:`files`,action:`actions`,ai:null},dt={page:n.F,action:n.b,file:n.F,person:n.F,ai:({className:e,style:n})=>(0,a.jsx)(`span`,{className:e,style:{display:`inline-flex`,...n},children:(0,a.jsx)(t.K,{size:24,color:`currentColor`})})},ft=e=>e.scope??(e.type?ut[e.type]:null);function pt(){return(0,a.jsxs)(`span`,{className:J.ghost__track,children:[(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row})]})}function mt({text:e,query:t}){let n=t.trim(),r=n?e.toLowerCase().indexOf(n.toLowerCase()):-1;return r<0?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsxs)(`span`,{className:J.dim,children:[e.slice(0,r),(0,a.jsx)(`mark`,{className:J.match,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var ht=i.default.forwardRef(function({placeholder:e=`Search or jump to…`,shortcut:r=[`⌘`,`K`],className:i,type:o=`button`,...s},c){return(0,a.jsxs)(`button`,{ref:c,type:o,className:lt(J.trigger,i),"aria-haspopup":`dialog`,...s,children:[(0,a.jsx)(n.C,{size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`,className:J.trigger__icon}),(0,a.jsx)(`span`,{className:J.trigger__text,children:e}),(0,a.jsx)(`span`,{className:J.trigger__keys,"aria-hidden":`true`,children:r.map(e=>(0,a.jsx)(ot,{children:e},e))})]})}),gt=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,_t=({title:e=`SakaniUI AI`,status:r,children:o,stream:s,onStreamEnd:c,sources:l,onFollowUp:u,onOpenInChat:d,onCopy:f,className:p})=>{let m=typeof o==`string`?o:null,h=!!(s&&m)&&!gt(),g=i.default.useMemo(()=>m?m.split(/(\s+)/):[],[m]),[_,v]=i.default.useState(h?0:g.length),[y,b]=i.default.useState(!h),[x,S]=i.default.useState(h?`on`:`off`);i.default.useEffect(()=>{if(!h){S(`off`);return}if(S(`on`),!y)return;let e=setTimeout(()=>S(`fade`),1e3),t=setTimeout(()=>S(`off`),1700);return()=>{clearTimeout(e),clearTimeout(t)}},[h,y]);let C=i.default.useRef(c);return C.current=c,i.default.useEffect(()=>{if(!h){v(g.length),b(!0),C.current?.();return}let e=0,t,n=()=>{if(e=Math.min(g.length,e+2),v(e),e>=g.length){b(!0),C.current?.();return}let r=g[e-2]??``;t=setTimeout(n,34+Math.round(Math.random()*22)+(/[.!?]$/.test(r)?260:/[,;:]$/.test(r)?110:0))};return t=setTimeout(n,380),()=>clearTimeout(t)},[h,g]),(0,a.jsxs)(`section`,{className:lt(J.answer,h&&J[`answer--stream`],x!==`off`&&J[`answer--glow`],x===`fade`&&J[`answer--glowFade`],p),"aria-label":e,"aria-busy":!y||void 0,children:[(0,a.jsxs)(`header`,{className:J.answer__header,children:[(0,a.jsx)(`span`,{className:J.answer__mark,"aria-hidden":`true`,children:(0,a.jsx)(t.K,{size:24,color:`currentColor`})}),(0,a.jsx)(`span`,{className:J.answer__title,children:e}),r&&y&&(0,a.jsx)(`span`,{className:J.answer__status,children:r}),f&&y&&(0,a.jsx)(`button`,{type:`button`,className:J.answer__copy,onClick:f,"aria-label":`Copy the answer`,children:(0,a.jsx)(n.X,{size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`})})]}),(0,a.jsx)(`div`,{className:J.answer__body,children:h?g.slice(0,_).map((e,t)=>/^\s+$/.test(e)?e:(0,a.jsx)(`span`,{className:J.answer__word,children:e},t)):o}),y&&l&&l.length>0&&(0,a.jsxs)(`div`,{className:J.answer__sources,children:[(0,a.jsx)(`span`,{className:J.answer__sourcesLabel,children:`Sources`}),l.map((e,r)=>{let i=e.icon??n.F;return(0,a.jsxs)(`span`,{className:J.answer__source,style:{"--i":r},children:[(0,a.jsx)(i,{size:12,strokeWidth:t.Ht(12),"aria-hidden":`true`}),e.label]},e.label)})]}),y&&(u||d)&&(0,a.jsxs)(`footer`,{className:J.answer__footer,children:[u&&(0,a.jsx)(t.Mt,{variant:`secondary`,size:`sm`,onClick:u,children:`Ask a follow-up`}),d&&(0,a.jsxs)(`span`,{className:J.answer__openInChat,children:[`Open in chat `,(0,a.jsx)(ot,{children:`⌘`}),(0,a.jsx)(ot,{children:`↵`})]})]})]})};_t.displayName=`CommandMenuAnswer`;var vt=({open:e,defaultOpen:r=!1,onOpenChange:o,hotkey:c=`k`,variant:l=`default`,query:u,defaultQuery:d=``,onQueryChange:f,placeholder:p=`Search or ask anything…`,groups:m,filter:h=!0,highlightMatches:g=!0,state:_=`ready`,onSelect:v,closeOnSelect:y=!0,scopes:b,scope:x,defaultScope:S,onScopeChange:C,filters:w,onFiltersChange:T,filterKeys:E,onAskAI:D,answer:O,renderPreview:k,previewActions:A,previewEmpty:j=`Nothing to preview for this result`,emptyTitle:M,emptyDescription:N,suggestions:ee,fallbackGroups:P,errorTitle:te=`Search is unavailable`,errorDescription:ne=`We couldn’t reach the search index. Your recent items still work.`,onRetry:F,onReport:re,retryLabel:I=`Try again`,reportLabel:ie=`Report`,workspace:L,hideFooter:ae=!1,"aria-label":oe=`Command menu`,className:se})=>{let R=l===`simple`,ce=i.default.useId(),[z,le]=i.default.useState(r),B=e??z,ue=i.default.useCallback(t=>{e===void 0&&le(t),o?.(t)},[e,o]),[de,fe]=i.default.useState(d),pe=u??de,me=e=>{u===void 0&&fe(e),f?.(e)},[he,V]=i.default.useState(S??b?.[0]?.value??`all`),ge=x??he,_e=e=>{x===void 0&&V(e),C?.(e)},[ve,ye]=i.default.useState([]),H=w??ve,be=e=>{w===void 0&&ye(e),T?.(e)},[xe,Se]=i.default.useState(!1);i.default.useEffect(()=>{B&&Se(!0)},[B]);let Ce=i.default.useRef(!1);i.default.useEffect(()=>{if(xe){Ce.current=!0;return}Ce.current&&(Ce.current=!1,u===void 0&&fe(d),w===void 0&&ye([]),x===void 0&&V(S??b?.[0]?.value??`all`))},[xe]),i.default.useEffect(()=>{if(c===!1)return;let e=e=>{(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey&&e.key.toLowerCase()===c.toLowerCase()&&(e.preventDefault(),ue(!B))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[c,B,ue]);let we=pe.trim().toLowerCase(),Te=i.default.useCallback(e=>typeof h==`function`?h(e,pe):!we||[e.label,e.description,...e.keywords??[]].some(e=>e&&e.toLowerCase().includes(we)),[h,pe,we]),Ee=i.default.useCallback(e=>H.every(t=>!e.tags||e.tags.includes(t.value??t.label)),[H]),De=h!==!1,Oe=i.default.useMemo(()=>De?m.map(e=>({...e,items:e.items.filter(e=>Te(e)&&Ee(e))})).filter(e=>e.items.length):m,[De,m,Te,Ee]),ke=i.default.useMemo(()=>{let e={};if(!b)return e;let t=Oe.flatMap(e=>e.items);for(let n of b)n.count!==null&&(e[n.value]=n.count??(n.value===`all`?t.length:t.filter(e=>ft(e)===n.value).length));return e},[b,Oe]),Ae=i.default.useMemo(()=>!De||!b||ge===`all`||R?Oe:Oe.map(e=>({...e,items:e.items.filter(e=>ft(e)===ge||e.type===`ai`)})).filter(e=>e.items.length),[De,b,ge,R,Oe]),je=Ae.reduce((e,t)=>e+t.items.length,0),Me=!!we||H.length>0,Ne=_===`ready`&&Me,Pe=_===`ready`&&je===0&&Me&&!O,U=(Pe||_===`error`)&&P,Fe=i.default.useMemo(()=>_===`loading`?[]:U?P:Ae,[_,U,P,Ae]),W=i.default.useMemo(()=>Fe.flatMap(e=>e.items).filter(e=>!e.disabled),[Fe]),[Ie,Le]=i.default.useState(0),Re=W.map(e=>e.id).join(`|`);i.default.useEffect(()=>{Le(0)},[Re,ge]);let G=W[Math.min(Ie,W.length-1)],ze=e=>`${ce}-opt-${e.id}`,K=t.V(),Be=i.default.useRef(null),q=i.default.useRef(null),Ve=i.default.useRef(new Map),[He,Ue]=i.default.useState(null),[We,Ge]=i.default.useState(!1),Ke=i.default.useRef(new Map);i.default.useEffect(()=>{if(!B)return;if(!G){K.showItem(null);return}let e=Ke.current.get(G.id);if(e){K.showItem(e);let t=Be.current;W[0]?.id===G.id&&t?t.scrollTop=0:e.scrollIntoView?.({block:`nearest`})}},[B,xe,G?.id,Re]);let[qe,Je]=i.default.useState(null),Ye=G?.id??null;i.default.useEffect(()=>{if(!B||!k){Je(null);return}if(qe===null){Je(Ye);return}let e=window.setTimeout(()=>Je(Ye),100);return()=>window.clearTimeout(e)},[B,Ye,!!k]);let Xe=qe&&W.find(e=>e.id===qe)||G,Ze=k&&Xe?k(Xe):null,Qe=i.default.useRef(null),$e=t.Dt(Qe,B),et=t.Et(Qe,B),tt=i.default.useRef(null),nt=i.default.useRef(null),rt=i.default.useRef(null);i.default.useEffect(()=>{if(B||!xe)return;let e=setTimeout(()=>Se(!1),220);return()=>clearTimeout(e)},[B,xe]),i.default.useEffect(()=>{if(!B)return;rt.current=document.activeElement;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e,rt.current?.focus?.()}},[B]),i.default.useEffect(()=>{if(!B||!xe)return;let e=requestAnimationFrame(()=>nt.current?.focus());return()=>cancelAnimationFrame(e)},[B,xe]);let it=e=>{e.disabled||(e.onSelect?.(),v?.(e),y&&ue(!1))},at=e=>{let t=W.length-1;if(e.key===`ArrowDown`)e.preventDefault(),Le(e=>t<0?0:Math.min(e+1,t));else if(e.key===`ArrowUp`)e.preventDefault(),Le(e=>Math.max(e-1,0));else if(e.key===`Home`&&!e.currentTarget.value)e.preventDefault(),Le(0);else if(e.key===`End`&&!e.currentTarget.value)e.preventDefault(),Le(Math.max(t,0));else if(e.key===`Enter`){if(e.preventDefault(),(e.metaKey||e.ctrlKey)&&D){D(pe);return}G&&it(G)}else if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),pe?me(``):ue(!1);else if(e.key===`Backspace`&&!pe&&H.length)e.preventDefault(),be(H.slice(0,-1));else if(e.key===`Tab`&&b&&!R){e.preventDefault();let t=b.findIndex(e=>e.value===ge);_e(b[(t+(e.shiftKey?-1:1)+b.length)%b.length].value)}else if(e.key===` `&&E?.length){let t=/(?:^|\s)([A-Za-z][\w-]*):(\S+)$/.exec(e.currentTarget.value);if(t&&E.includes(t[1].toLowerCase())){e.preventDefault();let n=t[1].toLowerCase();be([...H,{id:`${n}:${t[2]}`,label:`${n}: ${t[2]}`,value:t[2]}]),me(e.currentTarget.value.slice(0,t.index).trim())}}};if(i.default.useLayoutEffect(()=>{let e=q.current;if(!B||!xe||!e||!b||R){Ue(null),Ge(!1);return}let t=()=>{let e=Ve.current.get(ge);Ue(e?{x:e.offsetLeft,w:e.offsetWidth}:null)};t();let n=requestAnimationFrame(()=>Ge(!0)),r=new ResizeObserver(t);return Ve.current.forEach(e=>r.observe(e)),()=>{cancelAnimationFrame(n),r.disconnect()}},[B,xe,ge,b,R,Ne]),!xe)return(0,a.jsx)(`span`,{ref:Qe,style:{display:`none`},"aria-hidden":`true`});let st=!!k&&!R,ut=_===`loading`?`Searching`:_===`error`?`Search is unavailable`:Pe?`No results`:`${je} result${je===1?``:`s`}`,ht=(e,n=g)=>{let r=G?.id===e.id,i=e.icon??dt[e.type??`action`],o=e.type===`person`||e.avatar;return(0,a.jsxs)(`div`,{id:ze(e),role:`option`,"aria-selected":r,"aria-disabled":e.disabled||void 0,"data-hover-item":e.disabled?`off`:``,"data-type":e.type,ref:t=>{t?Ke.current.set(e.id,t):Ke.current.delete(e.id)},className:lt(J.item,r&&J[`item--active`],e.disabled&&J[`item--disabled`]),onMouseMove:()=>{let t=W.findIndex(t=>t.id===e.id);t>=0&&t!==Ie&&Le(t)},onClick:()=>it(e),children:[(!R||o)&&(0,a.jsx)(`span`,{className:lt(J.item__lead,e.type===`ai`&&J[`item__lead--ai`],o&&J[`item__lead--person`]),"aria-hidden":`true`,children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.It,{size:`sm`,src:e.avatar?.src,initials:e.avatar?.initials,alt:e.avatar?.alt??``}),e.avatar?.status&&(0,a.jsx)(`span`,{className:lt(J.item__status,J[`item__status--${e.avatar.status}`])})]}):(0,a.jsx)(i,{size:16,strokeWidth:t.Ht(16)})}),R&&!o&&(0,a.jsx)(i,{size:16,strokeWidth:t.Ht(16),className:J.item__bare,"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:J.item__text,children:[(0,a.jsx)(`span`,{className:J.item__label,children:n?(0,a.jsx)(mt,{text:e.label,query:pe}):e.label}),e.description&&(0,a.jsx)(`span`,{className:J.item__desc,children:e.description})]}),(0,a.jsxs)(`span`,{className:J.item__trail,children:[e.meta&&(0,a.jsx)(`span`,{className:J.item__meta,children:e.meta}),e.shortcut&&(0,a.jsx)(`span`,{className:J.item__keys,"aria-hidden":`true`,children:e.shortcut.map(e=>(0,a.jsx)(ot,{children:e},e))}),r&&!e.shortcut&&e.type!==`ai`&&(0,a.jsx)(`span`,{className:J.item__enter,"aria-hidden":`true`,children:(0,a.jsx)(ot,{children:`↵`})})]})]},e.id)},gt=(e,t)=>(0,a.jsxs)(`div`,{role:`group`,"aria-labelledby":e.label?`${ce}-g-${e.id}`:void 0,className:J.group,children:[e.label&&(0,a.jsxs)(`div`,{className:J.group__label,children:[(0,a.jsx)(`span`,{id:`${ce}-g-${e.id}`,children:e.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.group__action,onClick:e.action.onClick,children:e.action.label})]}),e.items.map(e=>ht(e,t))]},e.id),_t=[{keys:[`↑`,`↓`],label:`Navigate`},{keys:[`↵`],label:`Open`},...D&&!R?[{keys:[`⌘`,`↵`],label:`Ask AI`}]:[],{keys:[`esc`],label:`Close`}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{ref:Qe,style:{display:`none`},"aria-hidden":`true`}),(0,s.createPortal)((0,a.jsx)(`div`,{className:lt(J.backdrop,$e,B?J[`backdrop--in`]:J[`backdrop--out`]),"data-surface":et,onMouseDown:e=>{e.target===e.currentTarget&&ue(!1)},children:(0,a.jsxs)(`div`,{ref:tt,role:`dialog`,"aria-modal":`true`,"aria-label":oe,className:lt(J.panel,R&&J[`panel--simple`],st&&J[`panel--preview`],B?J[`panel--in`]:J[`panel--out`],se),children:[(0,a.jsxs)(`div`,{className:J.field,children:[(0,a.jsx)(n.C,{size:20,strokeWidth:t.Ht(20),className:J.field__icon,"aria-hidden":`true`}),(0,a.jsxs)(`div`,{className:J.field__content,children:[H.map(e=>{let r=e.icon;return(0,a.jsxs)(`span`,{className:J.token,children:[r&&(0,a.jsx)(r,{size:13,strokeWidth:t.Ht(13),className:J.token__icon,"aria-hidden":`true`}),e.label,(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.token__remove,onClick:()=>{be(H.filter(t=>t.id!==e.id)),nt.current?.focus()},"aria-label":`Remove ${e.label}`,children:(0,a.jsx)(n.W,{size:12,strokeWidth:t.Ht(12),"aria-hidden":`true`})})]},e.id)}),(0,a.jsx)(`input`,{ref:nt,className:J.input,type:`text`,role:`combobox`,"aria-expanded":`true`,"aria-controls":`${ce}-list`,"aria-activedescendant":G?ze(G):void 0,"aria-autocomplete":`list`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-label":oe,placeholder:p,value:pe,onChange:e=>me(e.target.value),onKeyDown:at})]}),_===`loading`&&(0,a.jsx)(ct,{size:`sm`,label:`Searching`}),pe&&_!==`loading`&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.field__clear,onClick:()=>{me(``),nt.current?.focus()},"aria-label":`Clear the search`,children:(0,a.jsx)(n.x,{size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`})}),(0,a.jsx)(ot,{children:`esc`})]}),b&&!R&&(0,a.jsxs)(`div`,{ref:q,className:J.scopes,role:`tablist`,"aria-label":`Scope`,children:[(0,a.jsx)(`span`,{className:lt(J.scopes__pill,We&&J[`scopes__pill--glide`]),"aria-hidden":`true`,style:He?{transform:`translateX(${He.x}px)`,width:He.w,opacity:1}:void 0}),b.map(e=>(0,a.jsxs)(`button`,{ref:t=>{t?Ve.current.set(e.value,t):Ve.current.delete(e.value)},type:`button`,role:`tab`,tabIndex:-1,"aria-selected":e.value===ge,className:lt(J.scope,e.value===ge&&J[`scope--active`]),onClick:()=>{_e(e.value),nt.current?.focus()},children:[e.label,Ne&&ke[e.value]!=null&&(0,a.jsx)(`span`,{className:J.scope__count,children:ke[e.value]})]},e.value)),(0,a.jsxs)(`span`,{className:J.scopes__hint,"aria-hidden":`true`,children:[`Switch scope `,(0,a.jsx)(ot,{children:`tab`})]})]}),(0,a.jsxs)(`div`,{className:J.split,children:[(0,a.jsxs)(`div`,{ref:e=>{Be.current=e,K.ref(e)},...K.groupProps,onPointerLeave:()=>{if(K.groupProps.onPointerLeave(),G){let e=Ke.current.get(G.id);e&&requestAnimationFrame(()=>K.showItem(e))}},className:J.body,children:[K.highlight,O&&(0,a.jsx)(`div`,{className:J.answerSlot,children:O}),_===`loading`&&(0,a.jsxs)(`div`,{className:J.loading,"aria-hidden":`true`,children:[(0,a.jsx)(`div`,{className:J.group__label,children:(0,a.jsx)(`span`,{children:`Searching…`})}),[0,1,2,3].map(e=>(0,a.jsxs)(`div`,{className:J.skeleton,children:[(0,a.jsx)(t.L,{variant:`rect`,width:28,height:28}),(0,a.jsxs)(`div`,{className:J.skeleton__lines,children:[(0,a.jsx)(t.L,{variant:`text`,width:e%2?160:220,height:10}),(0,a.jsx)(t.L,{variant:`text`,width:e%2?110:140,height:8})]})]},e))]}),_===`error`&&(0,a.jsxs)(`div`,{className:lt(J.message,J[`message--error`]),children:[(0,a.jsx)(`span`,{className:J.message__tile,"aria-hidden":`true`,children:(0,a.jsx)(n.G,{size:22,strokeWidth:t.Ht(22)})}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:te}),(0,a.jsx)(`span`,{children:ne})]}),(F||re)&&(0,a.jsxs)(`div`,{className:J.message__actions,children:[F&&(0,a.jsx)(t.Mt,{variant:`secondary`,size:`sm`,onClick:F,children:I}),re&&(0,a.jsx)(t.Mt,{variant:`ghost`,size:`sm`,onClick:re,children:ie})]})]}),Pe&&(0,a.jsxs)(`div`,{className:lt(J.message,J[`message--empty`]),children:[(0,a.jsxs)(`span`,{className:J.ghost,"aria-hidden":`true`,children:[(0,a.jsx)(pt,{}),(0,a.jsx)(`span`,{className:J.ghost__lens,children:(0,a.jsx)(`span`,{className:J.ghost__glass,children:(0,a.jsx)(`span`,{className:J.ghost__zoom,children:(0,a.jsx)(pt,{})})})})]}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:M??(0,a.jsxs)(a.Fragment,{children:[`No results for “`,pe.trim()||H.map(e=>e.label).join(`, `),`”`]})}),(0,a.jsx)(`span`,{children:N??`Check the spelling, or try a broader search.`})]}),ee&&ee.length>0&&(0,a.jsx)(`div`,{className:J.message__chips,children:ee.map(e=>{let n=e.icon,r=e.emphasis?e.label.indexOf(e.emphasis):-1,i=n&&(0,a.jsx)(n,{size:14,strokeWidth:t.Ht(14),"aria-hidden":`true`});return(0,a.jsxs)(`button`,{type:`button`,tabIndex:-1,className:J.chip,onClick:e.onSelect,children:[e.iconPosition!==`end`&&i,(0,a.jsx)(`span`,{children:r<0?e.label:(0,a.jsxs)(a.Fragment,{children:[e.label.slice(0,r),(0,a.jsx)(`strong`,{className:J.chip__em,children:e.emphasis}),e.label.slice(r+e.emphasis.length)]})}),e.iconPosition===`end`&&i]},e.label)})})]}),(0,a.jsx)(`div`,{id:`${ce}-list`,role:`listbox`,"aria-label":`Results`,"aria-busy":_===`loading`||void 0,className:J.groups,children:Fe.map(e=>gt(e,g&&!U))})]}),st&&(0,a.jsxs)(`aside`,{className:J.preview,"aria-label":`Preview`,children:[(0,a.jsx)(`div`,{className:J.preview__scroll,children:(0,a.jsx)(`div`,{className:J.preview__stack,children:(0,a.jsx)(`div`,{className:J.preview__layer,children:Ze??(0,a.jsx)(`div`,{className:J.preview__empty,children:j})})})}),Ze&&A&&Xe&&(0,a.jsx)(`div`,{className:J.preview__actions,children:typeof A==`function`?A(Xe):A})]})]}),(0,a.jsx)(`div`,{role:`status`,className:J.sr,children:ut}),!ae&&(0,a.jsxs)(`div`,{className:J.footer,children:[!R&&L&&(0,a.jsxs)(`span`,{className:J.footer__workspace,children:[(0,a.jsx)(`span`,{className:J.footer__dot,"aria-hidden":`true`}),L,(0,a.jsx)(n.I,{size:12,strokeWidth:t.Ht(12),className:J.footer__chevron,"aria-hidden":`true`})]}),(0,a.jsx)(`span`,{className:J.footer__hints,"aria-hidden":`true`,children:_t.map(e=>(0,a.jsxs)(`span`,{className:J.hint,children:[(0,a.jsx)(`span`,{className:J.hint__keys,children:e.keys.map(e=>(0,a.jsx)(ot,{children:e},e))}),e.label]},e.label))})]})]})}),document.body)]})};vt.displayName=`CommandMenu`;var Y={field:`_field_1oby0_7`,field__label:`_field__label_1oby0_8`,field__description:`_field__description_1oby0_9`,field__error:`_field__error_1oby0_10`,control:`_control_1oby0_13`,"control--sm":`_control--sm_1oby0_25`,"control--md":`_control--md_1oby0_26`,"control--lg":`_control--lg_1oby0_27`,"control--open":`_control--open_1oby0_30`,"control--error":`_control--error_1oby0_41`,"control--disabled":`_control--disabled_1oby0_46`,control__value:`_control__value_1oby0_52`,"control__value--placeholder":`_control__value--placeholder_1oby0_62`,control__input:`_control__input_1oby0_63`,control__chevron:`_control__chevron_1oby0_83`,"control__chevron--open":`_control__chevron--open_1oby0_84`,chips:`_chips_1oby0_90`,chip:`_chip_1oby0_90`,"chip--leaving":`_chip--leaving_1oby0_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_1oby0_1`,chip__remove:`_chip__remove_1oby0_110`,panel:`_panel_1oby0_121`,"panel--entering":`_panel--entering_1oby0_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_1oby0_1`,"panel--exiting":`_panel--exiting_1oby0_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_1oby0_1`,panel__empty:`_panel__empty_1oby0_156`,option:`_option_1oby0_164`,"option--selected":`_option--selected_1oby0_189`,"option--disabled":`_option--disabled_1oby0_190`,optionHighlight:`_optionHighlight_1oby0_165`,"optionHighlight--animated":`_optionHighlight--animated_1oby0_221`,option__box:`_option__box_1oby0_228`,"option__box--checked":`_option__box--checked_1oby0_245`,option__icon:`_option__icon_1oby0_250`,option__label:`_option__label_1oby0_251`,option__check:`_option__check_1oby0_252`,panel__loading:`_panel__loading_1oby0_255`,panel__spinner:`_panel__spinner_1oby0_259`,"sakani-cb-spin":`_sakani-cb-spin_1oby0_1`},yt=({options:e,mode:n=`single`,size:r=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=i.default.useId(),[g,_]=i.default.useState(!1),[v,y]=i.default.useState(!1),[b,x]=i.default.useState(0),S=i.default.useRef(null),C=e;i.default.useEffect(()=>{g&&y(!0)},[g]);let w=i.default.useRef({}),T=i.default.useRef(null),[E,D]=i.default.useState(null),[O,k]=i.default.useState(!1);i.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){D(null);return}D({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),i.default.useLayoutEffect(()=>{if(!v){k(!1);return}k(!1);let e=window.requestAnimationFrame(()=>k(!0));return()=>window.cancelAnimationFrame(e)},[v]),i.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&D({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[A,j]=i.default.useState(n===`multi`?[]:``),M=f===void 0?A:f,N=Array.isArray(M)?M:M?[M]:[],[ee,P]=i.default.useState(()=>N.map(e=>({value:e,leaving:!1}))),te=N.join(`\0`);i.default.useLayoutEffect(()=>{P(e=>{let t=e.map(e=>({value:e.value,leaving:!N.includes(e.value)}));for(let e of N)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[te]);let ne=e=>P(t=>t.filter(t=>!(t.value===e&&t.leaving))),F=!!c;i.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let re=e=>{f===void 0&&j(e),p?.(e)},I=e=>{if(!e.disabled)if(n===`multi`){let t=new Set(N);t.has(e.value)?t.delete(e.value):t.add(e.value),re([...t])}else re(e.value),_(!1)},ie=t=>e.find(e=>e.value===t)?.label??t,L=N.length?ie(N[0]):``,ae=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?I(C[b]):_(!0)):e.key===`Escape`&&_(!1))},oe=u?`disabled`:F?`error`:g?`open`:`default`;return(0,a.jsxs)(`div`,{className:[Y.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,a.jsx)(`label`,{htmlFor:`${h}-trigger`,className:Y.field__label,children:o}),(0,a.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":F||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[Y.control,Y[`control--${r}`],Y[`control--${oe}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:ae,children:[n===`multi`&&ee.length>0&&(0,a.jsx)(`div`,{className:Y.chips,children:ee.map(({value:t,leaving:n})=>(0,a.jsxs)(`span`,{className:[Y.chip,n?Y[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":n||void 0,onAnimationEnd:n?()=>ne(t):void 0,children:[ie(t),(0,a.jsx)(`button`,{type:`button`,className:Y.chip__remove,tabIndex:n?-1:void 0,onClick:n=>{n.stopPropagation(),I(e.find(e=>e.value===t))},"aria-label":`Remove ${ie(t)}`,children:`×`})]},t))}),!(n===`multi`&&ee.length>0)&&(0,a.jsx)(`span`,{className:[Y.control__value,n===`single`&&L?``:Y[`control__value--placeholder`]].filter(Boolean).join(` `),children:n===`single`&&L?L:l}),(0,a.jsx)(`span`,{className:[Y.control__chevron,g?Y[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Ht(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,a.jsx)(`div`,{ref:T,className:[Y.panel,g?Y[`panel--entering`]:Y[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":n===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,a.jsxs)(`div`,{className:Y.panel__loading,children:[(0,a.jsx)(`span`,{className:Y.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,a.jsx)(`div`,{className:Y.panel__empty,children:`No options available`}):(0,a.jsxs)(a.Fragment,{children:[E&&(0,a.jsx)(`span`,{"aria-hidden":`true`,className:[Y.optionHighlight,O?Y[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${E.top}px)`,height:E.height}}),C.map((e,r)=>{let i=N.includes(e.value);return(0,a.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":i,className:[Y.option,i&&n===`single`?Y[`option--selected`]:``,e.disabled?Y[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{e.disabled||x(r)},onClick:()=>I(e),children:[n===`multi`&&(0,a.jsx)(`span`,{className:[Y.option__box,i?Y[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Ht(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),e.icon&&(0,a.jsx)(`span`,{className:Y.option__icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`span`,{className:Y.option__label,children:e.label}),i&&n===`single`&&(0,a.jsx)(`span`,{className:Y.option__check,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},e.value)})]})}),(s||c)&&(0,a.jsx)(`span`,{className:F?Y.field__error:Y.field__description,children:c||s})]})},bt={wrap:`_wrap_hz87t_2`,dropzone:`_dropzone_hz87t_4`,"dropzone--dragging":`_dropzone--dragging_hz87t_23`,dropzone__icon:`_dropzone__icon_hz87t_25`,dropzone__label:`_dropzone__label_hz87t_30`,dropzone__link:`_dropzone__link_hz87t_31`,dropzone__hint:`_dropzone__hint_hz87t_32`,input:`_input_hz87t_34`,files:`_files_hz87t_37`,file:`_file_hz87t_37`,file__icon:`_file__icon_hz87t_47`,file__name:`_file__name_hz87t_48`,file__remove:`_file__remove_hz87t_49`},xt=({accept:e,multiple:r,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=i.default.useRef(null),[u,d]=i.default.useState(!1),[f,p]=i.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(r?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,a.jsxs)(`div`,{className:[bt.wrap,c??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:[bt.dropzone,u?bt[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,a.jsx)(`span`,{className:bt.dropzone__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.f,{size:22,strokeWidth:t.Ht(22)})}),(0,a.jsxs)(`span`,{className:bt.dropzone__label,children:[(0,a.jsx)(`span`,{className:bt.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,a.jsx)(`span`,{className:bt.dropzone__hint,children:o}),(0,a.jsx)(`input`,{ref:l,type:`file`,accept:e,multiple:r,className:bt.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,a.jsx)(`ul`,{className:bt.files,children:f.map((e,r)=>(0,a.jsxs)(`li`,{className:bt.file,children:[(0,a.jsx)(`span`,{className:bt.file__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.g,{size:16,strokeWidth:t.Ht(16)})}),(0,a.jsx)(`span`,{className:bt.file__name,children:e.name}),(0,a.jsx)(`button`,{type:`button`,className:bt.file__remove,onClick:()=>g(r),"aria-label":`Remove ${e.name}`,children:(0,a.jsx)(n.W,{size:14,strokeWidth:t.Ht(14)})})]},r))})]})},St={chart:`_chart_1m9hd_1`,svg:`_svg_1m9hd_7`,segment:`_segment_1m9hd_12`,pctLabel:`_pctLabel_1m9hd_19`,labels:`_labels_1m9hd_27`,labelItem:`_labelItem_1m9hd_31`,tooltip:`_tooltip_1m9hd_41`,tooltip__title:`_tooltip__title_1m9hd_54`,tooltip__row:`_tooltip__row_1m9hd_60`,tooltip__dot:`_tooltip__dot_1m9hd_68`,tooltip__label:`_tooltip__label_1m9hd_74`,tooltip__value:`_tooltip__value_1m9hd_75`},Ct={sm:180,md:240,lg:320,xl:420},wt=560,Tt=.3,Et=.55,Dt=({data:e,size:n=`md`,className:r})=>{let[o,s]=i.default.useState(null),c=i.default.useRef(null),l=t.gt(c),u=l(`--color-chart-1`)??`#ff4700`,d=l(`--color-bg-canvas`)??`#fafaf9`,f=e[0]?.value||1,p=Ct[n],m=p*.66,h=m/2+8,g=wt/e.length,_=e[0]?.value||1,v=e=>e/_*m,y=e.map(e=>v(e.value));y.push(v(e[e.length-1]?.value??0)*Et);let b=t=>e.length<=1?1:Tt+t/(e.length-1)*(1-Tt),x=o===null?null:e[o],S=o===null?0:h-y[o]/2,C=o===null?0:o*g+g/2;return(0,a.jsxs)(`div`,{ref:c,className:[St.chart,r??``].filter(Boolean).join(` `),style:{height:p},children:[(0,a.jsx)(`svg`,{viewBox:`0 0 ${wt} ${p}`,width:`100%`,height:p,className:St.svg,children:e.map((e,t)=>{let n=t*g,r=(t+1)*g,i=(n+r)/2,c=y[t]/2,l=y[t+1]/2,d=h-c,p=h-l,m=h+c,_=h+l,v=[`M ${n} ${d}`,`C ${i} ${d} ${i} ${p} ${r} ${p}`,`L ${r} ${_}`,`C ${i} ${_} ${i} ${m} ${n} ${m}`,`Z`].join(` `),x=o===null?b(t):t===o?1:.45,S=Math.round(e.value/f*100);return(0,a.jsxs)(`g`,{className:St.segment,onMouseEnter:()=>s(t),onMouseLeave:()=>s(null),children:[(0,a.jsx)(`path`,{d:v,fill:u,fillOpacity:x}),(0,a.jsxs)(`text`,{x:i,y:h,textAnchor:`middle`,dominantBaseline:`middle`,className:St.pctLabel,children:[S,`%`]})]},t)})}),(0,a.jsx)(`div`,{className:St.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,a.jsx)(`span`,{className:St.labelItem,children:e.label},t))}),x&&(0,a.jsxs)(`div`,{className:St.tooltip,style:{left:`${C/wt*100}%`,top:`${S/p*100}%`,background:d},children:[(0,a.jsx)(`span`,{className:St.tooltip__title,children:x.label}),(0,a.jsxs)(`div`,{className:St.tooltip__row,children:[(0,a.jsx)(`span`,{className:St.tooltip__dot,style:{background:u}}),(0,a.jsx)(`span`,{className:St.tooltip__label,children:`Share`}),(0,a.jsxs)(`span`,{className:St.tooltip__value,children:[Math.round(x.value/f*100),`%`]})]})]})]})},Ot={chart:`_chart_berem_1`,grid:`_grid_berem_6`,rowLabel:`_rowLabel_berem_13`,colLabel:`_colLabel_berem_14`,cell:`_cell_berem_29`,"chart--sm":`_chart--sm_berem_39`,"chart--md":`_chart--md_berem_40`,"chart--lg":`_chart--lg_berem_41`,"chart--xl":`_chart--xl_berem_42`,tooltip:`_tooltip_berem_49`,tooltip__title:`_tooltip__title_berem_71`,tooltip__row:`_tooltip__row_berem_77`,tooltip__dot:`_tooltip__dot_berem_85`,tooltip__label:`_tooltip__label_berem_92`,tooltip__value:`_tooltip__value_berem_93`},kt=.12,At=.45,jt=({data:e,rowLabels:n,colLabels:r,valueLabel:o=`Value`,size:s=`md`,className:c})=>{let l=i.default.useRef(null),u=t.gt(l),d=i.default.useRef(null),[f,p]=i.default.useState(null),m=u(`--color-chart-1`)??`#ff4700`,h=Math.max(1,...e.flat()),g=e[0]?.length??0,_=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=d.current?.getBoundingClientRect();a&&p({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};return(0,a.jsx)(`div`,{ref:l,className:[Ot.chart,Ot[`chart--${s}`],c??``].filter(Boolean).join(` `),children:(0,a.jsxs)(`div`,{ref:d,className:Ot.grid,style:{gridTemplateColumns:`auto repeat(${g}, minmax(0, 1fr))`},children:[e.map((e,t)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(`span`,{className:Ot.rowLabel,children:n?.[t]??``}),e.map((e,n)=>{let r=f?.row===t&&f?.col===n,i=f!==null&&!r,o=r?1:kt+e/h*(1-kt);return(0,a.jsx)(`div`,{className:Ot.cell,style:{background:m,opacity:i?At:o},onMouseEnter:_(t,n,e),onMouseLeave:()=>p(null)},n)})]},t)),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{}),r.map((e,t)=>(0,a.jsx)(`span`,{className:Ot.colLabel,children:e},t))]}),f&&(0,a.jsxs)(`div`,{className:Ot.tooltip,style:{left:f.left,top:f.top},children:[(0,a.jsx)(`span`,{className:Ot.tooltip__title,children:[n?.[f.row],r?.[f.col]].filter(Boolean).join(` · `)||`Row ${f.row+1}, Col ${f.col+1}`}),(0,a.jsxs)(`div`,{className:Ot.tooltip__row,children:[(0,a.jsx)(`span`,{className:Ot.tooltip__dot}),(0,a.jsx)(`span`,{className:Ot.tooltip__label,children:o}),(0,a.jsx)(`span`,{className:Ot.tooltip__value,children:f.value})]})]})]})})},Mt={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},Nt=i.default.forwardRef(({required:e,children:t,className:n,...r},i)=>(0,a.jsxs)(`label`,{ref:i,className:[Mt.label,n??``].filter(Boolean).join(` `),...r,children:[t,e&&(0,a.jsx)(`span`,{className:Mt.label__required,"aria-hidden":`true`,children:` *`})]}));Nt.displayName=`Label`;var Pt={item:`_item_1bron_2`,"item--disabled":`_item--disabled_1bron_23`,"item--selected":`_item--selected_1bron_28`,item__leading:`_item__leading_1bron_32`,item__text:`_item__text_1bron_33`,item__title:`_item__title_1bron_34`,item__description:`_item__description_1bron_35`,item__trailing:`_item__trailing_1bron_36`},Ft=({title:e,description:t,leading:n,trailing:r,selected:i,disabled:o,onClick:s,className:c})=>(0,a.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":i?`true`:void 0,className:[Pt.item,i?Pt[`item--selected`]:``,o?Pt[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[n&&(0,a.jsx)(`span`,{className:Pt.item__leading,children:n}),(0,a.jsxs)(`span`,{className:Pt.item__text,children:[(0,a.jsx)(`span`,{className:Pt.item__title,children:e}),t&&(0,a.jsx)(`span`,{className:Pt.item__description,children:t})]}),r&&(0,a.jsx)(`span`,{className:Pt.item__trailing,children:r})]}),X={map:`_map_oz6hp_2`,tiles:`_tiles_oz6hp_25`,tile:`_tile_oz6hp_25`,overlay:`_overlay_oz6hp_37`,controls:`_controls_oz6hp_41`,group:`_group_oz6hp_50`,button:`_button_oz6hp_59`,divider:`_divider_oz6hp_78`,attribution:`_attribution_oz6hp_81`,marker:`_marker_oz6hp_97`,"marker--selected":`_marker--selected_oz6hp_112`,"marker--pin":`_marker--pin_oz6hp_116`,pin:`_pin_oz6hp_117`,pinShadow:`_pinShadow_oz6hp_129`,"marker--dot":`_marker--dot_oz6hp_150`,"marker--cluster":`_marker--cluster_oz6hp_165`,clusterCount:`_clusterCount_oz6hp_181`,popup:`_popup_oz6hp_184`,"sakani-map-popup-in":`_sakani-map-popup-in_oz6hp_1`,popupHeader:`_popupHeader_oz6hp_205`,popupTitle:`_popupTitle_oz6hp_206`,popupClose:`_popupClose_oz6hp_207`,popupDescription:`_popupDescription_oz6hp_224`,popupPointer:`_popupPointer_oz6hp_226`},It=({icon:e,hovered:n,className:r,onClick:i,disabled:o,...s})=>(0,a.jsx)(`button`,{type:`button`,className:[X.button,r??``].filter(Boolean).join(` `),"data-hovered":n?``:void 0,disabled:o,onClick:i,...s,children:(0,a.jsx)(e,{size:16,strokeWidth:t.Ht(16),"aria-hidden":`true`})});It.displayName=`MapControlButton`;var Lt=({onZoomIn:e,onZoomOut:t,zoomInDisabled:i,zoomOutDisabled:o,zoom:s=!0,locate:c=!1,onLocate:l,className:u})=>(0,a.jsxs)(`div`,{className:[X.controls,u??``].filter(Boolean).join(` `),"data-map-ui":``,children:[s&&(0,a.jsxs)(`div`,{className:X.group,children:[(0,a.jsx)(It,{icon:n.N,"aria-label":`Zoom in`,disabled:i,onClick:e}),(0,a.jsx)(`span`,{className:X.divider}),(0,a.jsx)(It,{icon:n.P,"aria-label":`Zoom out`,disabled:o,onClick:t})]}),c&&(0,a.jsx)(`div`,{className:X.group,children:(0,a.jsx)(It,{icon:r.t,"aria-label":`Show my location`,onClick:l})})]});Lt.displayName=`MapControls`;var Rt=`AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADf//8AAf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB////D//////n/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gf/x////////wAAAAAbgAAB4AAAAAAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAf//8A///////+AAAAB/ngAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAAAAAAcH3Hv/5////////8AAAAA/gAAAAAAAAAAAAD4AAAAAAAAAAAAAAAAAAAAAAcIAAQP/AH///////+AAAAAPCAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAADwDAc+f+AP///////4AAAAAAAAAAAAAB4AAAAB/8AAAAAAAAAAAAAAAAAAAAAH9wc374AAAf/////8AAAAAAAAAAAAH4AAAA////AAAB/gAAAAAAAAAAAAAAAAwAAA/QAAAH/////8AAAAAAAAAAAAOAAAAP///wAAAAAAAAAAAAAAAAAAAAP8AYe+c3AAAD/////4AAAAAAAAAAAA4AAAH////++HgAOAAAAAAAAAAAAAAAfv+4+w/4gAAB/////wAAAAAAAAAAADwAHgH///////4AfgAAAAAgAAAAAAAAPf/4O4//9AAB/////wAAAAAAAAAAADwAPb////////4m//gAAAAAAAf+AAAAAA/+A8f//4AB////8gAAAAAAA/gAAAAAfv/////////////8AAAAAB///+H//H/+PeDwf+AA3////AAAAAAA//4AAAA8fv///////////////P8gAf////////A4CPz4H8AAP///wAAAAAAD///wADH/n3/////////////////8AD////////////34Z/wA///4AAAAAAAP///+M////n/////////////////+4E/////////////gD/8Af//gAAAAAAAf//5+P////f/////////////////fw/////////////6AD8YAf/wAAf8AAAA/8f+D///////////////////////AgEf///////////zw7/AAP/gAAP4AAAB/4/+f//////////////////////8AMAf//////////+DIA/gAH/gAAAAAAAH/z/////////////////////////+AAH///////////8AwgOAAD+AAAAAAAA//H/////////////////////////6AAP///////////wAA/AAAB+AAAAAAAB/+H//////////////////////nP+AAAH//z////////wAA/wAAAOAAAAAAAB//D/////////////////////+A/4AAAA/zAD///////gAA/4wAAAAAAAAAAB//Ab///////////////////+eDgAAAAABwAA///////4AA/94AAAAAAAAAYA5+A///////////////////4AAHAAAAAADcAAD//////4AAf/8AAAAAAAAA8AC+C///////////////////wAAfgAAAAAMAAAA///////wAf/8AAAAAAAAA4AO8H///////////////////AAA/gAAAABgAAAA///////8A///AAAAAAAAA8ANwH//////////////////8AAB/AAAAAEAAAAAf///////z///4AAAAAAAHOAEDv//////////////////+AAA+AAAAAAAAAABH///////x///8AAAAAAAHHAf/////////////////////6AA8AAAAAAAAAAAD///////x///8AAAAAAAGPz//////////////////////6AAwAAAAAAAAAAAD///////9///6AAAAAAAAPj//////////////////////6AAQAAAAAAAAAAAC///////////EAAAAAAAAYf//////////////////////7AAAAAAAAAAAAAABv////////+MNAAAAAAAAD///////////////////////zAAAAAAAAAAAAAAAH////////7gfgAAAAAAAf///////////////////////yAAAAAAAAAAAAAAAL/////////gCgAAAAAAAH///////////////////////iAAAAAAAAAAAAAAAP/////////pAAAAAAAAAD/////uP/x//////////////DAAAAAAAAAAAAAAAP/////////+AAAAAAAAAB//v//Gf/B/////////////+AAAAAAAAAAAAAAAAP////////8wAAAAAAAAAB//H/+AP+P/////////////8CAAAAAAAAAAAAAAAP////////wAAAAAAAAADj/jz/8AD/H/////////////4HgAAAAAAAAAAAAAAP////////gAAAAAAAAAH/4Bw/8AA/B////////////+APAAAAAAAAAAAAAAAP////////gAAAAAAAAAH/wA8f8Ph/g////////////8AAAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/gMHfJ///x///////////v4AMAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/AMCOP///h//////////+JwAMAAAAAAAAAAAAAAAH///////4AAAAAAAAAAH/AAAHH///g//////////8BwAIAAAAAAAAAAAAAAAH///////wAAAAAAAAAAH+AAYGH///w//////////+w4A4AAAAAAAAAAAAAAAD///////wAAAAAAAAAAAgf+ACBs//////////////g4D4AAAAAAAAAAAAAAAB///////wAAAAAAAAAAAj/+AAAA//////////////AYf4AAAAAAAAAAAAAAAA///////gAAAAAAAAAAB//8AAAA//////////////Ah2AAAAAAAAAAAAAAAAAP/////+AAAAAAAAAAAD//+AAAB//////////////gDwAAAAAAAAAAAAAAAAAH/////8AAAAAAAAAAAH///4GAB//////////////gDAAAAAAAAAAAAAAAAAAG/////4AAAAAAAAAAAP///8P4h//////////////wCAAAAAAAAAAAAAAAAAACf////4AAAAAAAAAAAP////v////////////////gAAAAAAAAAAAAAAAAAAABP//hgYAAAAAAAAAAAP//////3//P///////////wAAAAAAAAAAAAAAAAAAAAv//AAYAAAAAAAAAAAf//////9//H///////////wAAAAAAAAAAAAAAAAAAAB3/+AAcAAAAAAAAAAB///////4//h///////////gAAAAAAAAAAAAAAAAAAAAR/+AANAAAAAAAAAAD///////8//wH//////////AAAAAAAAAAAAAAAAAAAAAJ/+AAEAAAAAAAAAAH///////+f/0B/////////+AAAAAAAAAAAAAAAAAAAAAI/8AAAAAAAAAAAAAH///////+f/44Af///////+QAAAAAAAAAAAAAAAAAAAAAf8AAAAAAAAAAAAAP////////H//+AP///////4gAAAAAAAAAAAAAAAAAAAAAP8AAuAAAAAAAAAAP////////H///AD///v///ggAAAAAAAAAAAAAAAAAAAAAH+AABgAAAAAAAAAf////////n//+AD//4P//YAAAAAAAAAAAAAAAAAAAAAAAP+A4AYAAAAAAAAAP////////j//+AAf/4H/+AAAAAAAAAAAAAAAAgAAAAAAAH/B4ABwAAAAAAAAP////////h//8AAf/gD/8YAAAAAAAAAAAAAAAAAAAAAAAD/nwAD9AAAAAAAAP////////x//4AAf/AD/8QAAAAAAAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAP////////4//gAAf+AD/+AAwAAAAAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAf////////4f+AAAf8AD//AAwAAAAAAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAf////////8f8AAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAf////////+fgAAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAf/////////eAAAAHwAAP/gAMAAAAAAAAAAAAAAAAAAAAAAAAHgAAAAAAAAAAf/////////gAAAAHwAAM/gACAAAAAAAAAAAAAAAAAAAAAAAADABAAAAAAAAAP/////////gYAAADwAAEfgAJAAAAAAAAAAAAAAAAAAAAAAAADgPfOAAAAAAAH/////////34AAADwAAIOABAAAAAAAAAAAAAAAAAAAAAAAAAAyPf+AAAAAAAD//////////4AAADoAAIEACBAAAAAAAAAAAAAAAAAAAAAAAAA8///AAAAAAAB//////////wAAABIAAMAAAFAAAAAAAAAAAAAAAAAAAAAAAAAE///gAAAAAAB//////////wAAAAMAAEAAALgAAAAAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAf/////////gAAAAMAADAAMCAAAAAAAAAAAAAAAAAAAAAAAAAA////gAAAAAAP/B///////gAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAf///wAAAAAACAA///////AAAAAAAAxgA+AAAAAAAAAAAAAAAAAAAAAAAAAAAf///4AAAAAAAAAD/////+AAAAAAAAZgB4AAAAAAAAAAAAAAAAAAAAAAAAAAB////4AAAAAAAAAD/////8AAAAAAAAMwH8AAAAAAAAAAAAAAAAAAAAAAAAAAB////8AAAAAAAAAH/////4AAAAAAAAHQf8AIAAAAAAAAAAAAAAAAAAAAAAAAD////8AAAAAAAAAH/////gAAAAAAAAHgf88IAAAAAAAAAAAAAAAAAAAAAAAAD////+AAAAAAAAAH/////AAAAAAAAADwf8AAgAAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAAH/////AAAAAAAAABwP5wBwAAAAAAAAAAAAAAAAAAAAAAAH/////6AAAAAAAAD////+AAAAAAAAAB8P5wATwAAAAAAAAAAAAAAAAAAAAAAD//////4AAAAAAAB////8AAAAAAAAAA8AxQif+AAAAAAAAAAAAAAAAAAAAAAH//////8AAAAAAAB////4AAAAAAAAAAcAAIAD/gAAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAAMAAIAI/ywAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAADgAAAI/8BAAAAAAAAAAAAAAAAAAAAD///////gAAAAAAAf///4AAAAAAAAAAB+AAAA/4AIAAAAAAAAAAAAAAAAAAAB///////gAAAAAAAf///4AAAAAAAAAAAAmogAOMAAAAAAAAAAAAAAAAAAAAAB///////AAAAAAAAf///8AAAAAAAAAAAABCAAAGADAAAAAAAAAAAAAAAAAAAA///////AAAAAAAAf///8AAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAf/////+AAAAAAAAP///8AAAAAAAAAAAAAAAgCAAAAAAAAAAAAAAAAAAAAAAAf/////8AAAAAAAAf///+AQAAAAAAAAAAAAB+CAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAAf///+AQAAAAAAAAAAAAD8DAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAA////+AwAAAAAAAAAAAA38DgAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAA////8BwAAAAAAAAAAAD/8DgAAAAAAAAAAAAAAAAAAAAAAB/////4AAAAAAAA////8PwAAAAAAAAAAAD//HwAABABAAAAAAAAAAAAAAAAAAf////4AAAAAAAA////wPgAAAAAAAAAAAP//3wAAAACAAAAAAAAAAAAAAAAAAP////wAAAAAAAA////APgAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAAf///4AAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAD////+AAIAAAAAAAAAAAAAAAAAAAAP////gAAAAAAAAP//+AfAAAAAAAAAAAf////+AAEAAAAAAAAAAAAAAAAAAAAP////AAAAAAAAAP///AfAAAAAAAAAAA//////AAAAAAAAAAAAAAAAAAAAAAAP///4AAAAAAAAAP//+APAAAAAAAAAAA//////gAAAAAAAAAAAAAAAAAAAAAAf///gAAAAAAAAAH//+AOAAAAAAAAAAB//////wAAAAAAAAAAAAAAAAAAAAAAf///AAAAAAAAAAH//4AEAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAB//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAD//wAAAAAAAAAAAAAf/////8AAAAAAAAAAAAAAAAAAAAAAf//8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///4AAAAAAAAAAA//AAAAAAAAAAAAAAP/////4AAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAAAAA/+AAAAAAAAAAAAAAP/AP//wAAAAAAAAAAAAAAAAAAAAAA///gAAAAAAAAAAA/4AAAAAAAAAAAAAAf8AG//gAAAAAAAAAAAAAAAAAAAAAA//3AAAAAAAAAAAAYAAAAAAAAAAAAAAAOAAF//gAAAAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//AAABAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAgAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAQAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYAAAAcAAAAAAAAAAAAAAAAAB/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAD/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAADQAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAHAAAAAAAAAAAAAAAAAAB/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAOAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4BwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAAAAH4AAAAAAB4HgAD8AAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAA//AAAD//////////wAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAf///4Af///////////AAAAAAAAAAAAAAAAAAAAAAAz4AAAAAAAAAAAAAAAPz////8B/////////////wAAAAAAAAAAAAAAAAAAAAA78AAAAAAAAAAA8/8///////wf/////////////+AAAAAAAAAAAAAAAAAAAAH9+AAAAAAAAZ////////////w////////////////4AAAAAAAAAAAAAAAAAAAB+AAAAAAAB//////////////////////////////4AAAAAAAAABmAAB8f+HB/+AAAAAAAP//////////////////////////////gAAAAAAAAP/c/oAf/////4AAAAAAAP/////////////////////////////8AAAAAAAD/////////////gAAAAAAB//////////////////////////////wAAAAAAAD////////////wAAAAAAP///////////////////////////////wAAAAAD/////////////4AAAAAAD////////////////////////////////wAAAADh/////////////AAAAB8A/////////////////////////////////+AAAAA4Af///////////gAAAH+AA///////////////////////////////+AAAAAAAAH///////////+A/A/wAA///////////////////////////////8AAAAAAAf//////////////gAAAf////////////////////////////////+AAAAAAAH///////////////h////////////////////////////////////wAAAAAAP/////////////////////////////////////////////////////gA+/gAAH/////////////////////////////////////////////////////8AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`,zt=85.05112878,Bt=Math.PI/180,Z=(e,t,n)=>Math.min(n,Math.max(t,e)),Vt=e=>((e+180)%360+360)%360-180;function Q([e,t],n){let r=256*2**n,i=Math.sin(Z(e,-85.05112878,zt)*Bt);return{x:(t+180)/360*r,y:(.5-Math.log((1+i)/(1-i))/(4*Math.PI))*r}}function Ht(e,t,n){let r=256*2**n,i=Math.PI-2*Math.PI*t/r;return[Z(Math.atan(Math.sinh(i))/Bt,-85.05112878,zt),Vt(e/r*360-180)]}var Ut=null;function Wt(){if(!Ut){let e=atob(Rt);Ut=new Uint8Array(e.length);for(let t=0;t<e.length;t++)Ut[t]=e.charCodeAt(t)}return Ut}function Gt(e,t){let n=Z(Math.floor(90-e),0,179),r=Z(Math.floor(Vt(t)+180),0,359),i=n*360+r;return(Wt()[i>>3]&128>>(i&7))!=0}function Kt(e){let t=[];for(let n=-90+e/2;n<90;n+=e){let r=Math.max(1,Math.round(360*Math.cos(n*Bt)/e));for(let e=0;e<r;e++){let i=-180+(e+.5)*360/r;t.push({cp:Math.cos(n*Bt),sp:Math.sin(n*Bt),lam:i*Bt,land:Gt(n,i)})}}return t}function qt(e,t){let n=e*Bt,r=Math.cos(t*Bt),i=Math.sin(t*Bt);return(e,t,a)=>{let o=a-n,s=Math.cos(o);return{x:e*Math.sin(o),y:r*t-i*e*s,z:i*t+r*e*s}}}var Jt=([e,t])=>({cp:Math.cos(e*Bt),sp:Math.sin(e*Bt),lam:t*Bt});function Yt(e,t,n=64,r=.12){let i=e=>{let t=Jt(e);return[t.cp*Math.cos(t.lam),t.cp*Math.sin(t.lam),t.sp]},a=i(e),o=i(t),s=Math.acos(Z(a[0]*o[0]+a[1]*o[1]+a[2]*o[2],-1,1)),c=Math.sin(s)||1e-6,l=[];for(let e=0;e<=n;e++){let t=e/n,i=Math.sin((1-t)*s)/c,u=Math.sin(t*s)/c,d=i*a[0]+u*o[0],f=i*a[1]+u*o[1],p=i*a[2]+u*o[2],m=Math.asin(Z(p/(Math.hypot(d,f,p)||1),-1,1));l.push({cp:Math.cos(m),sp:Math.sin(m),lam:Math.atan2(f,d),h:1+r*Math.sin(Math.PI*t)*Math.min(1,s/1.2)})}return l}var Xt=i.default.createContext(null);function Zt(){let e=i.default.useContext(Xt);if(!e)throw Error(`MapMarker, MapPopup and MapClusterLayer must be rendered inside <Map>.`);return e}var Qt=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function $t(e,t=0){let[n,r]=e,[a,o]=i.default.useState(e),s=i.default.useRef(e);return i.default.useEffect(()=>{if(!t||Qt()){s.current=[n,r],o([n,r]);return}let e=s.current;if(e[0]===n&&e[1]===r)return;let i=(r-e[1]+540)%360-180,a=performance.now(),c=0,l=u=>{let d=Math.min(1,(u-a)/t),f=1-(1-d)**3,p=d===1?[n,r]:[e[0]+(n-e[0])*f,e[1]+i*f];s.current=p,o(p),d<1&&(c=requestAnimationFrame(l))};return c=requestAnimationFrame(l),()=>cancelAnimationFrame(c)},[n,r,t]),t&&!Qt()?a:e}var en=`M16 0C7.163 0 0 7.163 0 16c0 11 16 24 16 24s16-13 16-24C32 7.163 24.837 0 16 0Z`,tn=({position:e,variant:t=`pin`,count:n,selected:r,hovered:i,glide:o,label:s,onClick:c,className:l})=>{let{project:u}=Zt(),d=u($t(e,o));if(!d)return null;let f=[X.marker,X[`marker--${t}`],r?X[`marker--selected`]:``,l??``].filter(Boolean).join(` `),p=t===`pin`?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:X.pinShadow}),(0,a.jsxs)(`svg`,{className:X.pin,viewBox:`-1 -1 34 42`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:en}),(0,a.jsx)(`circle`,{cx:`16`,cy:`16`,r:`6`})]})]}):t===`cluster`?(0,a.jsx)(`span`,{className:X.clusterCount,children:n}):null,m={left:d.x,top:d.y},h=i?``:void 0,g=s??(t===`cluster`&&n!=null?`${n} places`:void 0);return c?(0,a.jsx)(`button`,{type:`button`,className:f,style:m,"aria-label":g,"aria-pressed":r,"data-hovered":h,"data-map-ui":``,onClick:c,children:p}):(0,a.jsx)(`span`,{className:f,style:m,"data-hovered":h,role:g?`img`:void 0,"aria-label":g,"aria-hidden":!g||void 0,children:p})};tn.displayName=`MapMarker`;var nn=`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,rn=(0,a.jsxs)(a.Fragment,{children:[`© `,(0,a.jsx)(`a`,{href:`https://www.openstreetmap.org/copyright`,target:`_blank`,rel:`noreferrer`,children:`OpenStreetMap`}),` contributors`]}),an=260,on=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,sn=({center:e=[51.505,-.09],zoom:t=12,minZoom:n=2,maxZoom:r=18,onViewChange:o,tileUrl:s=nn,tileUrlDark:c,theme:l=`auto`,attribution:u=rn,controls:d=!0,locate:f=!1,onLocate:p,onLocateError:m,height:h=400,"aria-label":g=`Map`,className:_,children:v})=>{let y=i.default.useRef(null),[b,x]=i.default.useState({w:0,h:0}),[S,C]=i.default.useState({center:e,zoom:Z(t,n,r)}),w=i.default.useRef(S);w.current=S;let T=i.default.useRef(0),[E,D]=i.default.useState(null),[O,k]=i.default.useState(l===`dark`);i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=()=>k(l===`dark`||!!e.closest(`.dark`));t();let n=new MutationObserver(t);for(let t=e;t;t=t.parentElement)n.observe(t,{attributes:!0,attributeFilter:[`class`]});return()=>n.disconnect()},[l]);let A=O&&!!c,j=A?c:s;i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=new ResizeObserver(([e])=>x({w:e.contentRect.width,h:e.contentRect.height}));return t.observe(e),()=>t.disconnect()},[]);let M=i.default.useCallback(e=>{let t={center:e.center,zoom:Z(e.zoom,n,r)};w.current=t,C(t),o?.(t)},[n,r,o]),N=i.default.useCallback((e,t)=>{cancelAnimationFrame(T.current);let i=w.current,a={center:e.center,zoom:Z(e.zoom,n,r)};if(on()){M(a);return}let o=performance.now(),s=e=>{let n=Math.min(1,(e-o)/an),r=1-(1-n)**3,c=i.zoom+(a.zoom-i.zoom)*r,l;if(t)l=te(P(t,i),t,c);else{let e=Q(i.center,c),t=Q(a.center,c);l=Ht(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r,c)}M({center:l,zoom:c}),n<1&&(T.current=requestAnimationFrame(s))};T.current=requestAnimationFrame(s)},[M,n,r,b.w,b.h]),ee=i.default.useRef(!0);i.default.useEffect(()=>{if(ee.current){ee.current=!1;return}N({center:e,zoom:t})},[e[0],e[1],t]),i.default.useEffect(()=>()=>cancelAnimationFrame(T.current),[]);let P=(e,t)=>{let n=Q(t.center,t.zoom);return Ht(n.x+e.x-b.w/2,n.y+e.y-b.h/2,t.zoom)},te=(e,t,n)=>{let r=Q(e,n);return Ht(r.x-(t.x-b.w/2),r.y-(t.y-b.h/2),n)},ne=i.default.useRef(null),F=(e,t)=>{let n=w.current,r=Q(n.center,n.zoom);M({center:Ht(r.x-e,r.y-t,n.zoom),zoom:n.zoom})},re=e=>{e.button!==0||e.target.closest(`[data-map-ui]`)||(cancelAnimationFrame(T.current),ne.current={id:e.pointerId,x:e.clientX,y:e.clientY,moved:!1,samples:[{x:e.clientX,y:e.clientY,t:performance.now()}]})},I=e=>{let t=ne.current;if(!t||t.id!==e.pointerId)return;let n=e.clientX-t.x,r=e.clientY-t.y;!t.moved&&Math.hypot(n,r)<3||(t.moved||(t.moved=!0,y.current?.setPointerCapture(e.pointerId)),t.x=e.clientX,t.y=e.clientY,t.samples.push({x:e.clientX,y:e.clientY,t:performance.now()}),t.samples.length>5&&t.samples.shift(),F(n,r))},ie=()=>{let e=ne.current;if(ne.current=null,!e||!e.moved||on())return;let t=e.samples[0],n=e.samples[e.samples.length-1],r=Math.max(1,n.t-t.t);if(performance.now()-n.t>80)return;let i=(n.x-t.x)/r*16,a=(n.y-t.y)/r*16,o=()=>{i*=.9,a*=.9,!(Math.hypot(i,a)<.3)&&(F(i,a),T.current=requestAnimationFrame(o))};T.current=requestAnimationFrame(o)};i.default.useEffect(()=>{let e=y.current;if(!e)return;let t=t=>{t.preventDefault(),cancelAnimationFrame(T.current);let i=e.getBoundingClientRect(),a={x:t.clientX-i.left,y:t.clientY-i.top},o=w.current,s=Z(-t.deltaY*(t.ctrlKey?.01:.002),-.5,.5),c=Z(o.zoom+s,n,r),l=Q(o.center,o.zoom),u=Q(Ht(l.x+a.x-i.width/2,l.y+a.y-i.height/2,o.zoom),c);M({center:Ht(u.x-(a.x-i.width/2),u.y-(a.y-i.height/2),c),zoom:c})};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[M,n,r]);let L=e=>{if(e.target.closest(`[data-map-ui]`))return;let t=y.current.getBoundingClientRect();N({center:S.center,zoom:Math.round(S.zoom)+1},{x:e.clientX-t.left,y:e.clientY-t.top})},ae=e=>{if(e.target!==e.currentTarget)return;let t=e.key;if(t===`ArrowLeft`)F(80,0);else if(t===`ArrowRight`)F(-80,0);else if(t===`ArrowUp`)F(0,80);else if(t===`ArrowDown`)F(0,-80);else if(t===`+`||t===`=`)N({center:S.center,zoom:Math.round(S.zoom)+1});else if(t===`-`||t===`_`)N({center:S.center,zoom:Math.round(S.zoom)-1});else return;e.preventDefault()},oe=()=>{if(!navigator.geolocation){m?.(Error(`Geolocation is not supported in this browser.`));return}navigator.geolocation.getCurrentPosition(e=>{let t=[e.coords.latitude,e.coords.longitude];D(t),N({center:t,zoom:Math.max(S.zoom,14)}),p?.(t)},e=>m?.(e))},se=i.default.useRef(b);se.current=b;let R=i.default.useRef(N);R.current=N;let ce=i.default.useCallback((e,t)=>{R.current({center:e,zoom:t??w.current.zoom})},[]),z=i.default.useCallback((e,t=48)=>{if(!e.length)return;let{w:n,h:r}=se.current,i=e.map(e=>e[0]),a=e.map(t=>e[0][1]+((t[1]-e[0][1]+540)%360-180)),[o,s,c,l]=[Math.min(...i),Math.max(...i),Math.min(...a),Math.max(...a)],u=[(o+s)/2,Vt((c+l)/2)],d=Q([s,c],0),f=Q([o,l],0),p=Math.max(1e-6,Math.abs(f.x-d.x)),m=Math.max(1e-6,Math.abs(f.y-d.y)),h=Math.min(Math.log2(Math.max(1,n-t*2)/p),Math.log2(Math.max(1,r-t*2)/m));R.current({center:u,zoom:e.length===1||!Number.isFinite(h)?Math.max(w.current.zoom,14):Math.floor(h*4)/4})},[]),le=Z(Math.round(S.zoom),0,r),B=2**(S.zoom-le),ue=[];if(b.w&&b.h){let e=Q(S.center,le),t={x:b.w/2/B,y:b.h/2/B},n=2**le,r=Math.floor((e.x-t.x)/256),i=Math.floor((e.x+t.x)/256),a=Math.max(0,Math.floor((e.y-t.y)/256)),o=Math.min(n-1,Math.floor((e.y+t.y)/256));for(let t=a;t<=o;t++)for(let a=r;a<=i;a++){let r=(a%n+n)%n;ue.push({key:`${le}/${a}/${t}`,src:j.replace(`{z}`,String(le)).replace(`{x}`,String(r)).replace(`{y}`,String(t)),left:(a*256-e.x)*B+b.w/2,top:(t*256-e.y)*B+b.h/2})}}let de=256*B,fe=i.default.useMemo(()=>{let e=Q(S.center,S.zoom),t=256*2**S.zoom;return{zoom:S.zoom,flyTo:ce,fitBounds:z,maxZoom:r,project:n=>{if(!b.w||!b.h)return null;let r=Q(n,S.zoom),i=r.x-e.x;i-=Math.round(i/t)*t;let a=i+b.w/2,o=r.y-e.y+b.h/2;return a<-200||o<-200||a>b.w+200||o>b.h+200?null:{x:a,y:o}}}},[S,b.w,b.h,ce,z,r]);return(0,a.jsxs)(`div`,{ref:y,className:[X.map,l===`dark`?`dark`:``,_??``].filter(Boolean).join(` `),"data-own-dark-tiles":A?``:void 0,style:{height:h},role:`region`,"aria-roledescription":`map`,"aria-label":g,tabIndex:0,onPointerDown:re,onPointerMove:I,onPointerUp:ie,onPointerCancel:ie,onDoubleClick:L,onKeyDown:ae,children:[(0,a.jsx)(`div`,{className:X.tiles,"aria-hidden":`true`,children:ue.map(e=>(0,a.jsx)(`img`,{src:e.src,alt:``,draggable:!1,className:X.tile,style:{left:e.left,top:e.top,width:de+.5,height:de+.5},onLoad:e=>e.currentTarget.setAttribute(`data-loaded`,``)},e.key))}),(0,a.jsx)(Xt.Provider,{value:fe,children:(0,a.jsxs)(`div`,{className:X.overlay,children:[v,E&&(0,a.jsx)(tn,{position:E,variant:`dot`,label:`Your location`})]})}),(d||f)&&(0,a.jsx)(Lt,{zoom:d,locate:f,onLocate:oe,zoomInDisabled:S.zoom>=r,zoomOutDisabled:S.zoom<=n,onZoomIn:()=>N({center:S.center,zoom:Math.round(S.zoom)+1}),onZoomOut:()=>N({center:S.center,zoom:Math.round(S.zoom)-1})}),u!=null&&(0,a.jsx)(`div`,{className:X.attribution,"data-map-ui":``,children:u})]})};sn.displayName=`Map`;var cn=({position:e,title:r,description:i,onClose:o,offset:s=48,pointer:c=!0,glide:l,children:u,className:d})=>{let{project:f}=Zt(),p=f($t(e,l));return p?(0,a.jsxs)(`div`,{className:[X.popup,d??``].filter(Boolean).join(` `),style:{left:p.x,top:p.y-s},role:`dialog`,"aria-label":typeof r==`string`?r:void 0,"data-map-ui":``,onKeyDown:e=>{e.key===`Escape`&&o&&(e.stopPropagation(),o())},children:[(r||o)&&(0,a.jsxs)(`div`,{className:X.popupHeader,children:[r&&(0,a.jsx)(`div`,{className:X.popupTitle,children:r}),o&&(0,a.jsx)(`button`,{type:`button`,className:X.popupClose,"aria-label":`Close`,onClick:o,children:(0,a.jsx)(n.W,{size:14,strokeWidth:t.Ht(14),"aria-hidden":`true`})})]}),i&&(0,a.jsx)(`div`,{className:X.popupDescription,children:i}),u,c&&(0,a.jsx)(`span`,{className:X.popupPointer,"aria-hidden":`true`})]}):null};cn.displayName=`MapPopup`;var ln={globe:`_globe_w22uh_2`,"globe--draggable":`_globe--draggable_w22uh_10`,canvas:`_canvas_w22uh_12`,srOnly:`_srOnly_w22uh_15`},un=8,dn=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function fn(e,t){t.fillStyle=`#000`,t.fillStyle=e;let n=String(t.fillStyle);if(n.startsWith(`#`))return[1,3,5].map(e=>parseInt(n.slice(e,e+2),16)).join(`,`);let r=n.match(/[\d.]+/g);return r?r.slice(0,3).join(`,`):`20,20,20`}var pn=({variant:e=`land`,center:n=[15,90],markers:r=[],arcs:o=[],autoRotate:s=!0,rotationSpeed:c=6,draggable:l=!0,atmosphere:u=!0,dotSpacing:d=1.3,theme:f=`auto`,onMarkerClick:p,onMarkerHover:m,"aria-label":h=`Globe`,className:g})=>{let _=i.default.useRef(null),v=i.default.useRef(null),y=t.At(),b=i.default.useMemo(()=>Kt(d),[d]),x=i.default.useMemo(()=>o.map(e=>Yt(e.from,e.to)),[o]),S=i.default.useRef({rot:n[1],tilt:Z(n[0],-60,60),vr:0,vt:0,dragging:!1,idleUntil:0}),C=i.default.useRef({rgb:`20,20,20`,surface:`255,255,255`,border:`230,230,230`,font:`sans-serif`,visible:!0,size:0,hits:[]}),w=i.default.useRef({markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c});w.current={markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c};let T=i.default.useRef({onMarkerClick:p,onMarkerHover:m});T.current={onMarkerClick:p,onMarkerHover:m};let E=i.default.useRef(null),D=e=>{E.current!==e&&(E.current=e,_.current&&(_.current.style.cursor=e==null?``:`pointer`),T.current.onMarkerHover?.(e))};i.default.useEffect(()=>{let e=v.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`);if(!t)return;let n=getComputedStyle(e),r=(e,r)=>fn(n.getPropertyValue(e).trim()||r,t);C.current.rgb=fn(n.getPropertyValue(`--color-fg-default`).trim()||n.color,t),C.current.surface=r(`--color-bg-surface`,`#ffffff`),C.current.border=r(`--color-border-subtle`,`#e5e5e5`),C.current.font=n.fontFamily||`sans-serif`},[y,f]),i.default.useEffect(()=>{let e=v.current,t=_.current;if(!e||!t)return;let n=e.getContext(`2d`);if(!n)return;let r=0,i=performance.now(),a=i,o=()=>{let r=t.clientWidth,i=Math.min(2,window.devicePixelRatio||1);C.current.size=r,e.width=Math.round(r*i),e.height=Math.round(r*i),e.style.width=`${r}px`,e.style.height=`${r}px`,n.setTransform(i,0,0,i,0,0)},s=new ResizeObserver(o);s.observe(t),o();let c=new IntersectionObserver(([e])=>{C.current.visible=e.isIntersecting});c.observe(t);let l=e=>{let t=C.current.size;if(!t)return;let r=w.current,i=S.current,o=C.current.rgb,s=t*.42,c=t/2,l=t/2,u=t/480,d=qt(i.rot,i.tilt);if(n.clearRect(0,0,t,t),r.atmosphere){let e=n.createRadialGradient(c,l,s*.9,c,l,s*1.16);e.addColorStop(0,`rgba(${o},0.11)`),e.addColorStop(1,`rgba(${o},0)`),n.fillStyle=e,n.beginPath(),n.arc(c,l,s*1.16,0,Math.PI*2),n.fill()}let f=n.createRadialGradient(c-s*.35,l-s*.4,s*.1,c,l,s);f.addColorStop(0,`rgba(${o},0.07)`),f.addColorStop(1,`rgba(${o},0.02)`),n.fillStyle=f,n.beginPath(),n.arc(c,l,s,0,Math.PI*2),n.fill();let p=Array.from({length:un},()=>new Path2D),m=new Path2D,h=r.variant===`ocean`;for(let e of b){let t=d(e.cp,e.sp,e.lam);if(t.z<=0)continue;let n=t.z**.55,r=c+s*t.x,i=l-s*t.y;if(h?!e.land:e.land){let e=1.15*u*(.6+.4*n),t=p[Math.min(un-1,Math.floor(n*un))];t.moveTo(r+e,i),t.arc(r,i,e,0,Math.PI*2)}else{let e=.8*u*(.6+.4*n);m.moveTo(r+e,i),m.arc(r,i,e,0,Math.PI*2)}}n.fillStyle=`rgba(${o},0.12)`,n.fill(m),p.forEach((e,t)=>{n.fillStyle=`rgba(${o},${.22+.78*((t+.5)/un)})`,n.fill(e)}),n.lineCap=`round`;let g=(e-a)/1e3;r.arcPts.forEach((e,t)=>{let r=(g/2.6+t*.37)%1*(e.length-1);for(let t=1;t<e.length;t++){let i=e[t-1],a=e[t],f=d(i.cp,i.sp,i.lam),p=d(a.cp,a.sp,a.lam),m=Math.min(f.z,p.z),h=p.x*a.h,g=p.y*a.h;if(m<.04||Math.hypot(h,g)>.995&&m<.35)continue;let _=Math.min(1,(m-.04)/.25),v=Math.max(0,1-Math.abs(t-r)/6);n.strokeStyle=`rgba(${o},${(.28+.4*Math.sin(Math.PI*t/e.length)+.5*v)*_})`,n.lineWidth=(1.1+1.1*v)*u,n.beginPath(),n.moveTo(c+s*f.x*i.h,l-s*f.y*i.h),n.lineTo(c+s*h,l-s*g),n.stroke()}});let _=[],v=[];r.markers.forEach((e,t)=>{let r=Jt(e.position),i=d(r.cp,r.sp,r.lam);if(i.z<=.06)return;let a=c+s*i.x,f=l-s*i.y,p=Math.min(1,(i.z-.06)/.2);_.push({i:t,x:a,y:f});let m=!!e.selected,h=!!e.hovered||E.current===t;if((m||h)&&(n.fillStyle=`rgba(${o},${(m?.2:.14)*p})`,n.beginPath(),n.arc(a,f,(m?15:11)*u,0,Math.PI*2),n.fill(),e.label&&v.push({x:a,y:f,label:e.label,k:p})),e.active){let e=g%2/2;n.strokeStyle=`rgba(${o},${.5*(1-e)*p})`,n.lineWidth=1.5*u,n.beginPath(),n.arc(a,f,(5+14*e)*u,0,Math.PI*2),n.stroke(),n.fillStyle=`rgba(${o},${.16*p})`,n.beginPath(),n.arc(a,f,9*u,0,Math.PI*2),n.fill()}n.globalCompositeOperation=`destination-out`,n.beginPath(),n.arc(a,f,(m?7:h?6.5:5.5)*u,0,Math.PI*2),n.fill(),n.globalCompositeOperation=`source-over`,n.fillStyle=`rgba(${o},${p})`,n.beginPath(),n.arc(a,f,(m?5:h?4.5:3.5)*u,0,Math.PI*2),n.fill()}),C.current.hits=_;for(let e of v){n.font=`500 ${12*u}px ${C.current.font}`;let r=n.measureText(e.label).width+16*u,i=24*u,a=16*u,s=Z(e.x-r/2,4*u,t-r-4*u),c=e.y-a-i<4*u?e.y+a:e.y-a-i;n.save(),n.globalAlpha=e.k,n.shadowColor=`rgba(0,0,0,0.18)`,n.shadowBlur=8*u,n.shadowOffsetY=2*u,n.fillStyle=`rgb(${C.current.surface})`,n.beginPath(),n.roundRect?n.roundRect(s,c,r,i,6*u):n.rect(s,c,r,i),n.fill(),n.shadowColor=`transparent`,n.strokeStyle=`rgb(${C.current.border})`,n.lineWidth=u,n.stroke(),n.fillStyle=`rgb(${o})`,n.textBaseline=`middle`,n.fillText(e.label,s+8*u,c+i/2+u*.5),n.restore()}},u=e=>{let t=Math.min(.05,(e-i)/1e3);i=e;let n=S.current,a=w.current;n.dragging||(n.rot+=n.vr*t,n.tilt=Z(n.tilt+n.vt*t,-60,60),n.vr*=.04**t,n.vt*=.04**t,a.autoRotate&&!dn()&&e>n.idleUntil&&E.current==null&&(n.rot+=a.rotationSpeed*t)),C.current.visible&&l(e),r=requestAnimationFrame(u)};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r),s.disconnect(),c.disconnect()}},[b]);let O=(e,t)=>{let n=_.current?.getBoundingClientRect();if(!n)return null;let r=e-n.left,i=t-n.top,a=Math.max(10,C.current.size/480*12),o=null,s=a;for(let e of C.current.hits){let t=Math.hypot(e.x-r,e.y-i);t<=s&&(o=e.i,s=t)}return o},k=i.default.useRef(null),A=i.default.useRef(null),j=e=>{let t=O(e.clientX,e.clientY);A.current={x:e.clientX,y:e.clientY,hit:t},D(t),l&&(e.currentTarget.setPointerCapture(e.pointerId),k.current={x:e.clientX,y:e.clientY,t:performance.now()},S.current.dragging=!0,S.current.vr=0,S.current.vt=0)},M=e=>{let t=A.current;t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>4&&(t.hit=null);let n=k.current;if(!n){t||D(O(e.clientX,e.clientY));return}let r=S.current,i=180/Math.max(1,C.current.size*.84*Math.PI)*1.6,a=e.clientX-n.x,o=e.clientY-n.y,s=Math.max(1,performance.now()-n.t)/1e3;r.rot-=a*i,r.tilt=Z(r.tilt+o*i,-60,60),r.vr=-a*i/s,r.vt=o*i/s,n.x=e.clientX,n.y=e.clientY,n.t=performance.now()},N=e=>{let t=A.current;if(A.current=null,t&&t.hit!=null&&e.type===`pointerup`&&T.current.onMarkerClick?.(t.hit,w.current.markers[t.hit]),!k.current)return;k.current=null;let n=S.current;n.dragging=!1,n.idleUntil=performance.now()+1500,dn()&&(n.vr=0,n.vt=0)};return(0,a.jsxs)(`div`,{ref:_,className:[ln.globe,l?ln[`globe--draggable`]:``,f===`dark`?`dark`:``,g??``].filter(Boolean).join(` `),role:p?`group`:`img`,"aria-label":h,onPointerDown:j,onPointerMove:M,onPointerUp:N,onPointerCancel:N,onPointerLeave:()=>{A.current||D(null)},children:[(0,a.jsx)(`canvas`,{ref:v,className:ln.canvas,"aria-hidden":p?!0:void 0}),p&&r.map((e,t)=>e.label&&(0,a.jsx)(`button`,{type:`button`,className:ln.srOnly,onFocus:()=>D(t),onBlur:()=>D(null),onClick:()=>p(t,e),children:e.label},t))]})};pn.displayName=`MapGlobe`;function mn({points:e,renderPoint:t,radius:n=56,clusterMaxZoom:r=16,onClusterClick:o}){let{zoom:s,project:c,fitBounds:l,flyTo:u,maxZoom:d}=Zt(),f=Math.floor(s),p=f<r,m=i.default.useMemo(()=>{if(!p)return e.map(e=>({key:String(e.id),position:e.position,points:[e]}));let t=new Map;for(let r of e){let e=Q(r.position,f),i=`${Math.floor(e.x/n)}:${Math.floor(e.y/n)}`,a=t.get(i);a?a.push(r):t.set(i,[r])}let r=n*.8,i=Array.from(t,([e,t])=>{let n=t.reduce((e,t)=>e+t.position[0],0)/t.length,r=t.reduce((e,t)=>e+t.position[1],0)/t.length;return{k:e,pts:t,lat:n,lng:r,...Q([n,r],f)}}).sort((e,t)=>t.pts.length-e.pts.length),a=[],o=new Map;for(let e of i){let t=Math.floor(e.x/r),n=Math.floor(e.y/r),i;for(let a=-1;a<=1&&!i;a++)for(let s=-1;s<=1&&!i;s++)i=o.get(`${t+a}:${n+s}`)?.find(t=>Math.hypot(t.x-e.x,t.y-e.y)<r);if(i){let t=i.pts.length+e.pts.length;i.lat=(i.lat*i.pts.length+e.lat*e.pts.length)/t,i.lng=(i.lng*i.pts.length+e.lng*e.pts.length)/t,i.pts=i.pts.concat(e.pts),Object.assign(i,Q([i.lat,i.lng],f))}else{a.push(e);let r=`${t}:${n}`;o.set(r,[...o.get(r)??[],e])}}return a.map(e=>({key:e.pts.length===1?String(e.pts[0].id):`c${f}:${e.k}`,position:e.pts.length===1?e.pts[0].position:[e.lat,e.lng],points:e.pts}))},[e,f,n,p]),h=e=>{let t=e.points.map(e=>e.position);t.every(e=>e[0]===t[0][0]&&e[1]===t[0][1])?u(e.position,Math.min(d,f+3)):l(t),o?.(e.points)};return(0,a.jsx)(a.Fragment,{children:m.map(e=>c(e.position)?e.points.length===1?(0,a.jsx)(i.default.Fragment,{children:t(e.points[0])},e.key):(0,a.jsx)(tn,{variant:`cluster`,position:e.position,count:e.points.length,onClick:()=>h(e)},e.key):null)})}mn.displayName=`MapClusterLayer`;var hn={chart:`_chart_cc7lx_2`,center:`_center_cc7lx_30`,center__value:`_center__value_cc7lx_39`,center__caption:`_center__caption_cc7lx_40`},gn={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},_n=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),vn=new Set([`donut-active`]),yn=new Set([`interactive`]),bn=new Set([`donut-with-text`]),xn=Math.PI/180,Sn=({data:e,variant:n=`donut`,size:r=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=i.default.useRef(null),d=t.gt(u),[f,p]=i.default.useState(void 0),m=[1,2,3,4,5].map(e=>d(`--color-chart-${e}`)??t.ht[e-1]),h=d(`--color-bg-surface`)??`#ffffff`,g=d(`--color-fg-default`)??`#141414`,_=gn[r],v=_n.has(n),y=vn.has(n),b=yn.has(n),x=v?_.outer*.6:0,S=bn.has(n)&&(s||c),C=f??(y||b?0:void 0),w=e=>{let{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===C,f=d&&(y||b)?16:0;return d&&b?(0,a.jsxs)(`g`,{children:[(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l}),(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:i+f+3,outerRadius:i+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l})},T=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*xn),s=Math.sin(-a*xn),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},E=e=>{let{value:t,fill:n}=e,{d:r,endX:i,endY:o,textAnchor:s}=T(e),c=i+(s===`start`?4:-4);return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`path`,{d:r,fill:`none`,stroke:n,strokeWidth:1}),(0,a.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:g,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},D=e=>{let{x:t,y:n,textAnchor:r,value:i}=e;return(0,a.jsx)(`text`,{x:t,y:n,textAnchor:r,dominantBaseline:`central`,fill:g,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:i})},O=t=>{let{cx:n,cy:r,midAngle:i,innerRadius:o,outerRadius:s,index:c}=t,l=(o+s)/2;return(0,a.jsx)(`text`,{x:n+l*Math.cos(-i*xn),y:r+l*Math.sin(-i*xn),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[c]?.label})};if(n===`stacked`){let n=e=>f!==void 0&&f!==e?.45:1;return(0,a.jsx)(`div`,{ref:u,className:[hn.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:_.outer*.82,outerRadius:_.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:_.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.mt,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,a.jsxs)(`div`,{ref:u,className:[hn.chart,l??``].filter(Boolean).join(` `),style:{height:_.h},children:[(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:x,outerRadius:_.outer,paddingAngle:0,stroke:n===`pie`?h:`none`,strokeWidth:n===`pie`?2:0,isAnimationActive:!1,shape:y||b?w:void 0,label:n===`label`?E:n===`custom-label`?D:n===`label-list`?O:void 0,labelLine:!1,onMouseEnter:(e,t)=>p(t),onMouseLeave:()=>p(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:m[t%m.length]},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.mt,{}),wrapperStyle:{zIndex:50}})]})}),S&&(0,a.jsxs)(`div`,{className:hn.center,children:[s&&(0,a.jsx)(`span`,{className:hn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:hn.center__caption,children:c})]})]})},Cn={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},wn=({trigger:e,title:t,description:n,actions:r,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=i.default.useState(!1),[d,f]=i.default.useState(!1),p=i.default.useRef(null),m=i.default.useRef(null);return i.default.useEffect(()=>{l&&f(!0)},[l]),i.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),i.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),i.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,a.jsxs)(`div`,{className:[Cn.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,a.jsx)(`span`,{className:Cn.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,a.jsxs)(`div`,{className:[Cn.panel,Cn[`panel--${o}`],l?Cn[`panel--entering`]:Cn[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[t&&(0,a.jsx)(`div`,{className:Cn.panel__title,children:t}),n&&(0,a.jsx)(`div`,{className:Cn.panel__description,children:n}),s&&(0,a.jsx)(`div`,{className:Cn.panel__body,children:s}),r&&(0,a.jsx)(`div`,{className:Cn.panel__actions,children:r})]})]})},Tn={chart:`_chart_q6xhl_2`,circleFillSvg:`_circleFillSvg_q6xhl_17`},En={sm:200,md:260,lg:340,xl:420},Dn=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),On=new Set([`default`,`grid-custom`]),kn=new Set([`dots-grid-none`]),An=new Set([`grid-filled`]),jn=e=>e===`circle-grid-filled`,Mn=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),Nn=[1,.8,.6,.4,.2],Pn=({data:e,variant:n=`default`,size:r=`md`,seriesLabels:s=[`Value`,`Value 2`],className:c})=>{let l=i.default.useRef(null),u=t.gt(l),d=u(`--color-chart-1`)??`#ff4700`,f=u(`--color-chart-2`)??`#5b92dd`,p=u(`--color-border-default`)??`#dbdad7`,m=u(`--color-fg-subtle`)??`#a8a29b`,h=n===`multiple`,g=n===`lines-only`,_=h||n===`custom-label`||g,v=!g,y=n===`dots`||n===`dots-grid-none`||n===`circle-grid`||n===`circle-grid-no-lines`,b=An.has(n),x=On.has(n),S=kn.has(n),C=jn(n),[w,T]=i.default.useState(0);i.default.useEffect(()=>{if(!C||!l.current)return;let e=l.current,t=new ResizeObserver(([e])=>T(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[C]);let E=i.default.useMemo(()=>{if(!b)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return Nn.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,b]),D=t=>{let{x:n,y:r,cx:i,cy:o,payload:s,textAnchor:c}=t,l=e.find(e=>e.label===s?.value)??e[s?.index];if(!l)return(0,a.jsx)(`g`,{});let u=n-i,d=r-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,p=Math.abs(d)>Math.abs(u),h,g;if(p&&d<0)g=r-4-6,h=g-16;else if(p)h=r+4+10,g=h+18;else{let e=r+d/(Math.sqrt(u*u+d*d)||1)*4;h=e-8,g=e+12}let _=p?n:n+u/Math.sqrt(u*u+d*d||1)*4;return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`text`,{x:_,y:h,textAnchor:c,fill:m,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,a.jsx)(`text`,{x:_,y:g,textAnchor:c,fill:m,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},O=En[r],k=(w>0?Math.min(w,O)/2-5:0)*.7;return(0,a.jsxs)(`div`,{ref:l,className:[Tn.chart,c??``].filter(Boolean).join(` `),children:[C&&w>0&&(0,a.jsx)(`svg`,{className:Tn.circleFillSvg,width:w,height:O,children:Nn.map(e=>(0,a.jsx)(`circle`,{cx:w/2,cy:O/2,r:k*e,fill:f,fillOpacity:.1},e))}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:O,children:(0,a.jsxs)(o.RadarChart,{data:E,outerRadius:`70%`,children:[!b&&!S&&(0,a.jsx)(o.PolarGrid,{gridType:Dn.has(n)?`circle`:`polygon`,radialLines:n!==`circle-grid-no-lines`&&!x,stroke:p}),(0,a.jsx)(o.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:n===`custom-label`?D:{fill:m,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,a.jsx)(o.PolarRadiusAxis,{tick:!1,axisLine:!1,tickCount:x?2:void 0}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t.mt,{}),wrapperStyle:{zIndex:50}}),h&&(0,a.jsx)(o.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),b&&Nn.map((e,t)=>(0,a.jsx)(o.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:f,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,a.jsx)(o.Radar,{name:h?s[0]??`Value`:void 0,dataKey:`value`,stroke:Mn.has(n)?`none`:f,fill:v?f:`none`,fillOpacity:v?x?1:_?.45:.5:0,strokeWidth:Mn.has(n)?0:2,dot:y?{r:4,fill:f,stroke:`none`}:!1,isAnimationActive:!1}),_&&(0,a.jsx)(o.Radar,{name:h?s[1]??`Value 2`:void 0,dataKey:`value2`,stroke:g?d:`none`,fill:g?`none`:d,fillOpacity:g?0:.8,strokeWidth:g?2:0,dot:y?{r:4,fill:d,stroke:`none`}:!1,isAnimationActive:!1})]})})]})},Fn={chart:`_chart_1ogmh_2`,gridSvg:`_gridSvg_1ogmh_19`,gaugeSvg:`_gaugeSvg_1ogmh_31`,center:`_center_1ogmh_36`,center__value:`_center__value_1ogmh_45`,center__caption:`_center__caption_1ogmh_46`},In={sm:180,md:220,lg:280,xl:340},Ln=Math.PI/180,Rn=e=>Math.round(e*1e3)/1e3,zn={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Bn=({value:e,max:t,color:n,track:r,centerValue:i,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:Fn.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let i=180+t/39*180;return(0,a.jsx)(`line`,{x1:Rn(100+78*Math.cos(i*Ln)),y1:Rn(100+78*Math.sin(i*Ln)),x2:Rn(100+92*Math.cos(i*Ln)),y2:Rn(100+92*Math.sin(i*Ln)),stroke:t<l?n:r,strokeWidth:2.5,strokeLinecap:`round`},t)}),(i||o)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[i&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:i}),o&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Vn=({rings:e,spokes:t,color:n})=>(0,a.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:Fn.gridSvg,children:[Array.from({length:e}).map((t,r)=>(0,a.jsx)(`circle`,{cx:100,cy:100,r:(r+1)/e*96,fill:`none`,stroke:n,strokeWidth:1},r)),Array.from({length:t}).map((e,r)=>{let i=r/t*360,o=99.5*1.1;return(0,a.jsx)(`line`,{x1:100,y1:100,x2:Rn(100+o*Math.cos(i*Ln)),y2:Rn(100+o*Math.sin(i*Ln)),stroke:n,strokeWidth:1},r)})]}),Hn=({data:e,palette:t,track:n,centerValue:r,centerCaption:i,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:Fn.gaugeSvg,children:[d.map((e,t)=>(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:n,cornerRadius:4}),(r||i)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[r&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:r}),i&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:i})]})]})},Un=({data:e,variant:n=`multi`,size:r=`md`,centerValue:s,centerCaption:c,className:l})=>{let u=i.default.useRef(null),d=t.gt(u),f=[1,2,3,4,5].map(e=>d(`--color-chart-${e}`)??t.ht[e-1]),p=d(`--color-bg-subtle`)??`#f5f4f2`,m=d(`--color-border-subtle`)??`#e7e5e1`,h=d(`--color-fg-default`)??`#141414`,g=d(`--color-fg-muted`)??`#78716a`,_=In[r];if(n===`gauge-tick`){let t=e[0];return(0,a.jsx)(`div`,{ref:u,className:[Fn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,a.jsx)(Bn,{value:t?.value??0,max:t?.max??100,color:f[0],track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})})}if(n===`shape`||n===`stacked`||n===`stacked-3-layers`)return(0,a.jsx)(`div`,{ref:u,className:[Fn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:(0,a.jsx)(Hn,{data:e,palette:f,track:p,centerValue:s,centerCaption:c,labelColor:h,captionColor:g})});let[v,y]=zn[n]??[`30%`,`100%`],b=(n===`stacked-label`||n===`text`)&&(s||c);return(0,a.jsxs)(`div`,{ref:u,className:[Fn.chart,l??``].filter(Boolean).join(` `),style:{height:_},children:[n===`grid`&&(0,a.jsx)(Vn,{rings:8,spokes:12,color:m}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.RadialBarChart,{data:e,innerRadius:v,outerRadius:y,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,a.jsx)(o.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,a.jsx)(o.RadialBar,{dataKey:`value`,background:n!==`grid`&&{fill:p},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:f[t%f.length]},t))})]})}),b&&(0,a.jsxs)(`div`,{className:Fn.center,children:[s&&(0,a.jsx)(`span`,{className:Fn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:Fn.center__caption,children:c})]})]})},Wn={wrapper:`_wrapper_1g6lv_3`,"wrapper--disabled":`_wrapper--disabled_1g6lv_11`,input:`_input_1g6lv_13`,circle:`_circle_1g6lv_15`,dot:`_dot_1g6lv_33`,text:`_text_1g6lv_81`,text__label:`_text__label_1g6lv_82`,text__description:`_text__description_1g6lv_83`,"wrapper--withDescription":`_wrapper--withDescription_1g6lv_87`},Gn=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,...s},c)=>{let l=i.default.useId(),u=r??l;return(0,a.jsxs)(`label`,{htmlFor:u,className:[Wn.wrapper,t?Wn[`wrapper--withDescription`]:``,n?Wn[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:n,className:Wn.input,...s}),(0,a.jsx)(`span`,{className:Wn.circle,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:Wn.dot})}),(e||t)&&(0,a.jsxs)(`span`,{className:Wn.text,children:[e&&(0,a.jsx)(`span`,{className:Wn.text__label,children:e}),t&&(0,a.jsx)(`span`,{className:Wn.text__description,children:t})]})]})});Gn.displayName=`Radio`;var Kn={search:`_search_8tjlu_2`,search__icon:`_search__icon_8tjlu_25`,search__input:`_search__input_8tjlu_26`,search__placeholder:`_search__placeholder_8tjlu_38`,search__kbd:`_search__kbd_8tjlu_39`,collapsed:`_collapsed_8tjlu_53`},qn=({type:e=`field`,placeholder:r=`Search…`,collapsed:i,value:o,onChange:s,onClick:c})=>i?(0,a.jsx)(`button`,{type:`button`,className:Kn.collapsed,onClick:c,"aria-label":`Search`,children:(0,a.jsx)(n.C,{size:18,strokeWidth:t.Ht(18)})}):e===`command`?(0,a.jsxs)(`button`,{type:`button`,className:Kn.search,onClick:c,children:[(0,a.jsx)(n.C,{size:16,strokeWidth:t.Ht(16),className:Kn.search__icon}),(0,a.jsx)(`span`,{className:Kn.search__placeholder,children:r}),(0,a.jsx)(`kbd`,{className:Kn.search__kbd,children:`⌘K`})]}):(0,a.jsxs)(`div`,{className:Kn.search,children:[(0,a.jsx)(n.C,{size:16,strokeWidth:t.Ht(16),className:Kn.search__icon}),(0,a.jsx)(`input`,{className:Kn.search__input,placeholder:r,value:o,onChange:e=>s?.(e.target.value)})]}),Jn={toaster:`_toaster_p33dc_7`,toast:`_toast_p33dc_7`,swipeOutLeft:`_swipeOutLeft_p33dc_1`,swipeOutRight:`_swipeOutRight_p33dc_1`,swipeOutUp:`_swipeOutUp_p33dc_1`,swipeOutDown:`_swipeOutDown_p33dc_1`,icon:`_icon_p33dc_160`,content:`_content_p33dc_173`,title:`_title_p33dc_180`,description:`_description_p33dc_181`,button:`_button_p33dc_183`,cancel:`_cancel_p33dc_202`,close:`_close_p33dc_204`,spinner:`_spinner_p33dc_229`,spinnerBar:`_spinnerBar_p33dc_234`,spinnerFade:`_spinnerFade_p33dc_1`},Yn=0,Xn=[],Zn=new Set;function Qn(e){for(let t of Zn)t(e)}var $n={subscribe(e){return Zn.add(e),()=>{Zn.delete(e)}},active:()=>Xn,remove(e){Xn=Xn.filter(t=>t.id!==e)}};function er(e,t,n={}){let r=n.id??`sakani-toast-${++Yn}`,i=Xn.find(e=>e.id===r),a={...i,...n,id:r,type:e,title:t,delete:!1,version:(i?.version??0)+1};return Xn=i?Xn.map(e=>e.id===r?a:e):[a,...Xn],Qn({kind:`upsert`,toast:a}),r}function tr(e){return Xn=e===void 0?[]:Xn.filter(t=>t.id!==e),Qn({kind:`dismiss`,id:e}),e}function nr(e,t){let{loading:n,success:r,error:i,finally:a,id:o,...s}=t,c=o??`sakani-toast-${++Yn}`;return n!==void 0&&er(`loading`,n,{...s,id:c}),(typeof e==`function`?e():e).then(e=>{if(r===void 0){n!==void 0&&tr(c);return}er(`success`,typeof r==`function`?r(e):r,{...s,id:c})},e=>{if(i===void 0){n!==void 0&&tr(c);return}er(`error`,typeof i==`function`?i(e):i,{...s,id:c})}).finally(()=>a?.()),c}var rr=Object.assign((e,t)=>er(`default`,e,t),{message:(e,t)=>er(`default`,e,t),success:(e,t)=>er(`success`,e,t),info:(e,t)=>er(`info`,e,t),warning:(e,t)=>er(`warning`,e,t),error:(e,t)=>er(`error`,e,t),loading:(e,t)=>er(`loading`,e,t),promise:nr,dismiss:tr}),ir=356,ar=45,or=200,sr=e=>typeof e==`number`?`${e}px`:e,cr=(...e)=>e.filter(Boolean).join(` `),lr={success:{viewBox:`0 0 20 20`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`},info:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`},warning:{viewBox:`0 0 24 24`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`},error:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`}};function ur({type:e}){if(e===`loading`)return(0,a.jsx)(`span`,{className:Jn.spinner,"aria-hidden":`true`,children:Array.from({length:12},(e,t)=>(0,a.jsx)(`span`,{className:Jn.spinnerBar,style:{transform:`rotate(${t*30||1e-4}deg) translate(146%)`,animationDelay:`${-1.2+t*.1}s`}},t))});let t=lr[e];return t?(0,a.jsx)(`svg`,{viewBox:t.viewBox,width:16,height:16,fill:`currentColor`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:t.d})}):null}var dr=()=>(0,a.jsx)(`svg`,{viewBox:`0 0 12 12`,width:12,height:12,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M9 3L3 9M3 3l6 6`})});function fr({toast:e,index:t,count:n,expanded:r,expandByDefault:o,paused:s,heights:c,setHeights:l,removeToast:u,gap:d,visibleToasts:f,yPosition:p,xPosition:m,closeButton:h,richColors:g,duration:_}){let[v,y]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),[w,T]=(0,i.useState)(!1),[E,D]=(0,i.useState)(!1),[O,k]=(0,i.useState)(null),[A,j]=(0,i.useState)(0),[M,N]=(0,i.useState)(0),ee=(0,i.useRef)(null),P=(0,i.useRef)(null),te=(0,i.useRef)(null),ne=(0,i.useRef)(0),F=(0,i.useRef)(0),re=t===0,I=t+1<=f,ie=e.dismissible!==!1,L=e.duration??_,ae=e.richColors??g,oe=(e.closeButton??h)&&e.type!==`loading`,se=c.findIndex(t=>t.id===e.id),R=(0,i.useMemo)(()=>{let e=c.reduce((e,t,n)=>n>=se?e:e+t.height,0);return Math.max(0,se)*d+e},[c,se,d]),ce=(0,i.useRef)(R);ce.current=R,(0,i.useLayoutEffect)(()=>{let t=ee.current;if(!t)return;let n=t.style.height;t.style.height=`auto`;let r=t.offsetHeight;t.style.height=n,N(r),l(t=>t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,height:r}:t):[{id:e.id,height:r},...t])},[e.id,e.version,l]),(0,i.useEffect)(()=>{y(!0)},[]);let z=(0,i.useCallback)(()=>{x(!0),j(ce.current),l(t=>t.filter(t=>t.id!==e.id)),window.setTimeout(()=>u(e),or)},[e,u,l]);(0,i.useEffect)(()=>{e.delete&&!b&&(e.onDismiss?.(e),z())},[e,b,z]),(0,i.useEffect)(()=>{F.current=L},[e.version,L]),(0,i.useEffect)(()=>{if(b||s||e.type===`loading`||L===1/0)return;let t=Date.now(),n=window.setTimeout(()=>{e.onAutoClose?.(e),z()},F.current);return()=>{window.clearTimeout(n),F.current-=Date.now()-t}},[b,s,e,L,z]);let le=()=>{!ie||b||(e.onDismiss?.(e),z())},B=(0,i.useMemo)(()=>{let e=[p];return m!==`center`&&e.push(m),e},[p,m]),ue=(e,t)=>{ee.current?.style.setProperty(`--swipe-amount-x`,`${e}px`),ee.current?.style.setProperty(`--swipe-amount-y`,`${t}px`)},de=e=>{if(!(e.button===2||!ie||b)&&!e.target.closest(`button`)){ne.current=Date.now(),j(ce.current);try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}C(!0),P.current={x:e.clientX,y:e.clientY},te.current=null}},fe=e=>{if(!P.current||!ie||(window.getSelection()?.toString().length??0)>0)return;let t=e.clientY-P.current.y,n=e.clientX-P.current.x;!te.current&&(Math.abs(n)>1||Math.abs(t)>1)&&(te.current=Math.abs(n)>Math.abs(t)?`x`:`y`);let r=e=>e/(1.5+Math.abs(e)/20),i=0,a=0;te.current===`y`?a=B.includes(`top`)&&t<0||B.includes(`bottom`)&&t>0?t:r(t):te.current===`x`&&(i=B.includes(`left`)&&n<0||B.includes(`right`)&&n>0?n:r(n)),(i!==0||a!==0)&&T(!0),ue(i,a)},pe=()=>{if(E||!ie||!P.current)return;P.current=null;let t=ee.current?.style,n=parseFloat(t?.getPropertyValue(`--swipe-amount-x`)||`0`)||0,r=parseFloat(t?.getPropertyValue(`--swipe-amount-y`)||`0`)||0,i=te.current===`x`?n:r,a=Math.abs(i)/Math.max(1,Date.now()-ne.current);if((te.current===`x`?i<0&&B.includes(`left`)||i>0&&B.includes(`right`):i<0&&B.includes(`top`)||i>0&&B.includes(`bottom`))&&(Math.abs(i)>=ar||a>.11)){j(ce.current),e.onDismiss?.(e),k(te.current===`x`?n>0?`right`:`left`:r>0?`down`:`up`),z(),D(!0);return}ue(0,0),T(!1),C(!1),te.current=null},me=r||o&&v,he=e.icon===null?null:e.icon??(0,a.jsx)(ur,{type:e.type}),V=he!==null&&(e.icon!==void 0||e.type!=="default");return(0,a.jsxs)(`li`,{ref:ee,tabIndex:0,role:`status`,"aria-live":e.important||e.type===`error`?`assertive`:`polite`,"aria-atomic":`true`,className:cr(Jn.toast,e.className),"data-mounted":v,"data-removed":b,"data-visible":I,"data-front":re,"data-expanded":me,"data-y-position":p,"data-x-position":m,"data-type":e.type,"data-rich-colors":ae,"data-dismissible":ie,"data-swiping":S,"data-swiped":w,"data-swipe-out":E,"data-swipe-direction":O??void 0,style:{"--index":t,"--toasts-before":t,"--z-index":n-t,"--offset":`${b?A:R}px`,"--initial-height":o?`auto`:`${M}px`},onPointerDown:de,onPointerMove:fe,onPointerUp:pe,onPointerCancel:pe,onKeyDown:e=>{(e.key===`Delete`||e.key===`Backspace`)&&le()},children:[oe&&(0,a.jsx)(`button`,{type:`button`,className:Jn.close,"aria-label":`Close notification`,disabled:!ie,onClick:le,children:(0,a.jsx)(dr,{})}),V&&(0,a.jsx)(`div`,{className:Jn.icon,children:he}),(0,a.jsxs)(`div`,{className:Jn.content,children:[(0,a.jsx)(`div`,{className:Jn.title,children:e.title}),e.description&&(0,a.jsx)(`div`,{className:Jn.description,children:e.description})]}),e.cancel&&(0,a.jsx)(`button`,{type:`button`,className:cr(Jn.button,Jn.cancel),onClick:t=>{e.cancel?.onClick?.(t),ie&&le()},children:e.cancel.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,className:Jn.button,onClick:t=>{e.action?.onClick(t),t.defaultPrevented||z()},children:e.action.label})]})}var pr=({position:e=`bottom-right`,richColors:t=!1,closeButton:n=!1,expand:r=!1,visibleToasts:o=3,duration:s=4e3,gap:c=14,offset:l=24,mobileOffset:u=16,hotkey:d=[`altKey`,`KeyT`],containerAriaLabel:f=`Notifications`,className:p,style:m})=>{let[h,g]=(0,i.useState)(()=>$n.active()),[_,v]=(0,i.useState)([]),[y,b]=(0,i.useState)(!1),[x,S]=(0,i.useState)(!1),[C,w]=(0,i.useState)(!1),T=(0,i.useRef)(null),[E,D]=e.split(`-`);(0,i.useEffect)(()=>$n.subscribe(e=>{e.kind===`upsert`?g(t=>t.some(t=>t.id===e.toast.id)?t.map(t=>t.id===e.toast.id?e.toast:t):[e.toast,...t]):g(t=>t.map(t=>e.id===void 0||t.id===e.id?{...t,delete:!0}:t))}),[]);let O=(0,i.useCallback)(e=>{$n.remove(e.id),g(t=>t.filter(t=>t.id!==e.id))},[]);return(0,i.useEffect)(()=>{h.length<=1&&b(!1)},[h.length]),(0,i.useEffect)(()=>{let e=()=>w(document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),(0,i.useEffect)(()=>{let e=e=>{d.length>0&&d.every(t=>e[t]===!0||e.code===t)&&(b(!0),T.current?.focus()),e.key===`Escape`&&T.current&&(document.activeElement===T.current||T.current.contains(document.activeElement))&&(b(!1),document.activeElement?.blur())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d]),(0,a.jsx)(`section`,{"aria-label":`${f} ${d.join(`+`).replace(/Key/g,``).replace(/Digit/g,``)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,children:h.length>0&&(0,a.jsx)(`ol`,{ref:T,tabIndex:-1,className:cr(Jn.toaster,p),"data-y-position":E,"data-x-position":D,style:{"--front-toast-height":`${_[0]?.height??0}px`,"--width":`${ir}px`,"--gap":`${c}px`,"--offset-top":sr(l),"--offset-right":sr(l),"--offset-bottom":sr(l),"--offset-left":sr(l),"--mobile-offset-top":sr(u),"--mobile-offset-right":sr(u),"--mobile-offset-bottom":sr(u),"--mobile-offset-left":sr(u),...m},onMouseEnter:()=>b(!0),onMouseMove:()=>b(!0),onMouseLeave:()=>{x||b(!1)},onFocus:()=>b(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||b(!1)},onPointerDown:e=>{e.target.dataset?.dismissible!==`false`&&S(!0)},onPointerUp:()=>S(!1),children:h.map((e,i)=>(0,a.jsx)(fr,{toast:e,index:i,count:h.length,expanded:y,expandByDefault:r,paused:y||x||C,heights:_,setHeights:v,removeToast:O,gap:c,visibleToasts:o,yPosition:E,xPosition:D,closeButton:n,richColors:t,duration:s},e.id))})})},$={stepper:`_stepper_ugk8y_3`,"stepper--horizontal":`_stepper--horizontal_ugk8y_4`,"stepper--vertical":`_stepper--vertical_ugk8y_5`,step:`_step_ugk8y_3`,"step--horizontal":`_step--horizontal_ugk8y_8`,"step--vertical":`_step--vertical_ugk8y_9`,circle:`_circle_ugk8y_12`,circle__num:`_circle__num_ugk8y_24`,"stepper--animated":`_stepper--animated_ugk8y_28`,"circle--completed":`_circle--completed_ugk8y_32`,"stepper-check":`_stepper-check_ugk8y_1`,"circle--current":`_circle--current_ugk8y_39`,"stepper-arrive":`_stepper-arrive_ugk8y_1`,"circle--upcoming":`_circle--upcoming_ugk8y_57`,step__text:`_step__text_ugk8y_64`,step__label:`_step__label_ugk8y_65`,"step__label--current":`_step__label--current_ugk8y_66`,"step__label--upcoming":`_step__label--upcoming_ugk8y_67`,step__desc:`_step__desc_ugk8y_68`,connector:`_connector_ugk8y_71`,connector__fill:`_connector__fill_ugk8y_75`,"connector--vertical":`_connector--vertical_ugk8y_82`,"connector--filled":`_connector--filled_ugk8y_86`,"connector--horizontal":`_connector--horizontal_ugk8y_88`},mr=({index:e,state:r,label:i,description:o,orientation:s=`horizontal`,delay:c=0,fresh:l})=>(0,a.jsxs)(`div`,{className:[$.step,$[`step--${s}`]].join(` `),style:{"--delay":`${c}ms`},children:[(0,a.jsx)(`span`,{className:[$.circle,$[`circle--${r}`]].join(` `),"data-fresh":l||void 0,"aria-hidden":`true`,children:r===`completed`?(0,a.jsx)(n.R,{size:14,strokeWidth:t.Ht(14)}):(0,a.jsx)(`span`,{className:$.circle__num,children:e+1})}),(0,a.jsxs)(`span`,{className:$.step__text,children:[(0,a.jsx)(`span`,{className:[$.step__label,r===`current`?$[`step__label--current`]:``,r===`upcoming`?$[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:i}),o&&(0,a.jsx)(`span`,{className:$.step__desc,children:o})]})]}),hr=457,gr=({steps:e,current:t,orientation:n=`horizontal`,className:r})=>{let o=e=>e<t?`completed`:e===t?`current`:`upcoming`,s=(0,i.useRef)(t),[c,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(!0)},[]),(0,i.useEffect)(()=>{s.current=t},[t]);let u=s.current,d=(e,t)=>e<t?`completed`:e===t?`current`:`upcoming`,f=e=>c&&u!==t&&d(e,u)!==d(e,t),p=t>=u,m=Math.max(1,Math.abs(t-u)),h=Math.min(hr,Math.floor(1430/m)),g=e=>p?e>=u&&e<=t?(e-u)*h:0:e>=t&&e<=u?(u-e)*h:0,_=e=>p?e>=u&&e<t?(e-u)*h:0:e>=t&&e<u?(u-1-e)*h+57:0;return(0,a.jsx)(`div`,{className:[$.stepper,$[`stepper--${n}`],c?$[`stepper--animated`]:``,r??``].filter(Boolean).join(` `),style:{"--fill-ms":`${h}ms`},children:e.map((r,s)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(mr,{index:s,state:o(s),label:r.label,description:r.description,orientation:n,delay:g(s),fresh:f(s)}),s<e.length-1&&(0,a.jsx)(`span`,{className:[$.connector,$[`connector--${n}`],s<t?$[`connector--filled`]:``].filter(Boolean).join(` `),style:{"--delay":`${_(s)}ms`},"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:$.connector__fill})})]},s))})},_r={wrapper:`_wrapper_1d89w_3`,"wrapper--disabled":`_wrapper--disabled_1d89w_11`,input:`_input_1d89w_13`,track:`_track_1d89w_15`,thumb:`_thumb_1d89w_28`,"wrapper--stretch":`_wrapper--stretch_1d89w_50`,label:`_label_1d89w_60`,"wrapper--withDescription":`_wrapper--withDescription_1d89w_65`,text:`_text_1d89w_66`,description:`_description_1d89w_68`},vr=16,yr=2,br=18,xr=360,Sr=16,Cr=e=>1-(1-e)**3,wr=.16,Tr=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,onChange:s,variant:c=`default`,...l},u)=>{let d=i.default.useId(),f=r??d,p=i.default.useRef(null);return(0,a.jsxs)(`label`,{htmlFor:f,className:[_r.wrapper,c===`stretch`?_r[`wrapper--stretch`]:``,t?_r[`wrapper--withDescription`]:``,n?_r[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:u,id:f,type:`checkbox`,role:`switch`,disabled:n,className:_r.input,onChange:e=>{s?.(e);let t=p.current;if(c!==`stretch`||!t||typeof t.animate!=`function`||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let n=e.target.checked,r=getComputedStyle(t),i=parseFloat(r.translate)||0,a=parseFloat(r.width)||vr,o=(n?yr:br)+i,l=o+a,u=n?br:yr,d=u+vr;t.getAnimations().forEach(e=>e.cancel());let f=[];for(let e=0;e<=Sr;e++){let t=e/Sr,r=Cr(t),i=Cr(Math.min(1,Math.max(0,(t-wr)/(1-wr)))),a=o+(u-o)*(n?i:r),s=l+(d-l)*(n?r:i);f.push({width:`${s-a}px`,translate:`${a-u}px 0`,offset:t})}t.animate(f,{duration:xr,easing:`linear`})},...l}),(0,a.jsx)(`span`,{className:_r.track,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{ref:p,className:_r.thumb})}),t?(0,a.jsxs)(`span`,{className:_r.text,children:[e&&(0,a.jsx)(`span`,{className:_r.label,children:e}),(0,a.jsx)(`span`,{className:_r.description,children:t})]}):e&&(0,a.jsx)(`span`,{className:_r.label,children:e})]})});Tr.displayName=`Switch`;var Er={field:`_field_nxdtj_6`,field__label:`_field__label_nxdtj_8`,field__description:`_field__description_nxdtj_10`,field__error:`_field__error_nxdtj_11`,textarea:`_textarea_nxdtj_13`,"textarea--error":`_textarea--error_nxdtj_37`,"textarea--disabled":`_textarea--disabled_nxdtj_52`,ai:`_ai_nxdtj_62`,"ai--error":`_ai--error_nxdtj_77`,"ai--disabled":`_ai--disabled_nxdtj_78`,ai__control:`_ai__control_nxdtj_80`,ai__actions:`_ai__actions_nxdtj_99`,ai__side:`_ai__side_nxdtj_100`},Dr=24,Or=i.default.forwardRef(({label:e,description:n,error:r,disabled:o,id:s,className:c,rows:l,variant:u=`default`,glow:d=`once`,leading:f,trailing:p,maxRows:m=8,onInput:h,...g},_)=>{let v=i.default.useId(),y=s??v,b=!!r,x=n||r?`${y}-desc`:void 0,S=u===`ai`,C=i.default.useRef(null),w=e=>{C.current=e,typeof _==`function`?_(e):_&&(_.current=e)},T=i.default.useCallback(()=>{let e=C.current;!e||!S||(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,m*Dr)}px`)},[S,m]);i.default.useLayoutEffect(()=>{T()},[T,g.value]);let E=(0,a.jsx)(`textarea`,{ref:w,id:y,rows:S?l??1:l??3,disabled:o,"aria-invalid":b||void 0,"aria-describedby":x,onInput:e=>{T(),h?.(e)},className:[S?Er.ai__control:Er.textarea,b&&!S?Er[`textarea--error`]:``,o&&!S?Er[`textarea--disabled`]:``].filter(Boolean).join(` `),...g});return(0,a.jsxs)(`div`,{className:[Er.field,c??``].filter(Boolean).join(` `),children:[e&&(0,a.jsx)(`label`,{htmlFor:y,className:Er.field__label,children:e}),S?(0,a.jsxs)(`div`,{className:[Er.ai,b?Er[`ai--error`]:``,o?Er[`ai--disabled`]:``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.A,{mode:o?`off`:d}),!b&&!o&&(0,a.jsx)(t.k,{}),E,(f||p)&&(0,a.jsxs)(`div`,{className:Er.ai__actions,children:[(0,a.jsx)(`span`,{className:Er.ai__side,children:f}),(0,a.jsx)(`span`,{className:Er.ai__side,children:p})]})]}):E,(n||r)&&(0,a.jsx)(`span`,{id:x,className:b?Er.field__error:Er.field__description,children:r||n})]})});Or.displayName=`Textarea`;var kr={toast:`_toast_1przo_3`,toast__icon:`_toast__icon_1przo_17`,"toast--success":`_toast--success_1przo_18`,"toast--error":`_toast--error_1przo_19`,"toast--info":`_toast--info_1przo_20`,toast__content:`_toast__content_1przo_22`,toast__title:`_toast__title_1przo_23`,toast__description:`_toast__description_1przo_24`,toast__dismiss:`_toast__dismiss_1przo_26`},Ar={success:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,a.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,a.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,a.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},jr=({status:e=`info`,title:n,description:r,onDismiss:i,className:o})=>(0,a.jsxs)(`div`,{role:e===`error`?`alert`:`status`,"aria-live":e===`error`?`assertive`:`polite`,className:[kr.toast,kr[`toast--${e}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:kr.toast__icon,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Ht(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:Ar[e]})}),(0,a.jsxs)(`div`,{className:kr.toast__content,children:[n&&(0,a.jsx)(`div`,{className:kr.toast__title,children:n}),r&&(0,a.jsx)(`div`,{className:kr.toast__description,children:r})]}),i&&(0,a.jsx)(`button`,{type:`button`,className:kr.toast__dismiss,onClick:i,"aria-label":`Dismiss`,children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Ht(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,a.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,a.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),Mr={bar:`_bar_1jy3b_2`,bar__icon:`_bar__icon_1jy3b_10`,bar__title:`_bar__title_1jy3b_19`,"bar__title--center":`_bar__title--center_1jy3b_23`,bar__search:`_bar__search_1jy3b_24`},Nr=({type:e=`title`,title:r,trailing:i,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,a.jsxs)(`header`,{className:[Mr.bar,u??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`button`,{type:`button`,className:Mr.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,a.jsx)(n.D,{size:18,strokeWidth:t.Ht(18)})}),e===`search`?(0,a.jsx)(`div`,{className:Mr.bar__search,children:o}):(0,a.jsx)(`span`,{className:[Mr.bar__title,e===`title-centered`?Mr[`bar__title--center`]:``].join(` `),children:r}),e===`title-action`&&(0,a.jsx)(`button`,{type:`button`,className:Mr.bar__icon,onClick:c,"aria-label":`Add`,children:(0,a.jsx)(n.N,{size:18,strokeWidth:t.Ht(18)})}),e===`search`&&(0,a.jsx)(`button`,{type:`button`,className:Mr.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,a.jsx)(n.W,{size:18,strokeWidth:t.Ht(18)})}),(e===`title`||e===`title-centered`)&&i]});exports.Accordion=t.Bt,exports.AccordionItem=t.Vt,exports.ActivityFeed=t.Pt,exports.ActivityFeedHighlight=t.Ft,exports.AiMessage=t.Lt,exports.Alert=t.U,exports.Announcement=l,exports.AreaChart=Pe,exports.AttachmentChip=ie,exports.Avatar=t.It,exports.AvatarGroup=t.Y,exports.AvatarUpload=t.jt,exports.Badge=t.ft,exports.Balance=t.kt,exports.BarChart=t.pt,exports.BlogBlockquote=ae,exports.BlogFeatureText=se,exports.BlogImage=ce,exports.BlogListingCard=t.Q,exports.BlogListingFeaturedCard=t.Z,exports.BoardCard=t.H,exports.BoardColumn=Fe,exports.Breadcrumb=t.z,exports.Button=t.Mt,exports.Calendar=ze,exports.Card=Be,exports.CardMetaItem=t.R,exports.CartItem=t.ut,exports.ChainOfThought=$e,exports.ChainOfThoughtStep=Qe,exports.ChatComposer=t.I,exports.ChatOrb=t.zt,exports.Checkbox=t.F,exports.CheckoutSteps=t.ct,exports.CodeSnippet=m,exports.ColorSwatch=t.ot,exports.Combobox=yt,exports.CommandMenu=vt,exports.CommandMenuAnswer=_t,exports.CommandMenuTrigger=ht,exports.ConversationItem=t.P,exports.DEFAULT_CHECKOUT_STEPS=t.lt,exports.Divider=t.xt,exports.DonutChart=t.N,exports.EmptyState=t.M,exports.Expenses=_,exports.FacebookIcon=Ae,exports.FeaturedIcon=t.X,exports.FileUpload=xt,exports.FilterChip=t.j,exports.FirstPageHeading=le,exports.FunnelChart=Dt,exports.GithubIcon=Se,exports.HeatmapChart=jt,exports.HoverGroup=t.B,exports.IconButton=t.Rt,exports.InlineHint=b,exports.Input=t.O,exports.InstagramIcon=ke,exports.JobListing=t.q,exports.Kbd=ot,exports.Label=Nt,exports.LineChart=t.D,exports.Link=t.Nt,exports.LinkedinIcon=je,exports.LiquidBackdrop=t.St,exports.LiquidGlass=t.Ct,exports.List=ue,exports.ListItem=Ft,exports.LocationDot=t.J,exports.Map=sn,exports.MapClusterLayer=mn,exports.MapControlButton=It,exports.MapControls=Lt,exports.MapGlobe=pn,exports.MapMarker=tn,exports.MapPopup=cn,exports.Marquee=pe,exports.Menu=t.T,exports.MenuDivider=t.E,exports.MenuItem=t.w,exports.MessageBubble=t.C,exports.Metric=he,exports.MobileNavigationMenu=ge,exports.Modal=t.bt,exports.NotificationItem=t.yt,exports.Pagination=t.S,exports.PieChart=Sn,exports.PlaceholderLogo=ye,exports.Popover=wn,exports.PriceDisplay=t.at,exports.ProductCard=t.rt,exports.ProductGallery=t.nt,exports.ProfileCard=be,exports.Progress=t.Ot,exports.ProgressItem=S,exports.ProgressStat=t.vt,exports.PromptComposer=t.x,exports.QuantitySelector=t.dt,exports.RadarChart=Pn,exports.RadialChart=Un,exports.Radio=Gn,exports.ReasoningTrace=t.b,exports.RichSeparator=w,exports.RichTextHeading=we,exports.RichTextParagraph=Ee,exports.SectionHeading=t.G,exports.SegmentedControl=t.y,exports.Select=t.v,exports.Sidebar=t._,exports.SidebarDivider=t.g,exports.SidebarFooter=t.h,exports.SidebarGroupLabel=t.m,exports.SidebarHeader=t.p,exports.SidebarItem=t.f,exports.SidebarPromo=t.d,exports.SidebarSearch=qn,exports.SidebarSubItem=t.u,exports.SizeSelector=t.tt,exports.Skeleton=t.L,exports.Slider=t.l,exports.SourceLogo=tt,exports.SourceStack=Je,exports.SpendingBalance=t._t,exports.Spinner=ct,exports.StarRating=t.et,exports.StatCard=t.c,exports.Stepper=gr,exports.StepperStep=mr,exports.StockMarket=D,exports.StockStatus=t.$,exports.SubFeature=Oe,exports.SuggestionChip=t.s,exports.Switch=Tr,exports.Table=t.o,exports.Tabs=t.a,exports.Tags=A,exports.TeamCard=t.W,exports.Textarea=Or,exports.ThinkingLoader=t.i,exports.Ticker=ee,exports.Toast=jr,exports.Toaster=pr,exports.ToolCall=t.r,exports.Tooltip=t.n,exports.TopBar=t.t,exports.TopBarMobile=Nr,exports.Transactions=ne,exports.WishlistButton=t.it,exports.WorkingIndicator=qe,exports.XIcon=xe,exports.getContrastColor=t.st,exports.iconStrokeWidth=t.Ht,exports.sourceLogo=it,exports.sourceLogoNames=nt,exports.syncLiquidBackdrop=t.wt,exports.toast=rr,exports.useHoverHighlight=t.V,exports.useLiquidGlass=t.Tt,exports.useMapContext=Zt;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./TopBar-CXA2RJsK.cjs"),n=require("./help-circle-BKFYrUSW.cjs"),r=require("./current-location-D6hMSldS.cjs");let i=require("react");i=e.t(i,1);let a=require("react/jsx-runtime"),o=require("recharts"),s=require("react-dom");var c={announcement:`_announcement_1ba3c_1`,"announcement--neutral":`_announcement--neutral_1ba3c_13`,"announcement--urgent":`_announcement--urgent_1ba3c_16`,content:`_content_1ba3c_20`,icon:`_icon_1ba3c_28`,icon__neutral:`_icon__neutral_1ba3c_32`,message:`_message_1ba3c_36`,link:`_link_1ba3c_52`},l=({message:e,linkLabel:r,linkHref:i,onLinkClick:o,onDismiss:s,variant:l=`neutral`,className:u})=>{let d=l===`urgent`;return(0,a.jsxs)(`div`,{className:[c.announcement,c[`announcement--${l}`],u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:c.content,children:[(0,a.jsx)(`span`,{className:c.icon,"aria-hidden":`true`,children:d?(0,a.jsx)(n.G,{size:24,strokeWidth:1.5,style:{fill:`var(--color-info-solid)`,stroke:`var(--color-info-bg)`}}):(0,a.jsx)(n.K,{size:24,strokeWidth:1.5,fill:`currentColor`,stroke:`currentColor`,className:c.icon__neutral})}),(0,a.jsx)(`p`,{className:c.message,children:e}),!d&&r&&(0,a.jsx)(t.Lt,{href:i,onClick:o,className:c.link,style:{color:`var(--color-brand-fg)`,fontSize:16,lineHeight:`24px`},children:r})]}),s&&(0,a.jsx)(t.Ht,{icon:n.W,size:`sm`,variant:`ghost`,"aria-label":`Dismiss`,onClick:s})]})},u={snippet:`_snippet_44b2o_1`,header:`_header_44b2o_12`,filename:`_filename_44b2o_19`,body:`_body_44b2o_31`,tokenKeyword:`_tokenKeyword_44b2o_42`,tokenString:`_tokenString_44b2o_43`,editableBody:`_editableBody_44b2o_50`,textarea:`_textarea_44b2o_55`},d=[`import`,`export`,`from`,`default`,`function`,`return`,`const`,`let`,`var`,`if`,`else`,`for`,`while`,`class`,`extends`,`new`,`async`,`await`,`as`,`of`,`in`],f=RegExp(`('(?:[^'\\\\]|\\\\.)*'|"(?:[^"\\\\]|\\\\.)*"|\`(?:[^\`\\\\]|\\\\.)*\`|\\b(?:${d.join(`|`)})\\b)`,`g`),p=e=>e.split(f).map((e,t)=>{if(!e)return null;let n=/^['"`]/.test(e),r=!n&&d.includes(e);return n?(0,a.jsx)(`span`,{className:u.tokenString,children:e},t):r?(0,a.jsx)(`span`,{className:u.tokenKeyword,children:e},t):(0,a.jsx)(i.default.Fragment,{children:e},t)}),m=({code:e,filename:r,onCopy:o,editable:s=!1,onChange:c,placeholder:l,className:d})=>{let[f,m]=i.default.useState(!1),[h,g]=i.default.useState(e);i.default.useEffect(()=>g(e),[e]);let _=()=>{navigator.clipboard?.writeText(h),o?.(h),m(!0),window.setTimeout(()=>m(!1),1500)},v=e=>{g(e),c?.(e)},y=s?(0,a.jsxs)(`div`,{className:u.editableBody,children:[(0,a.jsx)(`pre`,{className:u.body,"aria-hidden":`true`,children:p(h)}),(0,a.jsx)(`textarea`,{className:u.textarea,value:h,placeholder:l,spellCheck:!1,onChange:e=>v(e.target.value),onKeyDown:e=>{if(e.key!==`Tab`)return;e.preventDefault();let t=e.currentTarget,{selectionStart:n,selectionEnd:r}=t,i=`${h.slice(0,n)} ${h.slice(r)}`;v(i),requestAnimationFrame(()=>{t.selectionStart=t.selectionEnd=n+2})}})]}):(0,a.jsx)(`pre`,{className:u.body,children:p(h)});return r?(0,a.jsxs)(`div`,{className:[u.snippet,d??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:u.header,children:[(0,a.jsx)(`p`,{className:u.filename,children:r}),(0,a.jsx)(t.Ht,{icon:f?n.R:n.X,variant:`ghost`,size:`sm`,"aria-label":f?`Copied`:`Copy code`,onClick:_})]}),y]}):(0,a.jsx)(`div`,{className:[u.snippet,d??``].filter(Boolean).join(` `),children:y})},h={expenses:`_expenses_1imiq_1`,row:`_row_1imiq_10`,top:`_top_1imiq_18`,left:`_left_1imiq_26`,icon:`_icon_1imiq_32`,label:`_label_1imiq_44`,amount:`_amount_1imiq_55`},g=e=>e.toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),_=({categories:e,variant:n=`default`,formatAmount:r=g,className:i})=>{let o=n===`compact`,s=Math.max(1,...e.map(e=>e.amount));return(0,a.jsx)(`div`,{className:[h.expenses,i??``].filter(Boolean).join(` `),children:e.map((e,n)=>(0,a.jsxs)(`div`,{className:h.row,children:[(0,a.jsxs)(`div`,{className:h.top,children:[(0,a.jsxs)(`div`,{className:h.left,children:[(0,a.jsx)(`span`,{className:h.icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`p`,{className:h.label,children:e.label})]}),(0,a.jsx)(`p`,{className:h.amount,children:r(e.amount)})]}),!o&&(0,a.jsx)(t.Mt,{value:e.amount/s*100,size:`lg`,label:`${e.label} spending`})]},e.id??n))})},v={hint:`_hint_49nyi_1`,bar:`_bar_49nyi_9`,"hint--neutral":`_hint--neutral_49nyi_15`,"hint--warning":`_hint--warning_49nyi_16`,icon:`_icon_49nyi_18`,message:`_message_49nyi_24`},y=14,b=({message:e,variant:i=`neutral`,className:o})=>{let s=i===`warning`?n.G:r.s;return(0,a.jsxs)(`div`,{className:[v.hint,v[`hint--${i}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:v.bar,"aria-hidden":`true`}),(0,a.jsx)(s,{size:y,strokeWidth:t.Kt(y),className:v.icon}),(0,a.jsx)(`p`,{className:v.message,children:e})]})},x={item:`_item_jnz6o_1`,"item--horizontal":`_item--horizontal_jnz6o_6`,"item--vertical":`_item--vertical_jnz6o_11`,"text--single":`_text--single_jnz6o_18`,text:`_text_jnz6o_18`,value:`_value_jnz6o_28`,topRow:`_topRow_jnz6o_43`,connectorHorizontal:`_connectorHorizontal_jnz6o_48`,rail:`_rail_jnz6o_56`,connectorVertical:`_connectorVertical_jnz6o_63`,title:`_title_jnz6o_77`,description:`_description_jnz6o_85`},S=({step:e,title:r,description:i,completed:o=!1,orientation:s=`horizontal`,isLast:c=!1,className:l})=>{let u=s===`vertical`,d=(0,a.jsx)(`span`,{className:x.value,"aria-hidden":`true`,children:o?(0,a.jsx)(n.R,{size:14,strokeWidth:t.Kt(14)}):e}),f=(0,a.jsxs)(`div`,{className:[x.text,i?``:x[`text--single`]].filter(Boolean).join(` `),children:[(0,a.jsx)(`p`,{className:x.title,children:r}),i&&(0,a.jsx)(`p`,{className:x.description,children:i})]});return u?(0,a.jsxs)(`div`,{className:[x.item,x[`item--vertical`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.rail,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorVertical})]}),f]}):(0,a.jsxs)(`div`,{className:[x.item,x[`item--horizontal`],l??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:x.topRow,children:[d,!c&&(0,a.jsx)(`div`,{className:x.connectorHorizontal})]}),f]})},C={separator:`_separator_pcfo8_1`,line:`_line_pcfo8_9`,overline:`_overline_pcfo8_19`,badge:`_badge_pcfo8_31`,iconWrap:`_iconWrap_pcfo8_37`},w=({children:e,label:n,className:r})=>(0,a.jsxs)(`div`,{className:[C.separator,r??``].filter(Boolean).join(` `),role:`separator`,children:[(0,a.jsx)(t.Tt,{className:C.line}),e??(n&&(0,a.jsx)(`span`,{className:C.overline,children:n})),(0,a.jsx)(t.Tt,{className:C.line})]}),T={row:`_row_5wjem_2`,left:`_left_5wjem_16`,logo:`_logo_5wjem_23`,logoLg:`_logoLg_5wjem_29`,text:`_text_5wjem_36`,symbol:`_symbol_5wjem_42`,name:`_name_5wjem_50`,right:`_right_5wjem_59`,price:`_price_5wjem_65`,changeRow:`_changeRow_5wjem_73`,changeText:`_changeText_5wjem_78`,trendUp:`_trendUp_5wjem_84`,trendDown:`_trendDown_5wjem_85`,card:`_card_5wjem_88`,header:`_header_5wjem_102`,headerIcon:`_headerIcon_5wjem_109`,headerLabel:`_headerLabel_5wjem_110`,tickerRow:`_tickerRow_5wjem_117`,body:`_body_5wjem_125`,priceRow:`_priceRow_5wjem_132`,priceGroup:`_priceGroup_5wjem_139`,priceLg:`_priceLg_5wjem_144`,changeRowLg:`_changeRowLg_5wjem_153`,changeTextLg:`_changeTextLg_5wjem_158`,chart:`_chart_5wjem_165`},E=e=>Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`}),D=({logo:e,symbol:i,name:o,price:s,change:c,formatAmount:l=E,chart:u,periodLabel:d=`Last 6 months`,onPeriodClick:f,className:p})=>{let m=c.amount>=0,h=m?n.B:n.z,g=m?`+`:`-`,_=`${g}${l(c.amount)} (${g}${Math.abs(c.percent)}%)`,v=m?T.trendUp:T.trendDown;return u?(0,a.jsxs)(`div`,{className:[T.card,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.header,children:[(0,a.jsx)(r.o,{size:16,strokeWidth:t.Kt(16),className:T.headerIcon}),(0,a.jsx)(`span`,{className:T.headerLabel,children:`Stock market`})]}),(0,a.jsxs)(`div`,{className:T.tickerRow,children:[(0,a.jsx)(`span`,{className:T.logoLg,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.body,children:[(0,a.jsxs)(`div`,{className:T.priceRow,children:[(0,a.jsxs)(`div`,{className:T.priceGroup,children:[(0,a.jsx)(`p`,{className:T.priceLg,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRowLg,children:[(0,a.jsx)(h,{size:24,strokeWidth:t.Kt(24),className:v}),(0,a.jsx)(`span`,{className:[T.changeTextLg,v].join(` `),children:_})]})]}),(0,a.jsx)(t.It,{variant:`outline`,size:`sm`,rightIcon:(0,a.jsx)(n.I,{size:16,strokeWidth:t.Kt(16)}),onClick:f,children:d})]}),(0,a.jsx)(t.mt,{data:u,className:T.chart})]})]}):(0,a.jsxs)(`div`,{className:[T.row,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:T.left,children:[(0,a.jsx)(`span`,{className:T.logo,"aria-hidden":`true`,children:e}),(0,a.jsxs)(`div`,{className:T.text,children:[(0,a.jsx)(`p`,{className:T.symbol,children:i}),(0,a.jsx)(`p`,{className:T.name,children:o})]})]}),(0,a.jsxs)(`div`,{className:T.right,children:[(0,a.jsx)(`p`,{className:T.price,children:l(s)}),(0,a.jsxs)(`div`,{className:T.changeRow,children:[(0,a.jsx)(h,{size:20,strokeWidth:t.Kt(20),className:v}),(0,a.jsx)(`span`,{className:[T.changeText,v].join(` `),children:_})]})]})]})},O={tags:`_tags_13ws8_1`,remove:`_remove_13ws8_8`,tag:`_tag_13ws8_1`,"tag--leaving":`_tag--leaving_13ws8_22`},k=160,A=({tags:e,onRemove:r,className:o})=>{let[s,c]=i.default.useState(null),l=i.default.useRef(void 0);i.default.useEffect(()=>()=>window.clearTimeout(l.current),[]);let u=(e,t)=>{if(!(!r||s)){if(window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches){r(e,t);return}c(e),l.current=window.setTimeout(()=>{r(e,t),c(null)},k)}};return(0,a.jsx)(`div`,{className:[O.tags,o??``].filter(Boolean).join(` `),children:e.map((e,i)=>(0,a.jsx)(t.pt,{className:[O.tag,s===e?O[`tag--leaving`]:``].filter(Boolean).join(` `),rightIcon:r&&(0,a.jsx)(`button`,{type:`button`,className:O.remove,onClick:()=>u(e,i),"aria-label":`Remove ${e}`,children:(0,a.jsx)(n.W,{size:12,strokeWidth:t.Kt(12)})}),children:e},e))})},j={ticker:`_ticker_v1g9v_1`,track:`_track_v1g9v_9`,"ticker-scroll":`_ticker-scroll_v1g9v_1`,row:`_row_v1g9v_26`,item:`_item_v1g9v_35`,symbol:`_symbol_v1g9v_42`,change:`_change_v1g9v_51`,trendUp:`_trendUp_v1g9v_59`,trendDown:`_trendDown_v1g9v_60`,fadeLeft:`_fadeLeft_v1g9v_62`,fadeRight:`_fadeRight_v1g9v_63`},M=e=>`${e>=0?`+`:``}${e}%`,N=({items:e,formatChange:r,ariaHidden:i})=>(0,a.jsx)(`div`,{className:j.row,"aria-hidden":i,children:e.map((e,i)=>{let o=e.changePercent>=0,s=o?n.B:n.z,c=o?j.trendUp:j.trendDown;return(0,a.jsxs)(`div`,{className:j.item,children:[(0,a.jsx)(`span`,{className:j.symbol,children:e.symbol}),(0,a.jsx)(s,{size:14,strokeWidth:t.Kt(14),className:c}),(0,a.jsx)(`span`,{className:[j.change,c].join(` `),children:r(e.changePercent)})]},`${e.symbol}-${i}`)})}),P=({items:e,speed:t=40,formatChange:n=M,className:r})=>{let o=i.default.useRef(null),[s,c]=i.default.useState(20);return i.default.useEffect(()=>{let e=o.current;if(!e)return;let n=e.firstElementChild;if(!n)return;let r=()=>{let e=n.scrollWidth;e>0&&c(e/t)};r();let i=new ResizeObserver(r);return i.observe(n),()=>i.disconnect()},[e,t]),(0,a.jsxs)(`div`,{className:[j.ticker,r??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{ref:o,className:j.track,style:{"--ticker-duration":`${s}s`},children:[(0,a.jsx)(N,{items:e,formatChange:n}),(0,a.jsx)(N,{items:e,formatChange:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:j.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:j.fadeRight,"aria-hidden":`true`})]})},F={list:`_list_ovxee_1`,row:`_row_ovxee_9`,rowLast:`_rowLast_ovxee_18`,left:`_left_ovxee_22`,iconWrap:`_iconWrap_ovxee_29`,info:`_info_ovxee_41`,name:`_name_ovxee_46`,category:`_category_ovxee_54`,amount:`_amount_ovxee_63`,amountUp:`_amountUp_ovxee_71`,amountDown:`_amountDown_ovxee_72`,empty:`_empty_ovxee_75`,emptyIcon:`_emptyIcon_ovxee_86`,emptyTitle:`_emptyTitle_ovxee_89`,emptyDesc:`_emptyDesc_ovxee_96`},ee=e=>`${e>=0?`+`:`-`}${Math.abs(e).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}`,te=({transactions:e,formatAmount:n=ee,emptyTitle:i=`No transactions yet`,emptyDescription:o=`Your activity will show up here.`,className:s})=>e.length===0?(0,a.jsxs)(`div`,{className:[F.empty,s??``].filter(Boolean).join(` `),children:[(0,a.jsx)(r.a,{size:24,strokeWidth:t.Kt(24),className:F.emptyIcon}),(0,a.jsx)(`p`,{className:F.emptyTitle,children:i}),(0,a.jsx)(`p`,{className:F.emptyDesc,children:o})]}):(0,a.jsx)(`div`,{className:[F.list,s??``].filter(Boolean).join(` `),children:e.map((t,r)=>{let i=t.amount>=0;return(0,a.jsxs)(`div`,{className:[F.row,r===e.length-1?F.rowLast:``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:F.left,children:[(0,a.jsx)(`span`,{className:F.iconWrap,"aria-hidden":`true`,children:t.icon}),(0,a.jsxs)(`div`,{className:F.info,children:[(0,a.jsx)(`p`,{className:F.name,children:t.name}),(0,a.jsx)(`p`,{className:F.category,children:t.category})]})]}),(0,a.jsx)(`p`,{className:[F.amount,i?F.amountUp:F.amountDown].join(` `),children:n(t.amount)})]},t.id??`${t.name}-${r}`)})}),I={ring:`_ring_1yqts_4`,"ring-spin":`_ring-spin_1yqts_1`},ne=({size:e=14,className:t})=>(0,a.jsx)(`span`,{className:[I.ring,t??``].filter(Boolean).join(` `),style:{"--ring-size":`${e}px`},"aria-hidden":`true`}),L={chip:`_chip_utbea_3`,"chip--error":`_chip--error_utbea_16`,"chip-in":`_chip-in_utbea_1`,row:`_row_utbea_22`,preview:`_preview_utbea_23`,"chip--image":`_chip--image_utbea_28`,text:`_text_utbea_31`,name:`_name_utbea_32`,meta:`_meta_utbea_33`,remove:`_remove_utbea_38`,track:`_track_utbea_49`,fill:`_fill_utbea_50`},R=({type:e=`file`,name:i,meta:o,preview:s,progress:c=0,onRemove:l,className:u})=>{let d=Math.min(100,Math.max(0,c)),f=o??(e===`uploading`?`Uploading ${Math.round(d)}%`:e===`error`?`Upload failed. Try again`:``);return(0,a.jsxs)(`div`,{className:[L.chip,L[`chip--${e}`],u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:L.row,children:[(0,a.jsx)(`span`,{className:L.preview,"aria-hidden":`true`,style:e===`image`&&s?{backgroundImage:`url(${s})`}:void 0,children:e===`uploading`?(0,a.jsx)(ne,{size:14}):e===`error`?(0,a.jsx)(n.G,{size:16,strokeWidth:t.Kt(16)}):e===`image`?s?null:(0,a.jsx)(r.i,{size:16,strokeWidth:t.Kt(16)}):(0,a.jsx)(n.F,{size:16,strokeWidth:t.Kt(16)})}),(0,a.jsxs)(`span`,{className:L.text,children:[(0,a.jsx)(`span`,{className:L.name,children:i}),f&&(0,a.jsx)(`span`,{className:L.meta,children:f})]}),l&&(0,a.jsx)(`button`,{type:`button`,className:L.remove,onClick:l,"aria-label":`Remove ${i}`,children:(0,a.jsx)(n.W,{size:16,strokeWidth:t.Kt(16)})})]}),e===`uploading`&&(0,a.jsx)(`div`,{className:L.track,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(d),"aria-label":`Uploading ${i}`,children:(0,a.jsx)(`div`,{className:L.fill,style:{width:`${d}%`}})})]})},z={root:`_root_19qxp_1`,rootAttributed:`_rootAttributed_19qxp_10`,rootSimple:`_rootSimple_19qxp_18`,rail:`_rail_19qxp_27`,body:`_body_19qxp_37`,markRow:`_markRow_19qxp_46`,markRowEnd:`_markRowEnd_19qxp_51`,mark:`_mark_19qxp_46`,quoteAttributed:`_quoteAttributed_19qxp_59`,quoteSimple:`_quoteSimple_19qxp_68`,author:`_author_19qxp_77`,authorText:`_authorText_19qxp_83`,authorName:`_authorName_19qxp_91`},re=({quote:e,author:r,className:i})=>{let o=!!r;return(0,a.jsxs)(`div`,{className:[z.root,o?z.rootAttributed:z.rootSimple,i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.Tt,{orientation:`vertical`,className:z.rail}),(0,a.jsxs)(`div`,{className:z.body,children:[o&&(0,a.jsx)(`span`,{className:z.markRow,"aria-hidden":`true`,children:(0,a.jsx)(n.k,{size:12,strokeWidth:t.Kt(12),className:z.mark,fill:`currentColor`})}),(0,a.jsx)(`p`,{className:o?z.quoteAttributed:z.quoteSimple,children:o?e:`"${e}"`}),o&&(0,a.jsx)(`span`,{className:[z.markRow,z.markRowEnd].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(n.k,{size:12,strokeWidth:t.Kt(12),className:z.mark,fill:`currentColor`})}),r&&(0,a.jsxs)(`div`,{className:z.author,children:[(0,a.jsx)(t.Bt,{size:`sm`,src:r.avatarSrc,alt:r.avatarAlt??r.name}),(0,a.jsxs)(`p`,{className:z.authorText,children:[(0,a.jsx)(`span`,{className:z.authorName,children:r.name}),(0,a.jsxs)(`span`,{className:z.authorRole,children:[`, `,r.role]})]})]})]})]})},B={root:`_root_btuyr_1`,rootLeft:`_rootLeft_btuyr_13`,rootTop:`_rootTop_btuyr_19`,ruleLeft:`_ruleLeft_btuyr_24`,ruleTop:`_ruleTop_btuyr_31`,text:`_text_btuyr_39`},ie=({text:e,align:t=`left`,className:n})=>(0,a.jsxs)(`div`,{className:[B.root,t===`top`?B.rootTop:B.rootLeft,n??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:t===`top`?B.ruleTop:B.ruleLeft,"aria-hidden":`true`}),(0,a.jsx)(`p`,{className:B.text,children:e})]}),V={root:`_root_awxwk_1`,imageWrap:`_imageWrap_awxwk_10`,"root--large":`_root--large_awxwk_27`,"root--small":`_root--small_awxwk_33`,image:`_image_awxwk_10`,caption:`_caption_awxwk_47`},ae=({src:e,alt:t=``,size:n=`large`,caption:r,className:i})=>(0,a.jsxs)(`figure`,{className:[V.root,V[`root--${n}`],i??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:V.imageWrap,children:(0,a.jsx)(`img`,{src:e,alt:t,className:V.image})}),r&&(0,a.jsx)(`figcaption`,{className:V.caption,children:r})]}),H={root:`_root_1seqp_1`,rootCenter:`_rootCenter_1seqp_10`,rootLeft:`_rootLeft_1seqp_15`,title:`_title_1seqp_20`,description:`_description_1seqp_30`,ctaRow:`_ctaRow_1seqp_39`,avatarBlock:`_avatarBlock_1seqp_45`,avatarsCaption:`_avatarsCaption_1seqp_57`},oe=({title:e,description:n,badgeLabel:i,primaryCta:o,secondaryCta:s,avatars:c,avatarsCaption:l,align:u=`center`,className:d})=>{let f=!!(o||s),p=!!(c&&c.length>0);return(0,a.jsxs)(`div`,{className:[H.root,u===`left`?H.rootLeft:H.rootCenter,d??``].filter(Boolean).join(` `),children:[i&&(0,a.jsx)(t.pt,{variant:`accent`,emphasis:`subtle`,children:i}),(0,a.jsx)(`p`,{className:H.title,children:e}),n&&(0,a.jsx)(`p`,{className:H.description,children:n}),f&&(0,a.jsxs)(`div`,{className:H.ctaRow,children:[o&&(0,a.jsx)(t.It,{variant:`primary`,onClick:o.onClick,children:o.label}),s&&(0,a.jsx)(t.It,{variant:`secondary`,leftIcon:(0,a.jsx)(r.r,{size:16,strokeWidth:t.Kt(16),fill:`currentColor`}),onClick:s.onClick,children:s.label})]}),p&&(0,a.jsxs)(`div`,{className:H.avatarBlock,children:[(0,a.jsx)(t.X,{size:`md`,avatars:c}),l&&(0,a.jsx)(`p`,{className:H.avatarsCaption,children:l})]})]})},U={root:`_root_5kajg_1`,item:`_item_5kajg_12`,marker:`_marker_5kajg_18`,dot:`_dot_5kajg_26`,label:`_label_5kajg_34`},se=({items:e,style:r=`check`,className:i})=>(0,a.jsx)(`ul`,{className:[U.root,i??``].filter(Boolean).join(` `),children:e.map((e,i)=>(0,a.jsxs)(`li`,{className:U.item,children:[(0,a.jsxs)(`span`,{className:U.marker,"aria-hidden":`true`,children:[r===`check`&&(0,a.jsx)(n.R,{size:18,strokeWidth:t.Kt(18)}),r===`arrow`&&(0,a.jsx)(n.O,{size:16,strokeWidth:t.Kt(16)}),r===`bullet`&&(0,a.jsx)(`span`,{className:U.dot})]}),(0,a.jsx)(`span`,{className:U.label,children:e})]},i))}),ce={marquee:`_marquee_1pc4i_1`,track:`_track_1pc4i_13`,row:`_row_1pc4i_19`,item:`_item_1pc4i_25`,fadeLeft:`_fadeLeft_1pc4i_31`,fadeRight:`_fadeRight_1pc4i_32`},le=({items:e,gap:t,ariaHidden:n})=>(0,a.jsx)(`div`,{className:ce.row,style:{gap:t,paddingRight:t},"aria-hidden":n,children:e.map((e,t)=>(0,a.jsx)(`div`,{className:ce.item,children:e},t))}),ue=({items:e,speed:t=40,gap:n,className:r})=>{let o=i.default.useRef(null),s=i.default.useRef(0),c=i.default.useRef(0),l=i.default.useRef(!1);return i.default.useEffect(()=>{let e=o.current?.firstElementChild;if(!e)return;let t=()=>{s.current=e.scrollWidth};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e,n]),i.default.useEffect(()=>{let e=o.current;if(!e||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let n,r=performance.now(),i=()=>{let a=performance.now(),o=(a-r)/1e3;r=a;let u=l.current?t*.2:t,d=s.current;d>0&&(c.current=(c.current+u*o)%d,e.style.transform=`translateX(-${c.current}px)`),n=setTimeout(i,16)};return n=setTimeout(i,16),()=>clearTimeout(n)},[t]),(0,a.jsxs)(`div`,{className:[ce.marquee,r??``].filter(Boolean).join(` `),onMouseEnter:()=>{l.current=!0},onMouseLeave:()=>{l.current=!1},children:[(0,a.jsxs)(`div`,{ref:o,className:ce.track,children:[(0,a.jsx)(le,{items:e,gap:n}),(0,a.jsx)(le,{items:e,gap:n,ariaHidden:!0})]}),(0,a.jsx)(`div`,{className:ce.fadeLeft,"aria-hidden":`true`}),(0,a.jsx)(`div`,{className:ce.fadeRight,"aria-hidden":`true`})]})},de={root:`_root_17a1b_1`,numRow:`_numRow_17a1b_9`,value:`_value_17a1b_15`,trend:`_trend_17a1b_25`,trendUp:`_trendUp_17a1b_35`,trendDown:`_trendDown_17a1b_39`,label:`_label_17a1b_43`},fe=({value:e,label:r,trend:i,className:o})=>{let s=i!==void 0,c=s&&i>=0,l=c?n.B:n.z;return(0,a.jsxs)(`div`,{className:[de.root,o??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:de.numRow,children:[(0,a.jsx)(`p`,{className:de.value,children:e}),s&&(0,a.jsxs)(`span`,{className:[de.trend,c?de.trendUp:de.trendDown].join(` `),children:[(0,a.jsx)(l,{size:24,strokeWidth:t.Kt(24)}),Math.abs(i),`%`]})]}),(0,a.jsx)(`p`,{className:de.label,children:r})]})},pe={root:`_root_ew7dg_1`,header:`_header_ew7dg_14`,label:`_label_ew7dg_22`,toggle:`_toggle_ew7dg_35`,fullWidth:`_fullWidth_ew7dg_49`,collapse:`_collapse_ew7dg_68`,collapseOpen:`_collapseOpen_ew7dg_75`,collapseInner:`_collapseInner_ew7dg_79`,navLinks:`_navLinks_ew7dg_92`,navLink:`_navLink_ew7dg_92`},me=({label:e,links:r,ctaLabel:o=`Get started`,onCtaClick:s,open:c,defaultOpen:l=!1,onOpenChange:u,className:d})=>{let f=c!==void 0,[p,m]=i.default.useState(l),h=f?c:p,g=()=>{let e=!h;f||m(e),u?.(e)},_=i.default.useRef(null),[v,y]=i.default.useState(0);return i.default.useEffect(()=>{let e=_.current;if(!e)return;let t=()=>y(e.scrollHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[r,o]),(0,a.jsxs)(`div`,{className:[pe.root,d??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:pe.header,children:[(0,a.jsx)(`p`,{className:pe.label,children:e}),(0,a.jsx)(`button`,{type:`button`,className:pe.toggle,onClick:g,"aria-expanded":h,"aria-label":h?`Close menu`:`Open menu`,children:h?(0,a.jsx)(n.W,{size:16,strokeWidth:t.Kt(16)}):(0,a.jsx)(n.D,{size:16,strokeWidth:t.Kt(16)})})]}),(0,a.jsx)(`div`,{className:[pe.collapse,h?pe.collapseOpen:``].filter(Boolean).join(` `),style:{maxHeight:h?`${v}px`:`0px`},"aria-hidden":!h,children:(0,a.jsxs)(`div`,{ref:_,className:pe.collapseInner,children:[(0,a.jsx)(`nav`,{className:pe.navLinks,"aria-label":e,children:r.map(e=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:pe.navLink,tabIndex:h?void 0:-1,children:e.label},e.label))}),(0,a.jsx)(t.Tt,{className:pe.fullWidth}),(0,a.jsx)(t.It,{variant:`primary`,className:pe.fullWidth,onClick:s,tabIndex:h?void 0:-1,children:o})]})})]})},he={root:`_root_lrpdp_1`,"root--sm":`_root--sm_lrpdp_14`,"root--md":`_root--md_lrpdp_18`,"root--lg":`_root--lg_lrpdp_22`,defaultMark:`_defaultMark_lrpdp_27`},ge={sm:14,md:16,lg:18},_e=({size:e=`md`,logo:n,label:r,className:o})=>{let s=ge[e],c=i.default.isValidElement(n)?i.default.cloneElement(n,{size:s,strokeWidth:t.Kt(s)}):n??(0,a.jsx)(`span`,{className:he.defaultMark,style:{width:s,height:s},children:(0,a.jsx)(t.q,{size:s})});return(0,a.jsx)(`span`,{className:[he.root,he[`root--${e}`],o??``].filter(Boolean).join(` `),role:`img`,"aria-label":r??`Logo placeholder`,children:c})},W={root:`_root_ibchq_1`,rootCompact:`_rootCompact_ibchq_7`,rootDetailed:`_rootDetailed_ibchq_14`,infoCompact:`_infoCompact_ibchq_21`,infoDetailed:`_infoDetailed_ibchq_27`,name:`_name_ibchq_35`,role:`_role_ibchq_44`,bio:`_bio_ibchq_53`,social:`_social_ibchq_63`,socialBtn:`_socialBtn_ibchq_71`},ve=({name:e,role:n,avatarSrc:r,avatarAlt:i,bio:o,socialLinks:s=[],className:c})=>{let l=!!o||s.length>0;return(0,a.jsxs)(`div`,{className:[W.root,l?W.rootDetailed:W.rootCompact,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.Bt,{size:`xl`,src:r,alt:i??e}),(0,a.jsxs)(`div`,{className:l?W.infoDetailed:W.infoCompact,children:[(0,a.jsx)(`p`,{className:W.name,children:e}),(0,a.jsx)(`p`,{className:W.role,children:n})]}),l&&o&&(0,a.jsx)(`p`,{className:W.bio,children:o}),l&&s.length>0&&(0,a.jsx)(`div`,{className:W.social,children:s.map((e,t)=>(0,a.jsx)(`a`,{href:e.href,onClick:e.onClick,className:W.socialBtn,"aria-label":e.label,children:e.icon},e.label??t))})]})},ye=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,fill:`currentColor`,d:`M9.48933 6.77467L15.318 0H13.9367L8.876 5.88267L4.834 0H0.172L6.284 8.89533L0.172 16H1.55333L6.89733 9.788L11.166 16H15.828L9.48933 6.77467ZM7.598 8.974L6.97867 8.088L2.05067 1.04H4.172L8.14867 6.728L8.768 7.614L13.9373 15.0073H11.816L7.598 8.974Z`})}),be=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fill:`currentColor`,stroke:`currentColor`,strokeWidth:`0.5`,d:`M5.2627 14.9109C5.24063 14.9019 5.21825 14.8937 5.19629 14.8845C5.21828 14.8846 5.2404 14.8849 5.2627 14.8845C5.26277 14.8934 5.26262 14.9022 5.2627 14.9109ZM8 0.948C12.0038 0.948 15.25 4.19421 15.25 8.198C15.25 11.2321 13.382 13.8337 10.7119 14.9041C10.7126 14.8154 10.7132 14.7175 10.7139 14.6111C10.7164 14.2289 10.7197 13.7443 10.7197 13.2068C10.7197 12.8702 10.6752 12.5602 10.5967 12.282C11.2251 12.1236 11.8603 11.8618 12.4033 11.407C13.3035 10.6531 13.8291 9.48051 13.8291 7.78003C13.8291 6.87672 13.5529 6.10004 13.0859 5.46265C13.1914 4.97309 13.2464 4.1873 12.8779 3.24292L12.748 2.91089L12.4082 2.80152L12.1885 3.48902C12.4086 2.8019 12.407 2.80174 12.4062 2.80152L12.4053 2.80054L12.3965 2.79761C12.3923 2.79634 12.3874 2.79501 12.3828 2.7937C12.3738 2.79113 12.364 2.78851 12.3535 2.78589C12.3324 2.78061 12.3081 2.77611 12.2812 2.77124C12.2271 2.76146 12.1615 2.75326 12.085 2.74976C11.9315 2.74276 11.7366 2.75416 11.499 2.80445C11.0816 2.8928 10.5376 3.09872 9.85352 3.52808C9.24662 3.38844 8.61824 3.31986 7.99414 3.31616H7.98535C7.36044 3.31984 6.73069 3.3881 6.12305 3.52808C5.43488 3.09865 4.88896 2.89272 4.4707 2.80445C4.23272 2.75425 4.03733 2.74275 3.88379 2.74976C3.80726 2.75325 3.74164 2.76049 3.6875 2.77027C3.66056 2.77514 3.63643 2.78059 3.61523 2.78589C3.60476 2.78851 3.59499 2.79113 3.58594 2.7937C3.58136 2.79501 3.57647 2.79634 3.57227 2.79761L3.56348 2.80054L3.56152 2.80152C3.56163 2.80419 3.57406 2.84531 3.78906 3.51636L3.56055 2.80152L3.2207 2.91089L3.09082 3.24292C2.72472 4.18117 2.77327 4.9675 2.88574 5.46851C2.41945 6.10504 2.14648 6.88031 2.14648 7.78003C2.14649 8.97574 2.40791 9.91025 2.87598 10.6228C2.76692 10.5961 2.65215 10.5747 2.53027 10.5662L2.50879 10.5642H2.46289C2.45155 10.5643 2.43701 10.5646 2.41992 10.5652C2.3862 10.5664 2.33899 10.569 2.28516 10.575C2.20712 10.5835 2.00131 10.6093 1.80762 10.7195C1.70282 10.7791 1.53342 10.9016 1.43457 11.1267C1.42275 11.1537 1.41196 11.181 1.40332 11.2078C0.984401 10.291 0.75 9.27198 0.75 8.198C0.75 4.19409 3.99434 0.948 8 0.948ZM4.51855 11.9919C4.75868 12.0994 5.00485 12.1834 5.25098 12.2517C5.17809 12.2603 5.10423 12.266 5.03125 12.2595C4.87853 12.2459 4.69843 12.1922 4.51855 11.9919Z`})}),xe={heading:`_heading_96cdx_1`,h2:`_h2_96cdx_8`,h3:`_h3_96cdx_14`},Se=({children:e,level:t=`h2`,className:n})=>(0,a.jsx)(t,{className:[xe.heading,xe[t],n??``].filter(Boolean).join(` `),children:e}),Ce={paragraph:`_paragraph_8pqdi_1`},we=({children:e,className:t})=>(0,a.jsx)(`p`,{className:[Ce.paragraph,t??``].filter(Boolean).join(` `),children:e}),Te={rootBordered:`_rootBordered_14u95_1`,rail:`_rail_14u95_12`,contentHorizontal:`_contentHorizontal_14u95_18`,contentVertical:`_contentVertical_14u95_26`,textHorizontal:`_textHorizontal_14u95_34`,textVertical:`_textVertical_14u95_44`,title:`_title_14u95_52`,description:`_description_14u95_60`},Ee=({icon:e,title:n,description:r,layout:o=`horizontal`,leftBorder:s=!1,className:c})=>{let l=o===`vertical`,u=(0,a.jsxs)(`div`,{className:l?Te.contentVertical:Te.contentHorizontal,children:[(0,a.jsx)(t.Z,{icon:e,size:`sm`,variant:`light`}),(0,a.jsxs)(`div`,{className:l?Te.textVertical:Te.textHorizontal,children:[(0,a.jsx)(`p`,{className:Te.title,children:n}),(0,a.jsx)(`p`,{className:Te.description,children:r})]})]});return s?(0,a.jsxs)(`div`,{className:[Te.rootBordered,c??``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.Tt,{orientation:`vertical`,className:Te.rail}),u]}):i.default.cloneElement(u,{className:[u.props.className,c??``].filter(Boolean).join(` `)})},De=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M11.6667 4.33333H11.6733M4.66667 1.33333H11.3333C13.1743 1.33333 14.6667 2.82572 14.6667 4.66667V11.3333C14.6667 13.1743 13.1743 14.6667 11.3333 14.6667H4.66667C2.82572 14.6667 1.33333 13.1743 1.33333 11.3333V4.66667C1.33333 2.82572 2.82572 1.33333 4.66667 1.33333ZM10.6666 7.58004C10.7489 8.13487 10.6541 8.70152 10.3958 9.19938C10.1375 9.69725 9.72873 10.101 9.22772 10.3532C8.7267 10.6053 8.15893 10.6931 7.60516 10.604C7.05138 10.5149 6.53981 10.2534 6.14319 9.85681C5.74658 9.4602 5.48512 8.94862 5.39601 8.39485C5.3069 7.84107 5.39468 7.2733 5.64685 6.77229C5.89903 6.27127 6.30276 5.86253 6.80062 5.6042C7.29849 5.34587 7.86514 5.2511 8.41997 5.33337C8.98592 5.41729 9.50987 5.68101 9.91443 6.08558C10.319 6.49014 10.5827 7.01409 10.6666 7.58004Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),Oe=({size:e=16})=>(0,a.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M12 1.33333H10C9.11594 1.33333 8.2681 1.68452 7.64298 2.30964C7.01786 2.93477 6.66667 3.78261 6.66667 4.66667V6.66667H4.66667V9.33333H6.66667V14.6667H9.33333V9.33333H11.3333L12 6.66667H9.33333V4.66667C9.33333 4.48986 9.40357 4.32029 9.5286 4.19526C9.65362 4.07024 9.82319 4 10 4H12V1.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})}),ke=({size:e=16})=>(0,a.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:`M10.6667 5.33333C11.7275 5.33333 12.7449 5.75476 13.4951 6.50491C14.2452 7.25505 14.6667 8.27247 14.6667 9.33333V14H12V9.33333C12 8.97971 11.8595 8.64057 11.6095 8.39052C11.3594 8.14048 11.0203 8 10.6667 8C10.313 8 9.97391 8.14048 9.72386 8.39052C9.47381 8.64057 9.33333 8.97971 9.33333 9.33333V14H6.66667V9.33333C6.66667 8.27247 7.08809 7.25505 7.83824 6.50491C8.58838 5.75476 9.6058 5.33333 10.6667 5.33333Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M4 6H1.33333V14H4V6Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,a.jsx)(`path`,{d:`M2.66667 4C3.40305 4 4 3.40305 4 2.66667C4 1.93029 3.40305 1.33333 2.66667 1.33333C1.93029 1.33333 1.33333 1.93029 1.33333 2.66667C1.33333 3.40305 1.93029 4 2.66667 4Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Ae={chart:`_chart_1y8ew_2`,rich:`_rich_1y8ew_26`,s0:`_s0_1y8ew_26`,s1:`_s1_1y8ew_27`},je={sm:180,md:240,lg:320,xl:420},Me=({data:e,variant:n=`default`,seriesLabels:r=[`Value`,`Value 2`],size:s=`md`,height:c,loading:l=!1,appearance:u=`default`,className:d})=>{let f=t.U(),p=u===`rich`,m=i.default.useId().replace(/[^a-zA-Z0-9]/g,``),h=i.default.useRef(null),g=t.bt(h),_=g(`--color-chart-5`)??`#dca84f`,v=g(`--color-chart-2`)??`#5b92dd`,y=g(`--color-border-subtle`)??`#e7e5e1`,b=g(`--color-fg-muted`)??`#78716a`,x=e.some(e=>e.value2!==void 0),S=n===`step`?`step`:n===`linear`?`linear`:`monotone`,C=n===`stacked`?`stack`:void 0,w=g(`--color-bg-canvas`)??`#fafaf9`,T=e=>t=>(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`circle`,{cx:t.cx,cy:t.cy,r:11,fill:e,fillOpacity:.16}),(0,a.jsx)(`circle`,{cx:t.cx,cy:t.cy,r:4.5,fill:e,stroke:w,strokeWidth:2})]},`halo-${t.index}`);return l?(0,a.jsx)(t.gt,{kind:`area`,height:c??je[s],className:d,label:`Loading area chart`}):(0,a.jsx)(`div`,{ref:h,className:[Ae.chart,p?`${Ae.rich} sk-chart-rich`:``,d??``].filter(Boolean).join(` `),style:{"--s0":_,"--s1":v},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:c??je[s],children:(0,a.jsxs)(o.AreaChart,{data:e,margin:{top:8,right:8,bottom:8,left:0},children:[(0,a.jsxs)(`defs`,{children:[(0,a.jsxs)(`linearGradient`,{id:`${m}a1`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:p?`0%`:`5%`,stopColor:_,stopOpacity:p?.42:.35}),(0,a.jsx)(`stop`,{offset:p?`100%`:`95%`,stopColor:_,stopOpacity:p?0:.02})]}),(0,a.jsxs)(`linearGradient`,{id:`${m}a2`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:p?`0%`:`5%`,stopColor:v,stopOpacity:p?.42:.35}),(0,a.jsx)(`stop`,{offset:p?`100%`:`95%`,stopColor:v,stopOpacity:p?0:.02})]})]}),(0,a.jsx)(o.CartesianGrid,{strokeDasharray:`3 3`,stroke:y,vertical:!1}),(0,a.jsx)(o.XAxis,{dataKey:`label`,stroke:b,fontSize:12,tickLine:!1,axisLine:!1,interval:0}),(0,a.jsx)(o.Tooltip,{cursor:p?{stroke:g(`--color-border-strong`)??`#a8a29b`,strokeWidth:1,strokeDasharray:`4 4`}:{stroke:g(`--color-border-default`)??`#dbdad7`,strokeWidth:1},content:(0,a.jsx)(t._t,{}),wrapperStyle:{zIndex:50}}),x&&(0,a.jsx)(o.Area,{type:S,dataKey:`value2`,name:r[1]??`Value 2`,stackId:C,stroke:v,strokeWidth:2,fill:`url(#${m}a2)`,dot:!1,activeDot:p?T(v):{r:4,fill:v,stroke:w,strokeWidth:1.5},className:p?Ae.s1:void 0,...p?{isAnimationActive:!f,animationDuration:1100,animationEasing:`ease-out`}:{}}),(0,a.jsx)(o.Area,{type:S,dataKey:`value`,name:r[0]??`Value`,stackId:C,stroke:_,strokeWidth:2,fill:`url(#${m}a1)`,dot:!1,activeDot:p?T(_):{r:4,fill:_,stroke:w,strokeWidth:1.5},className:p?Ae.s0:void 0,...p?{isAnimationActive:!f,animationDuration:1100,animationEasing:`ease-out`}:{}})]})})})},Ne={col:`_col_1a9o7_2`,col__header:`_col__header_1a9o7_11`,col__dot:`_col__dot_1a9o7_12`,col__title:`_col__title_1a9o7_13`,col__count:`_col__count_1a9o7_14`,col__spacer:`_col__spacer_1a9o7_15`,col__action:`_col__action_1a9o7_16`,col__body:`_col__body_1a9o7_26`,col__drop:`_col__drop_1a9o7_27`,col__add:`_col__add_1a9o7_33`},Pe=({state:e=`default`,title:r,count:i,dotColor:o=`var(--color-chart-1)`,children:s,onAdd:c,onMenu:l,className:u})=>(0,a.jsxs)(`div`,{className:[Ne.col,u??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:Ne.col__header,children:[(0,a.jsx)(`span`,{className:Ne.col__dot,style:{background:o},"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:Ne.col__title,children:r}),i!=null&&(0,a.jsx)(`span`,{className:Ne.col__count,children:i}),(0,a.jsx)(`span`,{className:Ne.col__spacer}),(0,a.jsx)(`button`,{type:`button`,className:Ne.col__action,onClick:c,"aria-label":`Add task`,children:(0,a.jsx)(n.N,{size:16,strokeWidth:t.Kt(16)})}),(0,a.jsx)(`button`,{type:`button`,className:Ne.col__action,onClick:l,"aria-label":`Column options`,children:(0,a.jsx)(n.E,{size:16,strokeWidth:t.Kt(16)})})]}),(0,a.jsx)(`div`,{className:Ne.col__body,children:e===`empty`?(0,a.jsx)(`div`,{className:Ne.col__drop,children:`Drop tasks here`}):s}),(0,a.jsxs)(`button`,{type:`button`,className:Ne.col__add,onClick:c,children:[(0,a.jsx)(n.N,{size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`}),`Add task`]})]}),G={calendar:`_calendar_c1fll_2`,header:`_header_c1fll_14`,header__label:`_header__label_c1fll_15`,navBtn:`_navBtn_c1fll_16`,weekdays:`_weekdays_c1fll_29`,weekday:`_weekday_c1fll_29`,grid:`_grid_c1fll_36`,day:`_day_c1fll_37`,"day--default":`_day--default_c1fll_52`,"day--hover":`_day--hover_c1fll_54`,"day--selected":`_day--selected_c1fll_55`,"day--today":`_day--today_c1fll_56`,"day--in-range":`_day--in-range_c1fll_57`,"day--outside":`_day--outside_c1fll_58`,"day--disabled":`_day--disabled_c1fll_59`,dropdowns:`_dropdowns_c1fll_62`,dropdown:`_dropdown_c1fll_62`},Fe=[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],Ie=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Le=(e,t)=>!!e&&!!t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Re=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),ze=({mode:e=`single`,value:r,onChange:o,range:s,onRangeChange:c,headerType:l=`arrows`,defaultMonth:u,minDate:d,maxDate:f,className:p})=>{let[m,h]=i.default.useState(()=>{let e=u??r??s?.from??new Date;return new Date(e.getFullYear(),e.getMonth(),1)}),[g,_]=i.default.useState({}),v=t.V(),y=s===void 0?g:s,b=new Date,x=m.getFullYear(),S=m.getMonth(),C=new Date(x,S,1).getDay(),w=new Date(x,S,1-C),T=Array.from({length:42},(e,t)=>new Date(w.getFullYear(),w.getMonth(),w.getDate()+t)),E=e=>d&&e<Re(d)||f&&e>f,D=e=>{s===void 0&&_(e),c?.(e)},O=t=>{if(e===`single`){o?.(t);return}let{from:n,to:r}=y;D(!n||n&&r?{from:t,to:void 0}:t<n?{from:t,to:n}:{from:n,to:t})},k=t=>{if(E(t))return`disabled`;if(e===`single`){if(Le(t,r))return`selected`}else{let{from:e,to:n}=y;if(Le(t,e)||Le(t,n))return`selected`;if(e&&n&&t>e&&t<n)return`in-range`}return t.getMonth()===S?Le(t,b)?`today`:`default`:`outside`},A=d?d.getFullYear():x-10,j=f?f.getFullYear():x+10,M=Array.from({length:j-A+1},(e,t)=>A+t);return(0,a.jsxs)(`div`,{className:[G.calendar,p??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:G.header,children:[(0,a.jsx)(`button`,{type:`button`,className:G.navBtn,onClick:()=>h(new Date(x,S-1,1)),"aria-label":`Previous month`,children:(0,a.jsx)(n.T,{size:16,strokeWidth:t.Kt(16)})}),l===`dropdowns`?(0,a.jsxs)(`span`,{className:G.dropdowns,children:[(0,a.jsx)(`select`,{className:G.dropdown,value:S,onChange:e=>h(new Date(x,Number(e.target.value),1)),"aria-label":`Month`,children:Ie.map((e,t)=>(0,a.jsx)(`option`,{value:t,children:e},e))}),(0,a.jsx)(`select`,{className:G.dropdown,value:x,onChange:e=>h(new Date(Number(e.target.value),S,1)),"aria-label":`Year`,children:M.map(e=>(0,a.jsx)(`option`,{value:e,children:e},e))})]}):(0,a.jsxs)(`span`,{className:G.header__label,children:[Ie[S],` `,x]}),(0,a.jsx)(`button`,{type:`button`,className:G.navBtn,onClick:()=>h(new Date(x,S+1,1)),"aria-label":`Next month`,children:(0,a.jsx)(n.w,{size:16,strokeWidth:t.Kt(16)})})]}),(0,a.jsx)(`div`,{className:G.weekdays,children:Fe.map(e=>(0,a.jsx)(`span`,{className:G.weekday,children:e},e))}),(0,a.jsxs)(`div`,{ref:v.ref,...v.groupProps,className:G.grid,children:[v.highlight,T.map((e,t)=>{let n=k(e);return(0,a.jsx)(`button`,{type:`button`,"data-hover-item":``,className:[G.day,G[`day--${n}`]].filter(Boolean).join(` `),disabled:n===`disabled`,"aria-current":n===`today`?`date`:void 0,"aria-selected":n===`selected`,"aria-label":e.toLocaleDateString(void 0,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`}),onClick:()=>O(e),children:e.getDate()},t)})]})]})},K={card:`_card_jj2s2_3`,"card--interactive":`_card--interactive_jj2s2_22`,card__header:`_card__header_jj2s2_32`,card__title:`_card__title_jj2s2_36`,card__description:`_card__description_jj2s2_45`,card__body:`_card__body_jj2s2_55`,card__actions:`_card__actions_jj2s2_59`,"card__actions--split":`_card__actions--split_jj2s2_68`,card__actionsGroup:`_card__actionsGroup_jj2s2_69`},Be=({title:e,description:t,actions:n,leadingAction:r,interactive:i,children:o,className:s})=>(0,a.jsxs)(`div`,{className:[K.card,i?K[`card--interactive`]:``,s??``].filter(Boolean).join(` `),children:[(e||t)&&(0,a.jsxs)(`div`,{className:K.card__header,children:[e&&(0,a.jsx)(`h3`,{className:K.card__title,children:e}),t&&(0,a.jsx)(`p`,{className:K.card__description,children:t})]}),o&&(0,a.jsx)(`div`,{className:K.card__body,children:o}),(n||r)&&(r?(0,a.jsxs)(`div`,{className:[K.card__actions,K[`card__actions--split`]].join(` `),children:[r,(0,a.jsx)(`div`,{className:K.card__actionsGroup,children:n})]}):(0,a.jsx)(`div`,{className:K.card__actions,children:n}))]}),q={sr:`_sr_1nido_5`,root:`_root_1nido_17`,header:`_header_1nido_26`,header__icon:`_header__icon_1nido_44`,header__title:`_header__title_1nido_45`,header__chevron:`_header__chevron_1nido_46`,panel:`_panel_1nido_51`,panel__inner:`_panel__inner_1nido_59`,step:`_step_1nido_61`,steps:`_steps_1nido_71`,step__body:`_step__body_1nido_83`,step__row:`_step__row_1nido_115`,step__icon:`_step__icon_1nido_116`,step__content:`_step__content_1nido_117`,step__label:`_step__label_1nido_118`,step__query:`_step__query_1nido_119`,step__count:`_step__count_1nido_129`,"step--done":`_step--done_1nido_136`,"step--active":`_step--active_1nido_137`,"step--pending":`_step--pending_1nido_139`,step__sources:`_step__sources_1nido_145`,"step__sources--button":`_step__sources--button_1nido_157`,step__sourcesLabel:`_step__sourcesLabel_1nido_159`,step__sourcesChevron:`_step__sourcesChevron_1nido_162`,stack:`_stack_1nido_165`,chip:`_chip_1nido_166`,working:`_working_1nido_181`,indicator:`_indicator_1nido_182`,indicator__icon:`_indicator__icon_1nido_183`,indicator__label:`_indicator__label_1nido_184`,indicator__time:`_indicator__time_1nido_185`,"indicator--working":`_indicator--working_1nido_191`,"chain-of-thought-shimmer":`_chain-of-thought-shimmer_1nido_1`,"chain-of-thought-open":`_chain-of-thought-open_1nido_1`,"chain-of-thought-rail-down":`_chain-of-thought-rail-down_1nido_1`,"chain-of-thought-rail-across":`_chain-of-thought-rail-across_1nido_1`,"chain-of-thought-land":`_chain-of-thought-land_1nido_1`,"chain-of-thought-write":`_chain-of-thought-write_1nido_1`,"chain-of-thought-type":`_chain-of-thought-type_1nido_1`,"chain-of-thought-fade-in":`_chain-of-thought-fade-in_1nido_1`,"chain-of-thought-row-open":`_chain-of-thought-row-open_1nido_1`,"chain-of-thought-fan":`_chain-of-thought-fan_1nido_1`,"chain-of-thought-spark-down":`_chain-of-thought-spark-down_1nido_1`,"chain-of-thought-spark-across":`_chain-of-thought-spark-across_1nido_1`,"chain-of-thought-beat":`_chain-of-thought-beat_1nido_1`,"chain-of-thought-sweep":`_chain-of-thought-sweep_1nido_1`,"chain-of-thought-glint":`_chain-of-thought-glint_1nido_1`,"indicator--done":`_indicator--done_1nido_290`,"chain-of-thought-pop":`_chain-of-thought-pop_1nido_1`,"chain-of-thought-check":`_chain-of-thought-check_1nido_1`,"chain-of-thought-rise":`_chain-of-thought-rise_1nido_1`,"chain-of-thought-title":`_chain-of-thought-title_1nido_1`},Ve=(...e)=>e.filter(Boolean).join(` `),He=i.default.createContext(!1);function Ue(){let e=i.default.useContext(He),[t]=i.default.useState(e);return t}function We(e,t=700,n=()=>!0){let[r,a]=i.default.useState(!1),o=i.default.useRef(!0);return i.default.useEffect(()=>{if(o.current){o.current=!1;return}if(!n(e)){a(!1);return}a(!0);let r=setTimeout(()=>a(!1),t);return()=>clearTimeout(r)},[e]),r}var Ge=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function Ke(e){return e<60?`${e.toFixed(1)}s`:`${Math.floor(e/60)}m ${Math.floor(e%60)}s`}var qe=({status:e=`working`,label:r,elapsed:o,startedAt:s,lookAt:c,className:l})=>{let u=e===`working`,[d,f]=i.default.useState(()=>Date.now());i.default.useEffect(()=>{if(!u||s==null||o!=null)return;f(Date.now());let e=setInterval(()=>f(Date.now()),100);return()=>clearInterval(e)},[u,s,o]);let p=o??(s==null?void 0:Math.max(0,(d-s)/1e3)),m=We(e,2400);return(0,a.jsxs)(`div`,{className:Ve(q.indicator,u?q[`indicator--working`]:q[`indicator--done`],l),"data-changed":m||void 0,role:`status`,children:[u?(0,a.jsx)(t.Ut,{size:20,lookAt:c,className:q.indicator__icon}):(0,a.jsx)(n.S,{className:q.indicator__icon,size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:q.indicator__label,children:r??(u?`Working`:`Worked for`)}),p!=null&&(0,a.jsx)(`span`,{className:q.indicator__time,"aria-hidden":u||void 0,children:Ke(p)})]})};qe.displayName=`WorkingIndicator`;var Je=({sources:e,className:n})=>{let i=Ue();return(0,a.jsx)(`ul`,{className:Ve(q.stack,n),"aria-label":`${e.length} source${e.length===1?``:`s`}`,children:e.map((e,n)=>{let o=e.icon??r.n;return(0,a.jsxs)(`li`,{className:q.chip,title:e.label,"data-fresh":i||void 0,style:{"--i":n},children:[(0,a.jsx)(o,{size:10,strokeWidth:t.Kt(10,1),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:q.sr,children:e.label})]},`${e.label}-${n}`)})})};Je.displayName=`SourceStack`;var Ye=({children:e,delay:t})=>{let n=Ue(),[r,o]=i.default.useState(null);return i.default.useEffect(()=>{let r=n&&(typeof e==`string`||typeof e==`number`)?/^(\d+)(.*)$/s.exec(String(e)):null,i=r?Number(r[1]):0;if(!r||i<2||Ge())return;let a=r[2],s=Math.max(2,Math.round(i*.25)),c=performance.now()+t,l=Math.min(900,380+i*30),u=0,d=e=>{let t=Math.min(1,Math.max(0,(e-c)/l)),n=1-(1-t)**3;o(t<1?`${Math.round(s+n*(i-s))}${a}`:null),t<1&&(u=requestAnimationFrame(d))};return o(`${s}${a}`),u=requestAnimationFrame(d),()=>cancelAnimationFrame(u)},[]),(0,a.jsx)(`span`,{className:q.step__count,"data-fresh":n||void 0,children:r??e})},Xe=({onClick:e,children:t})=>{let n=Ue();return e?(0,a.jsx)(`button`,{type:`button`,className:Ve(q.step__sources,q[`step__sources--button`]),"data-fresh":n||void 0,onClick:e,children:t}):(0,a.jsx)(`div`,{className:q.step__sources,"data-fresh":n||void 0,children:t})},Ze={pending:`Pending: `,active:`In progress: `,done:`Done: `},Qe=({status:e=`done`,icon:r,label:o,query:s,count:c,accent:l,sources:u,sourcesLabel:d=`Sources`,onSourcesClick:f,className:p})=>{let m=r??n.C,h=l??m.brandColor??void 0,g=Ue(),[_,v]=i.default.useState(g),[y]=i.default.useState(g&&(c!=null||u!=null));i.default.useEffect(()=>{if(!_)return;let e=setTimeout(()=>v(!1),2e3);return()=>clearTimeout(e)},[_]);let b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:q.step__sourcesLabel,children:d}),u,f&&(0,a.jsx)(n.I,{className:q.step__sourcesChevron,size:12,strokeWidth:t.Kt(12),"aria-hidden":`true`})]});return(0,a.jsx)(`li`,{className:Ve(q.step,q[`step--${e}`],p),style:h?{"--cot-spark":h}:void 0,"data-entering":_||void 0,"data-with-results":_&&y||void 0,"aria-current":e===`active`?`step`:void 0,children:(0,a.jsxs)(`div`,{className:q.step__body,children:[(0,a.jsxs)(`div`,{className:q.step__row,children:[(0,a.jsx)(m,{className:q.step__icon,size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:q.step__content,children:[(0,a.jsx)(`span`,{className:q.sr,children:Ze[e]}),(0,a.jsx)(`span`,{className:q.step__label,children:o}),s&&(0,a.jsx)(`code`,{className:q.step__query,style:{"--chars":Math.max(1,s.length)},children:s})]}),c!=null&&(0,a.jsx)(Ye,{delay:_&&y?760:0,children:c})]}),u&&(0,a.jsx)(Xe,{onClick:f,children:b})]})})};Qe.displayName=`ChainOfThoughtStep`;var $e=({title:e,icon:r,open:o,defaultOpen:s=!0,onOpenChange:c,status:l,elapsed:u,startedAt:d,children:f,className:p})=>{let m=r??n.C,h=i.default.useId(),[g,_]=i.default.useState(!1);i.default.useEffect(()=>{let e=requestAnimationFrame(()=>_(!0));return()=>cancelAnimationFrame(e)},[]);let v=We(typeof e==`string`?e:void 0,600),[y,b]=i.default.useState(s),x=o??y,S=i.default.useRef(null),[C,w]=i.default.useState(0),[T,E]=i.default.useState(null);i.default.useLayoutEffect(()=>{let e=S.current?Array.from(S.current.children):[];e.forEach((e,t)=>e.style.setProperty(`--step`,String(t))),e.length!==C&&w(e.length);let t=e[e.length-1]?.querySelector(`.${q.step__content}`)??null;E(e=>e===t?e:t)});let D=We(l,900+C*110,e=>e===`done`),O=We(x,700+C*45,e=>e===!0);return(0,a.jsxs)(`div`,{className:Ve(q.root,p),"data-open":x||void 0,"data-finishing":D||void 0,"data-opening":O||void 0,style:{"--steps":C},children:[(0,a.jsxs)(`button`,{type:`button`,className:q.header,"aria-expanded":x,"aria-controls":h,onClick:()=>{let e=!x;o===void 0&&b(e),c?.(e)},children:[(0,a.jsx)(m,{className:q.header__icon,size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:q.header__title,"data-changed":v||void 0,children:e}),(0,a.jsx)(n.I,{className:q.header__chevron,size:14,strokeWidth:t.Kt(14),"aria-hidden":`true`})]}),(0,a.jsx)(`div`,{id:h,className:q.panel,"aria-hidden":!x||void 0,children:(0,a.jsxs)(`div`,{className:q.panel__inner,children:[(0,a.jsx)(He.Provider,{value:g,children:f!=null&&(0,a.jsx)(`ol`,{ref:S,className:q.steps,children:f})}),l&&(0,a.jsx)(`div`,{className:q.working,children:(0,a.jsx)(qe,{status:l,elapsed:u,startedAt:d,lookAt:T})})]})})]})};$e.displayName=`ChainOfThought`;var et={google:{label:`Google`,color:`#4285F4`,path:`M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z`},x:{label:`X`,color:null,path:`M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z`},reddit:{label:`Reddit`,color:`#FF4500`,path:`M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z`},github:{label:`GitHub`,color:null,path:`M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12`},linkedin:{label:`LinkedIn`,color:`#0A66C2`,path:`M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1`},youtube:{label:`YouTube`,color:`#FF0000`,path:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`},hackernews:{label:`Hacker News`,color:`#FF6600`,path:`M0 24V0h24v24H0zM6.951 5.896l4.112 7.708v5.064h1.583v-4.972l4.148-7.799h-1.749l-2.457 4.875c-.372.745-.688 1.434-.688 1.434s-.297-.708-.651-1.434L8.831 5.896h-1.88z`},wikipedia:{label:`Wikipedia`,color:null,path:`M12.09 13.119c-.936 1.932-2.217 4.548-2.853 5.728-.616 1.074-1.127.931-1.532.029-1.406-3.321-4.293-9.144-5.651-12.409-.251-.601-.441-.987-.619-1.139-.181-.15-.554-.24-1.122-.271C.103 5.033 0 4.982 0 4.898v-.455l.052-.045c.924-.005 5.401 0 5.401 0l.051.045v.434c0 .119-.075.176-.225.176l-.564.031c-.485.029-.727.164-.727.436 0 .135.053.33.166.601 1.082 2.646 4.818 10.521 4.818 10.521l.136.046 2.411-4.81-.482-1.067-1.658-3.264s-.318-.654-.428-.872c-.728-1.443-.712-1.518-1.447-1.617-.207-.023-.313-.05-.313-.149v-.468l.06-.045h4.292l.113.037v.451c0 .105-.076.15-.227.15l-.308.047c-.792.061-.661.381-.136 1.422l1.582 3.252 1.758-3.504c.293-.64.233-.801.111-.947-.07-.084-.305-.22-.812-.24l-.201-.021c-.052 0-.098-.015-.145-.051-.045-.031-.067-.076-.067-.129v-.427l.061-.045c1.247-.008 4.043 0 4.043 0l.059.045v.436c0 .121-.059.178-.193.178-.646.03-.782.095-1.023.439-.12.186-.375.589-.646 1.039l-2.301 4.273-.065.135 2.792 5.712.17.048 4.396-10.438c.154-.422.129-.722-.064-.895-.197-.172-.346-.273-.857-.295l-.42-.016c-.061 0-.105-.014-.152-.045-.043-.029-.072-.075-.072-.119v-.436l.059-.045h4.961l.041.045v.437c0 .119-.074.18-.209.18-.648.03-1.127.18-1.443.421-.314.255-.557.616-.736 1.067 0 0-4.043 9.258-5.426 12.339-.525 1.007-1.053.917-1.503-.031-.571-1.171-1.773-3.786-2.646-5.71l.053-.036z`},stackoverflow:{label:`Stack Overflow`,color:`#F58025`,path:`M15.725 0l-1.72 1.277 6.39 8.588 1.716-1.277L15.725 0zm-3.94 3.418l-1.369 1.644 8.225 6.85 1.369-1.644-8.225-6.85zm-3.15 4.465l-.905 1.94 9.702 4.517.904-1.94-9.701-4.517zm-1.85 4.86l-.44 2.093 10.473 2.201.44-2.092-10.473-2.203zM1.89 15.47V24h19.19v-8.53h-2.133v6.397H4.021v-6.396H1.89zm4.265 2.133v2.13h10.66v-2.13H6.154Z`},producthunt:{label:`Product Hunt`,color:`#DA552F`,path:`M13.604 8.4h-3.405V12h3.405c.995 0 1.801-.806 1.801-1.801 0-.993-.805-1.799-1.801-1.799zM12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm1.604 14.4h-3.405V18H7.801V6h5.804c2.319 0 4.2 1.88 4.2 4.199 0 2.321-1.881 4.201-4.201 4.201z`},medium:{label:`Medium`,color:null,path:`M4.21 0A4.201 4.201 0 0 0 0 4.21v15.58A4.201 4.201 0 0 0 4.21 24h15.58A4.201 4.201 0 0 0 24 19.79v-1.093c-.137.013-.278.02-.422.02-2.577 0-4.027-2.146-4.09-4.832a7.592 7.592 0 0 1 .022-.708c.093-1.186.475-2.241 1.105-3.022a3.885 3.885 0 0 1 1.395-1.1c.468-.237 1.127-.367 1.664-.367h.023c.101 0 .202.004.303.01V4.211A4.201 4.201 0 0 0 19.79 0Zm.198 5.583h4.165l3.588 8.435 3.59-8.435h3.864v.146l-.019.004c-.705.16-1.063.397-1.063 1.254h-.003l.003 10.274c.06.676.424.885 1.063 1.03l.02.004v.145h-4.923v-.145l.019-.005c.639-.144.994-.353 1.054-1.03V7.267l-4.745 11.15h-.261L6.15 7.569v9.445c0 .857.358 1.094 1.063 1.253l.02.004v.147H4.405v-.147l.019-.004c.705-.16 1.065-.397 1.065-1.253V6.987c0-.857-.358-1.094-1.064-1.254l-.018-.004zm19.25 3.668c-1.086.023-1.733 1.323-1.813 3.124H24V9.298a1.378 1.378 0 0 0-.342-.047Zm-1.862 3.632c-.1 1.756.86 3.239 2.204 3.634v-3.634z`},notion:{label:`Notion`,color:null,path:`M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z`},substack:{label:`Substack`,color:`#FF6719`,path:`M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z`},arxiv:{label:`arXiv`,color:`#B31B1B`,path:`M3.8423 0a1.0037 1.0037 0 0 0-.922.6078c-.1536.3687-.0438.6275.2938 1.1113l6.9185 8.3597-1.0223 1.1058a1.0393 1.0393 0 0 0 .003 1.4229l1.2292 1.3135-5.4391 6.4444c-.2803.299-.4538.823-.2971 1.1986a1.0253 1.0253 0 0 0 .9585.635.9133.9133 0 0 0 .6891-.3405l5.783-6.126 7.4902 8.0051a.8527.8527 0 0 0 .6835.2597.9575.9575 0 0 0 .8777-.6138c.1577-.377-.017-.7502-.306-1.1407l-7.0518-8.3418 1.0632-1.13a.9626.9626 0 0 0 .0089-1.3165L4.6336.4639s-.3733-.4535-.768-.463zm0 .272h.0166c.2179.0052.4874.2715.5644.3639l.005.006.0052.0055 10.169 10.9905a.6915.6915 0 0 1-.0072.945l-1.0666 1.133-1.4982-1.7724-8.5994-10.39c-.3286-.472-.352-.6183-.2592-.841a.7307.7307 0 0 1 .6704-.4401Zm14.341 1.5701a.877.877 0 0 0-.6554.2418l-5.6962 6.1584 1.6944 1.8319 5.3089-6.5138c.3251-.4335.479-.6603.3247-1.0292a1.1205 1.1205 0 0 0-.9763-.689zm-7.6557 12.2823 1.3186 1.4135-5.7864 6.1295a.6494.6494 0 0 1-.4959.26.7516.7516 0 0 1-.706-.4669c-.1119-.2682.0359-.6864.2442-.9083l.0051-.0055.0047-.0055z`},bluesky:{label:`Bluesky`,color:`#1185FE`,path:`M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026`},perplexity:{label:`Perplexity`,color:`#1FB8CD`,path:`M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z`},duckduckgo:{label:`DuckDuckGo`,color:`#DE5833`,path:`M12 0C5.37 0 0 5.37 0 12s5.37 12 12 12 12-5.37 12-12S18.63 0 12 0zm0 .984C18.083.984 23.016 5.916 23.016 12S18.084 23.016 12 23.016.984 18.084.984 12C.984 5.917 5.916.984 12 .984zm0 .938C6.434 1.922 1.922 6.434 1.922 12c0 4.437 2.867 8.205 6.85 9.55-.237-.82-.776-2.753-1.6-6.052-1.184-4.741-2.064-8.606 2.379-9.813.047-.011.064-.064.03-.093-.514-.467-1.382-.548-2.233-.38a.06.06 0 0 1-.07-.058c0-.011 0-.023.011-.035.205-.286.572-.507.822-.64a1.843 1.843 0 0 0-.607-.335c-.059-.022-.059-.12-.006-.144.006-.006.012-.012.024-.012 1.749-.233 3.586.292 4.49 1.448.011.011.023.017.035.023 2.968.635 3.509 4.837 3.328 5.998a9.607 9.607 0 0 0 2.346-.576c.746-.286 1.008-.222 1.101-.053.1.193-.018.513-.28.81-.496.567-1.393 1.01-2.974 1.137-.546.044-1.029.024-1.445.006-.789-.035-1.339-.059-1.633.39-.192.298-.041.998 1.487 1.22 1.09.157 2.078.047 2.798-.034.643-.07 1.073-.118 1.172.069.21.402-.996 1.207-3.066 1.224-.158 0-.315-.006-.467-.011-1.283-.065-2.227-.414-2.816-.735a.094.094 0 0 1-.035-.017c-.105-.059-.31.045-.188.267.07.134.444.478 1.004.776-.058.466.087 1.184.338 2l.088-.016c.041-.009.087-.019.134-.025.507-.082.775.012.926.175.717-.536 1.913-1.294 2.03-1.154.583.694.66 2.332.53 2.99-.004.012-.017.024-.04.035-.274.117-1.783-.296-1.783-.511-.059-1.075-.26-1.173-.493-1.225h-.156c.006.006.012.018.018.03l.052.12c.093.257.24 1.063.13 1.26-.112.199-.835.297-1.284.303-.443.006-.543-.158-.637-.408-.07-.204-.103-.675-.103-.95a.857.857 0 0 1 .012-.216c-.134.058-.333.193-.397.281-.017.262-.017.682.123 1.149.07.221-1.518 1.164-1.74.99-.227-.181-.634-1.952-.459-2.67-.187.017-.338.075-.42.191-.367.508.093 2.933.582 3.248.257.169 1.54-.553 2.176-1.095.105.145.305.158.553.158.326-.012.782-.06 1.103-.158.192.45.423.972.613 1.388 4.47-1.032 7.803-5.037 7.803-9.82 0-5.566-4.512-10.078-10.078-10.078zm1.791 5.646c-.42 0-.678.146-.795.332-.023.047.047.094.094.07.14-.075.357-.161.701-.156.328.006.516.09.67.159l.023.01c.041.017.088-.03.059-.065-.134-.18-.332-.35-.752-.35zm-5.078.198a1.24 1.24 0 0 0-.522.082c-.454.169-.67.526-.67.76 0 .051.112.057.141.011.081-.123.21-.31.617-.478.408-.17.73-.146.951-.094.047.012.083-.041.041-.07a.989.989 0 0 0-.558-.211zm5.434 1.423a.651.651 0 0 0-.655.647.652.652 0 0 0 1.307 0 .646.646 0 0 0-.652-.647zm.283.262h.008a.17.17 0 0 1 .17.17c0 .093-.077.17-.17.17a.17.17 0 0 1-.17-.17c0-.09.072-.165.162-.17zm-5.358.076a.752.752 0 0 0-.758.758c0 .42.338.758.758.758s.758-.337.758-.758a.756.756 0 0 0-.758-.758zm.328.303h.01c.112 0 .2.089.2.2 0 .11-.088.197-.2.197a.195.195 0 0 1-.197-.198c0-.107.082-.194.187-.199z`}},tt=i.default.forwardRef(function({name:e,size:t=16,title:n,className:r,...i},o){let s=et[e],c=n?{role:`img`,"aria-label":n}:{"aria-hidden":!0,focusable:`false`};return s?(0,a.jsxs)(`svg`,{ref:o,xmlns:`http://www.w3.org/2000/svg`,width:t,height:t,viewBox:`0 0 24 24`,fill:s.color??`currentColor`,className:[`sakani-source-logo`,`sakani-source-logo-${e}`,r].filter(Boolean).join(` `),...c,...i,children:[n?(0,a.jsx)(`title`,{children:n}):null,(0,a.jsx)(`path`,{d:s.path})]}):null});tt.displayName=`SourceLogo`;var nt=Object.keys(et),rt=new Map;function it(e){let t=rt.get(e);if(!t){let n=({size:t,className:n,style:r,"aria-hidden":i})=>(0,a.jsx)(tt,{name:e,size:t,className:n,style:r,"aria-hidden":i});n.displayName=`SourceLogo(${e})`,t=Object.assign(n,{logoName:e,brandColor:et[e].color}),rt.set(e,t)}return t}var at={kbd:`_kbd_1yaxs_4`},ot=({children:e,className:t})=>(0,a.jsx)(`kbd`,{className:[at.kbd,t??``].filter(Boolean).join(` `),children:e}),st={spinner:`_spinner_14r00_3`,"spinner--sm":`_spinner--sm_14r00_12`,"spinner--md":`_spinner--md_14r00_13`,"spinner--lg":`_spinner--lg_14r00_14`,spinner__svg:`_spinner__svg_14r00_17`,"spinner-rotate":`_spinner-rotate_14r00_1`},ct=({size:e=`md`,label:t=`Loading...`,className:n})=>(0,a.jsx)(`span`,{role:`status`,"aria-label":t,className:[st.spinner,st[`spinner--${e}`],n??``].filter(Boolean).join(` `),children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,"aria-hidden":`true`,className:st.spinner__svg,children:[(0,a.jsx)(`circle`,{cx:12,cy:12,r:9,opacity:.2}),(0,a.jsx)(`path`,{d:`M12 3a9 9 0 0 1 9 9`,className:st.spinner__arc})]})}),J={sr:`_sr_1qhd2_5`,backdrop:`_backdrop_1qhd2_11`,panel:`_panel_1qhd2_23`,trigger:`_trigger_1qhd2_27`,"panel--simple":`_panel--simple_1qhd2_50`,"panel--preview":`_panel--preview_1qhd2_51`,field:`_field_1qhd2_54`,field__icon:`_field__icon_1qhd2_63`,field__content:`_field__content_1qhd2_64`,input:`_input_1qhd2_65`,field__clear:`_field__clear_1qhd2_81`,token:`_token_1qhd2_91`,token__icon:`_token__icon_1qhd2_105`,token__remove:`_token__remove_1qhd2_106`,scopes:`_scopes_1qhd2_116`,scopes__pill:`_scopes__pill_1qhd2_126`,"scopes__pill--glide":`_scopes__pill--glide_1qhd2_133`,scope:`_scope_1qhd2_116`,"scope--active":`_scope--active_1qhd2_157`,scope__count:`_scope__count_1qhd2_158`,scopes__hint:`_scopes__hint_1qhd2_169`,split:`_split_1qhd2_179`,body:`_body_1qhd2_181`,groups:`_groups_1qhd2_193`,group:`_group_1qhd2_193`,group__label:`_group__label_1qhd2_195`,group__action:`_group__action_1qhd2_207`,item:`_item_1qhd2_217`,"item--disabled":`_item--disabled_1qhd2_227`,item__lead:`_item__lead_1qhd2_228`,"item__lead--ai":`_item__lead--ai_1qhd2_239`,"item__lead--person":`_item__lead--person_1qhd2_240`,item__status:`_item__status_1qhd2_241`,"item__status--online":`_item__status--online_1qhd2_250`,item__bare:`_item__bare_1qhd2_251`,item__text:`_item__text_1qhd2_252`,item__label:`_item__label_1qhd2_253`,dim:`_dim_1qhd2_254`,match:`_match_1qhd2_255`,item__desc:`_item__desc_1qhd2_256`,item__trail:`_item__trail_1qhd2_257`,item__meta:`_item__meta_1qhd2_258`,item__keys:`_item__keys_1qhd2_259`,item__enter:`_item__enter_1qhd2_260`,message:`_message_1qhd2_263`,"message--error":`_message--error_1qhd2_271`,message__tile:`_message__tile_1qhd2_272`,message__text:`_message__text_1qhd2_280`,message__chips:`_message__chips_1qhd2_284`,message__actions:`_message__actions_1qhd2_285`,chip:`_chip_1qhd2_288`,chip__em:`_chip__em_1qhd2_303`,ghost:`_ghost_1qhd2_306`,ghost__track:`_ghost__track_1qhd2_307`,ghost__row:`_ghost__row_1qhd2_313`,ghost__lens:`_ghost__lens_1qhd2_330`,ghost__glass:`_ghost__glass_1qhd2_350`,ghost__zoom:`_ghost__zoom_1qhd2_361`,loading:`_loading_1qhd2_371`,skeleton:`_skeleton_1qhd2_372`,skeleton__lines:`_skeleton__lines_1qhd2_373`,answerSlot:`_answerSlot_1qhd2_376`,answer:`_answer_1qhd2_376`,"answer--glow":`_answer--glow_1qhd2_399`,"sakani-cmd-card-light":`_sakani-cmd-card-light_1qhd2_1`,"answer--glowFade":`_answer--glowFade_1qhd2_400`,answer__header:`_answer__header_1qhd2_402`,answer__mark:`_answer__mark_1qhd2_403`,answer__title:`_answer__title_1qhd2_408`,answer__status:`_answer__status_1qhd2_409`,answer__copy:`_answer__copy_1qhd2_410`,answer__body:`_answer__body_1qhd2_414`,answer__sources:`_answer__sources_1qhd2_415`,answer__sourcesLabel:`_answer__sourcesLabel_1qhd2_416`,answer__source:`_answer__source_1qhd2_415`,answer__footer:`_answer__footer_1qhd2_425`,answer__openInChat:`_answer__openInChat_1qhd2_426`,preview__stack:`_preview__stack_1qhd2_429`,preview__layer:`_preview__layer_1qhd2_430`,preview__empty:`_preview__empty_1qhd2_432`,preview__scroll:`_preview__scroll_1qhd2_433`,preview__actions:`_preview__actions_1qhd2_434`,preview:`_preview_1qhd2_429`,footer:`_footer_1qhd2_445`,footer__workspace:`_footer__workspace_1qhd2_456`,footer__dot:`_footer__dot_1qhd2_457`,footer__chevron:`_footer__chevron_1qhd2_458`,footer__hints:`_footer__hints_1qhd2_459`,hint:`_hint_1qhd2_460`,hint__keys:`_hint__keys_1qhd2_461`,trigger__icon:`_trigger__icon_1qhd2_488`,trigger__text:`_trigger__text_1qhd2_489`,trigger__keys:`_trigger__keys_1qhd2_490`,"backdrop--in":`_backdrop--in_1qhd2_493`,"sakani-cmd-backdrop-in":`_sakani-cmd-backdrop-in_1qhd2_1`,"backdrop--out":`_backdrop--out_1qhd2_494`,"sakani-cmd-backdrop-out":`_sakani-cmd-backdrop-out_1qhd2_1`,"panel--in":`_panel--in_1qhd2_495`,"sakani-cmd-panel-in":`_sakani-cmd-panel-in_1qhd2_1`,"panel--out":`_panel--out_1qhd2_496`,"sakani-cmd-panel-out":`_sakani-cmd-panel-out_1qhd2_1`,"message--empty":`_message--empty_1qhd2_510`,"sakani-cmd-fade":`_sakani-cmd-fade_1qhd2_1`,"sakani-cmd-feed":`_sakani-cmd-feed_1qhd2_1`,"sakani-cmd-feed-clear":`_sakani-cmd-feed-clear_1qhd2_1`,"sakani-cmd-lens-in":`_sakani-cmd-lens-in_1qhd2_1`,"sakani-cmd-lens-x":`_sakani-cmd-lens-x_1qhd2_1`,"sakani-cmd-lens-y":`_sakani-cmd-lens-y_1qhd2_1`,"sakani-cmd-rise":`_sakani-cmd-rise_1qhd2_1`,answer__word:`_answer__word_1qhd2_558`,"sakani-cmd-word-in":`_sakani-cmd-word-in_1qhd2_1`,"answer--stream":`_answer--stream_1qhd2_559`,"sakani-cmd-answer-in":`_sakani-cmd-answer-in_1qhd2_1`,"sakani-cmd-answer-mark":`_sakani-cmd-answer-mark_1qhd2_1`,"sakani-cmd-answer-text":`_sakani-cmd-answer-text_1qhd2_1`,"sakani-cmd-answer-fan":`_sakani-cmd-answer-fan_1qhd2_1`},lt=(...e)=>e.filter(Boolean).join(` `),ut={page:`pages`,person:`people`,file:`files`,action:`actions`,ai:null},dt={page:n.F,action:n.b,file:n.F,person:n.F,ai:({className:e,style:n})=>(0,a.jsx)(`span`,{className:e,style:{display:`inline-flex`,...n},children:(0,a.jsx)(t.q,{size:24,color:`currentColor`})})},ft=e=>e.scope??(e.type?ut[e.type]:null);function pt(){return(0,a.jsxs)(`span`,{className:J.ghost__track,children:[(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row}),(0,a.jsx)(`span`,{className:J.ghost__row})]})}function mt({text:e,query:t}){let n=t.trim(),r=n?e.toLowerCase().indexOf(n.toLowerCase()):-1;return r<0?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsxs)(`span`,{className:J.dim,children:[e.slice(0,r),(0,a.jsx)(`mark`,{className:J.match,children:e.slice(r,r+n.length)}),e.slice(r+n.length)]})}var ht=i.default.forwardRef(function({placeholder:e=`Search or jump to…`,shortcut:r=[`⌘`,`K`],className:i,type:o=`button`,...s},c){return(0,a.jsxs)(`button`,{ref:c,type:o,className:lt(J.trigger,i),"aria-haspopup":`dialog`,...s,children:[(0,a.jsx)(n.C,{size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`,className:J.trigger__icon}),(0,a.jsx)(`span`,{className:J.trigger__text,children:e}),(0,a.jsx)(`span`,{className:J.trigger__keys,"aria-hidden":`true`,children:r.map(e=>(0,a.jsx)(ot,{children:e},e))})]})}),gt=()=>typeof window<`u`&&!!window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,_t=({title:e=`SakaniUI AI`,status:r,children:o,stream:s,onStreamEnd:c,sources:l,onFollowUp:u,onOpenInChat:d,onCopy:f,className:p})=>{let m=typeof o==`string`?o:null,h=!!(s&&m)&&!gt(),g=i.default.useMemo(()=>m?m.split(/(\s+)/):[],[m]),[_,v]=i.default.useState(h?0:g.length),[y,b]=i.default.useState(!h),[x,S]=i.default.useState(h?`on`:`off`);i.default.useEffect(()=>{if(!h){S(`off`);return}if(S(`on`),!y)return;let e=setTimeout(()=>S(`fade`),1e3),t=setTimeout(()=>S(`off`),1700);return()=>{clearTimeout(e),clearTimeout(t)}},[h,y]);let C=i.default.useRef(c);return C.current=c,i.default.useEffect(()=>{if(!h){v(g.length),b(!0),C.current?.();return}let e=0,t,n=()=>{if(e=Math.min(g.length,e+2),v(e),e>=g.length){b(!0),C.current?.();return}let r=g[e-2]??``;t=setTimeout(n,34+Math.round(Math.random()*22)+(/[.!?]$/.test(r)?260:/[,;:]$/.test(r)?110:0))};return t=setTimeout(n,380),()=>clearTimeout(t)},[h,g]),(0,a.jsxs)(`section`,{className:lt(J.answer,h&&J[`answer--stream`],x!==`off`&&J[`answer--glow`],x===`fade`&&J[`answer--glowFade`],p),"aria-label":e,"aria-busy":!y||void 0,children:[(0,a.jsxs)(`header`,{className:J.answer__header,children:[(0,a.jsx)(`span`,{className:J.answer__mark,"aria-hidden":`true`,children:(0,a.jsx)(t.q,{size:24,color:`currentColor`})}),(0,a.jsx)(`span`,{className:J.answer__title,children:e}),r&&y&&(0,a.jsx)(`span`,{className:J.answer__status,children:r}),f&&y&&(0,a.jsx)(`button`,{type:`button`,className:J.answer__copy,onClick:f,"aria-label":`Copy the answer`,children:(0,a.jsx)(n.X,{size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`})})]}),(0,a.jsx)(`div`,{className:J.answer__body,children:h?g.slice(0,_).map((e,t)=>/^\s+$/.test(e)?e:(0,a.jsx)(`span`,{className:J.answer__word,children:e},t)):o}),y&&l&&l.length>0&&(0,a.jsxs)(`div`,{className:J.answer__sources,children:[(0,a.jsx)(`span`,{className:J.answer__sourcesLabel,children:`Sources`}),l.map((e,r)=>{let i=e.icon??n.F;return(0,a.jsxs)(`span`,{className:J.answer__source,style:{"--i":r},children:[(0,a.jsx)(i,{size:12,strokeWidth:t.Kt(12),"aria-hidden":`true`}),e.label]},e.label)})]}),y&&(u||d)&&(0,a.jsxs)(`footer`,{className:J.answer__footer,children:[u&&(0,a.jsx)(t.It,{variant:`secondary`,size:`sm`,onClick:u,children:`Ask a follow-up`}),d&&(0,a.jsxs)(`span`,{className:J.answer__openInChat,children:[`Open in chat `,(0,a.jsx)(ot,{children:`⌘`}),(0,a.jsx)(ot,{children:`↵`})]})]})]})};_t.displayName=`CommandMenuAnswer`;var vt=({open:e,defaultOpen:r=!1,onOpenChange:o,hotkey:c=`k`,variant:l=`default`,query:u,defaultQuery:d=``,onQueryChange:f,placeholder:p=`Search or ask anything…`,groups:m,filter:h=!0,highlightMatches:g=!0,state:_=`ready`,onSelect:v,closeOnSelect:y=!0,scopes:b,scope:x,defaultScope:S,onScopeChange:C,filters:w,onFiltersChange:T,filterKeys:E,onAskAI:D,answer:O,renderPreview:k,previewActions:A,previewEmpty:j=`Nothing to preview for this result`,emptyTitle:M,emptyDescription:N,suggestions:P,fallbackGroups:F,errorTitle:ee=`Search is unavailable`,errorDescription:te=`We couldn’t reach the search index. Your recent items still work.`,onRetry:I,onReport:ne,retryLabel:L=`Try again`,reportLabel:R=`Report`,workspace:z,hideFooter:re=!1,"aria-label":B=`Command menu`,className:ie})=>{let V=l===`simple`,ae=i.default.useId(),[H,oe]=i.default.useState(r),U=e??H,se=i.default.useCallback(t=>{e===void 0&&oe(t),o?.(t)},[e,o]),[ce,le]=i.default.useState(d),ue=u??ce,de=e=>{u===void 0&&le(e),f?.(e)},[fe,pe]=i.default.useState(S??b?.[0]?.value??`all`),me=x??fe,he=e=>{x===void 0&&pe(e),C?.(e)},[ge,_e]=i.default.useState([]),W=w??ge,ve=e=>{w===void 0&&_e(e),T?.(e)},[ye,be]=i.default.useState(!1);i.default.useEffect(()=>{U&&be(!0)},[U]);let xe=i.default.useRef(!1);i.default.useEffect(()=>{if(ye){xe.current=!0;return}xe.current&&(xe.current=!1,u===void 0&&le(d),w===void 0&&_e([]),x===void 0&&pe(S??b?.[0]?.value??`all`))},[ye]),i.default.useEffect(()=>{if(c===!1)return;let e=e=>{(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey&&e.key.toLowerCase()===c.toLowerCase()&&(e.preventDefault(),se(!U))};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[c,U,se]);let Se=ue.trim().toLowerCase(),Ce=i.default.useCallback(e=>typeof h==`function`?h(e,ue):!Se||[e.label,e.description,...e.keywords??[]].some(e=>e&&e.toLowerCase().includes(Se)),[h,ue,Se]),we=i.default.useCallback(e=>W.every(t=>!e.tags||e.tags.includes(t.value??t.label)),[W]),Te=h!==!1,Ee=i.default.useMemo(()=>Te?m.map(e=>({...e,items:e.items.filter(e=>Ce(e)&&we(e))})).filter(e=>e.items.length):m,[Te,m,Ce,we]),De=i.default.useMemo(()=>{let e={};if(!b)return e;let t=Ee.flatMap(e=>e.items);for(let n of b)n.count!==null&&(e[n.value]=n.count??(n.value===`all`?t.length:t.filter(e=>ft(e)===n.value).length));return e},[b,Ee]),Oe=i.default.useMemo(()=>!Te||!b||me===`all`||V?Ee:Ee.map(e=>({...e,items:e.items.filter(e=>ft(e)===me||e.type===`ai`)})).filter(e=>e.items.length),[Te,b,me,V,Ee]),ke=Oe.reduce((e,t)=>e+t.items.length,0),Ae=!!Se||W.length>0,je=_===`ready`&&Ae,Me=_===`ready`&&ke===0&&Ae&&!O,Ne=(Me||_===`error`)&&F,Pe=i.default.useMemo(()=>_===`loading`?[]:Ne?F:Oe,[_,Ne,F,Oe]),G=i.default.useMemo(()=>Pe.flatMap(e=>e.items).filter(e=>!e.disabled),[Pe]),[Fe,Ie]=i.default.useState(0),Le=G.map(e=>e.id).join(`|`);i.default.useEffect(()=>{Ie(0)},[Le,me]);let Re=G[Math.min(Fe,G.length-1)],ze=e=>`${ae}-opt-${e.id}`,K=t.V(),Be=i.default.useRef(null),q=i.default.useRef(null),Ve=i.default.useRef(new Map),[He,Ue]=i.default.useState(null),[We,Ge]=i.default.useState(!1),Ke=i.default.useRef(new Map);i.default.useEffect(()=>{if(!U)return;if(!Re){K.showItem(null);return}let e=Ke.current.get(Re.id);if(e){K.showItem(e);let t=Be.current;G[0]?.id===Re.id&&t?t.scrollTop=0:e.scrollIntoView?.({block:`nearest`})}},[U,ye,Re?.id,Le]);let[qe,Je]=i.default.useState(null),Ye=Re?.id??null;i.default.useEffect(()=>{if(!U||!k){Je(null);return}if(qe===null){Je(Ye);return}let e=window.setTimeout(()=>Je(Ye),100);return()=>window.clearTimeout(e)},[U,Ye,!!k]);let Xe=qe&&G.find(e=>e.id===qe)||Re,Ze=k&&Xe?k(Xe):null,Qe=i.default.useRef(null),$e=t.jt(Qe,U),et=t.At(Qe,U),tt=i.default.useRef(null),nt=i.default.useRef(null),rt=i.default.useRef(null);i.default.useEffect(()=>{if(U||!ye)return;let e=setTimeout(()=>be(!1),220);return()=>clearTimeout(e)},[U,ye]),i.default.useEffect(()=>{if(!U)return;rt.current=document.activeElement;let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e,rt.current?.focus?.()}},[U]),i.default.useEffect(()=>{if(!U||!ye)return;let e=requestAnimationFrame(()=>nt.current?.focus());return()=>cancelAnimationFrame(e)},[U,ye]);let it=e=>{e.disabled||(e.onSelect?.(),v?.(e),y&&se(!1))},at=e=>{let t=G.length-1;if(e.key===`ArrowDown`)e.preventDefault(),Ie(e=>t<0?0:Math.min(e+1,t));else if(e.key===`ArrowUp`)e.preventDefault(),Ie(e=>Math.max(e-1,0));else if(e.key===`Home`&&!e.currentTarget.value)e.preventDefault(),Ie(0);else if(e.key===`End`&&!e.currentTarget.value)e.preventDefault(),Ie(Math.max(t,0));else if(e.key===`Enter`){if(e.preventDefault(),(e.metaKey||e.ctrlKey)&&D){D(ue);return}Re&&it(Re)}else if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),ue?de(``):se(!1);else if(e.key===`Backspace`&&!ue&&W.length)e.preventDefault(),ve(W.slice(0,-1));else if(e.key===`Tab`&&b&&!V){e.preventDefault();let t=b.findIndex(e=>e.value===me);he(b[(t+(e.shiftKey?-1:1)+b.length)%b.length].value)}else if(e.key===` `&&E?.length){let t=/(?:^|\s)([A-Za-z][\w-]*):(\S+)$/.exec(e.currentTarget.value);if(t&&E.includes(t[1].toLowerCase())){e.preventDefault();let n=t[1].toLowerCase();ve([...W,{id:`${n}:${t[2]}`,label:`${n}: ${t[2]}`,value:t[2]}]),de(e.currentTarget.value.slice(0,t.index).trim())}}};if(i.default.useLayoutEffect(()=>{let e=q.current;if(!U||!ye||!e||!b||V){Ue(null),Ge(!1);return}let t=()=>{let e=Ve.current.get(me);Ue(e?{x:e.offsetLeft,w:e.offsetWidth}:null)};t();let n=requestAnimationFrame(()=>Ge(!0)),r=new ResizeObserver(t);return Ve.current.forEach(e=>r.observe(e)),()=>{cancelAnimationFrame(n),r.disconnect()}},[U,ye,me,b,V,je]),!ye)return(0,a.jsx)(`span`,{ref:Qe,style:{display:`none`},"aria-hidden":`true`});let st=!!k&&!V,ut=_===`loading`?`Searching`:_===`error`?`Search is unavailable`:Me?`No results`:`${ke} result${ke===1?``:`s`}`,ht=(e,n=g)=>{let r=Re?.id===e.id,i=e.icon??dt[e.type??`action`],o=e.type===`person`||e.avatar;return(0,a.jsxs)(`div`,{id:ze(e),role:`option`,"aria-selected":r,"aria-disabled":e.disabled||void 0,"data-hover-item":e.disabled?`off`:``,"data-type":e.type,ref:t=>{t?Ke.current.set(e.id,t):Ke.current.delete(e.id)},className:lt(J.item,r&&J[`item--active`],e.disabled&&J[`item--disabled`]),onMouseMove:()=>{let t=G.findIndex(t=>t.id===e.id);t>=0&&t!==Fe&&Ie(t)},onClick:()=>it(e),children:[(!V||o)&&(0,a.jsx)(`span`,{className:lt(J.item__lead,e.type===`ai`&&J[`item__lead--ai`],o&&J[`item__lead--person`]),"aria-hidden":`true`,children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.Bt,{size:`sm`,src:e.avatar?.src,initials:e.avatar?.initials,alt:e.avatar?.alt??``}),e.avatar?.status&&(0,a.jsx)(`span`,{className:lt(J.item__status,J[`item__status--${e.avatar.status}`])})]}):(0,a.jsx)(i,{size:16,strokeWidth:t.Kt(16)})}),V&&!o&&(0,a.jsx)(i,{size:16,strokeWidth:t.Kt(16),className:J.item__bare,"aria-hidden":`true`}),(0,a.jsxs)(`span`,{className:J.item__text,children:[(0,a.jsx)(`span`,{className:J.item__label,children:n?(0,a.jsx)(mt,{text:e.label,query:ue}):e.label}),e.description&&(0,a.jsx)(`span`,{className:J.item__desc,children:e.description})]}),(0,a.jsxs)(`span`,{className:J.item__trail,children:[e.meta&&(0,a.jsx)(`span`,{className:J.item__meta,children:e.meta}),e.shortcut&&(0,a.jsx)(`span`,{className:J.item__keys,"aria-hidden":`true`,children:e.shortcut.map(e=>(0,a.jsx)(ot,{children:e},e))}),r&&!e.shortcut&&e.type!==`ai`&&(0,a.jsx)(`span`,{className:J.item__enter,"aria-hidden":`true`,children:(0,a.jsx)(ot,{children:`↵`})})]})]},e.id)},gt=(e,t)=>(0,a.jsxs)(`div`,{role:`group`,"aria-labelledby":e.label?`${ae}-g-${e.id}`:void 0,className:J.group,children:[e.label&&(0,a.jsxs)(`div`,{className:J.group__label,children:[(0,a.jsx)(`span`,{id:`${ae}-g-${e.id}`,children:e.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.group__action,onClick:e.action.onClick,children:e.action.label})]}),e.items.map(e=>ht(e,t))]},e.id),_t=[{keys:[`↑`,`↓`],label:`Navigate`},{keys:[`↵`],label:`Open`},...D&&!V?[{keys:[`⌘`,`↵`],label:`Ask AI`}]:[],{keys:[`esc`],label:`Close`}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{ref:Qe,style:{display:`none`},"aria-hidden":`true`}),(0,s.createPortal)((0,a.jsx)(`div`,{className:lt(J.backdrop,$e,U?J[`backdrop--in`]:J[`backdrop--out`]),"data-surface":et,onMouseDown:e=>{e.target===e.currentTarget&&se(!1)},children:(0,a.jsxs)(`div`,{ref:tt,role:`dialog`,"aria-modal":`true`,"aria-label":B,className:lt(J.panel,V&&J[`panel--simple`],st&&J[`panel--preview`],U?J[`panel--in`]:J[`panel--out`],ie),children:[(0,a.jsxs)(`div`,{className:J.field,children:[(0,a.jsx)(n.C,{size:20,strokeWidth:t.Kt(20),className:J.field__icon,"aria-hidden":`true`}),(0,a.jsxs)(`div`,{className:J.field__content,children:[W.map(e=>{let r=e.icon;return(0,a.jsxs)(`span`,{className:J.token,children:[r&&(0,a.jsx)(r,{size:13,strokeWidth:t.Kt(13),className:J.token__icon,"aria-hidden":`true`}),e.label,(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.token__remove,onClick:()=>{ve(W.filter(t=>t.id!==e.id)),nt.current?.focus()},"aria-label":`Remove ${e.label}`,children:(0,a.jsx)(n.W,{size:12,strokeWidth:t.Kt(12),"aria-hidden":`true`})})]},e.id)}),(0,a.jsx)(`input`,{ref:nt,className:J.input,type:`text`,role:`combobox`,"aria-expanded":`true`,"aria-controls":`${ae}-list`,"aria-activedescendant":Re?ze(Re):void 0,"aria-autocomplete":`list`,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-label":B,placeholder:p,value:ue,onChange:e=>de(e.target.value),onKeyDown:at})]}),_===`loading`&&(0,a.jsx)(ct,{size:`sm`,label:`Searching`}),ue&&_!==`loading`&&(0,a.jsx)(`button`,{type:`button`,tabIndex:-1,className:J.field__clear,onClick:()=>{de(``),nt.current?.focus()},"aria-label":`Clear the search`,children:(0,a.jsx)(n.x,{size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`})}),(0,a.jsx)(ot,{children:`esc`})]}),b&&!V&&(0,a.jsxs)(`div`,{ref:q,className:J.scopes,role:`tablist`,"aria-label":`Scope`,children:[(0,a.jsx)(`span`,{className:lt(J.scopes__pill,We&&J[`scopes__pill--glide`]),"aria-hidden":`true`,style:He?{transform:`translateX(${He.x}px)`,width:He.w,opacity:1}:void 0}),b.map(e=>(0,a.jsxs)(`button`,{ref:t=>{t?Ve.current.set(e.value,t):Ve.current.delete(e.value)},type:`button`,role:`tab`,tabIndex:-1,"aria-selected":e.value===me,className:lt(J.scope,e.value===me&&J[`scope--active`]),onClick:()=>{he(e.value),nt.current?.focus()},children:[e.label,je&&De[e.value]!=null&&(0,a.jsx)(`span`,{className:J.scope__count,children:De[e.value]})]},e.value)),(0,a.jsxs)(`span`,{className:J.scopes__hint,"aria-hidden":`true`,children:[`Switch scope `,(0,a.jsx)(ot,{children:`tab`})]})]}),(0,a.jsxs)(`div`,{className:J.split,children:[(0,a.jsxs)(`div`,{ref:e=>{Be.current=e,K.ref(e)},...K.groupProps,onPointerLeave:()=>{if(K.groupProps.onPointerLeave(),Re){let e=Ke.current.get(Re.id);e&&requestAnimationFrame(()=>K.showItem(e))}},className:J.body,children:[K.highlight,O&&(0,a.jsx)(`div`,{className:J.answerSlot,children:O}),_===`loading`&&(0,a.jsxs)(`div`,{className:J.loading,"aria-hidden":`true`,children:[(0,a.jsx)(`div`,{className:J.group__label,children:(0,a.jsx)(`span`,{children:`Searching…`})}),[0,1,2,3].map(e=>(0,a.jsxs)(`div`,{className:J.skeleton,children:[(0,a.jsx)(t.L,{variant:`rect`,width:28,height:28}),(0,a.jsxs)(`div`,{className:J.skeleton__lines,children:[(0,a.jsx)(t.L,{variant:`text`,width:e%2?160:220,height:10}),(0,a.jsx)(t.L,{variant:`text`,width:e%2?110:140,height:8})]})]},e))]}),_===`error`&&(0,a.jsxs)(`div`,{className:lt(J.message,J[`message--error`]),children:[(0,a.jsx)(`span`,{className:J.message__tile,"aria-hidden":`true`,children:(0,a.jsx)(n.G,{size:22,strokeWidth:t.Kt(22)})}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:ee}),(0,a.jsx)(`span`,{children:te})]}),(I||ne)&&(0,a.jsxs)(`div`,{className:J.message__actions,children:[I&&(0,a.jsx)(t.It,{variant:`secondary`,size:`sm`,onClick:I,children:L}),ne&&(0,a.jsx)(t.It,{variant:`ghost`,size:`sm`,onClick:ne,children:R})]})]}),Me&&(0,a.jsxs)(`div`,{className:lt(J.message,J[`message--empty`]),children:[(0,a.jsxs)(`span`,{className:J.ghost,"aria-hidden":`true`,children:[(0,a.jsx)(pt,{}),(0,a.jsx)(`span`,{className:J.ghost__lens,children:(0,a.jsx)(`span`,{className:J.ghost__glass,children:(0,a.jsx)(`span`,{className:J.ghost__zoom,children:(0,a.jsx)(pt,{})})})})]}),(0,a.jsxs)(`div`,{className:J.message__text,children:[(0,a.jsx)(`strong`,{children:M??(0,a.jsxs)(a.Fragment,{children:[`No results for “`,ue.trim()||W.map(e=>e.label).join(`, `),`”`]})}),(0,a.jsx)(`span`,{children:N??`Check the spelling, or try a broader search.`})]}),P&&P.length>0&&(0,a.jsx)(`div`,{className:J.message__chips,children:P.map(e=>{let n=e.icon,r=e.emphasis?e.label.indexOf(e.emphasis):-1,i=n&&(0,a.jsx)(n,{size:14,strokeWidth:t.Kt(14),"aria-hidden":`true`});return(0,a.jsxs)(`button`,{type:`button`,tabIndex:-1,className:J.chip,onClick:e.onSelect,children:[e.iconPosition!==`end`&&i,(0,a.jsx)(`span`,{children:r<0?e.label:(0,a.jsxs)(a.Fragment,{children:[e.label.slice(0,r),(0,a.jsx)(`strong`,{className:J.chip__em,children:e.emphasis}),e.label.slice(r+e.emphasis.length)]})}),e.iconPosition===`end`&&i]},e.label)})})]}),(0,a.jsx)(`div`,{id:`${ae}-list`,role:`listbox`,"aria-label":`Results`,"aria-busy":_===`loading`||void 0,className:J.groups,children:Pe.map(e=>gt(e,g&&!Ne))})]}),st&&(0,a.jsxs)(`aside`,{className:J.preview,"aria-label":`Preview`,children:[(0,a.jsx)(`div`,{className:J.preview__scroll,children:(0,a.jsx)(`div`,{className:J.preview__stack,children:(0,a.jsx)(`div`,{className:J.preview__layer,children:Ze??(0,a.jsx)(`div`,{className:J.preview__empty,children:j})})})}),Ze&&A&&Xe&&(0,a.jsx)(`div`,{className:J.preview__actions,children:typeof A==`function`?A(Xe):A})]})]}),(0,a.jsx)(`div`,{role:`status`,className:J.sr,children:ut}),!re&&(0,a.jsxs)(`div`,{className:J.footer,children:[!V&&z&&(0,a.jsxs)(`span`,{className:J.footer__workspace,children:[(0,a.jsx)(`span`,{className:J.footer__dot,"aria-hidden":`true`}),z,(0,a.jsx)(n.I,{size:12,strokeWidth:t.Kt(12),className:J.footer__chevron,"aria-hidden":`true`})]}),(0,a.jsx)(`span`,{className:J.footer__hints,"aria-hidden":`true`,children:_t.map(e=>(0,a.jsxs)(`span`,{className:J.hint,children:[(0,a.jsx)(`span`,{className:J.hint__keys,children:e.keys.map(e=>(0,a.jsx)(ot,{children:e},e))}),e.label]},e.label))})]})]})}),document.body)]})};vt.displayName=`CommandMenu`;var Y={field:`_field_1oby0_7`,field__label:`_field__label_1oby0_8`,field__description:`_field__description_1oby0_9`,field__error:`_field__error_1oby0_10`,control:`_control_1oby0_13`,"control--sm":`_control--sm_1oby0_25`,"control--md":`_control--md_1oby0_26`,"control--lg":`_control--lg_1oby0_27`,"control--open":`_control--open_1oby0_30`,"control--error":`_control--error_1oby0_41`,"control--disabled":`_control--disabled_1oby0_46`,control__value:`_control__value_1oby0_52`,"control__value--placeholder":`_control__value--placeholder_1oby0_62`,control__input:`_control__input_1oby0_63`,control__chevron:`_control__chevron_1oby0_83`,"control__chevron--open":`_control__chevron--open_1oby0_84`,chips:`_chips_1oby0_90`,chip:`_chip_1oby0_90`,"chip--leaving":`_chip--leaving_1oby0_102`,"sakani-combobox-chip-out":`_sakani-combobox-chip-out_1oby0_1`,chip__remove:`_chip__remove_1oby0_110`,panel:`_panel_1oby0_121`,"panel--entering":`_panel--entering_1oby0_145`,"sakani-combobox-panel-in":`_sakani-combobox-panel-in_1oby0_1`,"panel--exiting":`_panel--exiting_1oby0_146`,"sakani-combobox-panel-out":`_sakani-combobox-panel-out_1oby0_1`,panel__empty:`_panel__empty_1oby0_156`,option:`_option_1oby0_164`,"option--selected":`_option--selected_1oby0_189`,"option--disabled":`_option--disabled_1oby0_190`,optionHighlight:`_optionHighlight_1oby0_165`,"optionHighlight--animated":`_optionHighlight--animated_1oby0_221`,option__box:`_option__box_1oby0_228`,"option__box--checked":`_option__box--checked_1oby0_245`,option__icon:`_option__icon_1oby0_250`,option__label:`_option__label_1oby0_251`,option__check:`_option__check_1oby0_252`,panel__loading:`_panel__loading_1oby0_255`,panel__spinner:`_panel__spinner_1oby0_259`,"sakani-cb-spin":`_sakani-cb-spin_1oby0_1`},yt=({options:e,mode:n=`single`,size:r=`md`,label:o,description:s,error:c,placeholder:l=`Select...`,disabled:u,loading:d,value:f,onChange:p,className:m})=>{let h=i.default.useId(),[g,_]=i.default.useState(!1),[v,y]=i.default.useState(!1),[b,x]=i.default.useState(0),S=i.default.useRef(null),C=e;i.default.useEffect(()=>{g&&y(!0)},[g]);let w=i.default.useRef({}),T=i.default.useRef(null),[E,D]=i.default.useState(null),[O,k]=i.default.useState(!1);i.default.useLayoutEffect(()=>{let e=w.current[b];if(!e){D(null);return}D({top:e.offsetTop,height:e.offsetHeight})},[b,C.length]),i.default.useLayoutEffect(()=>{if(!v){k(!1);return}k(!1);let e=window.requestAnimationFrame(()=>k(!0));return()=>window.cancelAnimationFrame(e)},[v]),i.default.useEffect(()=>{if(!T.current)return;let e=new ResizeObserver(()=>{let e=w.current[b];e&&D({top:e.offsetTop,height:e.offsetHeight})});return e.observe(T.current),()=>e.disconnect()},[v]);let[A,j]=i.default.useState(n===`multi`?[]:``),M=f===void 0?A:f,N=Array.isArray(M)?M:M?[M]:[],[P,F]=i.default.useState(()=>N.map(e=>({value:e,leaving:!1}))),ee=N.join(`\0`);i.default.useLayoutEffect(()=>{F(e=>{let t=e.map(e=>({value:e.value,leaving:!N.includes(e.value)}));for(let e of N)t.some(t=>t.value===e)||t.push({value:e,leaving:!1});return t})},[ee]);let te=e=>F(t=>t.filter(t=>!(t.value===e&&t.leaving))),I=!!c;i.default.useEffect(()=>{let e=e=>{S.current&&!S.current.contains(e.target)&&_(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]);let ne=e=>{f===void 0&&j(e),p?.(e)},L=e=>{if(!e.disabled)if(n===`multi`){let t=new Set(N);t.has(e.value)?t.delete(e.value):t.add(e.value),ne([...t])}else ne(e.value),_(!1)},R=t=>e.find(e=>e.value===t)?.label??t,z=N.length?R(N[0]):``,re=e=>{u||(e.key===`ArrowDown`?(e.preventDefault(),_(!0),x(e=>Math.min(e+1,C.length-1))):e.key===`ArrowUp`?(e.preventDefault(),x(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),g&&C[b]?L(C[b]):_(!0)):e.key===`Escape`&&_(!1))},B=u?`disabled`:I?`error`:g?`open`:`default`;return(0,a.jsxs)(`div`,{className:[Y.field,m??``].filter(Boolean).join(` `),ref:S,children:[o&&(0,a.jsx)(`label`,{htmlFor:`${h}-trigger`,className:Y.field__label,children:o}),(0,a.jsxs)(`div`,{id:`${h}-trigger`,role:`combobox`,tabIndex:u?-1:0,"aria-haspopup":`listbox`,"aria-expanded":g,"aria-controls":`${h}-panel`,"aria-invalid":I||void 0,"aria-disabled":u||void 0,"aria-activedescendant":g&&C[b]?`${h}-opt-${b}`:void 0,className:[Y.control,Y[`control--${r}`],Y[`control--${B}`]].join(` `),onClick:()=>!u&&_(e=>!e),onKeyDown:re,children:[n===`multi`&&P.length>0&&(0,a.jsx)(`div`,{className:Y.chips,children:P.map(({value:t,leaving:n})=>(0,a.jsxs)(`span`,{className:[Y.chip,n?Y[`chip--leaving`]:``].filter(Boolean).join(` `),"aria-hidden":n||void 0,onAnimationEnd:n?()=>te(t):void 0,children:[R(t),(0,a.jsx)(`button`,{type:`button`,className:Y.chip__remove,tabIndex:n?-1:void 0,onClick:n=>{n.stopPropagation(),L(e.find(e=>e.value===t))},"aria-label":`Remove ${R(t)}`,children:`×`})]},t))}),!(n===`multi`&&P.length>0)&&(0,a.jsx)(`span`,{className:[Y.control__value,n===`single`&&z?``:Y[`control__value--placeholder`]].filter(Boolean).join(` `),children:n===`single`&&z?z:l}),(0,a.jsx)(`span`,{className:[Y.control__chevron,g?Y[`control__chevron--open`]:``].join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Kt(16),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`path`,{d:`m6 9 6 6 6-6`})})})]}),v&&!u&&(0,a.jsx)(`div`,{ref:T,className:[Y.panel,g?Y[`panel--entering`]:Y[`panel--exiting`]].filter(Boolean).join(` `),id:`${h}-panel`,role:`listbox`,"aria-multiselectable":n===`multi`||void 0,"aria-busy":d||void 0,onAnimationEnd:()=>{g||y(!1)},children:d?(0,a.jsxs)(`div`,{className:Y.panel__loading,children:[(0,a.jsx)(`span`,{className:Y.panel__spinner,"aria-hidden":`true`}),`Loading…`]}):C.length===0?(0,a.jsx)(`div`,{className:Y.panel__empty,children:`No options available`}):(0,a.jsxs)(a.Fragment,{children:[E&&(0,a.jsx)(`span`,{"aria-hidden":`true`,className:[Y.optionHighlight,O?Y[`optionHighlight--animated`]:``].filter(Boolean).join(` `),style:{transform:`translateY(${E.top}px)`,height:E.height}}),C.map((e,r)=>{let i=N.includes(e.value);return(0,a.jsxs)(`div`,{ref:e=>{w.current[r]=e},id:`${h}-opt-${r}`,role:`option`,"aria-selected":i,className:[Y.option,i&&n===`single`?Y[`option--selected`]:``,e.disabled?Y[`option--disabled`]:``].filter(Boolean).join(` `),onMouseEnter:()=>{e.disabled||x(r)},onClick:()=>L(e),children:[n===`multi`&&(0,a.jsx)(`span`,{className:[Y.option__box,i?Y[`option__box--checked`]:``].filter(Boolean).join(` `),"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:12,height:12,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Kt(12),strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),e.icon&&(0,a.jsx)(`span`,{className:Y.option__icon,"aria-hidden":`true`,children:e.icon}),(0,a.jsx)(`span`,{className:Y.option__label,children:e.label}),i&&n===`single`&&(0,a.jsx)(`span`,{className:Y.option__check,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,a.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})})]},e.value)})]})}),(s||c)&&(0,a.jsx)(`span`,{className:I?Y.field__error:Y.field__description,children:c||s})]})},bt={wrap:`_wrap_hz87t_2`,dropzone:`_dropzone_hz87t_4`,"dropzone--dragging":`_dropzone--dragging_hz87t_23`,dropzone__icon:`_dropzone__icon_hz87t_25`,dropzone__label:`_dropzone__label_hz87t_30`,dropzone__link:`_dropzone__link_hz87t_31`,dropzone__hint:`_dropzone__hint_hz87t_32`,input:`_input_hz87t_34`,files:`_files_hz87t_37`,file:`_file_hz87t_37`,file__icon:`_file__icon_hz87t_47`,file__name:`_file__name_hz87t_48`,file__remove:`_file__remove_hz87t_49`},xt=({accept:e,multiple:r,hint:o=`SVG, PNG, JPG or PDF (max. 2MB)`,onFilesChange:s,className:c})=>{let l=i.default.useRef(null),[u,d]=i.default.useState(!1),[f,p]=i.default.useState([]),m=e=>{p(e),s?.(e)},h=e=>{if(!e)return;let t=Array.from(e);m(r?[...f,...t]:t.slice(0,1))},g=e=>m(f.filter((t,n)=>n!==e));return(0,a.jsxs)(`div`,{className:[bt.wrap,c??``].filter(Boolean).join(` `),children:[(0,a.jsxs)(`div`,{className:[bt.dropzone,u?bt[`dropzone--dragging`]:``].filter(Boolean).join(` `),onClick:()=>l.current?.click(),onDragOver:e=>{e.preventDefault(),d(!0)},onDragLeave:()=>d(!1),onDrop:e=>{e.preventDefault(),d(!1),h(e.dataTransfer.files)},role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&l.current?.click()},children:[(0,a.jsx)(`span`,{className:bt.dropzone__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.f,{size:22,strokeWidth:t.Kt(22)})}),(0,a.jsxs)(`span`,{className:bt.dropzone__label,children:[(0,a.jsx)(`span`,{className:bt.dropzone__link,children:`Click to upload`}),` or drag and drop`]}),(0,a.jsx)(`span`,{className:bt.dropzone__hint,children:o}),(0,a.jsx)(`input`,{ref:l,type:`file`,accept:e,multiple:r,className:bt.input,onChange:e=>h(e.target.files)})]}),f.length>0&&(0,a.jsx)(`ul`,{className:bt.files,children:f.map((e,r)=>(0,a.jsxs)(`li`,{className:bt.file,children:[(0,a.jsx)(`span`,{className:bt.file__icon,"aria-hidden":`true`,children:(0,a.jsx)(n.g,{size:16,strokeWidth:t.Kt(16)})}),(0,a.jsx)(`span`,{className:bt.file__name,children:e.name}),(0,a.jsx)(`button`,{type:`button`,className:bt.file__remove,onClick:()=>g(r),"aria-label":`Remove ${e.name}`,children:(0,a.jsx)(n.W,{size:14,strokeWidth:t.Kt(14)})})]},r))})]})},X={chart:`_chart_srbqg_1`,svg:`_svg_srbqg_7`,segment:`_segment_srbqg_12`,pctLabel:`_pctLabel_srbqg_19`,labels:`_labels_srbqg_27`,labelItem:`_labelItem_srbqg_31`,tooltip:`_tooltip_srbqg_41`,tooltip__title:`_tooltip__title_srbqg_54`,tooltip__row:`_tooltip__row_srbqg_60`,tooltip__dot:`_tooltip__dot_srbqg_68`,tooltip__label:`_tooltip__label_srbqg_74`,tooltip__value:`_tooltip__value_srbqg_75`,stats:`_stats_srbqg_80`,stat:`_stat_srbqg_80`,"stat--dim":`_stat--dim_srbqg_82`,stat__label:`_stat__label_srbqg_83`,stat__value:`_stat__value_srbqg_84`,stat__sub:`_stat__sub_srbqg_85`,plot:`_plot_srbqg_88`,reveal:`_reveal_srbqg_1`,fill:`_fill_srbqg_95`,sheen:`_sheen_srbqg_96`,dots:`_dots_srbqg_97`,drops:`_drops_srbqg_100`,drop:`_drop_srbqg_100`,chipIn:`_chipIn_srbqg_1`,drop__arrow:`_drop__arrow_srbqg_119`},St={sm:120,md:168,lg:232,xl:320},Ct={sm:180,md:240,lg:320,xl:420},wt=560,Tt=.3,Et=560,Dt=.3,Ot=.55,kt=54,At=new Intl.NumberFormat(`en`,{notation:`compact`,maximumFractionDigits:1}),jt=e=>At.format(e),Mt=(e,t)=>t?e/t*100:0,Nt=e=>e*e*(3-2*e),Pt=({data:e,size:n=`md`,flow:r=!0,loading:o=!1,formatValue:s=jt,className:c})=>{let[l,u]=i.default.useState(null),d=i.default.useRef(null),f=t.bt(d),p=t.U(),m=f(`--color-chart-1`)??`#ff4700`,h=i.default.useRef(null),g=i.default.useRef(null),_=St[n],v=e[0]?.value||1,y=e.length,b=Et/Math.max(1,y),x=_/2,S=e=>e/v*_*.92,C=e.map(e=>S(e.value));C.push(S(e[y-1]?.value??0)*Ot);let w=e=>y<=1?1:Dt+e/(y-1)*(1-Dt),[T,E]=i.default.useState(!1);i.default.useEffect(()=>{let e=g.current;if(!e||typeof IntersectionObserver>`u`){E(!0);return}let t=new IntersectionObserver(([e])=>E(e.isIntersecting),{rootMargin:`80px`});return t.observe(e),()=>t.disconnect()},[o]);let D=e.map(e=>e.value).join(`,`);if(i.default.useEffect(()=>{let t=h.current;if(o||!r||p||!T||!t||y<2)return;let n=Array.from(t.children),i=e.map(e=>e.value),a=e=>{let t=Math.min(y-1,Math.max(0,Math.floor(e/b))),n=Nt(Math.min(1,Math.max(0,(e-t*b)/b)));return(C[t]+(C[t+1]-C[t])*n)/2},s=e=>{let t=Math.random()*i[0],n=0;for(let e=0;e<y;e++)i[e]>=t&&(n=e);return{x:e,lane:Math.random()*2-1,speed:46+Math.random()*54,end:(n+1)*b-b*.18,size:1.2+Math.random()*1.5}},c=n.map(()=>s(Math.random()*Et*.9)),l=performance.now(),u=0,d=e=>{let t=Math.min(.05,(e-l)/1e3);l=e,c.forEach((e,r)=>{e.x+=e.speed*t,e.x>=e.end&&(c[r]=s(-6));let i=c[r],o=a(Math.max(0,i.x))*.84,l=n[r];l.setAttribute(`cx`,String(i.x)),l.setAttribute(`cy`,String(x+i.lane*o)),l.setAttribute(`r`,String(i.size));let u=Math.min(1,Math.max(0,i.x/28))*Math.min(1,Math.max(0,(i.end-i.x)/34));l.setAttribute(`opacity`,String(.78*u))}),u=requestAnimationFrame(d)};return u=requestAnimationFrame(d),()=>cancelAnimationFrame(u)},[o,r,p,T,D,n,y]),o)return(0,a.jsx)(t.gt,{kind:`funnel`,height:_+118,stages:Math.max(3,y),className:c,label:`Loading funnel chart`});let O=l===null?null:e[l],k=l===null?0:l*b+b/2,A=l===null?0:x-(C[l]+C[l+1])/4;return(0,a.jsxs)(`div`,{ref:d,className:[X.chart,`sk-chart-rich`,c??``].filter(Boolean).join(` `),style:{"--funnel":m},children:[(0,a.jsx)(`div`,{className:X.stats,style:{gridTemplateColumns:`repeat(${y}, minmax(0, 1fr))`},children:e.map((e,t)=>(0,a.jsxs)(`div`,{className:[X.stat,l!==null&&l!==t?X[`stat--dim`]:``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:X.stat__label,children:e.label}),(0,a.jsx)(`span`,{className:X.stat__value,children:s(e.value)}),(0,a.jsx)(`span`,{className:X.stat__sub,children:t===0?`Start`:`${Math.round(Mt(e.value,v))}% of start`})]},t))}),(0,a.jsxs)(`div`,{ref:g,className:X.plot,children:[(0,a.jsxs)(`svg`,{viewBox:`0 0 ${Et} ${_}`,width:`100%`,height:_,preserveAspectRatio:`none`,className:X.svg,children:[(0,a.jsx)(`defs`,{children:(0,a.jsxs)(`linearGradient`,{id:`funnel-sheen`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,a.jsx)(`stop`,{offset:`0`,stopColor:`#fff`,stopOpacity:.22}),(0,a.jsx)(`stop`,{offset:`0.5`,stopColor:`#fff`,stopOpacity:0}),(0,a.jsx)(`stop`,{offset:`1`,stopColor:`#000`,stopOpacity:.1})]})}),e.map((e,t)=>{let n=t*b,r=(t+1)*b,i=(n+r)/2,o=C[t]/2,s=C[t+1]/2,c=[`M ${n} ${x-o}`,`C ${i} ${x-o} ${i} ${x-s} ${r} ${x-s}`,`L ${r} ${x+s}`,`C ${i} ${x+s} ${i} ${x+o} ${n} ${x+o}`,`Z`].join(` `),d=l===null?w(t):t===l?1:.4;return(0,a.jsxs)(`g`,{className:X.segment,onMouseEnter:()=>u(t),onMouseLeave:()=>u(null),children:[(0,a.jsx)(`path`,{d:c,fill:m,fillOpacity:d,className:X.fill}),(0,a.jsx)(`path`,{d:c,fill:`url(#funnel-sheen)`,className:X.sheen})]},t)}),r&&!p&&(0,a.jsx)(`g`,{ref:h,className:X.dots,"aria-hidden":`true`,children:Array.from({length:kt},(e,t)=>(0,a.jsx)(`circle`,{r:1.6,cx:-10,cy:x,fill:`#fff`,opacity:0},t))})]}),(0,a.jsx)(`div`,{className:X.drops,"aria-hidden":`true`,children:e.slice(1).map((t,n)=>{let r=100-Mt(t.value,e[n].value);return(0,a.jsxs)(`span`,{className:X.drop,style:{left:`${(n+1)*b/Et*100}%`},children:[(0,a.jsx)(`span`,{className:X.drop__arrow,children:`↓`}),` `,Math.round(r),`%`]},n)})}),O&&l!==null&&(0,a.jsx)(t.vt,{title:O.label,rows:[{color:m,label:`Count`,value:s(O.value)},{label:`Of start`,value:`${Mt(O.value,v).toFixed(1)}%`},...l>0?[{label:`Drop-off`,value:`${(100-Mt(O.value,e[l-1].value)).toFixed(1)}%`}]:[]],style:{position:`absolute`,zIndex:10,pointerEvents:`none`,left:`${k/Et*100}%`,top:`${A/_*100}%`,transform:`translate(-50%, calc(-100% - 10px))`}})]})]})},Ft=({data:e,size:n=`md`,loading:r=!1,className:o})=>{let[s,c]=i.default.useState(null),l=i.default.useRef(null),u=t.bt(l),d=u(`--color-chart-1`)??`#ff4700`,f=u(`--color-bg-canvas`)??`#fafaf9`,p=e[0]?.value||1,m=Ct[n],h=m*.66,g=h/2+8,_=wt/e.length,v=e[0]?.value||1,y=e=>e/v*h,b=e.map(e=>y(e.value));b.push(y(e[e.length-1]?.value??0)*Ot);let x=t=>e.length<=1?1:Tt+t/(e.length-1)*(1-Tt);if(r)return(0,a.jsx)(t.gt,{kind:`funnel`,height:m,stages:Math.max(3,e.length),className:o,label:`Loading funnel chart`});let S=s===null?null:e[s],C=s===null?0:g-b[s]/2,w=s===null?0:s*_+_/2;return(0,a.jsxs)(`div`,{ref:l,className:[X.chart,o??``].filter(Boolean).join(` `),style:{height:m},children:[(0,a.jsx)(`svg`,{viewBox:`0 0 ${wt} ${m}`,width:`100%`,height:m,className:X.svg,children:e.map((e,t)=>{let n=t*_,r=(t+1)*_,i=(n+r)/2,o=b[t]/2,l=b[t+1]/2,u=g-o,f=g-l,m=g+o,h=g+l,v=[`M ${n} ${u}`,`C ${i} ${u} ${i} ${f} ${r} ${f}`,`L ${r} ${h}`,`C ${i} ${h} ${i} ${m} ${n} ${m}`,`Z`].join(` `),y=s===null?x(t):t===s?1:.45,S=Math.round(e.value/p*100);return(0,a.jsxs)(`g`,{className:X.segment,onMouseEnter:()=>c(t),onMouseLeave:()=>c(null),children:[(0,a.jsx)(`path`,{d:v,fill:d,fillOpacity:y}),(0,a.jsxs)(`text`,{x:i,y:g,textAnchor:`middle`,dominantBaseline:`middle`,className:X.pctLabel,children:[S,`%`]})]},t)})}),(0,a.jsx)(`div`,{className:X.labels,style:{gridTemplateColumns:`repeat(${e.length}, 1fr)`},children:e.map((e,t)=>(0,a.jsx)(`span`,{className:X.labelItem,children:e.label},t))}),S&&(0,a.jsxs)(`div`,{className:X.tooltip,style:{left:`${w/wt*100}%`,top:`${C/m*100}%`,background:f},children:[(0,a.jsx)(`span`,{className:X.tooltip__title,children:S.label}),(0,a.jsxs)(`div`,{className:X.tooltip__row,children:[(0,a.jsx)(`span`,{className:X.tooltip__dot,style:{background:d}}),(0,a.jsx)(`span`,{className:X.tooltip__label,children:`Share`}),(0,a.jsxs)(`span`,{className:X.tooltip__value,children:[Math.round(S.value/p*100),`%`]})]})]})]})},It=e=>e.appearance===`rich`?(0,a.jsx)(Pt,{...e}):(0,a.jsx)(Ft,{...e}),Lt={chart:`_chart_1c4ty_1`,grid:`_grid_1c4ty_6`,rowLabel:`_rowLabel_1c4ty_13`,colLabel:`_colLabel_1c4ty_14`,cell:`_cell_1c4ty_29`,"chart--sm":`_chart--sm_1c4ty_39`,"chart--md":`_chart--md_1c4ty_40`,"chart--lg":`_chart--lg_1c4ty_41`,"chart--xl":`_chart--xl_1c4ty_42`,tooltip:`_tooltip_1c4ty_49`,tooltip__title:`_tooltip__title_1c4ty_71`,tooltip__row:`_tooltip__row_1c4ty_77`,tooltip__dot:`_tooltip__dot_1c4ty_85`,tooltip__label:`_tooltip__label_1c4ty_92`,tooltip__value:`_tooltip__value_1c4ty_93`,rich:`_rich_1c4ty_96`,cellIn:`_cellIn_1c4ty_1`,"cell--hot":`_cell--hot_1c4ty_101`},Rt=.12,zt=.45,Bt=({data:e,rowLabels:n,colLabels:r,valueLabel:o=`Value`,size:s=`md`,loading:c=!1,appearance:l=`default`,className:u})=>{let d=l===`rich`,f=t.ht(d&&!c),p=i.default.useRef(null),m=t.bt(p),h=i.default.useRef(null),[g,_]=i.default.useState(null),v=m(`--color-chart-1`)??`#ff4700`,y=Math.max(1,...e.flat()),b=e[0]?.length??0,x=(e,t,n)=>r=>{let i=r.currentTarget.getBoundingClientRect(),a=h.current?.getBoundingClientRect();a&&_({row:e,col:t,value:n,left:i.left-a.left+i.width/2,top:i.top-a.top})};if(c){let n=Math.max(3,e.length||5),r={sm:14,md:20,lg:28,xl:36}[s];return(0,a.jsx)(t.gt,{kind:`heatmap`,rows:n,cols:Math.max(4,b||7),height:n*(r+6),className:u,label:`Loading heatmap`})}return(0,a.jsx)(`div`,{ref:p,className:[Lt.chart,Lt[`chart--${s}`],d?Lt.rich:``,u??``].filter(Boolean).join(` `),"data-entering":f||void 0,children:(0,a.jsxs)(`div`,{ref:h,className:Lt.grid,style:{gridTemplateColumns:`auto repeat(${b}, minmax(0, 1fr))`},children:[e.map((e,t)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(`span`,{className:Lt.rowLabel,children:n?.[t]??``}),e.map((e,n)=>{let r=g?.row===t&&g?.col===n,i=g!==null&&!r,o=r?1:Rt+e/y*(1-Rt);return(0,a.jsx)(`div`,{className:[Lt.cell,d&&r?Lt[`cell--hot`]:``].filter(Boolean).join(` `),style:{background:v,opacity:i?zt:o,"--d":t+n},onMouseEnter:x(t,n,e),onMouseLeave:()=>_(null)},n)})]},t)),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{}),r.map((e,t)=>(0,a.jsx)(`span`,{className:Lt.colLabel,children:e},t))]}),g&&(0,a.jsxs)(`div`,{className:Lt.tooltip,style:{left:g.left,top:g.top},children:[(0,a.jsx)(`span`,{className:Lt.tooltip__title,children:[n?.[g.row],r?.[g.col]].filter(Boolean).join(` · `)||`Row ${g.row+1}, Col ${g.col+1}`}),(0,a.jsxs)(`div`,{className:Lt.tooltip__row,children:[(0,a.jsx)(`span`,{className:Lt.tooltip__dot}),(0,a.jsx)(`span`,{className:Lt.tooltip__label,children:o}),(0,a.jsx)(`span`,{className:Lt.tooltip__value,children:g.value})]})]})]})})},Vt={label:`_label_rcdks_3`,label__required:`_label__required_rcdks_17`},Ht=i.default.forwardRef(({required:e,children:t,className:n,...r},i)=>(0,a.jsxs)(`label`,{ref:i,className:[Vt.label,n??``].filter(Boolean).join(` `),...r,children:[t,e&&(0,a.jsx)(`span`,{className:Vt.label__required,"aria-hidden":`true`,children:` *`})]}));Ht.displayName=`Label`;var Ut={item:`_item_1bron_2`,"item--disabled":`_item--disabled_1bron_23`,"item--selected":`_item--selected_1bron_28`,item__leading:`_item__leading_1bron_32`,item__text:`_item__text_1bron_33`,item__title:`_item__title_1bron_34`,item__description:`_item__description_1bron_35`,item__trailing:`_item__trailing_1bron_36`},Wt=({title:e,description:t,leading:n,trailing:r,selected:i,disabled:o,onClick:s,className:c})=>(0,a.jsxs)(`button`,{type:`button`,"data-hover-item":``,disabled:o,onClick:s,"aria-current":i?`true`:void 0,className:[Ut.item,i?Ut[`item--selected`]:``,o?Ut[`item--disabled`]:``,c??``].filter(Boolean).join(` `),children:[n&&(0,a.jsx)(`span`,{className:Ut.item__leading,children:n}),(0,a.jsxs)(`span`,{className:Ut.item__text,children:[(0,a.jsx)(`span`,{className:Ut.item__title,children:e}),t&&(0,a.jsx)(`span`,{className:Ut.item__description,children:t})]}),r&&(0,a.jsx)(`span`,{className:Ut.item__trailing,children:r})]}),Z={map:`_map_oz6hp_2`,tiles:`_tiles_oz6hp_25`,tile:`_tile_oz6hp_25`,overlay:`_overlay_oz6hp_37`,controls:`_controls_oz6hp_41`,group:`_group_oz6hp_50`,button:`_button_oz6hp_59`,divider:`_divider_oz6hp_78`,attribution:`_attribution_oz6hp_81`,marker:`_marker_oz6hp_97`,"marker--selected":`_marker--selected_oz6hp_112`,"marker--pin":`_marker--pin_oz6hp_116`,pin:`_pin_oz6hp_117`,pinShadow:`_pinShadow_oz6hp_129`,"marker--dot":`_marker--dot_oz6hp_150`,"marker--cluster":`_marker--cluster_oz6hp_165`,clusterCount:`_clusterCount_oz6hp_181`,popup:`_popup_oz6hp_184`,"sakani-map-popup-in":`_sakani-map-popup-in_oz6hp_1`,popupHeader:`_popupHeader_oz6hp_205`,popupTitle:`_popupTitle_oz6hp_206`,popupClose:`_popupClose_oz6hp_207`,popupDescription:`_popupDescription_oz6hp_224`,popupPointer:`_popupPointer_oz6hp_226`},Gt=({icon:e,hovered:n,className:r,onClick:i,disabled:o,...s})=>(0,a.jsx)(`button`,{type:`button`,className:[Z.button,r??``].filter(Boolean).join(` `),"data-hovered":n?``:void 0,disabled:o,onClick:i,...s,children:(0,a.jsx)(e,{size:16,strokeWidth:t.Kt(16),"aria-hidden":`true`})});Gt.displayName=`MapControlButton`;var Kt=({onZoomIn:e,onZoomOut:t,zoomInDisabled:i,zoomOutDisabled:o,zoom:s=!0,locate:c=!1,onLocate:l,className:u})=>(0,a.jsxs)(`div`,{className:[Z.controls,u??``].filter(Boolean).join(` `),"data-map-ui":``,children:[s&&(0,a.jsxs)(`div`,{className:Z.group,children:[(0,a.jsx)(Gt,{icon:n.N,"aria-label":`Zoom in`,disabled:i,onClick:e}),(0,a.jsx)(`span`,{className:Z.divider}),(0,a.jsx)(Gt,{icon:n.P,"aria-label":`Zoom out`,disabled:o,onClick:t})]}),c&&(0,a.jsx)(`div`,{className:Z.group,children:(0,a.jsx)(Gt,{icon:r.t,"aria-label":`Show my location`,onClick:l})})]});Kt.displayName=`MapControls`;var qt=`AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADf//8AAf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB////D//////n/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/gf/x////////wAAAAAbgAAB4AAAAAAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAf//8A///////+AAAAB/ngAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAAAAAAcH3Hv/5////////8AAAAA/gAAAAAAAAAAAAD4AAAAAAAAAAAAAAAAAAAAAAcIAAQP/AH///////+AAAAAPCAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAADwDAc+f+AP///////4AAAAAAAAAAAAAB4AAAAB/8AAAAAAAAAAAAAAAAAAAAAH9wc374AAAf/////8AAAAAAAAAAAAH4AAAA////AAAB/gAAAAAAAAAAAAAAAAwAAA/QAAAH/////8AAAAAAAAAAAAOAAAAP///wAAAAAAAAAAAAAAAAAAAAP8AYe+c3AAAD/////4AAAAAAAAAAAA4AAAH////++HgAOAAAAAAAAAAAAAAAfv+4+w/4gAAB/////wAAAAAAAAAAADwAHgH///////4AfgAAAAAgAAAAAAAAPf/4O4//9AAB/////wAAAAAAAAAAADwAPb////////4m//gAAAAAAAf+AAAAAA/+A8f//4AB////8gAAAAAAA/gAAAAAfv/////////////8AAAAAB///+H//H/+PeDwf+AA3////AAAAAAA//4AAAA8fv///////////////P8gAf////////A4CPz4H8AAP///wAAAAAAD///wADH/n3/////////////////8AD////////////34Z/wA///4AAAAAAAP///+M////n/////////////////+4E/////////////gD/8Af//gAAAAAAAf//5+P////f/////////////////fw/////////////6AD8YAf/wAAf8AAAA/8f+D///////////////////////AgEf///////////zw7/AAP/gAAP4AAAB/4/+f//////////////////////8AMAf//////////+DIA/gAH/gAAAAAAAH/z/////////////////////////+AAH///////////8AwgOAAD+AAAAAAAA//H/////////////////////////6AAP///////////wAA/AAAB+AAAAAAAB/+H//////////////////////nP+AAAH//z////////wAA/wAAAOAAAAAAAB//D/////////////////////+A/4AAAA/zAD///////gAA/4wAAAAAAAAAAB//Ab///////////////////+eDgAAAAABwAA///////4AA/94AAAAAAAAAYA5+A///////////////////4AAHAAAAAADcAAD//////4AAf/8AAAAAAAAA8AC+C///////////////////wAAfgAAAAAMAAAA///////wAf/8AAAAAAAAA4AO8H///////////////////AAA/gAAAABgAAAA///////8A///AAAAAAAAA8ANwH//////////////////8AAB/AAAAAEAAAAAf///////z///4AAAAAAAHOAEDv//////////////////+AAA+AAAAAAAAAABH///////x///8AAAAAAAHHAf/////////////////////6AA8AAAAAAAAAAAD///////x///8AAAAAAAGPz//////////////////////6AAwAAAAAAAAAAAD///////9///6AAAAAAAAPj//////////////////////6AAQAAAAAAAAAAAC///////////EAAAAAAAAYf//////////////////////7AAAAAAAAAAAAAABv////////+MNAAAAAAAAD///////////////////////zAAAAAAAAAAAAAAAH////////7gfgAAAAAAAf///////////////////////yAAAAAAAAAAAAAAAL/////////gCgAAAAAAAH///////////////////////iAAAAAAAAAAAAAAAP/////////pAAAAAAAAAD/////uP/x//////////////DAAAAAAAAAAAAAAAP/////////+AAAAAAAAAB//v//Gf/B/////////////+AAAAAAAAAAAAAAAAP////////8wAAAAAAAAAB//H/+AP+P/////////////8CAAAAAAAAAAAAAAAP////////wAAAAAAAAADj/jz/8AD/H/////////////4HgAAAAAAAAAAAAAAP////////gAAAAAAAAAH/4Bw/8AA/B////////////+APAAAAAAAAAAAAAAAP////////gAAAAAAAAAH/wA8f8Ph/g////////////8AAAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/gMHfJ///x///////////v4AMAAAAAAAAAAAAAAAP///////8AAAAAAAAAAH/AMCOP///h//////////+JwAMAAAAAAAAAAAAAAAH///////4AAAAAAAAAAH/AAAHH///g//////////8BwAIAAAAAAAAAAAAAAAH///////wAAAAAAAAAAH+AAYGH///w//////////+w4A4AAAAAAAAAAAAAAAD///////wAAAAAAAAAAAgf+ACBs//////////////g4D4AAAAAAAAAAAAAAAB///////wAAAAAAAAAAAj/+AAAA//////////////AYf4AAAAAAAAAAAAAAAA///////gAAAAAAAAAAB//8AAAA//////////////Ah2AAAAAAAAAAAAAAAAAP/////+AAAAAAAAAAAD//+AAAB//////////////gDwAAAAAAAAAAAAAAAAAH/////8AAAAAAAAAAAH///4GAB//////////////gDAAAAAAAAAAAAAAAAAAG/////4AAAAAAAAAAAP///8P4h//////////////wCAAAAAAAAAAAAAAAAAACf////4AAAAAAAAAAAP////v////////////////gAAAAAAAAAAAAAAAAAAABP//hgYAAAAAAAAAAAP//////3//P///////////wAAAAAAAAAAAAAAAAAAAAv//AAYAAAAAAAAAAAf//////9//H///////////wAAAAAAAAAAAAAAAAAAAB3/+AAcAAAAAAAAAAB///////4//h///////////gAAAAAAAAAAAAAAAAAAAAR/+AANAAAAAAAAAAD///////8//wH//////////AAAAAAAAAAAAAAAAAAAAAJ/+AAEAAAAAAAAAAH///////+f/0B/////////+AAAAAAAAAAAAAAAAAAAAAI/8AAAAAAAAAAAAAH///////+f/44Af///////+QAAAAAAAAAAAAAAAAAAAAAf8AAAAAAAAAAAAAP////////H//+AP///////4gAAAAAAAAAAAAAAAAAAAAAP8AAuAAAAAAAAAAP////////H///AD///v///ggAAAAAAAAAAAAAAAAAAAAAH+AABgAAAAAAAAAf////////n//+AD//4P//YAAAAAAAAAAAAAAAAAAAAAAAP+A4AYAAAAAAAAAP////////j//+AAf/4H/+AAAAAAAAAAAAAAAAgAAAAAAAH/B4ABwAAAAAAAAP////////h//8AAf/gD/8YAAAAAAAAAAAAAAAAAAAAAAAD/nwAD9AAAAAAAAP////////x//4AAf/AD/8QAAAAAAAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAP////////4//gAAf+AD/+AAwAAAAAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAf////////4f+AAAf8AD//AAwAAAAAAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAf////////8f8AAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAf////////+fgAAAPwAAP/gAwAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAf/////////eAAAAHwAAP/gAMAAAAAAAAAAAAAAAAAAAAAAAAHgAAAAAAAAAAf/////////gAAAAHwAAM/gACAAAAAAAAAAAAAAAAAAAAAAAADABAAAAAAAAAP/////////gYAAADwAAEfgAJAAAAAAAAAAAAAAAAAAAAAAAADgPfOAAAAAAAH/////////34AAADwAAIOABAAAAAAAAAAAAAAAAAAAAAAAAAAyPf+AAAAAAAD//////////4AAADoAAIEACBAAAAAAAAAAAAAAAAAAAAAAAAA8///AAAAAAAB//////////wAAABIAAMAAAFAAAAAAAAAAAAAAAAAAAAAAAAAE///gAAAAAAB//////////wAAAAMAAEAAALgAAAAAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAf/////////gAAAAMAADAAMCAAAAAAAAAAAAAAAAAAAAAAAAAA////gAAAAAAP/B///////gAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAf///wAAAAAACAA///////AAAAAAAAxgA+AAAAAAAAAAAAAAAAAAAAAAAAAAAf///4AAAAAAAAAD/////+AAAAAAAAZgB4AAAAAAAAAAAAAAAAAAAAAAAAAAB////4AAAAAAAAAD/////8AAAAAAAAMwH8AAAAAAAAAAAAAAAAAAAAAAAAAAB////8AAAAAAAAAH/////4AAAAAAAAHQf8AIAAAAAAAAAAAAAAAAAAAAAAAAD////8AAAAAAAAAH/////gAAAAAAAAHgf88IAAAAAAAAAAAAAAAAAAAAAAAAD////+AAAAAAAAAH/////AAAAAAAAADwf8AAgAAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAAH/////AAAAAAAAABwP5wBwAAAAAAAAAAAAAAAAAAAAAAAH/////6AAAAAAAAD////+AAAAAAAAAB8P5wATwAAAAAAAAAAAAAAAAAAAAAAD//////4AAAAAAAB////8AAAAAAAAAA8AxQif+AAAAAAAAAAAAAAAAAAAAAAH//////8AAAAAAAB////4AAAAAAAAAAcAAIAD/gAAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAAMAAIAI/ywAAAAAAAAAAAAAAAAAAAAH///////gAAAAAAA////4AAAAAAAAAADgAAAI/8BAAAAAAAAAAAAAAAAAAAAD///////gAAAAAAAf///4AAAAAAAAAAB+AAAA/4AIAAAAAAAAAAAAAAAAAAAB///////gAAAAAAAf///4AAAAAAAAAAAAmogAOMAAAAAAAAAAAAAAAAAAAAAB///////AAAAAAAAf///8AAAAAAAAAAAABCAAAGADAAAAAAAAAAAAAAAAAAAA///////AAAAAAAAf///8AAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAf/////+AAAAAAAAP///8AAAAAAAAAAAAAAAgCAAAAAAAAAAAAAAAAAAAAAAAf/////8AAAAAAAAf///+AQAAAAAAAAAAAAB+CAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAAf///+AQAAAAAAAAAAAAD8DAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAA////+AwAAAAAAAAAAAA38DgAAAAAAAAAAAAAAAAAAAAAAH/////4AAAAAAAA////8BwAAAAAAAAAAAD/8DgAAAAAAAAAAAAAAAAAAAAAAB/////4AAAAAAAA////8PwAAAAAAAAAAAD//HwAABABAAAAAAAAAAAAAAAAAAf////4AAAAAAAA////wPgAAAAAAAAAAAP//3wAAAACAAAAAAAAAAAAAAAAAAP////wAAAAAAAA////APgAAAAAAAAAAAP///wAAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAAf///4AAAAAAAAAAAAAAAAAAAAAAAP////wAAAAAAAAf//+APgAAAAAAAAAAD////+AAIAAAAAAAAAAAAAAAAAAAAP////gAAAAAAAAP//+AfAAAAAAAAAAAf////+AAEAAAAAAAAAAAAAAAAAAAAP////AAAAAAAAAP///AfAAAAAAAAAAA//////AAAAAAAAAAAAAAAAAAAAAAAP///4AAAAAAAAAP//+APAAAAAAAAAAA//////gAAAAAAAAAAAAAAAAAAAAAAf///gAAAAAAAAAH//+AOAAAAAAAAAAB//////wAAAAAAAAAAAAAAAAAAAAAAf///AAAAAAAAAAH//4AEAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAB//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAH//4AAAAAAAAAAAAA//////4AAAAAAAAAAAAAAAAAAAAAAf//+AAAAAAAAAAD//wAAAAAAAAAAAAAf/////8AAAAAAAAAAAAAAAAAAAAAAf//8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///8AAAAAAAAAAB//gAAAAAAAAAAAAAf/////4AAAAAAAAAAAAAAAAAAAAAA///4AAAAAAAAAAA//AAAAAAAAAAAAAAP/////4AAAAAAAAAAAAAAAAAAAAAAf//wAAAAAAAAAAA/+AAAAAAAAAAAAAAP/AP//wAAAAAAAAAAAAAAAAAAAAAA///gAAAAAAAAAAA/4AAAAAAAAAAAAAAf8AG//gAAAAAAAAAAAAAAAAAAAAAA//3AAAAAAAAAAAAYAAAAAAAAAAAAAAAOAAF//gAAAAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//AAABAAAAAAAAAAAAAAAAAAB//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAgAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/AAAAQAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYAAAAcAAAAAAAAAAAAAAAAAB/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAD/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAADQAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAHAAAAAAAAAAAAAAAAAAB/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAOAAAAAAAAAAAAAAAAAAD/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4AAAAAAAAAAAAAAAAAAH+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4BwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAAAAAAAAAAAH4AAAAAAB4HgAD8AAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAA//AAAD//////////wAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAf///4Af///////////AAAAAAAAAAAAAAAAAAAAAAAz4AAAAAAAAAAAAAAAPz////8B/////////////wAAAAAAAAAAAAAAAAAAAAA78AAAAAAAAAAA8/8///////wf/////////////+AAAAAAAAAAAAAAAAAAAAH9+AAAAAAAAZ////////////w////////////////4AAAAAAAAAAAAAAAAAAAB+AAAAAAAB//////////////////////////////4AAAAAAAAABmAAB8f+HB/+AAAAAAAP//////////////////////////////gAAAAAAAAP/c/oAf/////4AAAAAAAP/////////////////////////////8AAAAAAAD/////////////gAAAAAAB//////////////////////////////wAAAAAAAD////////////wAAAAAAP///////////////////////////////wAAAAAD/////////////4AAAAAAD////////////////////////////////wAAAADh/////////////AAAAB8A/////////////////////////////////+AAAAA4Af///////////gAAAH+AA///////////////////////////////+AAAAAAAAH///////////+A/A/wAA///////////////////////////////8AAAAAAAf//////////////gAAAf////////////////////////////////+AAAAAAAH///////////////h////////////////////////////////////wAAAAAAP/////////////////////////////////////////////////////gA+/gAAH/////////////////////////////////////////////////////8AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`,Jt=85.05112878,Yt=Math.PI/180,Q=(e,t,n)=>Math.min(n,Math.max(t,e)),Xt=e=>((e+180)%360+360)%360-180;function Zt([e,t],n){let r=256*2**n,i=Math.sin(Q(e,-85.05112878,Jt)*Yt);return{x:(t+180)/360*r,y:(.5-Math.log((1+i)/(1-i))/(4*Math.PI))*r}}function Qt(e,t,n){let r=256*2**n,i=Math.PI-2*Math.PI*t/r;return[Q(Math.atan(Math.sinh(i))/Yt,-85.05112878,Jt),Xt(e/r*360-180)]}var $t=null;function en(){if(!$t){let e=atob(qt);$t=new Uint8Array(e.length);for(let t=0;t<e.length;t++)$t[t]=e.charCodeAt(t)}return $t}function tn(e,t){let n=Q(Math.floor(90-e),0,179),r=Q(Math.floor(Xt(t)+180),0,359),i=n*360+r;return(en()[i>>3]&128>>(i&7))!=0}function nn(e){let t=[];for(let n=-90+e/2;n<90;n+=e){let r=Math.max(1,Math.round(360*Math.cos(n*Yt)/e));for(let e=0;e<r;e++){let i=-180+(e+.5)*360/r;t.push({cp:Math.cos(n*Yt),sp:Math.sin(n*Yt),lam:i*Yt,land:tn(n,i)})}}return t}function rn(e,t){let n=e*Yt,r=Math.cos(t*Yt),i=Math.sin(t*Yt);return(e,t,a)=>{let o=a-n,s=Math.cos(o);return{x:e*Math.sin(o),y:r*t-i*e*s,z:i*t+r*e*s}}}var an=([e,t])=>({cp:Math.cos(e*Yt),sp:Math.sin(e*Yt),lam:t*Yt});function on(e,t,n=64,r=.12){let i=e=>{let t=an(e);return[t.cp*Math.cos(t.lam),t.cp*Math.sin(t.lam),t.sp]},a=i(e),o=i(t),s=Math.acos(Q(a[0]*o[0]+a[1]*o[1]+a[2]*o[2],-1,1)),c=Math.sin(s)||1e-6,l=[];for(let e=0;e<=n;e++){let t=e/n,i=Math.sin((1-t)*s)/c,u=Math.sin(t*s)/c,d=i*a[0]+u*o[0],f=i*a[1]+u*o[1],p=i*a[2]+u*o[2],m=Math.asin(Q(p/(Math.hypot(d,f,p)||1),-1,1));l.push({cp:Math.cos(m),sp:Math.sin(m),lam:Math.atan2(f,d),h:1+r*Math.sin(Math.PI*t)*Math.min(1,s/1.2)})}return l}var sn=i.default.createContext(null);function cn(){let e=i.default.useContext(sn);if(!e)throw Error(`MapMarker, MapPopup and MapClusterLayer must be rendered inside <Map>.`);return e}var ln=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function un(e,t=0){let[n,r]=e,[a,o]=i.default.useState(e),s=i.default.useRef(e);return i.default.useEffect(()=>{if(!t||ln()){s.current=[n,r],o([n,r]);return}let e=s.current;if(e[0]===n&&e[1]===r)return;let i=(r-e[1]+540)%360-180,a=performance.now(),c=0,l=u=>{let d=Math.min(1,(u-a)/t),f=1-(1-d)**3,p=d===1?[n,r]:[e[0]+(n-e[0])*f,e[1]+i*f];s.current=p,o(p),d<1&&(c=requestAnimationFrame(l))};return c=requestAnimationFrame(l),()=>cancelAnimationFrame(c)},[n,r,t]),t&&!ln()?a:e}var dn=`M16 0C7.163 0 0 7.163 0 16c0 11 16 24 16 24s16-13 16-24C32 7.163 24.837 0 16 0Z`,fn=({position:e,variant:t=`pin`,count:n,selected:r,hovered:i,glide:o,label:s,onClick:c,className:l})=>{let{project:u}=cn(),d=u(un(e,o));if(!d)return null;let f=[Z.marker,Z[`marker--${t}`],r?Z[`marker--selected`]:``,l??``].filter(Boolean).join(` `),p=t===`pin`?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`span`,{className:Z.pinShadow}),(0,a.jsxs)(`svg`,{className:Z.pin,viewBox:`-1 -1 34 42`,"aria-hidden":`true`,children:[(0,a.jsx)(`path`,{d:dn}),(0,a.jsx)(`circle`,{cx:`16`,cy:`16`,r:`6`})]})]}):t===`cluster`?(0,a.jsx)(`span`,{className:Z.clusterCount,children:n}):null,m={left:d.x,top:d.y},h=i?``:void 0,g=s??(t===`cluster`&&n!=null?`${n} places`:void 0);return c?(0,a.jsx)(`button`,{type:`button`,className:f,style:m,"aria-label":g,"aria-pressed":r,"data-hovered":h,"data-map-ui":``,onClick:c,children:p}):(0,a.jsx)(`span`,{className:f,style:m,"data-hovered":h,role:g?`img`:void 0,"aria-label":g,"aria-hidden":!g||void 0,children:p})};fn.displayName=`MapMarker`;var pn=`https://tile.openstreetmap.org/{z}/{x}/{y}.png`,mn=(0,a.jsxs)(a.Fragment,{children:[`© `,(0,a.jsx)(`a`,{href:`https://www.openstreetmap.org/copyright`,target:`_blank`,rel:`noreferrer`,children:`OpenStreetMap`}),` contributors`]}),hn=260,gn=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches,_n=({center:e=[51.505,-.09],zoom:t=12,minZoom:n=2,maxZoom:r=18,onViewChange:o,tileUrl:s=pn,tileUrlDark:c,theme:l=`auto`,attribution:u=mn,controls:d=!0,locate:f=!1,onLocate:p,onLocateError:m,height:h=400,"aria-label":g=`Map`,className:_,children:v})=>{let y=i.default.useRef(null),[b,x]=i.default.useState({w:0,h:0}),[S,C]=i.default.useState({center:e,zoom:Q(t,n,r)}),w=i.default.useRef(S);w.current=S;let T=i.default.useRef(0),[E,D]=i.default.useState(null),[O,k]=i.default.useState(l===`dark`);i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=()=>k(l===`dark`||!!e.closest(`.dark`));t();let n=new MutationObserver(t);for(let t=e;t;t=t.parentElement)n.observe(t,{attributes:!0,attributeFilter:[`class`]});return()=>n.disconnect()},[l]);let A=O&&!!c,j=A?c:s;i.default.useLayoutEffect(()=>{let e=y.current;if(!e)return;let t=new ResizeObserver(([e])=>x({w:e.contentRect.width,h:e.contentRect.height}));return t.observe(e),()=>t.disconnect()},[]);let M=i.default.useCallback(e=>{let t={center:e.center,zoom:Q(e.zoom,n,r)};w.current=t,C(t),o?.(t)},[n,r,o]),N=i.default.useCallback((e,t)=>{cancelAnimationFrame(T.current);let i=w.current,a={center:e.center,zoom:Q(e.zoom,n,r)};if(gn()){M(a);return}let o=performance.now(),s=e=>{let n=Math.min(1,(e-o)/hn),r=1-(1-n)**3,c=i.zoom+(a.zoom-i.zoom)*r,l;if(t)l=ee(F(t,i),t,c);else{let e=Zt(i.center,c),t=Zt(a.center,c);l=Qt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r,c)}M({center:l,zoom:c}),n<1&&(T.current=requestAnimationFrame(s))};T.current=requestAnimationFrame(s)},[M,n,r,b.w,b.h]),P=i.default.useRef(!0);i.default.useEffect(()=>{if(P.current){P.current=!1;return}N({center:e,zoom:t})},[e[0],e[1],t]),i.default.useEffect(()=>()=>cancelAnimationFrame(T.current),[]);let F=(e,t)=>{let n=Zt(t.center,t.zoom);return Qt(n.x+e.x-b.w/2,n.y+e.y-b.h/2,t.zoom)},ee=(e,t,n)=>{let r=Zt(e,n);return Qt(r.x-(t.x-b.w/2),r.y-(t.y-b.h/2),n)},te=i.default.useRef(null),I=(e,t)=>{let n=w.current,r=Zt(n.center,n.zoom);M({center:Qt(r.x-e,r.y-t,n.zoom),zoom:n.zoom})},ne=e=>{e.button!==0||e.target.closest(`[data-map-ui]`)||(cancelAnimationFrame(T.current),te.current={id:e.pointerId,x:e.clientX,y:e.clientY,moved:!1,samples:[{x:e.clientX,y:e.clientY,t:performance.now()}]})},L=e=>{let t=te.current;if(!t||t.id!==e.pointerId)return;let n=e.clientX-t.x,r=e.clientY-t.y;!t.moved&&Math.hypot(n,r)<3||(t.moved||(t.moved=!0,y.current?.setPointerCapture(e.pointerId)),t.x=e.clientX,t.y=e.clientY,t.samples.push({x:e.clientX,y:e.clientY,t:performance.now()}),t.samples.length>5&&t.samples.shift(),I(n,r))},R=()=>{let e=te.current;if(te.current=null,!e||!e.moved||gn())return;let t=e.samples[0],n=e.samples[e.samples.length-1],r=Math.max(1,n.t-t.t);if(performance.now()-n.t>80)return;let i=(n.x-t.x)/r*16,a=(n.y-t.y)/r*16,o=()=>{i*=.9,a*=.9,!(Math.hypot(i,a)<.3)&&(I(i,a),T.current=requestAnimationFrame(o))};T.current=requestAnimationFrame(o)};i.default.useEffect(()=>{let e=y.current;if(!e)return;let t=t=>{t.preventDefault(),cancelAnimationFrame(T.current);let i=e.getBoundingClientRect(),a={x:t.clientX-i.left,y:t.clientY-i.top},o=w.current,s=Q(-t.deltaY*(t.ctrlKey?.01:.002),-.5,.5),c=Q(o.zoom+s,n,r),l=Zt(o.center,o.zoom),u=Zt(Qt(l.x+a.x-i.width/2,l.y+a.y-i.height/2,o.zoom),c);M({center:Qt(u.x-(a.x-i.width/2),u.y-(a.y-i.height/2),c),zoom:c})};return e.addEventListener(`wheel`,t,{passive:!1}),()=>e.removeEventListener(`wheel`,t)},[M,n,r]);let z=e=>{if(e.target.closest(`[data-map-ui]`))return;let t=y.current.getBoundingClientRect();N({center:S.center,zoom:Math.round(S.zoom)+1},{x:e.clientX-t.left,y:e.clientY-t.top})},re=e=>{if(e.target!==e.currentTarget)return;let t=e.key;if(t===`ArrowLeft`)I(80,0);else if(t===`ArrowRight`)I(-80,0);else if(t===`ArrowUp`)I(0,80);else if(t===`ArrowDown`)I(0,-80);else if(t===`+`||t===`=`)N({center:S.center,zoom:Math.round(S.zoom)+1});else if(t===`-`||t===`_`)N({center:S.center,zoom:Math.round(S.zoom)-1});else return;e.preventDefault()},B=()=>{if(!navigator.geolocation){m?.(Error(`Geolocation is not supported in this browser.`));return}navigator.geolocation.getCurrentPosition(e=>{let t=[e.coords.latitude,e.coords.longitude];D(t),N({center:t,zoom:Math.max(S.zoom,14)}),p?.(t)},e=>m?.(e))},ie=i.default.useRef(b);ie.current=b;let V=i.default.useRef(N);V.current=N;let ae=i.default.useCallback((e,t)=>{V.current({center:e,zoom:t??w.current.zoom})},[]),H=i.default.useCallback((e,t=48)=>{if(!e.length)return;let{w:n,h:r}=ie.current,i=e.map(e=>e[0]),a=e.map(t=>e[0][1]+((t[1]-e[0][1]+540)%360-180)),[o,s,c,l]=[Math.min(...i),Math.max(...i),Math.min(...a),Math.max(...a)],u=[(o+s)/2,Xt((c+l)/2)],d=Zt([s,c],0),f=Zt([o,l],0),p=Math.max(1e-6,Math.abs(f.x-d.x)),m=Math.max(1e-6,Math.abs(f.y-d.y)),h=Math.min(Math.log2(Math.max(1,n-t*2)/p),Math.log2(Math.max(1,r-t*2)/m));V.current({center:u,zoom:e.length===1||!Number.isFinite(h)?Math.max(w.current.zoom,14):Math.floor(h*4)/4})},[]),oe=Q(Math.round(S.zoom),0,r),U=2**(S.zoom-oe),se=[];if(b.w&&b.h){let e=Zt(S.center,oe),t={x:b.w/2/U,y:b.h/2/U},n=2**oe,r=Math.floor((e.x-t.x)/256),i=Math.floor((e.x+t.x)/256),a=Math.max(0,Math.floor((e.y-t.y)/256)),o=Math.min(n-1,Math.floor((e.y+t.y)/256));for(let t=a;t<=o;t++)for(let a=r;a<=i;a++){let r=(a%n+n)%n;se.push({key:`${oe}/${a}/${t}`,src:j.replace(`{z}`,String(oe)).replace(`{x}`,String(r)).replace(`{y}`,String(t)),left:(a*256-e.x)*U+b.w/2,top:(t*256-e.y)*U+b.h/2})}}let ce=256*U,le=i.default.useMemo(()=>{let e=Zt(S.center,S.zoom),t=256*2**S.zoom;return{zoom:S.zoom,flyTo:ae,fitBounds:H,maxZoom:r,project:n=>{if(!b.w||!b.h)return null;let r=Zt(n,S.zoom),i=r.x-e.x;i-=Math.round(i/t)*t;let a=i+b.w/2,o=r.y-e.y+b.h/2;return a<-200||o<-200||a>b.w+200||o>b.h+200?null:{x:a,y:o}}}},[S,b.w,b.h,ae,H,r]);return(0,a.jsxs)(`div`,{ref:y,className:[Z.map,l===`dark`?`dark`:``,_??``].filter(Boolean).join(` `),"data-own-dark-tiles":A?``:void 0,style:{height:h},role:`region`,"aria-roledescription":`map`,"aria-label":g,tabIndex:0,onPointerDown:ne,onPointerMove:L,onPointerUp:R,onPointerCancel:R,onDoubleClick:z,onKeyDown:re,children:[(0,a.jsx)(`div`,{className:Z.tiles,"aria-hidden":`true`,children:se.map(e=>(0,a.jsx)(`img`,{src:e.src,alt:``,draggable:!1,className:Z.tile,style:{left:e.left,top:e.top,width:ce+.5,height:ce+.5},onLoad:e=>e.currentTarget.setAttribute(`data-loaded`,``)},e.key))}),(0,a.jsx)(sn.Provider,{value:le,children:(0,a.jsxs)(`div`,{className:Z.overlay,children:[v,E&&(0,a.jsx)(fn,{position:E,variant:`dot`,label:`Your location`})]})}),(d||f)&&(0,a.jsx)(Kt,{zoom:d,locate:f,onLocate:B,zoomInDisabled:S.zoom>=r,zoomOutDisabled:S.zoom<=n,onZoomIn:()=>N({center:S.center,zoom:Math.round(S.zoom)+1}),onZoomOut:()=>N({center:S.center,zoom:Math.round(S.zoom)-1})}),u!=null&&(0,a.jsx)(`div`,{className:Z.attribution,"data-map-ui":``,children:u})]})};_n.displayName=`Map`;var vn=({position:e,title:r,description:i,onClose:o,offset:s=48,pointer:c=!0,glide:l,children:u,className:d})=>{let{project:f}=cn(),p=f(un(e,l));return p?(0,a.jsxs)(`div`,{className:[Z.popup,d??``].filter(Boolean).join(` `),style:{left:p.x,top:p.y-s},role:`dialog`,"aria-label":typeof r==`string`?r:void 0,"data-map-ui":``,onKeyDown:e=>{e.key===`Escape`&&o&&(e.stopPropagation(),o())},children:[(r||o)&&(0,a.jsxs)(`div`,{className:Z.popupHeader,children:[r&&(0,a.jsx)(`div`,{className:Z.popupTitle,children:r}),o&&(0,a.jsx)(`button`,{type:`button`,className:Z.popupClose,"aria-label":`Close`,onClick:o,children:(0,a.jsx)(n.W,{size:14,strokeWidth:t.Kt(14),"aria-hidden":`true`})})]}),i&&(0,a.jsx)(`div`,{className:Z.popupDescription,children:i}),u,c&&(0,a.jsx)(`span`,{className:Z.popupPointer,"aria-hidden":`true`})]}):null};vn.displayName=`MapPopup`;var yn={globe:`_globe_w22uh_2`,"globe--draggable":`_globe--draggable_w22uh_10`,canvas:`_canvas_w22uh_12`,srOnly:`_srOnly_w22uh_15`},bn=8,xn=()=>typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches;function Sn(e,t){t.fillStyle=`#000`,t.fillStyle=e;let n=String(t.fillStyle);if(n.startsWith(`#`))return[1,3,5].map(e=>parseInt(n.slice(e,e+2),16)).join(`,`);let r=n.match(/[\d.]+/g);return r?r.slice(0,3).join(`,`):`20,20,20`}var Cn=({variant:e=`land`,center:n=[15,90],markers:r=[],arcs:o=[],autoRotate:s=!0,rotationSpeed:c=6,draggable:l=!0,atmosphere:u=!0,dotSpacing:d=1.3,theme:f=`auto`,onMarkerClick:p,onMarkerHover:m,"aria-label":h=`Globe`,className:g})=>{let _=i.default.useRef(null),v=i.default.useRef(null),y=t.Pt(),b=i.default.useMemo(()=>nn(d),[d]),x=i.default.useMemo(()=>o.map(e=>on(e.from,e.to)),[o]),S=i.default.useRef({rot:n[1],tilt:Q(n[0],-60,60),vr:0,vt:0,dragging:!1,idleUntil:0}),C=i.default.useRef({rgb:`20,20,20`,surface:`255,255,255`,border:`230,230,230`,font:`sans-serif`,visible:!0,size:0,hits:[]}),w=i.default.useRef({markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c});w.current={markers:r,arcPts:x,variant:e,atmosphere:u,autoRotate:s,rotationSpeed:c};let T=i.default.useRef({onMarkerClick:p,onMarkerHover:m});T.current={onMarkerClick:p,onMarkerHover:m};let E=i.default.useRef(null),D=e=>{E.current!==e&&(E.current=e,_.current&&(_.current.style.cursor=e==null?``:`pointer`),T.current.onMarkerHover?.(e))};i.default.useEffect(()=>{let e=v.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`);if(!t)return;let n=getComputedStyle(e),r=(e,r)=>Sn(n.getPropertyValue(e).trim()||r,t);C.current.rgb=Sn(n.getPropertyValue(`--color-fg-default`).trim()||n.color,t),C.current.surface=r(`--color-bg-surface`,`#ffffff`),C.current.border=r(`--color-border-subtle`,`#e5e5e5`),C.current.font=n.fontFamily||`sans-serif`},[y,f]),i.default.useEffect(()=>{let e=v.current,t=_.current;if(!e||!t)return;let n=e.getContext(`2d`);if(!n)return;let r=0,i=performance.now(),a=i,o=()=>{let r=t.clientWidth,i=Math.min(2,window.devicePixelRatio||1);C.current.size=r,e.width=Math.round(r*i),e.height=Math.round(r*i),e.style.width=`${r}px`,e.style.height=`${r}px`,n.setTransform(i,0,0,i,0,0)},s=new ResizeObserver(o);s.observe(t),o();let c=new IntersectionObserver(([e])=>{C.current.visible=e.isIntersecting});c.observe(t);let l=e=>{let t=C.current.size;if(!t)return;let r=w.current,i=S.current,o=C.current.rgb,s=t*.42,c=t/2,l=t/2,u=t/480,d=rn(i.rot,i.tilt);if(n.clearRect(0,0,t,t),r.atmosphere){let e=n.createRadialGradient(c,l,s*.9,c,l,s*1.16);e.addColorStop(0,`rgba(${o},0.11)`),e.addColorStop(1,`rgba(${o},0)`),n.fillStyle=e,n.beginPath(),n.arc(c,l,s*1.16,0,Math.PI*2),n.fill()}let f=n.createRadialGradient(c-s*.35,l-s*.4,s*.1,c,l,s);f.addColorStop(0,`rgba(${o},0.07)`),f.addColorStop(1,`rgba(${o},0.02)`),n.fillStyle=f,n.beginPath(),n.arc(c,l,s,0,Math.PI*2),n.fill();let p=Array.from({length:bn},()=>new Path2D),m=new Path2D,h=r.variant===`ocean`;for(let e of b){let t=d(e.cp,e.sp,e.lam);if(t.z<=0)continue;let n=t.z**.55,r=c+s*t.x,i=l-s*t.y;if(h?!e.land:e.land){let e=1.15*u*(.6+.4*n),t=p[Math.min(bn-1,Math.floor(n*bn))];t.moveTo(r+e,i),t.arc(r,i,e,0,Math.PI*2)}else{let e=.8*u*(.6+.4*n);m.moveTo(r+e,i),m.arc(r,i,e,0,Math.PI*2)}}n.fillStyle=`rgba(${o},0.12)`,n.fill(m),p.forEach((e,t)=>{n.fillStyle=`rgba(${o},${.22+.78*((t+.5)/bn)})`,n.fill(e)}),n.lineCap=`round`;let g=(e-a)/1e3;r.arcPts.forEach((e,t)=>{let r=(g/2.6+t*.37)%1*(e.length-1);for(let t=1;t<e.length;t++){let i=e[t-1],a=e[t],f=d(i.cp,i.sp,i.lam),p=d(a.cp,a.sp,a.lam),m=Math.min(f.z,p.z),h=p.x*a.h,g=p.y*a.h;if(m<.04||Math.hypot(h,g)>.995&&m<.35)continue;let _=Math.min(1,(m-.04)/.25),v=Math.max(0,1-Math.abs(t-r)/6);n.strokeStyle=`rgba(${o},${(.28+.4*Math.sin(Math.PI*t/e.length)+.5*v)*_})`,n.lineWidth=(1.1+1.1*v)*u,n.beginPath(),n.moveTo(c+s*f.x*i.h,l-s*f.y*i.h),n.lineTo(c+s*h,l-s*g),n.stroke()}});let _=[],v=[];r.markers.forEach((e,t)=>{let r=an(e.position),i=d(r.cp,r.sp,r.lam);if(i.z<=.06)return;let a=c+s*i.x,f=l-s*i.y,p=Math.min(1,(i.z-.06)/.2);_.push({i:t,x:a,y:f});let m=!!e.selected,h=!!e.hovered||E.current===t;if((m||h)&&(n.fillStyle=`rgba(${o},${(m?.2:.14)*p})`,n.beginPath(),n.arc(a,f,(m?15:11)*u,0,Math.PI*2),n.fill(),e.label&&v.push({x:a,y:f,label:e.label,k:p})),e.active){let e=g%2/2;n.strokeStyle=`rgba(${o},${.5*(1-e)*p})`,n.lineWidth=1.5*u,n.beginPath(),n.arc(a,f,(5+14*e)*u,0,Math.PI*2),n.stroke(),n.fillStyle=`rgba(${o},${.16*p})`,n.beginPath(),n.arc(a,f,9*u,0,Math.PI*2),n.fill()}n.globalCompositeOperation=`destination-out`,n.beginPath(),n.arc(a,f,(m?7:h?6.5:5.5)*u,0,Math.PI*2),n.fill(),n.globalCompositeOperation=`source-over`,n.fillStyle=`rgba(${o},${p})`,n.beginPath(),n.arc(a,f,(m?5:h?4.5:3.5)*u,0,Math.PI*2),n.fill()}),C.current.hits=_;for(let e of v){n.font=`500 ${12*u}px ${C.current.font}`;let r=n.measureText(e.label).width+16*u,i=24*u,a=16*u,s=Q(e.x-r/2,4*u,t-r-4*u),c=e.y-a-i<4*u?e.y+a:e.y-a-i;n.save(),n.globalAlpha=e.k,n.shadowColor=`rgba(0,0,0,0.18)`,n.shadowBlur=8*u,n.shadowOffsetY=2*u,n.fillStyle=`rgb(${C.current.surface})`,n.beginPath(),n.roundRect?n.roundRect(s,c,r,i,6*u):n.rect(s,c,r,i),n.fill(),n.shadowColor=`transparent`,n.strokeStyle=`rgb(${C.current.border})`,n.lineWidth=u,n.stroke(),n.fillStyle=`rgb(${o})`,n.textBaseline=`middle`,n.fillText(e.label,s+8*u,c+i/2+u*.5),n.restore()}},u=e=>{let t=Math.min(.05,(e-i)/1e3);i=e;let n=S.current,a=w.current;n.dragging||(n.rot+=n.vr*t,n.tilt=Q(n.tilt+n.vt*t,-60,60),n.vr*=.04**t,n.vt*=.04**t,a.autoRotate&&!xn()&&e>n.idleUntil&&E.current==null&&(n.rot+=a.rotationSpeed*t)),C.current.visible&&l(e),r=requestAnimationFrame(u)};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r),s.disconnect(),c.disconnect()}},[b]);let O=(e,t)=>{let n=_.current?.getBoundingClientRect();if(!n)return null;let r=e-n.left,i=t-n.top,a=Math.max(10,C.current.size/480*12),o=null,s=a;for(let e of C.current.hits){let t=Math.hypot(e.x-r,e.y-i);t<=s&&(o=e.i,s=t)}return o},k=i.default.useRef(null),A=i.default.useRef(null),j=e=>{let t=O(e.clientX,e.clientY);A.current={x:e.clientX,y:e.clientY,hit:t},D(t),l&&(e.currentTarget.setPointerCapture(e.pointerId),k.current={x:e.clientX,y:e.clientY,t:performance.now()},S.current.dragging=!0,S.current.vr=0,S.current.vt=0)},M=e=>{let t=A.current;t&&Math.hypot(e.clientX-t.x,e.clientY-t.y)>4&&(t.hit=null);let n=k.current;if(!n){t||D(O(e.clientX,e.clientY));return}let r=S.current,i=180/Math.max(1,C.current.size*.84*Math.PI)*1.6,a=e.clientX-n.x,o=e.clientY-n.y,s=Math.max(1,performance.now()-n.t)/1e3;r.rot-=a*i,r.tilt=Q(r.tilt+o*i,-60,60),r.vr=-a*i/s,r.vt=o*i/s,n.x=e.clientX,n.y=e.clientY,n.t=performance.now()},N=e=>{let t=A.current;if(A.current=null,t&&t.hit!=null&&e.type===`pointerup`&&T.current.onMarkerClick?.(t.hit,w.current.markers[t.hit]),!k.current)return;k.current=null;let n=S.current;n.dragging=!1,n.idleUntil=performance.now()+1500,xn()&&(n.vr=0,n.vt=0)};return(0,a.jsxs)(`div`,{ref:_,className:[yn.globe,l?yn[`globe--draggable`]:``,f===`dark`?`dark`:``,g??``].filter(Boolean).join(` `),role:p?`group`:`img`,"aria-label":h,onPointerDown:j,onPointerMove:M,onPointerUp:N,onPointerCancel:N,onPointerLeave:()=>{A.current||D(null)},children:[(0,a.jsx)(`canvas`,{ref:v,className:yn.canvas,"aria-hidden":p?!0:void 0}),p&&r.map((e,t)=>e.label&&(0,a.jsx)(`button`,{type:`button`,className:yn.srOnly,onFocus:()=>D(t),onBlur:()=>D(null),onClick:()=>p(t,e),children:e.label},t))]})};Cn.displayName=`MapGlobe`;function wn({points:e,renderPoint:t,radius:n=56,clusterMaxZoom:r=16,onClusterClick:o}){let{zoom:s,project:c,fitBounds:l,flyTo:u,maxZoom:d}=cn(),f=Math.floor(s),p=f<r,m=i.default.useMemo(()=>{if(!p)return e.map(e=>({key:String(e.id),position:e.position,points:[e]}));let t=new Map;for(let r of e){let e=Zt(r.position,f),i=`${Math.floor(e.x/n)}:${Math.floor(e.y/n)}`,a=t.get(i);a?a.push(r):t.set(i,[r])}let r=n*.8,i=Array.from(t,([e,t])=>{let n=t.reduce((e,t)=>e+t.position[0],0)/t.length,r=t.reduce((e,t)=>e+t.position[1],0)/t.length;return{k:e,pts:t,lat:n,lng:r,...Zt([n,r],f)}}).sort((e,t)=>t.pts.length-e.pts.length),a=[],o=new Map;for(let e of i){let t=Math.floor(e.x/r),n=Math.floor(e.y/r),i;for(let a=-1;a<=1&&!i;a++)for(let s=-1;s<=1&&!i;s++)i=o.get(`${t+a}:${n+s}`)?.find(t=>Math.hypot(t.x-e.x,t.y-e.y)<r);if(i){let t=i.pts.length+e.pts.length;i.lat=(i.lat*i.pts.length+e.lat*e.pts.length)/t,i.lng=(i.lng*i.pts.length+e.lng*e.pts.length)/t,i.pts=i.pts.concat(e.pts),Object.assign(i,Zt([i.lat,i.lng],f))}else{a.push(e);let r=`${t}:${n}`;o.set(r,[...o.get(r)??[],e])}}return a.map(e=>({key:e.pts.length===1?String(e.pts[0].id):`c${f}:${e.k}`,position:e.pts.length===1?e.pts[0].position:[e.lat,e.lng],points:e.pts}))},[e,f,n,p]),h=e=>{let t=e.points.map(e=>e.position);t.every(e=>e[0]===t[0][0]&&e[1]===t[0][1])?u(e.position,Math.min(d,f+3)):l(t),o?.(e.points)};return(0,a.jsx)(a.Fragment,{children:m.map(e=>c(e.position)?e.points.length===1?(0,a.jsx)(i.default.Fragment,{children:t(e.points[0])},e.key):(0,a.jsx)(fn,{variant:`cluster`,position:e.position,count:e.points.length,onClick:()=>h(e)},e.key):null)})}wn.displayName=`MapClusterLayer`;var Tn={chart:`_chart_sxdhd_2`,center:`_center_sxdhd_30`,center__value:`_center__value_sxdhd_39`,center__caption:`_center__caption_sxdhd_40`,rich:`_rich_sxdhd_44`,ringIn:`_ringIn_sxdhd_1`,hot:`_hot_sxdhd_51`},En={sm:{h:180,outer:72},md:{h:220,outer:90},lg:{h:280,outer:116},xl:{h:340,outer:142}},Dn=new Set([`donut`,`donut-active`,`donut-with-text`,`interactive`]),On=new Set([`donut-active`]),kn=new Set([`interactive`]),An=new Set([`donut-with-text`]),jn=Math.PI/180,Mn=({data:e,variant:n=`donut`,size:r=`md`,centerValue:s,centerCaption:c,loading:l=!1,appearance:u=`default`,className:d})=>{let f=u===`rich`,p=t.ht(f&&!l),m=i.default.useRef(null),h=t.bt(m),[g,_]=i.default.useState(void 0),v=[1,2,3,4,5].map(e=>h(`--color-chart-${e}`)??t.yt[e-1]),y=h(`--color-bg-surface`)??`#ffffff`,b=h(`--color-fg-default`)??`#141414`,x=En[r],S=Dn.has(n),C=On.has(n),w=kn.has(n),T=S?x.outer*.6:0,E=An.has(n)&&(s||c),D=g??(C||w?0:void 0),O=e=>{let{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:c,fill:l,index:u}=e,d=u===D,f=d&&(C||w)?16:0;return d&&w?(0,a.jsxs)(`g`,{children:[(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l}),(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:i+f+3,outerRadius:i+f+7,startAngle:s,endAngle:c,fill:l})]}):(0,a.jsx)(o.Sector,{cx:t,cy:n,innerRadius:r,outerRadius:i+f,startAngle:s,endAngle:c,fill:l})},k=e=>{let{cx:t,cy:n,midAngle:r,outerRadius:i}=e,a=r??0,o=Math.cos(-a*jn),s=Math.sin(-a*jn),c=t+i*o,l=n+i*s,u=t+(i+16)*o,d=n+(i+16)*s,f=o>=0,p=u+(f?14:-14);return{d:`M ${c} ${l} L ${u} ${d} L ${p} ${d}`,endX:p,endY:d,textAnchor:f?`start`:`end`}},A=e=>{let{value:t,fill:n}=e,{d:r,endX:i,endY:o,textAnchor:s}=k(e),c=i+(s===`start`?4:-4);return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`path`,{d:r,fill:`none`,stroke:n,strokeWidth:1}),(0,a.jsx)(`text`,{x:c,y:o,textAnchor:s,dominantBaseline:`central`,fill:b,fontSize:12,fontFamily:`var(--font-sans)`,children:t})]})},j=e=>{let{x:t,y:n,textAnchor:r,value:i}=e;return(0,a.jsx)(`text`,{x:t,y:n,textAnchor:r,dominantBaseline:`central`,fill:b,fontSize:20,fontWeight:400,fontFamily:`var(--font-sans)`,children:i})},M=t=>{let{cx:n,cy:r,midAngle:i,innerRadius:o,outerRadius:s,index:c}=t,l=(o+s)/2;return(0,a.jsx)(`text`,{x:n+l*Math.cos(-i*jn),y:r+l*Math.sin(-i*jn),textAnchor:`middle`,dominantBaseline:`central`,fill:`#fff`,fontSize:11,fontWeight:500,fontFamily:`var(--font-sans)`,children:e[c]?.label})};if(l)return(0,a.jsx)(t.gt,{kind:S?`ring`:`pie`,height:x.h,className:d,label:`Loading pie chart`});if(n===`stacked`){let n=e=>g!==void 0&&g!==e?.45:1;return(0,a.jsx)(`div`,{ref:m,className:[Tn.chart,f?`${Tn.rich} sk-chart-rich`:``,d??``].filter(Boolean).join(` `),"data-entering":p||void 0,style:{height:x.h},children:(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:x.outer*.82,outerRadius:x.outer,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>_(t),onMouseLeave:()=>_(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:v[t%v.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:0,outerRadius:x.outer*.62,paddingAngle:0,stroke:`none`,isAnimationActive:!1,onMouseEnter:(e,t)=>_(t),onMouseLeave:()=>_(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:v[t%v.length],fillOpacity:n(t)},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t._t,{}),wrapperStyle:{zIndex:50}})]})})})}return(0,a.jsxs)(`div`,{ref:m,className:[Tn.chart,f?`${Tn.rich} sk-chart-rich`:``,d??``].filter(Boolean).join(` `),"data-entering":p||void 0,style:{height:x.h},children:[(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.PieChart,{children:[(0,a.jsx)(o.Pie,{data:e,dataKey:`value`,nameKey:`label`,innerRadius:T,outerRadius:x.outer,paddingAngle:0,stroke:n===`pie`?y:`none`,strokeWidth:n===`pie`?2:0,isAnimationActive:!1,shape:C||w?O:void 0,label:n===`label`?A:n===`custom-label`?j:n===`label-list`?M:void 0,labelLine:!1,onMouseEnter:(e,t)=>_(t),onMouseLeave:()=>_(void 0),children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:v[t%v.length],className:f&&g===t?Tn.hot:void 0},t))}),(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t._t,{}),wrapperStyle:{zIndex:50}})]})}),E&&(0,a.jsxs)(`div`,{className:Tn.center,children:[s&&(0,a.jsx)(`span`,{className:Tn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:Tn.center__caption,children:c})]})]})},Nn={root:`_root_16f5u_2`,trigger:`_trigger_16f5u_3`,panel:`_panel_16f5u_5`,"panel--bottom":`_panel--bottom_16f5u_22`,"panel--bottom-start":`_panel--bottom-start_16f5u_23`,"panel--bottom-end":`_panel--bottom-end_16f5u_24`,"panel--top":`_panel--top_16f5u_25`,"panel--entering":`_panel--entering_16f5u_39`,"sakani-popover-in":`_sakani-popover-in_16f5u_1`,"panel--exiting":`_panel--exiting_16f5u_40`,"sakani-popover-out":`_sakani-popover-out_16f5u_1`,"sakani-popover-in-up":`_sakani-popover-in-up_16f5u_1`,"sakani-popover-out-up":`_sakani-popover-out-up_16f5u_1`,panel__title:`_panel__title_16f5u_75`,panel__description:`_panel__description_16f5u_76`,panel__body:`_panel__body_16f5u_77`,panel__actions:`_panel__actions_16f5u_78`},Pn=({trigger:e,title:t,description:n,actions:r,placement:o=`bottom-start`,children:s,className:c})=>{let[l,u]=i.default.useState(!1),[d,f]=i.default.useState(!1),p=i.default.useRef(null),m=i.default.useRef(null);return i.default.useEffect(()=>{l&&f(!0)},[l]),i.default.useEffect(()=>{if(l||!d)return;let e=setTimeout(()=>f(!1),240);return()=>clearTimeout(e)},[l,d]),i.default.useEffect(()=>{if(!l)return;let e=e=>{p.current&&!p.current.contains(e.target)&&u(!1)},t=e=>{e.key===`Escape`&&u(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[l]),i.default.useEffect(()=>{!l&&m.current&&(m.current.focus(),m.current=null)},[l]),(0,a.jsxs)(`div`,{className:[Nn.root,c??``].filter(Boolean).join(` `),ref:p,children:[(0,a.jsx)(`span`,{className:Nn.trigger,onClick:()=>{l||(m.current=document.activeElement),u(e=>!e)},children:e}),d&&(0,a.jsxs)(`div`,{className:[Nn.panel,Nn[`panel--${o}`],l?Nn[`panel--entering`]:Nn[`panel--exiting`]].filter(Boolean).join(` `),role:`dialog`,onAnimationEnd:e=>{e.target===e.currentTarget&&!l&&f(!1)},children:[t&&(0,a.jsx)(`div`,{className:Nn.panel__title,children:t}),n&&(0,a.jsx)(`div`,{className:Nn.panel__description,children:n}),s&&(0,a.jsx)(`div`,{className:Nn.panel__body,children:s}),r&&(0,a.jsx)(`div`,{className:Nn.panel__actions,children:r})]})]})},Fn={chart:`_chart_1tglp_2`,circleFillSvg:`_circleFillSvg_1tglp_17`,shape1:`_shape1_1tglp_24`,shape2:`_shape2_1tglp_25`,overlay:`_overlay_1tglp_29`,crosshair:`_crosshair_1tglp_30`,spokeIn:`_spokeIn_1tglp_1`,hit:`_hit_1tglp_31`,hitIn:`_hitIn_1tglp_1`},In={sm:200,md:260,lg:340,xl:420},Ln=new Set([`circle-grid`,`circle-grid-no-lines`,`circle-grid-filled`]),Rn=new Set([`default`,`grid-custom`]),zn=new Set([`dots-grid-none`]),Bn=new Set([`grid-filled`]),Vn=e=>e===`circle-grid-filled`,Hn=new Set([`default`,`dots`,`dots-grid-none`,`circle-grid`,`circle-grid-no-lines`,`multiple`,`custom-label`,`grid-custom`,`grid-filled`,`circle-grid-filled`]),Un=[1,.8,.6,.4,.2],Wn=({data:e,variant:n=`default`,size:r=`md`,seriesLabels:s=[`Value`,`Value 2`],loading:c=!1,appearance:l=`default`,interactive:u=!0,className:d})=>{let f=l===`rich`,p=t.U(),m=i.default.useId().replace(/[^a-zA-Z0-9]/g,``),h=i.default.useRef(null),g=t.bt(h),_=g(`--color-chart-1`)??`#ff4700`,v=g(`--color-chart-2`)??`#5b92dd`,y=g(`--color-border-default`)??`#dbdad7`,b=g(`--color-fg-subtle`)??`#a8a29b`,x=n===`multiple`,S=n===`lines-only`,C=x||n===`custom-label`||S,w=!S,T=n===`dots`||n===`dots-grid-none`||n===`circle-grid`||n===`circle-grid-no-lines`,E=Bn.has(n),D=Rn.has(n),O=zn.has(n),k=Vn(n),[A,j]=i.default.useState(0);i.default.useEffect(()=>{if(c||!h.current)return;let e=h.current,t=new ResizeObserver(([e])=>j(e.contentRect.width));return t.observe(e),()=>t.disconnect()},[c]);let M=i.default.useMemo(()=>{let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0])),n=10**Math.floor(Math.log10(t))/2;return Math.ceil(t/n)*n},[e]),[N,P]=i.default.useState(null),F=e.length,ee=i.default.useMemo(()=>{if(!E)return e;let t=Math.max(1,...e.flatMap(e=>[e.value,e.value2??0]));return e.map(e=>{let n={};return Un.forEach((e,r)=>{n[`ring${r}`]=e*t}),{...e,...n}})},[e,E]),te=t=>{let{x:n,y:r,cx:i,cy:o,payload:s,textAnchor:c}=t,l=e.find(e=>e.label===s?.value)??e[s?.index];if(!l)return(0,a.jsx)(`g`,{});let u=n-i,d=r-o,f=l.value2===void 0?`${l.value}`:`${l.value}/${l.value2}`,p=Math.abs(d)>Math.abs(u),m,h;if(p&&d<0)h=r-4-6,m=h-16;else if(p)m=r+4+10,h=m+18;else{let e=r+d/(Math.sqrt(u*u+d*d)||1)*4;m=e-8,h=e+12}let g=p?n:n+u/Math.sqrt(u*u+d*d||1)*4;return(0,a.jsxs)(`g`,{children:[(0,a.jsx)(`text`,{x:g,y:m,textAnchor:c,fill:b,fontSize:15,fontWeight:600,fontFamily:`var(--font-sans)`,children:f}),(0,a.jsx)(`text`,{x:g,y:h,textAnchor:c,fill:b,fontSize:13,fontFamily:`var(--font-sans)`,children:l.label})]})},I=In[r];if(c)return(0,a.jsx)(t.gt,{kind:`radar`,height:I,className:d,label:`Loading radar chart`});let ne=(A>0?Math.min(A,I)/2-5:0)*.7,L=A/2,R=I/2,z=e=>{if(!f||!u||F<3||A===0)return;let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=n-L,a=r-R;if(Math.hypot(i,a)>ne*1.3){P(null);return}let o=(Math.atan2(i,-a)+Math.PI*2)%(Math.PI*2);P({index:Math.round(o/(Math.PI*2/F))%F,x:n,y:r})},re=(e,t)=>{let n=Math.PI*2*e/F-Math.PI/2,r=t/M*ne;return{x:L+r*Math.cos(n),y:R+r*Math.sin(n)}},B=N?e[N.index]:null,ie=[{name:s[0]??`Value`,color:v,key:`value`},...C?[{name:s[1]??`Value 2`,color:_,key:`value2`}]:[]],V=B&&C&&B.value2!==void 0?B.value2-B.value:void 0,ae=e=>`url(#${m}${e})`;return(0,a.jsxs)(`div`,{ref:h,className:[Fn.chart,f?`sk-chart-rich`:``,d??``].filter(Boolean).join(` `),style:{"--radar-1":v,"--radar-2":_},onMouseMove:z,onMouseLeave:()=>P(null),children:[k&&A>0&&(0,a.jsx)(`svg`,{className:Fn.circleFillSvg,width:A,height:I,children:Un.map(e=>(0,a.jsx)(`circle`,{cx:A/2,cy:I/2,r:ne*e,fill:v,fillOpacity:.1},e))}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:I,children:(0,a.jsxs)(o.RadarChart,{data:ee,outerRadius:`70%`,children:[!E&&!O&&(0,a.jsx)(o.PolarGrid,{gridType:Ln.has(n)?`circle`:`polygon`,radialLines:n!==`circle-grid-no-lines`&&!D,stroke:y}),(0,a.jsx)(o.PolarAngleAxis,{dataKey:`label`,axisLine:!1,tick:n===`custom-label`?te:{fill:b,fontSize:12,fontFamily:`var(--font-sans)`}}),(0,a.jsx)(o.PolarRadiusAxis,{tick:!1,axisLine:!1,domain:f?[0,M]:void 0,tickCount:D?2:void 0}),!f&&(0,a.jsx)(o.Tooltip,{content:(0,a.jsx)(t._t,{}),wrapperStyle:{zIndex:50}}),(0,a.jsxs)(`defs`,{children:[(0,a.jsxs)(`radialGradient`,{id:`${m}a`,cx:`50%`,cy:`50%`,r:`60%`,children:[(0,a.jsx)(`stop`,{offset:`0%`,stopColor:v,stopOpacity:.06}),(0,a.jsx)(`stop`,{offset:`100%`,stopColor:v,stopOpacity:D?.55:.42})]}),(0,a.jsxs)(`radialGradient`,{id:`${m}b`,cx:`50%`,cy:`50%`,r:`60%`,children:[(0,a.jsx)(`stop`,{offset:`0%`,stopColor:_,stopOpacity:.06}),(0,a.jsx)(`stop`,{offset:`100%`,stopColor:_,stopOpacity:.4})]})]}),x&&(0,a.jsx)(o.Legend,{wrapperStyle:{fontSize:12,fontFamily:`var(--font-sans)`}}),E&&Un.map((e,t)=>(0,a.jsx)(o.Radar,{dataKey:`ring${t}`,stroke:`none`,fill:v,fillOpacity:.1,isAnimationActive:!1,legendType:`none`},`ring${t}`)),(0,a.jsx)(o.Radar,{name:x?s[0]??`Value`:void 0,dataKey:`value`,className:f?Fn.shape1:void 0,stroke:f?v:Hn.has(n)?`none`:v,fill:w?f?ae(`a`):v:`none`,fillOpacity:f?1:w?D?1:C?.45:.5:0,strokeWidth:f?1.75:Hn.has(n)?0:2,dot:T?{r:4,fill:v,stroke:`none`}:!1,isAnimationActive:f&&!p,animationDuration:760,animationEasing:`ease-out`}),C&&(0,a.jsx)(o.Radar,{name:x?s[1]??`Value 2`:void 0,dataKey:`value2`,className:f?Fn.shape2:void 0,stroke:f||S?_:`none`,fill:S?`none`:f?ae(`b`):_,fillOpacity:S?0:f?1:.8,strokeWidth:f?1.75:S?2:0,dot:T?{r:4,fill:_,stroke:`none`}:!1,isAnimationActive:f&&!p,animationDuration:760,animationBegin:90,animationEasing:`ease-out`})]})}),N&&B&&A>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(`svg`,{className:Fn.overlay,width:A,height:I,"aria-hidden":`true`,children:[(0,a.jsx)(`defs`,{children:(0,a.jsxs)(`linearGradient`,{id:`${m}x`,gradientUnits:`userSpaceOnUse`,x1:L,y1:R,x2:re(N.index,M).x,y2:re(N.index,M).y,children:[(0,a.jsx)(`stop`,{offset:`0`,stopColor:b,stopOpacity:.05}),(0,a.jsx)(`stop`,{offset:`1`,stopColor:b,stopOpacity:.75})]})}),(0,a.jsx)(`line`,{className:Fn.crosshair,x1:L,y1:R,x2:re(N.index,M).x,y2:re(N.index,M).y,stroke:`url(#${m}x)`,strokeWidth:1.25}),ie.map(e=>{let t=B[e.key];if(t===void 0)return null;let n=re(N.index,t);return(0,a.jsxs)(`g`,{className:Fn.hit,style:{transformOrigin:`${n.x}px ${n.y}px`},children:[(0,a.jsx)(`circle`,{cx:n.x,cy:n.y,r:9,fill:e.color,fillOpacity:.18}),(0,a.jsx)(`circle`,{cx:n.x,cy:n.y,r:4.5,fill:e.color,stroke:g(`--color-bg-canvas`)??`#fff`,strokeWidth:2})]},e.key)})]}),(0,a.jsx)(t.vt,{title:B.label,rows:ie.flatMap((e,t)=>{let n=B[e.key];return n===void 0?[]:[{color:e.color,label:e.name,value:n,delta:t===1&&V!==void 0&&V!==0?`${V>0?`+`:`−`}${Math.abs(V)}`:void 0}]}),style:{position:`absolute`,zIndex:20,pointerEvents:`none`,left:N.x>A*.6?N.x-16:N.x+16,top:N.y-12,transform:N.x>A*.6?`translate(-100%, -100%)`:`translate(0, -100%)`}})]})]})},Gn={chart:`_chart_1jrfn_2`,gridSvg:`_gridSvg_1jrfn_19`,gaugeSvg:`_gaugeSvg_1jrfn_31`,center:`_center_1jrfn_36`,center__value:`_center__value_1jrfn_45`,center__caption:`_center__caption_1jrfn_46`,rich:`_rich_1jrfn_50`,ringIn:`_ringIn_1jrfn_1`,gaugeIn:`_gaugeIn_1jrfn_1`,centerIn:`_centerIn_1jrfn_1`},Kn={sm:180,md:220,lg:280,xl:340},qn=Math.PI/180,Jn=e=>Math.round(e*1e3)/1e3,Yn={multi:[`30%`,`100%`],grid:[`30%`,`100%`],"stacked-label":[`30%`,`100%`],text:[`76%`,`100%`]},Xn=({value:e,max:t,color:n,track:r,centerValue:i,centerCaption:o,labelColor:s,captionColor:c})=>{let l=Math.round(Math.min(e,t)/t*40);return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 120`,className:Gn.gaugeSvg,children:[Array.from({length:40}).map((e,t)=>{let i=180+t/39*180;return(0,a.jsx)(`line`,{x1:Jn(100+78*Math.cos(i*qn)),y1:Jn(100+78*Math.sin(i*qn)),x2:Jn(100+92*Math.cos(i*qn)),y2:Jn(100+92*Math.sin(i*qn)),stroke:t<l?n:r,strokeWidth:2.5,strokeLinecap:`round`},t)}),(i||o)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[i&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:i}),o&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:o})]})]})},Zn=({rings:e,spokes:t,color:n})=>(0,a.jsxs)(`svg`,{viewBox:`0 0 200 200`,className:Gn.gridSvg,children:[Array.from({length:e}).map((t,r)=>(0,a.jsx)(`circle`,{cx:100,cy:100,r:(r+1)/e*96,fill:`none`,stroke:n,strokeWidth:1},r)),Array.from({length:t}).map((e,r)=>{let i=r/t*360,o=99.5*1.1;return(0,a.jsx)(`line`,{x1:100,y1:100,x2:Jn(100+o*Math.cos(i*qn)),y2:Jn(100+o*Math.sin(i*qn)),stroke:n,strokeWidth:1},r)})]}),Qn=({data:e,palette:t,track:n,centerValue:r,centerCaption:i,labelColor:s,captionColor:c})=>{let l=e[0]?.max??e.reduce((e,t)=>e+t.value,0),u=210,d=e.map((e,n)=>{let r=l>0?e.value/l*240:0,i=u,a=u-r;return u=a,{segStart:i,segEnd:a,fill:t[n%t.length]}});return(0,a.jsxs)(`svg`,{viewBox:`0 0 200 160`,className:Gn.gaugeSvg,children:[d.map((e,t)=>(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:e.segStart,endAngle:e.segEnd,fill:e.fill,cornerRadius:4},t)),u>-29.5&&(0,a.jsx)(o.Sector,{cx:100,cy:100,innerRadius:64,outerRadius:88,startAngle:u,endAngle:-30,fill:n,cornerRadius:4}),(r||i)&&(0,a.jsxs)(`g`,{textAnchor:`middle`,fontFamily:`var(--font-sans)`,children:[r&&(0,a.jsx)(`text`,{x:100,y:92,fontSize:22,fontWeight:500,fill:s,children:r}),i&&(0,a.jsx)(`text`,{x:100,y:112,fontSize:12,fill:c,children:i})]})]})},$n=({data:e,variant:n=`multi`,size:r=`md`,centerValue:s,centerCaption:c,loading:l=!1,appearance:u=`default`,className:d})=>{let f=u===`rich`,p=t.ht(f&&!l),m=i.default.useRef(null),h=t.bt(m),g=[1,2,3,4,5].map(e=>h(`--color-chart-${e}`)??t.yt[e-1]),_=h(`--color-bg-subtle`)??`#f5f4f2`,v=h(`--color-border-subtle`)??`#e7e5e1`,y=h(`--color-fg-default`)??`#141414`,b=h(`--color-fg-muted`)??`#78716a`,x=Kn[r];if(l)return(0,a.jsx)(t.gt,{kind:`ring`,height:x,className:d,label:`Loading radial chart`});if(n===`gauge-tick`){let t=e[0];return(0,a.jsx)(`div`,{ref:m,className:[Gn.chart,f?`${Gn.rich} sk-chart-rich`:``,d??``].filter(Boolean).join(` `),"data-entering":p||void 0,style:{height:x},children:(0,a.jsx)(Xn,{value:t?.value??0,max:t?.max??100,color:g[0],track:_,centerValue:s,centerCaption:c,labelColor:y,captionColor:b})})}if(n===`shape`||n===`stacked`||n===`stacked-3-layers`)return(0,a.jsx)(`div`,{ref:m,className:[Gn.chart,f?`${Gn.rich} sk-chart-rich`:``,d??``].filter(Boolean).join(` `),"data-entering":p||void 0,style:{height:x},children:(0,a.jsx)(Qn,{data:e,palette:g,track:_,centerValue:s,centerCaption:c,labelColor:y,captionColor:b})});let[S,C]=Yn[n]??[`30%`,`100%`],w=(n===`stacked-label`||n===`text`)&&(s||c);return(0,a.jsxs)(`div`,{ref:m,className:[Gn.chart,f?`${Gn.rich} sk-chart-rich`:``,d??``].filter(Boolean).join(` `),"data-entering":p||void 0,style:{height:x},children:[n===`grid`&&(0,a.jsx)(Zn,{rings:8,spokes:12,color:v}),(0,a.jsx)(o.ResponsiveContainer,{width:`100%`,height:`100%`,children:(0,a.jsxs)(o.RadialBarChart,{data:e,innerRadius:S,outerRadius:C,startAngle:90,endAngle:-270,barCategoryGap:`12%`,children:[(0,a.jsx)(o.PolarAngleAxis,{type:`number`,domain:[0,e[0]?.max??100],tick:!1,axisLine:!1}),(0,a.jsx)(o.RadialBar,{dataKey:`value`,background:n!==`grid`&&{fill:_},cornerRadius:8,isAnimationActive:!1,children:e.map((e,t)=>(0,a.jsx)(o.Cell,{fill:g[t%g.length]},t))})]})}),w&&(0,a.jsxs)(`div`,{className:Gn.center,children:[s&&(0,a.jsx)(`span`,{className:Gn.center__value,children:s}),c&&(0,a.jsx)(`span`,{className:Gn.center__caption,children:c})]})]})},er={wrapper:`_wrapper_1g6lv_3`,"wrapper--disabled":`_wrapper--disabled_1g6lv_11`,input:`_input_1g6lv_13`,circle:`_circle_1g6lv_15`,dot:`_dot_1g6lv_33`,text:`_text_1g6lv_81`,text__label:`_text__label_1g6lv_82`,text__description:`_text__description_1g6lv_83`,"wrapper--withDescription":`_wrapper--withDescription_1g6lv_87`},tr=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,...s},c)=>{let l=i.default.useId(),u=r??l;return(0,a.jsxs)(`label`,{htmlFor:u,className:[er.wrapper,t?er[`wrapper--withDescription`]:``,n?er[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:c,id:u,type:`radio`,disabled:n,className:er.input,...s}),(0,a.jsx)(`span`,{className:er.circle,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:er.dot})}),(e||t)&&(0,a.jsxs)(`span`,{className:er.text,children:[e&&(0,a.jsx)(`span`,{className:er.text__label,children:e}),t&&(0,a.jsx)(`span`,{className:er.text__description,children:t})]})]})});tr.displayName=`Radio`;var nr={search:`_search_8tjlu_2`,search__icon:`_search__icon_8tjlu_25`,search__input:`_search__input_8tjlu_26`,search__placeholder:`_search__placeholder_8tjlu_38`,search__kbd:`_search__kbd_8tjlu_39`,collapsed:`_collapsed_8tjlu_53`},rr=({type:e=`field`,placeholder:r=`Search…`,collapsed:i,value:o,onChange:s,onClick:c})=>i?(0,a.jsx)(`button`,{type:`button`,className:nr.collapsed,onClick:c,"aria-label":`Search`,children:(0,a.jsx)(n.C,{size:18,strokeWidth:t.Kt(18)})}):e===`command`?(0,a.jsxs)(`button`,{type:`button`,className:nr.search,onClick:c,children:[(0,a.jsx)(n.C,{size:16,strokeWidth:t.Kt(16),className:nr.search__icon}),(0,a.jsx)(`span`,{className:nr.search__placeholder,children:r}),(0,a.jsx)(`kbd`,{className:nr.search__kbd,children:`⌘K`})]}):(0,a.jsxs)(`div`,{className:nr.search,children:[(0,a.jsx)(n.C,{size:16,strokeWidth:t.Kt(16),className:nr.search__icon}),(0,a.jsx)(`input`,{className:nr.search__input,placeholder:r,value:o,onChange:e=>s?.(e.target.value)})]}),ir={toaster:`_toaster_p33dc_7`,toast:`_toast_p33dc_7`,swipeOutLeft:`_swipeOutLeft_p33dc_1`,swipeOutRight:`_swipeOutRight_p33dc_1`,swipeOutUp:`_swipeOutUp_p33dc_1`,swipeOutDown:`_swipeOutDown_p33dc_1`,icon:`_icon_p33dc_160`,content:`_content_p33dc_173`,title:`_title_p33dc_180`,description:`_description_p33dc_181`,button:`_button_p33dc_183`,cancel:`_cancel_p33dc_202`,close:`_close_p33dc_204`,spinner:`_spinner_p33dc_229`,spinnerBar:`_spinnerBar_p33dc_234`,spinnerFade:`_spinnerFade_p33dc_1`},ar=0,or=[],sr=new Set;function cr(e){for(let t of sr)t(e)}var lr={subscribe(e){return sr.add(e),()=>{sr.delete(e)}},active:()=>or,remove(e){or=or.filter(t=>t.id!==e)}};function ur(e,t,n={}){let r=n.id??`sakani-toast-${++ar}`,i=or.find(e=>e.id===r),a={...i,...n,id:r,type:e,title:t,delete:!1,version:(i?.version??0)+1};return or=i?or.map(e=>e.id===r?a:e):[a,...or],cr({kind:`upsert`,toast:a}),r}function dr(e){return or=e===void 0?[]:or.filter(t=>t.id!==e),cr({kind:`dismiss`,id:e}),e}function fr(e,t){let{loading:n,success:r,error:i,finally:a,id:o,...s}=t,c=o??`sakani-toast-${++ar}`;return n!==void 0&&ur(`loading`,n,{...s,id:c}),(typeof e==`function`?e():e).then(e=>{if(r===void 0){n!==void 0&&dr(c);return}ur(`success`,typeof r==`function`?r(e):r,{...s,id:c})},e=>{if(i===void 0){n!==void 0&&dr(c);return}ur(`error`,typeof i==`function`?i(e):i,{...s,id:c})}).finally(()=>a?.()),c}var pr=Object.assign((e,t)=>ur(`default`,e,t),{message:(e,t)=>ur(`default`,e,t),success:(e,t)=>ur(`success`,e,t),info:(e,t)=>ur(`info`,e,t),warning:(e,t)=>ur(`warning`,e,t),error:(e,t)=>ur(`error`,e,t),loading:(e,t)=>ur(`loading`,e,t),promise:fr,dismiss:dr}),mr=356,hr=45,gr=200,_r=e=>typeof e==`number`?`${e}px`:e,vr=(...e)=>e.filter(Boolean).join(` `),yr={success:{viewBox:`0 0 20 20`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`},info:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`},warning:{viewBox:`0 0 24 24`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`},error:{viewBox:`0 0 20 20`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`}};function br({type:e}){if(e===`loading`)return(0,a.jsx)(`span`,{className:ir.spinner,"aria-hidden":`true`,children:Array.from({length:12},(e,t)=>(0,a.jsx)(`span`,{className:ir.spinnerBar,style:{transform:`rotate(${t*30||1e-4}deg) translate(146%)`,animationDelay:`${-1.2+t*.1}s`}},t))});let t=yr[e];return t?(0,a.jsx)(`svg`,{viewBox:t.viewBox,width:16,height:16,fill:`currentColor`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:t.d})}):null}var xr=()=>(0,a.jsx)(`svg`,{viewBox:`0 0 12 12`,width:12,height:12,fill:`none`,stroke:`currentColor`,strokeWidth:1.5,strokeLinecap:`round`,"aria-hidden":`true`,children:(0,a.jsx)(`path`,{d:`M9 3L3 9M3 3l6 6`})});function Sr({toast:e,index:t,count:n,expanded:r,expandByDefault:o,paused:s,heights:c,setHeights:l,removeToast:u,gap:d,visibleToasts:f,yPosition:p,xPosition:m,closeButton:h,richColors:g,duration:_}){let[v,y]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),[w,T]=(0,i.useState)(!1),[E,D]=(0,i.useState)(!1),[O,k]=(0,i.useState)(null),[A,j]=(0,i.useState)(0),[M,N]=(0,i.useState)(0),P=(0,i.useRef)(null),F=(0,i.useRef)(null),ee=(0,i.useRef)(null),te=(0,i.useRef)(0),I=(0,i.useRef)(0),ne=t===0,L=t+1<=f,R=e.dismissible!==!1,z=e.duration??_,re=e.richColors??g,B=(e.closeButton??h)&&e.type!==`loading`,ie=c.findIndex(t=>t.id===e.id),V=(0,i.useMemo)(()=>{let e=c.reduce((e,t,n)=>n>=ie?e:e+t.height,0);return Math.max(0,ie)*d+e},[c,ie,d]),ae=(0,i.useRef)(V);ae.current=V,(0,i.useLayoutEffect)(()=>{let t=P.current;if(!t)return;let n=t.style.height;t.style.height=`auto`;let r=t.offsetHeight;t.style.height=n,N(r),l(t=>t.some(t=>t.id===e.id)?t.map(t=>t.id===e.id?{...t,height:r}:t):[{id:e.id,height:r},...t])},[e.id,e.version,l]),(0,i.useEffect)(()=>{y(!0)},[]);let H=(0,i.useCallback)(()=>{x(!0),j(ae.current),l(t=>t.filter(t=>t.id!==e.id)),window.setTimeout(()=>u(e),gr)},[e,u,l]);(0,i.useEffect)(()=>{e.delete&&!b&&(e.onDismiss?.(e),H())},[e,b,H]),(0,i.useEffect)(()=>{I.current=z},[e.version,z]),(0,i.useEffect)(()=>{if(b||s||e.type===`loading`||z===1/0)return;let t=Date.now(),n=window.setTimeout(()=>{e.onAutoClose?.(e),H()},I.current);return()=>{window.clearTimeout(n),I.current-=Date.now()-t}},[b,s,e,z,H]);let oe=()=>{!R||b||(e.onDismiss?.(e),H())},U=(0,i.useMemo)(()=>{let e=[p];return m!==`center`&&e.push(m),e},[p,m]),se=(e,t)=>{P.current?.style.setProperty(`--swipe-amount-x`,`${e}px`),P.current?.style.setProperty(`--swipe-amount-y`,`${t}px`)},ce=e=>{if(!(e.button===2||!R||b)&&!e.target.closest(`button`)){te.current=Date.now(),j(ae.current);try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}C(!0),F.current={x:e.clientX,y:e.clientY},ee.current=null}},le=e=>{if(!F.current||!R||(window.getSelection()?.toString().length??0)>0)return;let t=e.clientY-F.current.y,n=e.clientX-F.current.x;!ee.current&&(Math.abs(n)>1||Math.abs(t)>1)&&(ee.current=Math.abs(n)>Math.abs(t)?`x`:`y`);let r=e=>e/(1.5+Math.abs(e)/20),i=0,a=0;ee.current===`y`?a=U.includes(`top`)&&t<0||U.includes(`bottom`)&&t>0?t:r(t):ee.current===`x`&&(i=U.includes(`left`)&&n<0||U.includes(`right`)&&n>0?n:r(n)),(i!==0||a!==0)&&T(!0),se(i,a)},ue=()=>{if(E||!R||!F.current)return;F.current=null;let t=P.current?.style,n=parseFloat(t?.getPropertyValue(`--swipe-amount-x`)||`0`)||0,r=parseFloat(t?.getPropertyValue(`--swipe-amount-y`)||`0`)||0,i=ee.current===`x`?n:r,a=Math.abs(i)/Math.max(1,Date.now()-te.current);if((ee.current===`x`?i<0&&U.includes(`left`)||i>0&&U.includes(`right`):i<0&&U.includes(`top`)||i>0&&U.includes(`bottom`))&&(Math.abs(i)>=hr||a>.11)){j(ae.current),e.onDismiss?.(e),k(ee.current===`x`?n>0?`right`:`left`:r>0?`down`:`up`),H(),D(!0);return}se(0,0),T(!1),C(!1),ee.current=null},de=r||o&&v,fe=e.icon===null?null:e.icon??(0,a.jsx)(br,{type:e.type}),pe=fe!==null&&(e.icon!==void 0||e.type!=="default");return(0,a.jsxs)(`li`,{ref:P,tabIndex:0,role:`status`,"aria-live":e.important||e.type===`error`?`assertive`:`polite`,"aria-atomic":`true`,className:vr(ir.toast,e.className),"data-mounted":v,"data-removed":b,"data-visible":L,"data-front":ne,"data-expanded":de,"data-y-position":p,"data-x-position":m,"data-type":e.type,"data-rich-colors":re,"data-dismissible":R,"data-swiping":S,"data-swiped":w,"data-swipe-out":E,"data-swipe-direction":O??void 0,style:{"--index":t,"--toasts-before":t,"--z-index":n-t,"--offset":`${b?A:V}px`,"--initial-height":o?`auto`:`${M}px`},onPointerDown:ce,onPointerMove:le,onPointerUp:ue,onPointerCancel:ue,onKeyDown:e=>{(e.key===`Delete`||e.key===`Backspace`)&&oe()},children:[B&&(0,a.jsx)(`button`,{type:`button`,className:ir.close,"aria-label":`Close notification`,disabled:!R,onClick:oe,children:(0,a.jsx)(xr,{})}),pe&&(0,a.jsx)(`div`,{className:ir.icon,children:fe}),(0,a.jsxs)(`div`,{className:ir.content,children:[(0,a.jsx)(`div`,{className:ir.title,children:e.title}),e.description&&(0,a.jsx)(`div`,{className:ir.description,children:e.description})]}),e.cancel&&(0,a.jsx)(`button`,{type:`button`,className:vr(ir.button,ir.cancel),onClick:t=>{e.cancel?.onClick?.(t),R&&oe()},children:e.cancel.label}),e.action&&(0,a.jsx)(`button`,{type:`button`,className:ir.button,onClick:t=>{e.action?.onClick(t),t.defaultPrevented||H()},children:e.action.label})]})}var Cr=({position:e=`bottom-right`,richColors:t=!1,closeButton:n=!1,expand:r=!1,visibleToasts:o=3,duration:s=4e3,gap:c=14,offset:l=24,mobileOffset:u=16,hotkey:d=[`altKey`,`KeyT`],containerAriaLabel:f=`Notifications`,className:p,style:m})=>{let[h,g]=(0,i.useState)(()=>lr.active()),[_,v]=(0,i.useState)([]),[y,b]=(0,i.useState)(!1),[x,S]=(0,i.useState)(!1),[C,w]=(0,i.useState)(!1),T=(0,i.useRef)(null),[E,D]=e.split(`-`);(0,i.useEffect)(()=>lr.subscribe(e=>{e.kind===`upsert`?g(t=>t.some(t=>t.id===e.toast.id)?t.map(t=>t.id===e.toast.id?e.toast:t):[e.toast,...t]):g(t=>t.map(t=>e.id===void 0||t.id===e.id?{...t,delete:!0}:t))}),[]);let O=(0,i.useCallback)(e=>{lr.remove(e.id),g(t=>t.filter(t=>t.id!==e.id))},[]);return(0,i.useEffect)(()=>{h.length<=1&&b(!1)},[h.length]),(0,i.useEffect)(()=>{let e=()=>w(document.hidden);return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),(0,i.useEffect)(()=>{let e=e=>{d.length>0&&d.every(t=>e[t]===!0||e.code===t)&&(b(!0),T.current?.focus()),e.key===`Escape`&&T.current&&(document.activeElement===T.current||T.current.contains(document.activeElement))&&(b(!1),document.activeElement?.blur())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[d]),(0,a.jsx)(`section`,{"aria-label":`${f} ${d.join(`+`).replace(/Key/g,``).replace(/Digit/g,``)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,children:h.length>0&&(0,a.jsx)(`ol`,{ref:T,tabIndex:-1,className:vr(ir.toaster,p),"data-y-position":E,"data-x-position":D,style:{"--front-toast-height":`${_[0]?.height??0}px`,"--width":`${mr}px`,"--gap":`${c}px`,"--offset-top":_r(l),"--offset-right":_r(l),"--offset-bottom":_r(l),"--offset-left":_r(l),"--mobile-offset-top":_r(u),"--mobile-offset-right":_r(u),"--mobile-offset-bottom":_r(u),"--mobile-offset-left":_r(u),...m},onMouseEnter:()=>b(!0),onMouseMove:()=>b(!0),onMouseLeave:()=>{x||b(!1)},onFocus:()=>b(!0),onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||b(!1)},onPointerDown:e=>{e.target.dataset?.dismissible!==`false`&&S(!0)},onPointerUp:()=>S(!1),children:h.map((e,i)=>(0,a.jsx)(Sr,{toast:e,index:i,count:h.length,expanded:y,expandByDefault:r,paused:y||x||C,heights:_,setHeights:v,removeToast:O,gap:c,visibleToasts:o,yPosition:E,xPosition:D,closeButton:n,richColors:t,duration:s},e.id))})})},$={stepper:`_stepper_ugk8y_3`,"stepper--horizontal":`_stepper--horizontal_ugk8y_4`,"stepper--vertical":`_stepper--vertical_ugk8y_5`,step:`_step_ugk8y_3`,"step--horizontal":`_step--horizontal_ugk8y_8`,"step--vertical":`_step--vertical_ugk8y_9`,circle:`_circle_ugk8y_12`,circle__num:`_circle__num_ugk8y_24`,"stepper--animated":`_stepper--animated_ugk8y_28`,"circle--completed":`_circle--completed_ugk8y_32`,"stepper-check":`_stepper-check_ugk8y_1`,"circle--current":`_circle--current_ugk8y_39`,"stepper-arrive":`_stepper-arrive_ugk8y_1`,"circle--upcoming":`_circle--upcoming_ugk8y_57`,step__text:`_step__text_ugk8y_64`,step__label:`_step__label_ugk8y_65`,"step__label--current":`_step__label--current_ugk8y_66`,"step__label--upcoming":`_step__label--upcoming_ugk8y_67`,step__desc:`_step__desc_ugk8y_68`,connector:`_connector_ugk8y_71`,connector__fill:`_connector__fill_ugk8y_75`,"connector--vertical":`_connector--vertical_ugk8y_82`,"connector--filled":`_connector--filled_ugk8y_86`,"connector--horizontal":`_connector--horizontal_ugk8y_88`},wr=({index:e,state:r,label:i,description:o,orientation:s=`horizontal`,delay:c=0,fresh:l})=>(0,a.jsxs)(`div`,{className:[$.step,$[`step--${s}`]].join(` `),style:{"--delay":`${c}ms`},children:[(0,a.jsx)(`span`,{className:[$.circle,$[`circle--${r}`]].join(` `),"data-fresh":l||void 0,"aria-hidden":`true`,children:r===`completed`?(0,a.jsx)(n.R,{size:14,strokeWidth:t.Kt(14)}):(0,a.jsx)(`span`,{className:$.circle__num,children:e+1})}),(0,a.jsxs)(`span`,{className:$.step__text,children:[(0,a.jsx)(`span`,{className:[$.step__label,r===`current`?$[`step__label--current`]:``,r===`upcoming`?$[`step__label--upcoming`]:``].filter(Boolean).join(` `),children:i}),o&&(0,a.jsx)(`span`,{className:$.step__desc,children:o})]})]}),Tr=457,Er=({steps:e,current:t,orientation:n=`horizontal`,className:r})=>{let o=e=>e<t?`completed`:e===t?`current`:`upcoming`,s=(0,i.useRef)(t),[c,l]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(!0)},[]),(0,i.useEffect)(()=>{s.current=t},[t]);let u=s.current,d=(e,t)=>e<t?`completed`:e===t?`current`:`upcoming`,f=e=>c&&u!==t&&d(e,u)!==d(e,t),p=t>=u,m=Math.max(1,Math.abs(t-u)),h=Math.min(Tr,Math.floor(1430/m)),g=e=>p?e>=u&&e<=t?(e-u)*h:0:e>=t&&e<=u?(u-e)*h:0,_=e=>p?e>=u&&e<t?(e-u)*h:0:e>=t&&e<u?(u-1-e)*h+57:0;return(0,a.jsx)(`div`,{className:[$.stepper,$[`stepper--${n}`],c?$[`stepper--animated`]:``,r??``].filter(Boolean).join(` `),style:{"--fill-ms":`${h}ms`},children:e.map((r,s)=>(0,a.jsxs)(i.default.Fragment,{children:[(0,a.jsx)(wr,{index:s,state:o(s),label:r.label,description:r.description,orientation:n,delay:g(s),fresh:f(s)}),s<e.length-1&&(0,a.jsx)(`span`,{className:[$.connector,$[`connector--${n}`],s<t?$[`connector--filled`]:``].filter(Boolean).join(` `),style:{"--delay":`${_(s)}ms`},"aria-hidden":`true`,children:(0,a.jsx)(`span`,{className:$.connector__fill})})]},s))})},Dr={wrapper:`_wrapper_1d89w_3`,"wrapper--disabled":`_wrapper--disabled_1d89w_11`,input:`_input_1d89w_13`,track:`_track_1d89w_15`,thumb:`_thumb_1d89w_28`,"wrapper--stretch":`_wrapper--stretch_1d89w_50`,label:`_label_1d89w_60`,"wrapper--withDescription":`_wrapper--withDescription_1d89w_65`,text:`_text_1d89w_66`,description:`_description_1d89w_68`},Or=16,kr=2,Ar=18,jr=360,Mr=16,Nr=e=>1-(1-e)**3,Pr=.16,Fr=i.default.forwardRef(({label:e,description:t,disabled:n,id:r,className:o,onChange:s,variant:c=`default`,...l},u)=>{let d=i.default.useId(),f=r??d,p=i.default.useRef(null);return(0,a.jsxs)(`label`,{htmlFor:f,className:[Dr.wrapper,c===`stretch`?Dr[`wrapper--stretch`]:``,t?Dr[`wrapper--withDescription`]:``,n?Dr[`wrapper--disabled`]:``,o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`input`,{ref:u,id:f,type:`checkbox`,role:`switch`,disabled:n,className:Dr.input,onChange:e=>{s?.(e);let t=p.current;if(c!==`stretch`||!t||typeof t.animate!=`function`||window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches)return;let n=e.target.checked,r=getComputedStyle(t),i=parseFloat(r.translate)||0,a=parseFloat(r.width)||Or,o=(n?kr:Ar)+i,l=o+a,u=n?Ar:kr,d=u+Or;t.getAnimations().forEach(e=>e.cancel());let f=[];for(let e=0;e<=Mr;e++){let t=e/Mr,r=Nr(t),i=Nr(Math.min(1,Math.max(0,(t-Pr)/(1-Pr)))),a=o+(u-o)*(n?i:r),s=l+(d-l)*(n?r:i);f.push({width:`${s-a}px`,translate:`${a-u}px 0`,offset:t})}t.animate(f,{duration:jr,easing:`linear`})},...l}),(0,a.jsx)(`span`,{className:Dr.track,"aria-hidden":`true`,children:(0,a.jsx)(`span`,{ref:p,className:Dr.thumb})}),t?(0,a.jsxs)(`span`,{className:Dr.text,children:[e&&(0,a.jsx)(`span`,{className:Dr.label,children:e}),(0,a.jsx)(`span`,{className:Dr.description,children:t})]}):e&&(0,a.jsx)(`span`,{className:Dr.label,children:e})]})});Fr.displayName=`Switch`;var Ir={field:`_field_nxdtj_6`,field__label:`_field__label_nxdtj_8`,field__description:`_field__description_nxdtj_10`,field__error:`_field__error_nxdtj_11`,textarea:`_textarea_nxdtj_13`,"textarea--error":`_textarea--error_nxdtj_37`,"textarea--disabled":`_textarea--disabled_nxdtj_52`,ai:`_ai_nxdtj_62`,"ai--error":`_ai--error_nxdtj_77`,"ai--disabled":`_ai--disabled_nxdtj_78`,ai__control:`_ai__control_nxdtj_80`,ai__actions:`_ai__actions_nxdtj_99`,ai__side:`_ai__side_nxdtj_100`},Lr=24,Rr=i.default.forwardRef(({label:e,description:n,error:r,disabled:o,id:s,className:c,rows:l,variant:u=`default`,glow:d=`once`,leading:f,trailing:p,maxRows:m=8,onInput:h,...g},_)=>{let v=i.default.useId(),y=s??v,b=!!r,x=n||r?`${y}-desc`:void 0,S=u===`ai`,C=i.default.useRef(null),w=e=>{C.current=e,typeof _==`function`?_(e):_&&(_.current=e)},T=i.default.useCallback(()=>{let e=C.current;!e||!S||(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,m*Lr)}px`)},[S,m]);i.default.useLayoutEffect(()=>{T()},[T,g.value]);let E=(0,a.jsx)(`textarea`,{ref:w,id:y,rows:S?l??1:l??3,disabled:o,"aria-invalid":b||void 0,"aria-describedby":x,onInput:e=>{T(),h?.(e)},className:[S?Ir.ai__control:Ir.textarea,b&&!S?Ir[`textarea--error`]:``,o&&!S?Ir[`textarea--disabled`]:``].filter(Boolean).join(` `),...g});return(0,a.jsxs)(`div`,{className:[Ir.field,c??``].filter(Boolean).join(` `),children:[e&&(0,a.jsx)(`label`,{htmlFor:y,className:Ir.field__label,children:e}),S?(0,a.jsxs)(`div`,{className:[Ir.ai,b?Ir[`ai--error`]:``,o?Ir[`ai--disabled`]:``].filter(Boolean).join(` `),children:[(0,a.jsx)(t.A,{mode:o?`off`:d}),!b&&!o&&(0,a.jsx)(t.k,{}),E,(f||p)&&(0,a.jsxs)(`div`,{className:Ir.ai__actions,children:[(0,a.jsx)(`span`,{className:Ir.ai__side,children:f}),(0,a.jsx)(`span`,{className:Ir.ai__side,children:p})]})]}):E,(n||r)&&(0,a.jsx)(`span`,{id:x,className:b?Ir.field__error:Ir.field__description,children:r||n})]})});Rr.displayName=`Textarea`;var zr={toast:`_toast_1przo_3`,toast__icon:`_toast__icon_1przo_17`,"toast--success":`_toast--success_1przo_18`,"toast--error":`_toast--error_1przo_19`,"toast--info":`_toast--info_1przo_20`,toast__content:`_toast__content_1przo_22`,toast__title:`_toast__title_1przo_23`,toast__description:`_toast__description_1przo_24`,toast__dismiss:`_toast__dismiss_1przo_26`},Br={success:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,a.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),error:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,a.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),info:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,a.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12`,y2:`12`}),(0,a.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12.01`,y2:`8`})]})},Vr=({status:e=`info`,title:n,description:r,onDismiss:i,className:o})=>(0,a.jsxs)(`div`,{role:e===`error`?`alert`:`status`,"aria-live":e===`error`?`assertive`:`polite`,className:[zr.toast,zr[`toast--${e}`],o??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`span`,{className:zr.toast__icon,"aria-hidden":`true`,children:(0,a.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Kt(18),strokeLinecap:`round`,strokeLinejoin:`round`,width:18,height:18,children:Br[e]})}),(0,a.jsxs)(`div`,{className:zr.toast__content,children:[n&&(0,a.jsx)(`div`,{className:zr.toast__title,children:n}),r&&(0,a.jsx)(`div`,{className:zr.toast__description,children:r})]}),i&&(0,a.jsx)(`button`,{type:`button`,className:zr.toast__dismiss,onClick:i,"aria-label":`Dismiss`,children:(0,a.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:t.Kt(16),strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,children:[(0,a.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,a.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]}),Hr={bar:`_bar_1jy3b_2`,bar__icon:`_bar__icon_1jy3b_10`,bar__title:`_bar__title_1jy3b_19`,"bar__title--center":`_bar__title--center_1jy3b_23`,bar__search:`_bar__search_1jy3b_24`},Ur=({type:e=`title`,title:r,trailing:i,search:o,onMenu:s,onAction:c,onClose:l,className:u})=>(0,a.jsxs)(`header`,{className:[Hr.bar,u??``].filter(Boolean).join(` `),children:[(0,a.jsx)(`button`,{type:`button`,className:Hr.bar__icon,onClick:s,"aria-label":`Open menu`,children:(0,a.jsx)(n.D,{size:18,strokeWidth:t.Kt(18)})}),e===`search`?(0,a.jsx)(`div`,{className:Hr.bar__search,children:o}):(0,a.jsx)(`span`,{className:[Hr.bar__title,e===`title-centered`?Hr[`bar__title--center`]:``].join(` `),children:r}),e===`title-action`&&(0,a.jsx)(`button`,{type:`button`,className:Hr.bar__icon,onClick:c,"aria-label":`Add`,children:(0,a.jsx)(n.N,{size:18,strokeWidth:t.Kt(18)})}),e===`search`&&(0,a.jsx)(`button`,{type:`button`,className:Hr.bar__icon,onClick:l,"aria-label":`Close search`,children:(0,a.jsx)(n.W,{size:18,strokeWidth:t.Kt(18)})}),(e===`title`||e===`title-centered`)&&i]});exports.Accordion=t.Wt,exports.AccordionItem=t.Gt,exports.ActivityFeed=t.Rt,exports.ActivityFeedHighlight=t.zt,exports.AiMessage=t.Vt,exports.Alert=t.W,exports.Announcement=l,exports.AreaChart=Me,exports.AttachmentChip=R,exports.Avatar=t.Bt,exports.AvatarGroup=t.X,exports.AvatarUpload=t.Ft,exports.Badge=t.pt,exports.Balance=t.Nt,exports.BarChart=t.mt,exports.BlogBlockquote=re,exports.BlogFeatureText=ie,exports.BlogImage=ae,exports.BlogListingCard=t.$,exports.BlogListingFeaturedCard=t.Q,exports.BoardCard=t.H,exports.BoardColumn=Pe,exports.Breadcrumb=t.z,exports.Button=t.It,exports.Calendar=ze,exports.Card=Be,exports.CardMetaItem=t.R,exports.CartItem=t.dt,exports.ChainOfThought=$e,exports.ChainOfThoughtStep=Qe,exports.ChatComposer=t.I,exports.ChatOrb=t.Ut,exports.Checkbox=t.F,exports.CheckoutSteps=t.lt,exports.CodeSnippet=m,exports.ColorSwatch=t.st,exports.Combobox=yt,exports.CommandMenu=vt,exports.CommandMenuAnswer=_t,exports.CommandMenuTrigger=ht,exports.ConversationItem=t.P,exports.DEFAULT_CHECKOUT_STEPS=t.ut,exports.Divider=t.Tt,exports.DonutChart=t.N,exports.EmptyState=t.M,exports.Expenses=_,exports.FacebookIcon=Oe,exports.FeaturedIcon=t.Z,exports.FileUpload=xt,exports.FilterChip=t.j,exports.FirstPageHeading=oe,exports.FunnelChart=It,exports.GithubIcon=be,exports.HeatmapChart=Bt,exports.HoverGroup=t.B,exports.IconButton=t.Ht,exports.InlineHint=b,exports.Input=t.O,exports.InstagramIcon=De,exports.JobListing=t.J,exports.Kbd=ot,exports.Label=Ht,exports.LineChart=t.D,exports.Link=t.Lt,exports.LinkedinIcon=ke,exports.LiquidBackdrop=t.Et,exports.LiquidGlass=t.Dt,exports.List=se,exports.ListItem=Wt,exports.LocationDot=t.Y,exports.Map=_n,exports.MapClusterLayer=wn,exports.MapControlButton=Gt,exports.MapControls=Kt,exports.MapGlobe=Cn,exports.MapMarker=fn,exports.MapPopup=vn,exports.Marquee=ue,exports.Menu=t.T,exports.MenuDivider=t.E,exports.MenuItem=t.w,exports.MessageBubble=t.C,exports.Metric=fe,exports.MobileNavigationMenu=me,exports.Modal=t.wt,exports.NotificationItem=t.Ct,exports.Pagination=t.S,exports.PieChart=Mn,exports.PlaceholderLogo=_e,exports.Popover=Pn,exports.PriceDisplay=t.ot,exports.ProductCard=t.it,exports.ProductGallery=t.rt,exports.ProfileCard=ve,exports.Progress=t.Mt,exports.ProgressItem=S,exports.ProgressStat=t.St,exports.PromptComposer=t.x,exports.QuantitySelector=t.ft,exports.RadarChart=Wn,exports.RadialChart=$n,exports.Radio=tr,exports.ReasoningTrace=t.b,exports.RichSeparator=w,exports.RichTextHeading=Se,exports.RichTextParagraph=we,exports.SectionHeading=t.K,exports.SegmentedControl=t.y,exports.Select=t.v,exports.Sidebar=t._,exports.SidebarDivider=t.g,exports.SidebarFooter=t.h,exports.SidebarGroupLabel=t.m,exports.SidebarHeader=t.p,exports.SidebarItem=t.f,exports.SidebarPromo=t.d,exports.SidebarSearch=rr,exports.SidebarSubItem=t.u,exports.SizeSelector=t.nt,exports.Skeleton=t.L,exports.Slider=t.l,exports.SourceLogo=tt,exports.SourceStack=Je,exports.SpendingBalance=t.xt,exports.Spinner=ct,exports.StarRating=t.tt,exports.StatCard=t.c,exports.Stepper=Er,exports.StepperStep=wr,exports.StockMarket=D,exports.StockStatus=t.et,exports.SubFeature=Ee,exports.SuggestionChip=t.s,exports.Switch=Fr,exports.Table=t.o,exports.Tabs=t.a,exports.Tags=A,exports.TeamCard=t.G,exports.Textarea=Rr,exports.ThinkingLoader=t.i,exports.Ticker=P,exports.Toast=Vr,exports.Toaster=Cr,exports.ToolCall=t.r,exports.Tooltip=t.n,exports.TopBar=t.t,exports.TopBarMobile=Ur,exports.Transactions=te,exports.WishlistButton=t.at,exports.WorkingIndicator=qe,exports.XIcon=ye,exports.getContrastColor=t.ct,exports.iconStrokeWidth=t.Kt,exports.sourceLogo=it,exports.sourceLogoNames=nt,exports.syncLiquidBackdrop=t.Ot,exports.toast=pr,exports.useHoverHighlight=t.V,exports.useLiquidGlass=t.kt,exports.useMapContext=cn;