@indigoai/indigo-design-system 0.10.50 → 0.10.51
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.
|
@@ -68,7 +68,7 @@ Check the top-level render call using <`+Re+">.")}return Ae}}function hn(fe,Ae){
|
|
|
68
68
|
Copyright (c) 2018 Jed Watson.
|
|
69
69
|
Licensed under the MIT License (MIT), see
|
|
70
70
|
http://jedwatson.github.io/classnames
|
|
71
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(tq);var aSe=tq.exports;const bu=du(aSe),nq=({selected:e,color:t,children:n,onSelect:r,onEdit:i,onDelete:o})=>y.jsxs("div",{className:bu(y3["atom-item-tag-dropdown"],e&&y3.selected),onClick:r,children:[y.jsx(U9,{color:t}),y.jsx(et,{size:"sm",color:"gray-1000",className:y3.label,children:n}),y.jsxs("div",{className:y3["actions-container"],children:[y.jsx(vr,{variant:"ghost",color:"sand",size:"sm",onClick:i,children:y.jsx(jk,{})}),y.jsx(vr,{variant:"ghost",color:"sand",size:"sm",onClick:o,children:y.jsx(jwe,{})})]})]});nq.displayName="AtomItemTagDropdown";const c1={"tag-dropdown--content-container":"_tag-dropdown--content-container_1m1do_1","tag-dropdown--add-cta-container":"_tag-dropdown--add-cta-container_1m1do_8","tag-dropdown--add-cta-label":"_tag-dropdown--add-cta-label_1m1do_12","tag-dropdown--header-container":"_tag-dropdown--header-container_1m1do_25","tag-dropdown--options-container":"_tag-dropdown--options-container_1m1do_33","tag-dropdown--edit-options-container":"_tag-dropdown--edit-options-container_1m1do_39"},Pd={"atom-trigger-tag-dropdown--trigger":"_atom-trigger-tag-dropdown--trigger_1lgcl_1","atom-trigger-tag-dropdown--tooltip":"_atom-trigger-tag-dropdown--tooltip_1lgcl_9","atom-trigger-tag-dropdown--tooltip-item":"_atom-trigger-tag-dropdown--tooltip-item_1lgcl_17","atom-trigger-tag-dropdown--select":"_atom-trigger-tag-dropdown--select_1lgcl_25","atom-trigger-tag-dropdown--select-placeholder-container":"_atom-trigger-tag-dropdown--select-placeholder-container_1lgcl_46","atom-trigger-tag-dropdown--select-trigger-icon":"_atom-trigger-tag-dropdown--select-trigger-icon_1lgcl_54","atom-trigger-tag-dropdown--select-lg":"_atom-trigger-tag-dropdown--select-lg_1lgcl_63","atom-trigger-tag-dropdown--select-md":"_atom-trigger-tag-dropdown--select-md_1lgcl_67","atom-trigger-tag-dropdown--select-sm":"_atom-trigger-tag-dropdown--select-sm_1lgcl_71","atom-trigger-tag-dropdown--select-disabled":"_atom-trigger-tag-dropdown--select-disabled_1lgcl_75"},rq=({selectedTags:e,size:t,type:n,style:r,disabled:i=!1})=>{const o=()=>{var a;return y.jsxs("div",{className:Pd["atom-trigger-tag-dropdown--trigger"],children:[y.jsx("div",{style:{display:"flex",alignItems:"center",flexDirection:"row"},children:e.map((s,l)=>y.jsx(UU,{fontSize:10,color:s.color,style:{marginLeft:l>0?"-4px":"0"}},`selected_tag_${l}`))}),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:((a=e==null?void 0:e[e.length-1])==null?void 0:a.label)??"Select Tag"})]})};return n==="icon"?y.jsx(t1,{asChild:!0,disabled:i,children:y.jsx(ds,{variant:"text",color:"sand",label:y.jsxs(Id,{children:[y.jsx(vu,{children:y.jsx(o,{})}),e&&e.length>0&&y.jsx(gu,{className:Pd["tooltip-description"],isDark:!0,description:y.jsx("div",{className:Pd["atom-trigger-tag-dropdown--tooltip"],children:e.map((a,s)=>y.jsxs("div",{className:Pd["atom-trigger-tag-dropdown--tooltip-item"],children:[y.jsx(UU,{fontSize:10,color:a.color,style:{left:"2px"}}),y.jsx(et,{color:"white",size:"xs",children:y.jsx("span",{style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:a.label})})]},`selected_tag_${s}`))})})]}),closeIcon:!1,style:{userSelect:"none",cursor:"pointer"}})}):n==="select"?y.jsx(t1,{asChild:!0,disabled:i,children:y.jsxs("button",{className:vt(Pd["atom-trigger-tag-dropdown--select"],Pd[`atom-trigger-tag-dropdown--select-${t}`],i&&Pd["atom-trigger-tag-dropdown--select-disabled"]),style:r,children:[y.jsx("div",{className:Pd["atom-trigger-tag-dropdown--select-placeholder-container"],children:y.jsx(o,{})}),y.jsx("span",{className:Pd["atom-trigger-tag-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}):y.jsx(y.Fragment,{})};rq.displayName="AtomTriggerTagDropdown";const sSe=["#868686","#D04141","#F2B500","#5DBA6C","#64C8F7","#ED9987","#1C3C9E"],lSe=({label:e,align:t="start",tagsList:n,tagsSelected:r,onSelect:i,onCreate:o,onEdit:a,onDelete:s,onBlur:l=()=>{},useInternalState:c=!1,triggerType:u="icon",triggerSize:d="md",disabled:f=!1,triggerStyle:p})=>{const[h,m]=O.useState(r),[v,g]=O.useState(""),[b,x]=O.useState(void 0),[w,k]=O.useState(void 0),[E,j]=O.useState(Ua.SEARCH),T=c?h:r,C=n.filter(Y=>T.includes(Y.value)),D=O.useRef(null),R=O.useMemo(()=>!v||v===""?n:n.filter(Y=>Y.label.toLowerCase().includes(v.toLowerCase())),[n,v]);O.useEffect(()=>{E!==Ua.EDIT&&(v!==""&&!R.map(Y=>Y.label.toLowerCase()).includes(v.toLowerCase())?j(Ua.CREATE):E===Ua.CREATE&&j(Ua.SEARCH))},[v,R]);const M=Y=>{if(c)if(h.includes(Y.value)){const q=h.filter(V=>V!==Y.value);m(q),i(q)}else{const q=[...h,Y.value];m(q),i(q)}else r.includes(Y.value)?i(r.filter(q=>q!==Y.value)):i([...r,Y.value])},L=(Y,q)=>{Y.stopPropagation(),q&&(x(q),k(q.color),j(Ua.EDIT),g(q.label),D.current&&D.current.focus())},B=()=>{o({label:v,color:w??"#868686",value:v}),G(),D.current&&D.current.focus()},W=(Y,q)=>{Y.stopPropagation(),s(q)},ee=()=>{if(!b||n.findIndex(V=>V.value===b.value)===-1)return;const q={...b,label:v,color:w??"#868686"};a(q),G()},G=()=>{j(Ua.SEARCH),g(""),x(void 0),k("#868686")};return y.jsxs("div",{children:[e&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:e}),y.jsxs(Sl,{modal:!1,onOpenChange:Y=>{Y||l&&l(c?h:r)},children:[y.jsx(rq,{disabled:f,size:d,type:u,style:p,selectedTags:C}),y.jsx(Tl,{align:t,sideOffset:5,children:y.jsxs("div",{className:c1["tag-dropdown--content-container"],children:[y.jsxs("div",{className:c1["tag-dropdown--header-container"],children:[E!==Ua.SEARCH&&y.jsx(eq,{value:w??"#868686",onChange:k,availableColors:sSe}),y.jsx(JV,{ref:D,state:E,value:v,isEditing:!!b,onChange:Y=>g(Y.target.value)})]}),E===Ua.SEARCH&&y.jsx("div",{className:c1["tag-dropdown--options-container"],children:R.map((Y,q)=>{const V=C.map(A=>A.value).includes(Y.value);return y.jsx(nq,{onSelect:()=>M(Y),onEdit:A=>L(A,Y),onDelete:A=>W(A,Y),selected:V,color:Y.color,children:Y.label},`tag_${q}`)})}),E===Ua.EDIT&&y.jsxs("div",{className:c1["tag-dropdown--edit-options-container"],children:[y.jsx(jr,{variant:"text",color:"primary",size:"sm",onClick:G,children:"Cancel"}),y.jsx(jr,{variant:"filled",color:"primary",size:"sm",onClick:ee,children:"Edit"})]}),E===Ua.CREATE&&y.jsx("div",{className:c1["tag-dropdown--add-cta-container"],children:y.jsx(jr,{variant:"text",color:"primary",size:"sm",startIcon:y.jsx(Ad,{}),onClick:B,children:y.jsxs("span",{className:c1["tag-dropdown--add-cta-label"],children:['Create "',v,'"']})})})]})})]})]})};var Xs=(e=>(e[e.SEARCH=0]="SEARCH",e[e.EDIT=1]="EDIT",e[e.CREATE=2]="CREATE",e))(Xs||{});const u1={"atom-head-status-dropdown":"_atom-head-status-dropdown_1mwp5_1","atom-head-status-dropdown--text-field":"_atom-head-status-dropdown--text-field_1mwp5_9","atom-head-status-dropdown--container":"_atom-head-status-dropdown--container_1mwp5_17","atom-head-status-dropdown--text-container":"_atom-head-status-dropdown--text-container_1mwp5_30","atom-head-status-dropdown--icon":"_atom-head-status-dropdown--icon_1mwp5_53","atom-head-status-dropdown--input-container":"_atom-head-status-dropdown--input-container_1mwp5_61"},iq=O.forwardRef(({state:e,selectedOption:t,isEditing:n,...r},i)=>{let o;switch(e){case Xs.CREATE:o=y.jsx(Ad,{});break;case Xs.EDIT:o=y.jsx(jk,{});break;case Xs.SEARCH:o=y.jsx(Hv,{});break}return y.jsx("div",{className:u1["atom-head-status-dropdown"],children:y.jsxs("div",{className:u1["atom-head-status-dropdown--container"],children:[y.jsx("div",{className:u1["atom-head-status-dropdown--icon"],children:o}),y.jsx("div",{className:u1["atom-head-status-dropdown--input-container"],children:y.jsx(so,{...r,ref:i,size:"md",contentClassName:u1["atom-head-status-dropdown--text-field"],className:u1["atom-head-status-dropdown--text-container"],placeholder:"Search Status",style:{padding:"0px"}})})]})})});iq.displayName="AtomHeadStatusDropdown";const cSe={"atom-type-selector--container":"_atom-type-selector--container_5klcx_1"},oq=({value:e,onChange:t})=>{const[n,r]=O.useState(!1),i=o=>{o&&t(o),r(!1)};return y.jsxs(Sl,{modal:!0,open:n,onOpenChange:r,children:[y.jsx(Ks,{asChild:!0,children:y.jsx(vr,{size:"md",variant:"outlined",children:f1(e??cw[0])})}),y.jsx(Tl,{align:"start",sideOffset:5,children:y.jsx("div",{className:cSe["atom-type-selector--container"],children:cw.map((o,a)=>y.jsx(vr,{variant:"ghost",onClick:()=>i(o),children:f1(o)},`type_${a}`))})})]})};oq.displayName="AtomStatusSelectorStatusDropdown";const b3={"atom-item-status-dropdown":"_atom-item-status-dropdown_bkgm5_1","actions-container":"_actions-container_bkgm5_15",selected:"_selected_bkgm5_20",label:"_label_bkgm5_30"},aq=({option:e,selected:t,onSelect:n,onEdit:r,onDelete:i})=>y.jsxs("div",{className:bu(b3["atom-item-status-dropdown"],t&&b3.selected),onClick:n,children:[f1(e.type),y.jsx(et,{size:"sm",color:"gray-1000",className:b3.label,children:e.label}),y.jsx("div",{className:b3["actions-container"],children:y.jsx(vr,{variant:"ghost",color:"sand",size:"sm",onClick:r,children:y.jsx(jk,{})})})]});aq.displayName="AtomItemStatusDropdown";const d1={"status-dropdown--content-container":"_status-dropdown--content-container_1r9tj_1","status-dropdown--add-cta-container":"_status-dropdown--add-cta-container_1r9tj_8","status-dropdown--add-cta-label":"_status-dropdown--add-cta-label_1r9tj_12","status-dropdown--header-container":"_status-dropdown--header-container_1r9tj_25","status-dropdown--options-container":"_status-dropdown--options-container_1r9tj_33","status-dropdown--edit-options-container":"_status-dropdown--edit-options-container_1r9tj_39"},Im={"atom-trigger-status-dropdown--tooltip-content":"_atom-trigger-status-dropdown--tooltip-content_1njsr_1","atom-trigger-status-dropdown--select":"_atom-trigger-status-dropdown--select_1njsr_8","atom-trigger-status-dropdown--select-placeholder-container":"_atom-trigger-status-dropdown--select-placeholder-container_1njsr_29","atom-trigger-status-dropdown--select-trigger-icon":"_atom-trigger-status-dropdown--select-trigger-icon_1njsr_37","atom-trigger-status-dropdown--select-lg":"_atom-trigger-status-dropdown--select-lg_1njsr_46","atom-trigger-status-dropdown--select-md":"_atom-trigger-status-dropdown--select-md_1njsr_50","atom-trigger-status-dropdown--select-sm":"_atom-trigger-status-dropdown--select-sm_1njsr_54","atom-trigger-status-dropdown--select-disabled":"_atom-trigger-status-dropdown--select-disabled_1njsr_58"},sq=({option:e,size:t,type:n,disabled:r,style:i})=>n==="icon"?y.jsx(t1,{asChild:!0,disabled:r,children:y.jsx(vr,{variant:"ghost",color:"primary",children:y.jsxs(Id,{children:[y.jsx(vu,{children:f1(e==null?void 0:e.type)}),e&&e.value!==""&&y.jsx(gu,{isDark:!0,description:y.jsxs("div",{className:Im["atom-trigger-status-dropdown--tooltip-content"],children:[y.jsx("span",{children:f1(e==null?void 0:e.type)}),y.jsx(et,{size:"xs",color:"white",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:e.label})]})})]})})}):n==="select"?y.jsx(t1,{asChild:!0,disabled:r,children:y.jsxs("button",{className:vt(Im["atom-trigger-status-dropdown--select"],Im[`atom-trigger-status-dropdown--select-${t}`],r&&Im["atom-trigger-status-dropdown--select-disabled"]),style:i,children:[y.jsx("div",{className:Im["atom-trigger-status-dropdown--select-placeholder-container"],children:y.jsxs("div",{className:Im["atom-trigger-status-dropdown--tooltip-content"],children:[f1(e==null?void 0:e.type),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:e==null?void 0:e.label})]})}),y.jsx("span",{className:Im["atom-trigger-tag-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}):y.jsx(y.Fragment,{});sq.displayName="AtomTriggerStatusDropdown";const uSe=({align:e="start",optionsList:t,value:n="",onChange:r,onUpdateList:i,triggerType:o="icon",triggerSize:a="md",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),[h,m]=O.useState(void 0),[v,g]=O.useState(cw[0]),[b,x]=O.useState(Xs.SEARCH),w=t.find(L=>L.value===n),k=O.useRef(null),E=O.useMemo(()=>!f||f===""?t:t.filter(L=>L.label.toLowerCase().includes(f.toLowerCase())),[t,f]);O.useEffect(()=>{b!==Xs.EDIT&&x(Xs.SEARCH)},[f,E]);const j=L=>{(w==null?void 0:w.value)!==L.value&&(r(L.value),d(!1))},T=(L,B)=>{L.stopPropagation(),B&&(m(B),g(B.value),x(Xs.EDIT),p(B.label),k.current&&k.current.focus())},C=()=>{const L={label:f,value:"",type:v};r(L.value),M(),k.current&&k.current.focus(),i([...t,L])},D=(L,B)=>{L.stopPropagation(),i(t.filter(W=>W.label!==B.label)),n&&n===B.value&&r("")},R=()=>{if(!h)return;const L=t.findIndex(ee=>ee.label===h.label);if(L===-1)return;const B={label:f,value:"",type:v??cw[0]},W=[...t];W[L]=B,i(W),M()},M=()=>{x(Xs.SEARCH),p(""),m(void 0),g(cw[0])};return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!1,open:u,onOpenChange:d,children:[y.jsx(sq,{disabled:l,size:a,type:o,style:s,option:w}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:d1["status-dropdown--content-container"],children:[y.jsxs("div",{className:d1["status-dropdown--header-container"],children:[b!==Xs.SEARCH&&y.jsx(oq,{value:n??"",onChange:g}),y.jsx(iq,{ref:k,state:b,value:f,selectedOption:w,isEditing:!!h,onChange:L=>p(L.target.value)})]}),b===Xs.SEARCH&&y.jsx("div",{className:d1["status-dropdown--options-container"],children:E.map((L,B)=>{const W=w&&w.label===L.label;return y.jsx(aq,{onSelect:()=>j(L),onEdit:ee=>T(ee,L),onDelete:ee=>D(ee,L),selected:W,option:L},`option_${B}`)})}),b===Xs.EDIT&&y.jsxs("div",{className:d1["status-dropdown--edit-options-container"],children:[y.jsx(jr,{variant:"text",color:"primary",size:"sm",onClick:M,children:"Cancel"}),y.jsx(jr,{variant:"filled",color:"primary",size:"sm",onClick:R,children:"Edit"})]}),b===Xs.CREATE&&y.jsx("div",{className:d1["status-dropdown--add-cta-container"],children:y.jsx(jr,{variant:"text",color:"primary",size:"sm",startIcon:y.jsx(Ad,{}),onClick:C,children:y.jsxs("span",{className:d1["status-dropdown--add-cta-label"],children:['Create "',f,'"']})})})]})})]})]})},cw=["backlog","unstarted","started","completed","canceled"],f1=e=>{if(!e)return y.jsx(JA,{});switch(e){case"backlog":return y.jsx(JA,{});case"unstarted":return y.jsx(XU,{});case"started":return y.jsx(QU,{});case"completed":return y.jsx(JU,{});case"canceled":return y.jsx(_z,{})}},h1={"atom-head-priority-dropdown":"_atom-head-priority-dropdown_qt3rj_1","atom-head-priority-dropdown--text-field":"_atom-head-priority-dropdown--text-field_qt3rj_9","atom-head-priority-dropdown--container":"_atom-head-priority-dropdown--container_qt3rj_17","atom-head-priority-dropdown--text-container":"_atom-head-priority-dropdown--text-container_qt3rj_30","atom-head-priority-dropdown--icon":"_atom-head-priority-dropdown--icon_qt3rj_53","atom-head-priority-dropdown--input-container":"_atom-head-priority-dropdown--input-container_qt3rj_61"},lq=O.forwardRef(({...e},t)=>y.jsx("div",{className:h1["atom-head-priority-dropdown"],children:y.jsxs("div",{className:h1["atom-head-priority-dropdown--container"],children:[y.jsx("div",{className:h1["atom-head-priority-dropdown--icon"],children:y.jsx(Hv,{})}),y.jsx("div",{className:h1["atom-head-priority-dropdown--input-container"],children:y.jsx(so,{...e,ref:t,size:"md",contentClassName:h1["atom-head-priority-dropdown--text-field"],className:h1["atom-head-priority-dropdown--text-container"],placeholder:"Search Priority",style:{padding:"0px"}})})]})}));lq.displayName="AtomHeadPriorityDropdown";const pO={"atom-item-priority-dropdown":"_atom-item-priority-dropdown_1eu3n_1",selected:"_selected_1eu3n_20",label:"_label_1eu3n_30"},cq=({option:e,selected:t,onSelect:n})=>y.jsxs("div",{className:bu(pO["atom-item-priority-dropdown"],t&&pO.selected),onClick:n,children:[w3(e.value),y.jsx(et,{size:"sm",color:"gray-1000",className:pO.label,children:e.label})]});cq.displayName="AtomItemPriorityDropdown";const $d={"priority-dropdown--content-container":"_priority-dropdown--content-container_1sukb_1","priority-dropdown--add-cta-container":"_priority-dropdown--add-cta-container_1sukb_8","priority-dropdown--add-cta-label":"_priority-dropdown--add-cta-label_1sukb_12","priority-dropdown--header-container":"_priority-dropdown--header-container_1sukb_25","priority-dropdown--options-container":"_priority-dropdown--options-container_1sukb_33","priority-dropdown--edit-options-container":"_priority-dropdown--edit-options-container_1sukb_39","priority-dropdown--select":"_priority-dropdown--select_1sukb_47","priority-dropdown--select-placeholder-container":"_priority-dropdown--select-placeholder-container_1sukb_68","priority-dropdown--select-trigger-icon":"_priority-dropdown--select-trigger-icon_1sukb_76","priority-dropdown--select-lg":"_priority-dropdown--select-lg_1sukb_85","priority-dropdown--select-md":"_priority-dropdown--select-md_1sukb_89","priority-dropdown--select-sm":"_priority-dropdown--select-sm_1sukb_93","priority-dropdown--select-disabled":"_priority-dropdown--select-disabled_1sukb_97","priority-dropdown--trigger":"_priority-dropdown--trigger_1sukb_102"},dSe=({align:e="start",optionsList:t,enableSearch:n=!1,value:r,onChange:i,triggerSize:o="md",triggerType:a="icon",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),h=t.find(b=>b.value===r),m=O.useRef(null),v=O.useMemo(()=>!f||f===""?t:t.filter(b=>b.label.toLowerCase().includes(f.toLowerCase())),[t,f]),g=b=>{(h==null?void 0:h.value)!==b.value&&(i(b.value),d(!1))};return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!1,open:u,onOpenChange:d,children:[a==="select"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsxs("button",{className:vt($d["priority-dropdown--select"],$d[`priority-dropdown--select-${o}`],l&&$d["priority-dropdown--select-disabled"]),style:s,children:[y.jsx("div",{className:$d["priority-dropdown--select-placeholder-container"],children:y.jsxs("div",{className:$d["priority-dropdown--trigger"],children:[w3((h==null?void 0:h.value)??4),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:h==null?void 0:h.label})]})}),y.jsx("span",{className:$d["priority-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}),a==="icon"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsx(vr,{variant:"ghost",color:"primary",children:w3((h==null?void 0:h.value)??4)})}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:$d["priority-dropdown--content-container"],children:[n&&y.jsx("div",{className:$d["priority-dropdown--header-container"],children:y.jsx(lq,{ref:m,value:f,onChange:b=>p(b.target.value)})}),y.jsx("div",{className:$d["priority-dropdown--options-container"],children:v.map((b,x)=>{const w=h&&h.label===b.label;return y.jsx(cq,{onSelect:()=>g(b),selected:w,option:b},`option_${x}`)})})]})})]})]})},w3=e=>{switch(e){case 0:return y.jsx(QA,{});case 1:return y.jsx(bwe,{});case 2:return y.jsx(HEe,{});case 3:return y.jsx(VEe,{});case 4:return y.jsx(WEe,{});default:return y.jsx(QA,{})}},ph={"document-dropdown":"_document-dropdown_1rbf9_1","filter-applied-container":"_filter-applied-container_1rbf9_15",tag:"_tag_1rbf9_22","popover-container":"_popover-container_1rbf9_68","apply-cta":"_apply-cta_1rbf9_92"},mO={"atom-sub-issue-filters-dropdown-counter-container":"_atom-sub-issue-filters-dropdown-counter-container_10agb_1","atom-sub-document-dropdown--trigger":"_atom-sub-document-dropdown--trigger_10agb_15","atom-sub-document-dropdown--label":"_atom-sub-document-dropdown--label_10agb_40"},uw=O.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:i="gray-1000",children:o,appliedFiltersCounter:a},s)=>{const[l,c]=O.useState(!1),u=O.useRef(),d=()=>{u.current=setTimeout(()=>{c(!1)},t)},f=()=>{u.current&&clearTimeout(u.current),c(!0)};return y.jsxs(Am,{open:l,children:[y.jsx(Om,{asChild:!0,children:y.jsx("div",{ref:s,className:mO["atom-sub-document-dropdown--trigger"],onMouseEnter:f,onMouseLeave:d,children:y.jsxs("div",{className:mO["atom-sub-document-dropdown--label"],children:[y.jsx(et,{size:n,fontWeight:r,color:i,children:e}),!!a&&y.jsx("div",{className:mO["atom-sub-issue-filters-dropdown-counter-container"],children:y.jsx(et,{size:"xs",fontWeight:"regular",color:"purple-600",children:a})})]})})}),y.jsx(jm,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:f,onMouseLeave:d,children:o})]})});uw.displayName="AtomSubIssueFilterDropdown";const _3={avatar:"_avatar_u6yy9_1","avatar--size-md":"_avatar--size-md_u6yy9_15","avatar--size-sm":"_avatar--size-sm_u6yy9_23","avatar--size-xs":"_avatar--size-xs_u6yy9_31","avatar--size-xxs":"_avatar--size-xxs_u6yy9_39","avatar--disabled":"_avatar--disabled_u6yy9_47","avatar--badge":"_avatar--badge_u6yy9_51","avatar--badge-size-sm":"_avatar--badge-size-sm_u6yy9_62","avatar--image":"_avatar--image_u6yy9_67"},gO={badge:"_badge_1y0vz_1","badge--size-sm":"_badge--size-sm_1y0vz_11","badge--green":"_badge--green_1y0vz_16","badge--red":"_badge--red_1y0vz_20"},vO=O.forwardRef((e,t)=>{const{small:n=!1,color:r,className:i}=e;return y.jsx("div",{ref:t,className:vt(gO.badge,gO[`badge--${r}`],n&&gO["badge--size-sm"],i)})});vO.displayName="Badge";const uq=e=>{const[t,n]=e.split(" ");return t&&n?`${t.charAt(0)}${n.charAt(0)}`:t.charAt(0)},mh=O.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,disabled:o,badge:a,image:s,status:l,className:c,children:u,...d}=e,f=()=>s?y.jsx("img",{src:s.url,alt:s.alt,className:_3["avatar--image"]}):n?u:y.jsx(Pr,{size:r,color:"white",children:uq(i??"")}),p=O.useMemo(()=>({backgroundColor:e.color}),[e.color]);return y.jsxs("div",{ref:t,style:p,className:vt(_3.avatar,_3[`avatar--size-${r}`],o&&_3["avatar--disabled"],c),...d,children:[f(),a?y.jsx(vO,{color:l&&l==="online"?"green":"red",small:r==="xs"||r==="xxs"}):null]})});mh.displayName="Avatar";const fSe=({type:e})=>{switch(e){case"backlog":return y.jsx(JA,{});case"unstarted":return y.jsx(XU,{});case"started":return y.jsx(QU,{});case"completed":return y.jsx(JU,{});case"canceled":return y.jsx(_z,{});default:return null}},hSe=({avatar:e})=>{switch(typeof e){case"string":return y.jsx(mh,{color:"ff0000",name:e,size:"xs"});default:return y.jsx(mh,{color:"#B2B2B2",size:"xs",icon:!0,children:y.jsx(Abe,{})})}},yO={"atom-item-issue-filter-dropdown-container--trigger":"_atom-item-issue-filter-dropdown-container--trigger_19xw8_1","text-truncate":"_text-truncate_19xw8_10","atom-item-issue-filter-dropdown--trigger":"_atom-item-issue-filter-dropdown--trigger_19xw8_17"},dw=O.forwardRef(({...e},t)=>y.jsx(dq,{ref:t,...e}));dw.displayName="AtomItemIssueFiltersDropdown";const dq=O.forwardRef(({label:e,onSelect:t,isSelected:n,icon:r},i)=>{const o=()=>{t&&t()};return y.jsxs("div",{ref:i,className:yO["atom-item-issue-filter-dropdown-container--trigger"],onClick:o,children:[y.jsxs("div",{className:yO["atom-item-issue-filter-dropdown--trigger"],children:[y.jsx(dh,{checked:n,small:!0}),y.jsx(et,{size:"xs",className:yO["text-truncate"],children:e})]}),r]})});dq.displayName="AtomItemSingleIssueFiltersDropdown";function pSe({tags:e,assignees:t,states:n,priorities:r,onConfirmSelection:i,areFiltersApplied:o,closeDelay:a,selectedOptions:s}){const[l,c]=O.useState(s),u=v=>{c(g=>{const b=g.tags.some(w=>w.id===v),x=e.find(w=>w.id===v);return x?{...g,tags:b?g.tags.filter(w=>w.id!==v):[...g.tags,x]}:g})},d=v=>{c(g=>{const b=g.assignees.some(w=>w.id.toString()===v),x=t.find(w=>w.id.toString()===v);return x?{...g,assignees:b?g.assignees.filter(w=>w.id.toString()!==v):[...g.assignees,x]}:g})},f=v=>{c(g=>{const b=g.priorities.some(w=>w.value===v),x=r.find(w=>w.value===v);return x?{...g,priorities:b?g.priorities.filter(w=>w.value!==v):[...g.priorities,x]}:g})},p=v=>{c(g=>{const b=g.states.some(w=>w.id.toString()===v),x=n.find(w=>w.id.toString()===v);return x?{...g,states:b?g.states.filter(w=>w.id.toString()!==v):[...g.states,x]}:g})},h=()=>{i(l)},m=v=>y.jsx("div",{className:ph["apply-cta"],children:y.jsx(jr,{variant:"text",color:"primary",size:"sm",onClick:h,disabled:!o&&v.optionLength===0,children:"Apply filter"})});return y.jsxs("div",{className:ph["document-dropdown"],children:[y.jsx(uw,{fontWeight:o&&l.priorities.length?"bold":"regular",closeDelay:a,label:"Priority",appliedFiltersCounter:o?l.priorities.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[r.map(v=>{const g=l.priorities.includes(v);return y.jsx(dw,{isSelected:g,label:v.label,value:v.value.toString(),icon:w3(v.value),onSelect:()=>f(v.value)},`issues_priorities_${v.value}`)}),y.jsx(m,{optionLength:l.priorities.length})]})}),y.jsx(uw,{fontWeight:o&&l.states.length?"bold":"regular",closeDelay:a,label:"Status",appliedFiltersCounter:o?l.states.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[n.map(v=>{const g=l.states.includes(v);return y.jsx(dw,{isSelected:g,label:v.name,value:v.id,icon:y.jsx(fSe,{type:v.type}),onSelect:()=>p(v.id)},`issues_states_${v.id}`)}),y.jsx(m,{optionLength:l.states.length})]})}),y.jsx(uw,{fontWeight:o&&l.tags.length?"bold":"regular",closeDelay:a,label:"Tags",appliedFiltersCounter:o?l.tags.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[e.map(v=>{const g=l.tags.some(b=>b.id===v.id);return y.jsx(dw,{isSelected:g,label:v.name,value:v.id,icon:y.jsx("div",{className:ph.tag,style:{backgroundColor:v.color}}),onSelect:()=>u(v.id)},`issues_tags_${v.id}`)}),y.jsx(m,{optionLength:l.tags.length})]})}),y.jsx(uw,{fontWeight:o&&l.assignees.length?"bold":"regular",closeDelay:a,label:"Assignees",appliedFiltersCounter:o?l.assignees.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[t.map(v=>{const g=l.assignees.some(b=>b.id===v.id);return y.jsx(dw,{isSelected:g,label:v.email,value:v.id.toString(),icon:y.jsx(hSe,{avatar:v.email}),onSelect:()=>d(v.id.toString())},`issues_assignees_${v.id}`)}),y.jsx(m,{optionLength:l.assignees.length})]})})]})}const fq=O.forwardRef((e,t)=>{const[n,r]=O.useState(!1),[i,o]=O.useState({tags:e.selectedTags??[],states:e.selectedStates??[],priorities:e.selectedPriorities??[],assignees:e.selectedAssignees??[]}),[a,s]=O.useState(!1),l=O.useMemo(()=>i.tags.length+i.states.length+i.priorities.length+i.assignees.length,[i]),c=O.useCallback(()=>{r(!1)},[]);O.useImperativeHandle(t,()=>({close:c}));const u=O.useCallback(d=>{var f;r(d),(f=e.onOpenChange)==null||f.call(e,d)},[e.onOpenChange]);return y.jsxs(Sl,{modal:!1,open:n,onOpenChange:u,children:[y.jsx(Ks,{asChild:!0,disabled:e.disabled,children:y.jsx(jr,{startIcon:y.jsx(ZU,{}),color:"sand",size:"md",variant:n?"filled":"text",endIcon:a&&y.jsxs(et,{size:"xs",className:ph["filter-applied-container"],children:[l," Filters applied"]}),children:"Add filters"})}),y.jsx(Tl,{align:"start",sideOffset:5,children:y.jsx(pSe,{...e,selectedOptions:i,onSelectedOptionChange:o,areFiltersApplied:a,onConfirmSelection:d=>{o(d),s(!!(d.tags.length||d.assignees.length||d.priorities.length||d.states.length)),e.onConfirmSelection(d),c()}})})]})});fq.displayName="IssueFiltersDropdown";const p1={"atom-head-source-dropdown":"_atom-head-source-dropdown_l53bo_1","atom-head-source-dropdown--text-field":"_atom-head-source-dropdown--text-field_l53bo_9","atom-head-source-dropdown--container":"_atom-head-source-dropdown--container_l53bo_17","atom-head-source-dropdown--text-container":"_atom-head-source-dropdown--text-container_l53bo_30","atom-head-source-dropdown--icon":"_atom-head-source-dropdown--icon_l53bo_53","atom-head-source-dropdown--input-container":"_atom-head-source-dropdown--input-container_l53bo_61"},hq=O.forwardRef(({...e},t)=>y.jsx("div",{className:p1["atom-head-source-dropdown"],children:y.jsxs("div",{className:p1["atom-head-source-dropdown--container"],children:[y.jsx("div",{className:p1["atom-head-source-dropdown--icon"],children:y.jsx(Hv,{})}),y.jsx("div",{className:p1["atom-head-source-dropdown--input-container"],children:y.jsx(so,{...e,ref:t,size:"md",contentClassName:p1["atom-head-source-dropdown--text-field"],className:p1["atom-head-source-dropdown--text-container"],placeholder:"Search Source",style:{padding:"0px"}})})]})}));hq.displayName="AtomHeadSourceDropdown";const bO={"atom-item-source-dropdown":"_atom-item-source-dropdown_1r6od_1",selected:"_selected_1r6od_20",label:"_label_1r6od_30"},pq=({option:e,selected:t,onSelect:n})=>y.jsxs("div",{className:bu(bO["atom-item-source-dropdown"],t&&bO.selected),onClick:n,children:[wO(e.value),y.jsx(et,{size:"sm",color:"gray-1000",className:bO.label,children:e.label})]});pq.displayName="AtomItemSourceDropdown";const Rd={"source-dropdown--content-container":"_source-dropdown--content-container_kmuds_1","source-dropdown--add-cta-container":"_source-dropdown--add-cta-container_kmuds_8","source-dropdown--add-cta-label":"_source-dropdown--add-cta-label_kmuds_12","source-dropdown--header-container":"_source-dropdown--header-container_kmuds_25","source-dropdown--options-container":"_source-dropdown--options-container_kmuds_33","source-dropdown--edit-options-container":"_source-dropdown--edit-options-container_kmuds_39","source-dropdown--select":"_source-dropdown--select_kmuds_47","source-dropdown--select-placeholder-container":"_source-dropdown--select-placeholder-container_kmuds_68","source-dropdown--select-trigger-icon":"_source-dropdown--select-trigger-icon_kmuds_76","source-dropdown--select-lg":"_source-dropdown--select-lg_kmuds_85","source-dropdown--select-md":"_source-dropdown--select-md_kmuds_89","source-dropdown--select-sm":"_source-dropdown--select-sm_kmuds_93","source-dropdown--select-disabled":"_source-dropdown--select-disabled_kmuds_97","source-dropdown--trigger":"_source-dropdown--trigger_kmuds_102"},mSe=({align:e="start",enableSearch:t=!1,value:n,options:r,onChange:i,triggerSize:o="md",triggerType:a="icon",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),h=r.find(b=>b.value===n),m=O.useRef(null),v=O.useMemo(()=>!f||f===""?r:r.filter(b=>b.label.toLowerCase().includes(f.toLowerCase())),[r,f]),g=b=>{(h==null?void 0:h.value)!==b.value&&(i(b.value),d(!1))};return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!0,open:u,onOpenChange:d,children:[a==="select"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsxs("button",{className:vt(Rd["source-dropdown--select"],Rd[`source-dropdown--select-${o}`],l&&Rd["source-dropdown--select-disabled"]),children:[y.jsx("div",{className:Rd["source-dropdown--select-placeholder-container"],children:y.jsxs("div",{className:Rd["source-dropdown--trigger"],children:[wO((h==null?void 0:h.value)??"not_set"),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:h==null?void 0:h.label})]})}),y.jsx("span",{className:Rd["source-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}),a==="icon"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsx(vr,{variant:"ghost",color:"primary",children:wO((h==null?void 0:h.value)??"not_set")})}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:Rd["source-dropdown--content-container"],style:s,children:[t&&y.jsx("div",{className:Rd["source-dropdown--header-container"],children:y.jsx(hq,{ref:m,value:f,onChange:b=>p(b.target.value)})}),y.jsx("div",{className:Rd["source-dropdown--options-container"],children:v.map((b,x)=>{const w=h&&h.label===b.label;return y.jsx(pq,{onSelect:()=>g(b),selected:w,option:b},`option_${x}`)})})]})})]})]})},wO=e=>{switch(e){case"source_production":return y.jsx(Twe,{});case"source_test":return y.jsx(wEe,{});default:return y.jsx(QA,{})}},Md={"draggable-dropdown--content-container":"_draggable-dropdown--content-container_akcks_1","draggable-dropdown--add-cta-container":"_draggable-dropdown--add-cta-container_akcks_8","draggable-dropdown--add-cta-label":"_draggable-dropdown--add-cta-label_akcks_12","draggable-dropdown--header-container":"_draggable-dropdown--header-container_akcks_25","draggable-dropdown--options-container":"_draggable-dropdown--options-container_akcks_33","draggable-dropdown--edit-options-container":"_draggable-dropdown--edit-options-container_akcks_39","draggable-dropdown--select":"_draggable-dropdown--select_akcks_47","draggable-dropdown--select-placeholder-container":"_draggable-dropdown--select-placeholder-container_akcks_68","draggable-dropdown--select-trigger-icon":"_draggable-dropdown--select-trigger-icon_akcks_76","draggable-dropdown--select-lg":"_draggable-dropdown--select-lg_akcks_85","draggable-dropdown--select-md":"_draggable-dropdown--select-md_akcks_89","draggable-dropdown--select-sm":"_draggable-dropdown--select-sm_akcks_93","draggable-dropdown--select-disabled":"_draggable-dropdown--select-disabled_akcks_97","draggable-dropdown--trigger":"_draggable-dropdown--trigger_akcks_102"},mq={"atom-head-draggable-dropdown":"_atom-head-draggable-dropdown_8sv0m_1","atom-head-draggable-dropdown--container":"_atom-head-draggable-dropdown--container_8sv0m_9"},_O=O.forwardRef(({children:e},t)=>y.jsx("div",{className:mq["atom-head-draggable-dropdown"],children:y.jsx("div",{className:mq["atom-head-draggable-dropdown--container"],children:e})}));_O.displayName="AtomHeadSourceDropdown";const gSe=({align:e="start",enableSearch:t=!1,value:n,options:r,onChange:i,triggerSize:o="md",triggerType:a="icon",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),h=r.find(g=>g.value===n),m=O.useRef(null),v=O.useMemo(()=>!f||f===""?r:r.filter(g=>g.label.toLowerCase().includes(f.toLowerCase())),[r,f]);return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!0,open:u,onOpenChange:d,children:[a==="select"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsxs("button",{className:vt(Md["draggable-dropdown--select"],Md[`draggable-dropdown--select-${o}`],l&&Md["draggable-dropdown--select-disabled"]),children:[y.jsx("div",{className:Md["draggable-dropdown--select-placeholder-container"],children:y.jsx("div",{className:Md["draggable-dropdown--trigger"],children:y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:h==null?void 0:h.label})})}),y.jsx("span",{className:Md["draggable-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}),a==="icon"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsx(vr,{variant:"ghost",color:"primary"})}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:Md["draggable-dropdown--content-container"],style:s,children:[t&&y.jsx("div",{className:Md["draggable-dropdown--header-container"],children:y.jsx(_O,{ref:m})}),y.jsx("div",{className:Md["draggable-dropdown--options-container"],children:v.map((g,b)=>(h&&(h.label,g.label),y.jsx(_O,{},`option_${b}`)))})]})})]})]})},Pm={"avatar-bot":"_avatar-bot_1x2kl_1","avatar-bot--image-bg":"_avatar-bot--image-bg_1x2kl_18","avatar-bot--active":"_avatar-bot--active_1x2kl_27","avatar-bot--active-icon":"_avatar-bot--active-icon_1x2kl_31","avatar-bot--image":"_avatar-bot--image_1x2kl_18","avatar-bot--image-active":"_avatar-bot--image-active_1x2kl_43","avatar-bot--custom-icon":"_avatar-bot--custom-icon_1x2kl_51"},xO=O.forwardRef((e,t)=>{const{icon:n,image:r,active:i,className:o,onClick:a}=e;return y.jsxs("div",{ref:t,onClick:a,className:vt(Pm["avatar-bot"],i&&Pm["avatar-bot--active"],r&&Pm["avatar-bot--image-bg"],o),children:[i?y.jsx(H9,{width:"2.4rem",height:"2.4rem",className:Pm["avatar-bot--active-icon"]}):n&&y.jsx("span",{className:Pm["avatar-bot--custom-icon"],children:n}),r&&y.jsx("img",{src:r.url,alt:r.alt,className:vt(Pm["avatar-bot--image"],i&&Pm["avatar-bot--image-active"])})]})});xO.displayName="AvatarBot";const kO={"avatar-workspace":"_avatar-workspace_jxkxx_1","avatar-workspace--size-md":"_avatar-workspace--size-md_jxkxx_15","avatar-workspace--size-sm":"_avatar-workspace--size-sm_jxkxx_24","avatar-workspace--purple":"_avatar-workspace--purple_jxkxx_33","avatar-workspace--gray":"_avatar-workspace--gray_jxkxx_37"},gq=O.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,color:o="purple",className:a,children:s}=e;return y.jsx("div",{ref:t,className:vt(kO["avatar-workspace"],kO[`avatar-workspace--size-${r}`],kO[`avatar--${o}`],a),children:n?s:y.jsx(Pr,{size:r,color:"white",children:uq(i)})})});gq.displayName="AvatarWorkspace";const EO={editor:"_editor_183tc_9","editor-text-field":"_editor-text-field_183tc_16","icon-button-gray":"_icon-button-gray_183tc_24"},x3=O.forwardRef((e,t)=>{const{initialLabel:n,onSaveLabel:r}=e,[i,o]=O.useState(n),[a,s]=O.useState(n),[l,c]=O.useState(!1),u=()=>{c(p=>!p)},d=p=>{s(p.target.value)},f=()=>{r&&a&&(o(a),r(a)),c(!1)};return y.jsx(y.Fragment,{children:l?y.jsxs("div",{className:EO["editor-text-field"],ref:t,children:[y.jsx(so,{value:a,onChange:d,placeholder:"Change name...",size:"sm",variant:"filled"}),y.jsxs("div",{children:[y.jsx(vr,{onClick:f,color:"green",size:"sm",variant:"ghost",children:y.jsx(F9,{})}),y.jsx(vr,{onClick:u,color:"red",size:"sm",variant:"ghost",children:y.jsx(V9,{})})]})]}):y.jsxs("div",{className:EO.editor,ref:t,children:[y.jsx(et,{fontWeight:"bold",color:"black",size:"md",children:i}),y.jsx(vr,{onClick:u,color:"primary",size:"xs",variant:"ghost",children:y.jsx(LEe,{className:EO["icon-button-gray"]})})]})})});x3.displayName="AtomNameDivBlockModule";const vq={"title-block-module":"_title-block-module_1v5qg_1","drag-icon":"_drag-icon_1v5qg_9"},CO={"icon-button":"_icon-button_7unaa_1","icon-button--size-lg":"_icon-button--size-lg_7unaa_14","icon-button--size-md":"_icon-button--size-md_7unaa_19","icon-button--size-sm":"_icon-button--size-sm_7unaa_24","icon-button--children":"_icon-button--children_7unaa_29","icon-button--icon":"_icon-button--icon_7unaa_35","icon-button--message":"_icon-button--message_7unaa_40","icon-button--logic":"_icon-button--logic_7unaa_45","icon-button--utility":"_icon-button--utility_7unaa_50","icon-button--action":"_icon-button--action_7unaa_55"},yq={text:{icon:y.jsx(fz,{}),category:"message"},image:{icon:y.jsx(mz,{}),category:"message"},video:{icon:y.jsx(B9,{}),category:"message"},agent:{icon:y.jsx(YU,{}),category:"message"},card:{icon:y.jsx(bz,{}),category:"message"},handover:{icon:y.jsx(Xbe,{}),category:"logic"},contact_request:{icon:y.jsx(Ok,{}),category:"logic"},quick_reply:{icon:y.jsx(dz,{}),category:"logic"},reroute:{icon:y.jsx(z9,{}),category:"logic"},api:{icon:y.jsx(yz,{}),category:"logic"},capture:{icon:y.jsx(hz,{}),category:"logic"},set_values:{icon:y.jsx(pz,{}),category:"logic"},condition:{icon:y.jsx(wz,{}),category:"logic"},notes:{icon:y.jsx(dwe,{}),category:"utility"},mail:{icon:y.jsx(Ok,{}),category:"action"},upload:{icon:y.jsx(Iwe,{}),category:"action"},collect_data:{icon:y.jsx(vz,{}),category:"logic"},metadata:{icon:y.jsx(uz,{}),category:"utility"}},bq=O.forwardRef((e,t)=>{const{size:n="md",block:r="text",className:i,...o}=e,a=yq[r].category,s=yq[r].icon;return y.jsx("div",{ref:t,className:vt(CO["icon-button"],CO[`icon-button--size-${n}`],CO[`icon-button--${a}`],i),...o,children:s})}),vSe={text:{label:"Text"},image:{label:"Image"},video:{label:"Video"},agent:{label:"Agent"},card:{label:"Card"},handover:{label:"Handover"},contact_request:{label:"Contact Request"},quick_reply:{label:"Quick Reply"},reroute:{label:"Reroute"},api:{label:"API"},capture:{label:"Capture"},set_values:{label:"Set Values"},condition:{label:"Condition"},notes:{label:"Notes"},mail:{label:"Mail"},upload:{label:"Upload"},collect_data:{label:"Collect"},metadata:{label:"Metadata"}},SO=O.forwardRef((e,t)=>{const{block:n="text",...r}=e,i=vSe[n].label;return y.jsxs("div",{className:vq["title-block-module"],ref:t,...r,children:[y.jsx(yEe,{className:vq["drag-icon"]}),y.jsx(bq,{block:n,size:"md"}),y.jsx(et,{size:"sm",children:i})]})});SO.displayName="TitleBlockModule";const fw={"atom-top-modulo":"_atom-top-modulo_19pon_1","atom-top-modulo-button":"_atom-top-modulo-button_19pon_11","atom-top-modulo-button-copy":"_atom-top-modulo-button-copy_19pon_17","atom-top-modulo-button-dont-delete":"_atom-top-modulo-button-dont-delete_19pon_30","atom-top-modulo-button-confirm-delete":"_atom-top-modulo-button-confirm-delete_19pon_31"},TO=O.forwardRef((e,t)=>{const{block:n="text",dragHandlerProps:r,isCollapsed:i,onDelete:o,onCopy:a,onCollapse:s,showCopy:l=!1,className:c,withDeleteConfirmation:u=!1,isDeleteLoading:d=!1}=e,[f,p]=O.useState(),h=O.useCallback(()=>{u?p(!0):o()},[o,u]);return y.jsxs("div",{ref:t,className:vt(fw["atom-top-modulo"],c),children:[y.jsx(SO,{block:n,...r}),y.jsxs("div",{className:fw["atom-top-modulo-button"],children:[f?y.jsx(jr,{className:fw["atom-top-modulo-button-dont-delete"],variant:"text",size:"sm",onClick:()=>p(!1),disabled:d,children:"No, don't delete"}):y.jsxs(y.Fragment,{children:[l?y.jsx(jr,{color:"primary",size:"sm",startIcon:y.jsx(cEe,{className:fw["atom-top-modulo-button-copy"]}),variant:"text",onClick:a,children:"Copy"}):null,y.jsx(jr,{color:"primary",size:"sm",variant:"outlined",startIcon:i?y.jsx(Ube,{}):y.jsx(Ibe,{}),onClick:s,children:i?"Expand":"Collapse"})]}),f?y.jsx(jr,{className:fw["atom-top-modulo-button-confirm-delete"],variant:"filled",color:"red",size:"sm",startIcon:y.jsx(lh,{}),onClick:o,isLoading:d,children:"Confirm delete"}):y.jsx(vr,{onClick:h,variant:"ghost",isLoading:d,children:y.jsx(lh,{})})]})]})});TO.displayName="AtomTopModulo";const m1={block:"_block_b4jhb_1","is-dragging":"_is-dragging_b4jhb_6","block-children":"_block-children_b4jhb_11","block-collapse":"_block-collapse_b4jhb_20","block-is-dragging":"_block-is-dragging_b4jhb_25"},vc=O.forwardRef((e,t)=>{const{id:n,type:r,children:i,className:o,bodyClassName:a,isDragging:s,insertPosition:l,dragOverlay:c,dragListeners:u,dragAttributes:d,setDraggableNodeRef:f,headerClassName:p,onCopy:h,onDeleteBlock:m,isCollapsed:v,touched:g,isDeleteLoading:b=()=>!1,...x}=e,w=O.useRef(null),k=O.useCallback(D=>{w.current=D,typeof t=="function"?t(D):t!=null&&t.current&&(t.current=D)},[t]),[E,j]=O.useState(v);O.useEffect(()=>{v!==E&&j(v)},[v]);const T=()=>{j(!E)},C={...u,...d};return y.jsxs("div",{ref:k,tabIndex:-1,className:bu(m1.block,s&&m1["is-dragging"],!s&&l,o),"data-testid":`block-${n}`,"data-id":n,"data-block-type":r,children:[y.jsx(TO,{ref:f,className:vt({[m1["block-collapse"]]:E},{[m1["block-is-dragging"]]:s}),isCollapsed:E,onCollapse:T,onCopy:h,onDelete:m,isDragging:s,dragHandlerProps:C,withDeleteConfirmation:g,isDeleteLoading:b(n),...x}),c?null:y.jsx(y.Fragment,{children:E?null:y.jsx("div",{className:vt(m1["block-children"],{[m1["block-is-dragging"]]:s},a),children:i})})]},n)});vc.displayName="Block";const k3={breadcrumb:"_breadcrumb_1685c_1","breadcrumb--list-item":"_breadcrumb--list-item_1685c_9","breadcrumb--link":"_breadcrumb--link_1685c_14","breadcrumb--separator":"_breadcrumb--separator_1685c_18"},wq=O.forwardRef((e,t)=>{const{items:n,separator:r,className:i}=e,o=n.map((a,s)=>{const l=s+1===n.length;return y.jsxs("li",{onClick:a.onClick,className:vt(k3["breadcrumb--list-item"],a.className),children:[y.jsx("a",{href:a.href,className:k3["breadcrumb--link"],children:typeof a.title=="string"?y.jsx(et,{size:"xs",color:"gray-1000",children:a.title}):a.title}),!l&&y.jsx("span",{className:k3["breadcrumb--separator"],children:r?y.jsx(et,{size:"xs",color:"gray-700",children:r}):y.jsx(Tk,{className:"text--gray-700"})})]},s)});return y.jsx("ul",{ref:t,className:vt(k3.breadcrumb,i),children:o})});wq.displayName="Breadcrumb";var ySe="Expected a function",_q=NaN,bSe="[object Symbol]",wSe=/^\s+|\s+$/g,_Se=/^[-+]0x[0-9a-f]+$/i,xSe=/^0b[01]+$/i,kSe=/^0o[0-7]+$/i,ESe=parseInt,CSe=typeof kl=="object"&&kl&&kl.Object===Object&&kl,SSe=typeof self=="object"&&self&&self.Object===Object&&self,TSe=CSe||SSe||Function("return this")(),ASe=Object.prototype,OSe=ASe.toString,jSe=Math.max,DSe=Math.min,AO=function(){return TSe.Date.now()};function ISe(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(ySe);t=xq(t)||0,OO(n)&&(u=!!n.leading,d="maxWait"in n,o=d?jSe(xq(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function p(E){var j=r,T=i;return r=i=void 0,c=E,a=e.apply(T,j),a}function h(E){return c=E,s=setTimeout(g,t),u?p(E):a}function m(E){var j=E-l,T=E-c,C=t-j;return d?DSe(C,o-T):C}function v(E){var j=E-l,T=E-c;return l===void 0||j>=t||j<0||d&&T>=o}function g(){var E=AO();if(v(E))return b(E);s=setTimeout(g,m(E))}function b(E){return s=void 0,f&&r?p(E):(r=i=void 0,a)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function w(){return s===void 0?a:b(AO())}function k(){var E=AO(),j=v(E);if(r=arguments,i=this,l=E,j){if(s===void 0)return h(l);if(d)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return k.cancel=x,k.flush=w,k}function OO(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function PSe(e){return!!e&&typeof e=="object"}function $Se(e){return typeof e=="symbol"||PSe(e)&&OSe.call(e)==bSe}function xq(e){if(typeof e=="number")return e;if($Se(e))return _q;if(OO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=OO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(wSe,"");var n=xSe.test(e);return n||kSe.test(e)?ESe(e.slice(2),n?2:8):_Se.test(e)?_q:+e}var RSe=ISe;const MSe=du(RSe),cn={Toolbar:"_Toolbar_1lgxq_1",Header:"_Header_1lgxq_9",Sections:"_Sections_1lgxq_13",SimpleBar:"_SimpleBar_1lgxq_19",Section:"_Section_1lgxq_13",SectionHeader:"_SectionHeader_1lgxq_34",Chevron:"_Chevron_1lgxq_38",SectionTrigger:"_SectionTrigger_1lgxq_46",BlockButtons:"_BlockButtons_1lgxq_51",Block:"_Block_1lgxq_51",ToolbarButtonIcon:"_ToolbarButtonIcon_1lgxq_91",Info:"_Info_1lgxq_119",TextInfoExample:"_TextInfoExample_1lgxq_127",InfoDescription:"_InfoDescription_1lgxq_139",InfoClickDrag:"_InfoClickDrag_1lgxq_145",IsDragging:"_IsDragging_1lgxq_156",IsDraggingIcon:"_IsDraggingIcon_1lgxq_161",TooltipIconContainer:"_TooltipIconContainer_1lgxq_165",TooltipIcon:"_TooltipIcon_1lgxq_165"};var kq=K.createContext(),Eq=K.createContext();function NSe(e){var t=e.children,n=K.useState(null),r=n[0],i=n[1],o=K.useRef(!1);K.useEffect(function(){return function(){o.current=!0}},[]);var a=K.useCallback(function(s){o.current||i(s)},[]);return K.createElement(kq.Provider,{value:r},K.createElement(Eq.Provider,{value:a},t))}var Cq=function(t){return Array.isArray(t)?t[0]:t},Sq=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},jO=function(t,n){if(typeof t=="function")return Sq(t,n);t!=null&&(t.current=n)},Tq=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},Aq=typeof window<"u"&&window.document&&window.document.createElement?K.useLayoutEffect:K.useEffect,fs="top",Ol="bottom",jl="right",hs="left",DO="auto",hw=[fs,Ol,jl,hs],g1="start",pw="end",LSe="clippingParents",Oq="viewport",mw="popper",FSe="reference",jq=hw.reduce(function(e,t){return e.concat([t+"-"+g1,t+"-"+pw])},[]),Dq=[].concat(hw,[DO]).reduce(function(e,t){return e.concat([t,t+"-"+g1,t+"-"+pw])},[]),BSe="beforeRead",zSe="read",HSe="afterRead",USe="beforeMain",VSe="main",qSe="afterMain",WSe="beforeWrite",GSe="write",KSe="afterWrite",YSe=[BSe,zSe,HSe,USe,VSe,qSe,WSe,GSe,KSe];function wu(e){return e?(e.nodeName||"").toLowerCase():null}function Qs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $m(e){var t=Qs(e).Element;return e instanceof t||e instanceof Element}function Dl(e){var t=Qs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IO(e){if(typeof ShadowRoot>"u")return!1;var t=Qs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZSe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Dl(o)||!wu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function XSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Dl(i)||!wu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Iq={name:"applyStyles",enabled:!0,phase:"write",fn:ZSe,effect:XSe,requires:["computeStyles"]};function _u(e){return e.split("-")[0]}var Rm=Math.max,E3=Math.min,v1=Math.round;function PO(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Pq(){return!/^((?!chrome|android).)*safari/i.test(PO())}function y1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Dl(e)&&(i=e.offsetWidth>0&&v1(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&v1(r.height)/e.offsetHeight||1);var a=$m(e)?Qs(e):window,s=a.visualViewport,l=!Pq()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function $O(e){var t=y1(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $q(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nd(e){return Qs(e).getComputedStyle(e)}function QSe(e){return["table","td","th"].indexOf(wu(e))>=0}function gh(e){return(($m(e)?e.ownerDocument:e.document)||window.document).documentElement}function C3(e){return wu(e)==="html"?e:e.assignedSlot||e.parentNode||(IO(e)?e.host:null)||gh(e)}function Rq(e){return!Dl(e)||Nd(e).position==="fixed"?null:e.offsetParent}function JSe(e){var t=/firefox/i.test(PO()),n=/Trident/i.test(PO());if(n&&Dl(e)){var r=Nd(e);if(r.position==="fixed")return null}var i=C3(e);for(IO(i)&&(i=i.host);Dl(i)&&["html","body"].indexOf(wu(i))<0;){var o=Nd(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function gw(e){for(var t=Qs(e),n=Rq(e);n&&QSe(n)&&Nd(n).position==="static";)n=Rq(n);return n&&(wu(n)==="html"||wu(n)==="body"&&Nd(n).position==="static")?t:n||JSe(e)||t}function RO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vw(e,t,n){return Rm(e,E3(t,n))}function e4e(e,t,n){var r=vw(e,t,n);return r>n?n:r}function Mq(){return{top:0,right:0,bottom:0,left:0}}function Nq(e){return Object.assign({},Mq(),e)}function Lq(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var t4e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nq(typeof t!="number"?t:Lq(t,hw))};function n4e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_u(n.placement),l=RO(s),c=[hs,jl].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=t4e(i.padding,n),f=$O(o),p=l==="y"?fs:hs,h=l==="y"?Ol:jl,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],g=gw(o),b=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=m/2-v/2,w=d[p],k=b-f[u]-d[h],E=b/2-f[u]/2+x,j=vw(w,E,k),T=l;n.modifiersData[r]=(t={},t[T]=j,t.centerOffset=j-E,t)}}function r4e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||$q(t.elements.popper,i)&&(t.elements.arrow=i))}const i4e={name:"arrow",enabled:!0,phase:"main",fn:n4e,effect:r4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function b1(e){return e.split("-")[1]}var o4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a4e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:v1(n*i)/i||0,y:v1(r*i)/i||0}}function Fq(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,h=a.y,m=h===void 0?0:h,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),x=hs,w=fs,k=window;if(c){var E=gw(n),j="clientHeight",T="clientWidth";if(E===Qs(n)&&(E=gh(n),Nd(E).position!=="static"&&s==="absolute"&&(j="scrollHeight",T="scrollWidth")),E=E,i===fs||(i===hs||i===jl)&&o===pw){w=Ol;var C=d&&E===k&&k.visualViewport?k.visualViewport.height:E[j];m-=C-r.height,m*=l?1:-1}if(i===hs||(i===fs||i===Ol)&&o===pw){x=jl;var D=d&&E===k&&k.visualViewport?k.visualViewport.width:E[T];p-=D-r.width,p*=l?1:-1}}var R=Object.assign({position:s},c&&o4e),M=u===!0?a4e({x:p,y:m},Qs(n)):{x:p,y:m};if(p=M.x,m=M.y,l){var L;return Object.assign({},R,(L={},L[w]=b?"0":"",L[x]=g?"0":"",L.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",L))}return Object.assign({},R,(t={},t[w]=b?m+"px":"",t[x]=g?p+"px":"",t.transform="",t))}function s4e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:_u(t.placement),variation:b1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fq(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fq(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const l4e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s4e,data:{}};var S3={passive:!0};function c4e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qs(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,S3)}),s&&l.addEventListener("resize",n.update,S3),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,S3)}),s&&l.removeEventListener("resize",n.update,S3)}}const u4e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:c4e,data:{}};var d4e={left:"right",right:"left",bottom:"top",top:"bottom"};function T3(e){return e.replace(/left|right|bottom|top/g,function(t){return d4e[t]})}var f4e={start:"end",end:"start"};function Bq(e){return e.replace(/start|end/g,function(t){return f4e[t]})}function MO(e){var t=Qs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function NO(e){return y1(gh(e)).left+MO(e).scrollLeft}function h4e(e,t){var n=Qs(e),r=gh(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Pq();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+NO(e),y:l}}function p4e(e){var t,n=gh(e),r=MO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Rm(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Rm(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+NO(e),l=-r.scrollTop;return Nd(i||n).direction==="rtl"&&(s+=Rm(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function LO(e){var t=Nd(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function zq(e){return["html","body","#document"].indexOf(wu(e))>=0?e.ownerDocument.body:Dl(e)&&LO(e)?e:zq(C3(e))}function yw(e,t){var n;t===void 0&&(t=[]);var r=zq(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Qs(r),a=i?[o].concat(o.visualViewport||[],LO(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(yw(C3(a)))}function FO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function m4e(e,t){var n=y1(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Hq(e,t,n){return t===Oq?FO(h4e(e,n)):$m(t)?m4e(t,n):FO(p4e(gh(e)))}function g4e(e){var t=yw(C3(e)),n=["absolute","fixed"].indexOf(Nd(e).position)>=0,r=n&&Dl(e)?gw(e):e;return $m(r)?t.filter(function(i){return $m(i)&&$q(i,r)&&wu(i)!=="body"}):[]}function v4e(e,t,n,r){var i=t==="clippingParents"?g4e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=Hq(e,c,r);return l.top=Rm(u.top,l.top),l.right=E3(u.right,l.right),l.bottom=E3(u.bottom,l.bottom),l.left=Rm(u.left,l.left),l},Hq(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Uq(e){var t=e.reference,n=e.element,r=e.placement,i=r?_u(r):null,o=r?b1(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case fs:l={x:a,y:t.y-n.height};break;case Ol:l={x:a,y:t.y+t.height};break;case jl:l={x:t.x+t.width,y:s};break;case hs:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?RO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case g1:l[c]=l[c]-(t[u]/2-n[u]/2);break;case pw:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function bw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?LSe:s,c=n.rootBoundary,u=c===void 0?Oq:c,d=n.elementContext,f=d===void 0?mw:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,g=Nq(typeof v!="number"?v:Lq(v,hw)),b=f===mw?FSe:mw,x=e.rects.popper,w=e.elements[h?b:f],k=v4e($m(w)?w:w.contextElement||gh(e.elements.popper),l,u,a),E=y1(e.elements.reference),j=Uq({reference:E,element:x,placement:i}),T=FO(Object.assign({},x,j)),C=f===mw?T:E,D={top:k.top-C.top+g.top,bottom:C.bottom-k.bottom+g.bottom,left:k.left-C.left+g.left,right:C.right-k.right+g.right},R=e.modifiersData.offset;if(f===mw&&R){var M=R[i];Object.keys(D).forEach(function(L){var B=[jl,Ol].indexOf(L)>=0?1:-1,W=[fs,Ol].indexOf(L)>=0?"y":"x";D[L]+=M[W]*B})}return D}function y4e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Dq:l,u=b1(r),d=u?s?jq:jq.filter(function(h){return b1(h)===u}):hw,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=bw(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[_u(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function b4e(e){if(_u(e)===DO)return[];var t=T3(e);return[Bq(e),t,Bq(t)]}function w4e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,g=_u(v),b=g===v,x=l||(b||!h?[T3(v)]:b4e(v)),w=[v].concat(x).reduce(function($,F){return $.concat(_u(F)===DO?y4e(t,{placement:F,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):F)},[]),k=t.rects.reference,E=t.rects.popper,j=new Map,T=!0,C=w[0],D=0;D<w.length;D++){var R=w[D],M=_u(R),L=b1(R)===g1,B=[fs,Ol].indexOf(M)>=0,W=B?"width":"height",ee=bw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),G=B?L?jl:hs:L?Ol:fs;k[W]>E[W]&&(G=T3(G));var Y=T3(G),q=[];if(o&&q.push(ee[M]<=0),s&&q.push(ee[G]<=0,ee[Y]<=0),q.every(function($){return $})){C=R,T=!1;break}j.set(R,q)}if(T)for(var V=h?3:1,A=function(F){var N=w.find(function(ne){var z=j.get(ne);if(z)return z.slice(0,F).every(function(Z){return Z})});if(N)return C=N,"break"},U=V;U>0;U--){var P=A(U);if(P==="break")break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}}const _4e={name:"flip",enabled:!0,phase:"main",fn:w4e,requiresIfExists:["offset"],data:{_skip:!1}};function Vq(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qq(e){return[fs,jl,Ol,hs].some(function(t){return e[t]>=0})}function x4e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=bw(t,{elementContext:"reference"}),s=bw(t,{altBoundary:!0}),l=Vq(a,r),c=Vq(s,i,o),u=qq(l),d=qq(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const k4e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x4e};function E4e(e,t,n){var r=_u(e),i=[hs,fs].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[hs,jl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function C4e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Dq.reduce(function(u,d){return u[d]=E4e(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const S4e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:C4e};function T4e(e){var t=e.state,n=e.name;t.modifiersData[n]=Uq({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const A4e={name:"popperOffsets",enabled:!0,phase:"read",fn:T4e,data:{}};function O4e(e){return e==="x"?"y":"x"}function j4e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,v=bw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=_u(t.placement),b=b1(t.placement),x=!b,w=RO(g),k=O4e(w),E=t.modifiersData.popperOffsets,j=t.rects.reference,T=t.rects.popper,C=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(o){var L,B=w==="y"?fs:hs,W=w==="y"?Ol:jl,ee=w==="y"?"height":"width",G=E[w],Y=G+v[B],q=G-v[W],V=p?-T[ee]/2:0,A=b===g1?j[ee]:T[ee],U=b===g1?-T[ee]:-j[ee],P=t.elements.arrow,$=p&&P?$O(P):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mq(),N=F[B],ne=F[W],z=vw(0,j[ee],$[ee]),Z=x?j[ee]/2-V-z-N-D.mainAxis:A-z-N-D.mainAxis,se=x?-j[ee]/2+V+z+ne+D.mainAxis:U+z+ne+D.mainAxis,X=t.elements.arrow&&gw(t.elements.arrow),re=X?w==="y"?X.clientTop||0:X.clientLeft||0:0,le=(L=R==null?void 0:R[w])!=null?L:0,ge=G+Z-le-re,S=G+se-le,I=vw(p?E3(Y,ge):Y,G,p?Rm(q,S):q);E[w]=I,M[w]=I-G}if(s){var H,oe=w==="x"?fs:hs,be=w==="x"?Ol:jl,De=E[k],Fe=k==="y"?"height":"width",tt=De+v[oe],ut=De-v[be],we=[fs,hs].indexOf(g)!==-1,Ge=(H=R==null?void 0:R[k])!=null?H:0,Q=we?tt:De-j[Fe]-T[Fe]-Ge+D.altAxis,ce=we?De+j[Fe]+T[Fe]-Ge-D.altAxis:ut,de=p&&we?e4e(Q,De,ce):vw(p?Q:tt,De,p?ce:ut);E[k]=de,M[k]=de-De}t.modifiersData[r]=M}}const D4e={name:"preventOverflow",enabled:!0,phase:"main",fn:j4e,requiresIfExists:["offset"]};function I4e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function P4e(e){return e===Qs(e)||!Dl(e)?MO(e):I4e(e)}function $4e(e){var t=e.getBoundingClientRect(),n=v1(t.width)/e.offsetWidth||1,r=v1(t.height)/e.offsetHeight||1;return n!==1||r!==1}function R4e(e,t,n){n===void 0&&(n=!1);var r=Dl(t),i=Dl(t)&&$4e(t),o=gh(t),a=y1(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((wu(t)!=="body"||LO(o))&&(s=P4e(t)),Dl(t)?(l=y1(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=NO(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function M4e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function N4e(e){var t=M4e(e);return YSe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function L4e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function F4e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Wq={placement:"bottom",modifiers:[],strategy:"absolute"};function Gq(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function B4e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Wq:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wq,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(g){var b=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:$m(s)?yw(s):s.contextElement?yw(s.contextElement):[],popper:yw(l)};var x=N4e(F4e([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(w){return w.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var g=u.elements,b=g.reference,x=g.popper;if(Gq(b,x)){u.rects={reference:R4e(b,gw(x),u.options.strategy==="fixed"),popper:$O(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var k=u.orderedModifiers[w],E=k.fn,j=k.options,T=j===void 0?{}:j,C=k.name;typeof E=="function"&&(u=E({state:u,options:T,name:C,instance:p})||u)}}}},update:L4e(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){m(),f=!0}};if(!Gq(s,l))return p;p.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var g=v.name,b=v.options,x=b===void 0?{}:b,w=v.effect;if(typeof w=="function"){var k=w({state:u,name:g,instance:p,options:x}),E=function(){};d.push(k||E)}})}function m(){d.forEach(function(v){return v()}),d=[]}return p}}var z4e=[u4e,A4e,l4e,Iq,S4e,_4e,D4e,i4e,k4e],Kq=B4e({defaultModifiers:z4e}),H4e=typeof Element<"u",U4e=typeof Map=="function",V4e=typeof Set=="function",q4e=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function A3(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!A3(e[r],t[r]))return!1;return!0}var o;if(U4e&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!A3(r.value[1],t.get(r.value[0])))return!1;return!0}if(V4e&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(q4e&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(H4e&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!A3(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var W4e=function(t,n){try{return A3(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const G4e=du(W4e);var K4e=[],Y4e=function(t,n,r){r===void 0&&(r={});var i=K.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||K4e},a=K.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=K.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var h=p.state,m=Object.keys(h.elements);Bv.flushSync(function(){l({styles:Tq(m.map(function(v){return[v,h.styles[v]||{}]})),attributes:Tq(m.map(function(v){return[v,h.attributes[v]]}))})})},requires:["computeStyles"]}},[]),u=K.useMemo(function(){var f={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return G4e(i.current,f)?i.current||f:(i.current=f,f)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),d=K.useRef();return Aq(function(){d.current&&d.current.setOptions(u)},[u]),Aq(function(){if(!(t==null||n==null)){var f=r.createPopper||Kq,p=f(t,n,u);return d.current=p,function(){p.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Z4e=function(){},X4e=function(){return Promise.resolve(null)},Q4e=[];function J4e(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?Q4e:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,u=e.children,d=K.useContext(kq),f=K.useState(null),p=f[0],h=f[1],m=K.useState(null),v=m[0],g=m[1];K.useEffect(function(){jO(c,p)},[c,p]);var b=K.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:v!=null,options:{element:v}}])}},[n,i,l,a,v]),x=Y4e(s||d,p,b),w=x.state,k=x.styles,E=x.forceUpdate,j=x.update,T=K.useMemo(function(){return{ref:h,style:k.popper,placement:w?w.placement:n,hasPopperEscaped:w&&w.modifiersData.hide?w.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:w&&w.modifiersData.hide?w.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:g},forceUpdate:E||Z4e,update:j||X4e}},[h,g,n,w,k,j,E]);return Cq(u)(T)}var e5e=process.env.NODE_ENV!=="production",Yq=function(){};if(e5e){var t5e=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};Yq=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t5e.apply(null,[t].concat(n))}}var n5e=Yq;const r5e=du(n5e);function i5e(e){var t=e.children,n=e.innerRef,r=K.useContext(Eq),i=K.useCallback(function(o){jO(n,o),Sq(r,o)},[n,r]);return K.useEffect(function(){return function(){return jO(n,null)}},[]),K.useEffect(function(){r5e(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),Cq(t)({ref:i})}const o5e={Info:"_Info_1syrj_1"},a5e=({text:e,disabled:t=!1,preferPlace:n="top",offset:r=2,active:i=!1,wait:o=300,children:a,className:s,hover:l=!0,leaveOpen:c=0})=>{const u=O.useRef(null),[d,f]=O.useState(i),p=O.useCallback(()=>{u.current!==null&&clearTimeout(u.current)},[]),h=O.useCallback(()=>{p(),u.current=setTimeout(()=>{f(!0)},o)},[o,p]),m=O.useCallback(()=>{p(),c!==0?u.current=setTimeout(()=>{f(!1)},c):l&&f(!1)},[l,c,p]),v=O.useCallback(()=>{p(),f(!0)},[p]),g=O.useCallback(()=>{p(),f(!1)},[p]),b=O.useMemo(()=>[{name:"offset",options:{offset:[0,r]}}],[r]);return O.useEffect(()=>p,[p]),t?a:y.jsxs(NSe,{children:[y.jsx(i5e,{children:({ref:x})=>O.cloneElement(a,{ref:x,onMouseEnter:h,onMouseLeave:m})}),d?ls.createPortal(y.jsx(J4e,{placement:n,modifiers:b,children:({ref:x,style:w,placement:k})=>y.jsx("div",{onMouseEnter:v,onMouseLeave:g,ref:x,className:bu(o5e.Info,s),style:w,"data-placement":k,children:e})}),document.body):null]})};function s5e({hideRect:e,...t}){return y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:y.jsx("g",{id:"icon.ndg/solid/store 01-",children:y.jsxs("g",{id:"Vector",children:[y.jsx("path",{d:"M7.73146 2H17.2689C19.0863 2 20.7206 3.24475 21.3955 5.14305L22.1535 7.27487C22.3829 7.92019 22.5415 8.61074 22.3742 9.27488C21.9778 10.8478 20.692 12 19.1669 12C17.3259 12 15.8335 10.3211 15.8335 8.25C15.8335 10.3211 14.3412 12 12.5002 12C10.6593 12 9.16687 10.3211 9.16687 8.25C9.16687 10.3211 7.67449 12 5.83354 12C4.30844 12 3.02257 10.8478 2.62622 9.27488C2.45887 8.61074 2.61747 7.92019 2.84692 7.27487L3.6049 5.14305C4.27985 3.24476 5.91411 2 7.73146 2Z",fill:"currentColor"}),y.jsx("path",{d:"M4.50021 13.3005V17.9999C4.50021 20.2091 6.29107 21.9999 8.50021 21.9999H9.50021V20C9.50021 18.3431 10.8434 17 12.5002 17C14.1571 17 15.5002 18.3431 15.5002 20V21.9999H16.5002C18.7093 21.9999 20.5002 20.2091 20.5002 17.9999V13.3005C20.0814 13.4298 19.635 13.4999 19.1669 13.4999C17.8298 13.4999 16.6774 12.9373 15.8336 12.0559C14.9898 12.9373 13.8374 13.4999 12.5003 13.4999C11.1632 13.4999 10.0108 12.9373 9.16695 12.0559C8.32313 12.9373 7.17073 13.4999 5.83361 13.4999C5.36548 13.4999 4.91907 13.4297 4.50021 13.3005Z",fill:"currentColor"})]})})})}function l5e(e){switch(e){case"text":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain text answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"image":return y.jsxs("div",{children:[y.jsx("img",{src:"/images/Picture.png",alt:""}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Upload or link a picture"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"videods":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain videods answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"video":return y.jsxs("div",{children:[y.jsx("img",{src:"/images/Video.png",alt:""}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Connect from YouTube, Vimeo, direct link..."})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"generative":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"This text will be dynamically generated by an AI!"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a prompt answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"agent":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"This text will be dynamically generated by an AI!"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add an agent answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"card":return y.jsxs("div",{children:[y.jsx("div",{className:cn.TooltipIconContainer,children:y.jsx("img",{src:"/images/Card.png",alt:"",className:cn.TooltipIcon})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a card to show your content"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"api":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Call an API and save the result"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add an api answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"conditional":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Show blocks based on conditions"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a conditional answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"capture":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Ask a user for a value"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a capture answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"redirect":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Go to another answer"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a reroute answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"setValues":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Set the values of variables"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a set values answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"contactRequest":case"agentTakeover":return y.jsx("div",{children:y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Logic block"})})});case"note":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Take notes on the answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"products":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain text answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"mail":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain mail answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"upload":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a upload block"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"quickReply":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"A button"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a quick reply"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});default:return console.warn("Unknown block type:",e),y.jsx(y.Fragment,{})}}function Zq(e){switch(e){case"text":return fz;case"image":return mz;case"video":return B9;case"videods":return B9;case"generative":return jbe;case"agent":return YU;case"card":return bz;case"reroute":return z9;case"collectData":return vz;case"api":return yz;case"conditional":return wz;case"capture":return hz;case"redirect":return z9;case"setValues":return pz;case"contactRequest":return Ok;case"agentTakeover":return Jbe;case"note":return hwe;case"products":return s5e;case"mail":return Ok;case"upload":return eV;case"quickReply":return dz;case"metadata":return uz;default:return console.warn("Unknown block type:",e),()=>null}}function c5e(e){switch(e){case"text":return"Text";case"image":return"Image";case"video":return"Video";case"videods":return"VideoDS";case"generative":return"Prompt";case"agent":return"Agent";case"card":return"Card";case"api":return"API";case"conditional":return"Condition";case"capture":return"Capture";case"redirect":return"Reroute";case"setValues":return"Set Values";case"contactRequest":return"Contact";case"agentTakeover":return"Handover";case"note":return"Note";case"products":return"Products";case"mail":return"Mail";case"upload":return"Upload";case"quickReply":return"Quick Reply";case"metadata":return"Metadata";default:return console.warn("Unknown block type:",e),""}}const BO=O.forwardRef(({type:e,section:t,addBlock:n,dragAttributes:r,dragListeners:i,isDragging:o,getBlockTooltip:a,getBlockLabel:s,dragOverlay:l=!1,noInfo:c=!1},u)=>{const d=O.useCallback(()=>{n(e)},[e,n]),f=Zq(e);return y.jsx(a5e,{className:cn.Info,preferPlace:"left",text:(a==null?void 0:a(e))||l5e(e),wait:1e3,disabled:c,children:y.jsx("div",{"data-testid":e+"-button",children:y.jsxs("button",{ref:u,className:bu(cn.Block,o&&!l&&cn.IsDragging,l&&cn.IsDraggingIcon),onClick:d,...i,...r,"data-section":t,children:[y.jsx(f,{className:cn.ToolbarButtonIcon}),y.jsx(et,{size:"xs",fontWeight:"regular",color:"gray-1000",children:(s==null?void 0:s(e))||c5e(e)})]})})})});function u5e({name:e,sections:t,blocks:n,addBlock:r,dragIndex:i,renderDraggableButton:o}){const a=t.find(s=>s.name===e);return y.jsxs(tA,{value:e,className:cn.Section,children:[y.jsx(nA,{className:cn.SectionHeader,children:y.jsx(rA,{asChild:!0,children:y.jsx(jr,{size:"md",variant:"text",className:cn.SectionTrigger,startIcon:y.jsx(H9,{className:cn.Chevron,"aria-hidden":!0}),children:y.jsx(et,{size:"xs",color:"gray-1000",children:a==null?void 0:a.label})})})}),y.jsx(iA,{className:cn.BlockButtons,children:n.map((s,l)=>y.jsx(O.Fragment,{children:o({type:s,index:l,section:(a==null?void 0:a.name)+"",addBlock:r,activeIndex:i})},l))})]})}const Xq=O.forwardRef(({className:e,addBlock:t,blockPermissions:n,sections:r,searchPlaceholder:i,renderDraggableButton:o,itemBeingDragged:a="toolbar-button-text"},s)=>{const l=O.useMemo(()=>r.map(w=>w.name),[r]),[c,u]=O.useState(""),d=O.useMemo(()=>r.reduce((w,k)=>w.concat((k.blocks||[]).filter(E=>n[E]).map(E=>E)),[]),[r,n]),f=O.useMemo(()=>d.filter(w=>w.toLowerCase().includes(c.toLowerCase())),[d,c]),p=f.findIndex(w=>a==null?void 0:a.includes(w));O.useEffect(()=>{var w;p<0||window.dispatchEvent(new CustomEvent("indigoai-set-global-drag-overlay",{detail:y.jsx("div",{children:y.jsx(BO,{dragOverlay:!0,type:f[p],addBlock:()=>{},noInfo:!0,section:((w=(r||[]).find(k=>{var E;return(E=k.blocks)==null?void 0:E.some(j=>j===f[p])}))==null?void 0:w.name)+""})})}))},[f,p]);const h=O.useRef(null),m=O.useCallback(()=>{u(""),h!=null&&h.current&&(h.current.value="")},[]),v=O.useCallback(w=>{w.stopPropagation(),w.key==="Escape"&&m()},[m]),g=O.useCallback(w=>{u(w)},[]),b=O.useMemo(()=>MSe(g,300),[g]),x=O.useCallback(w=>{const k=w.target.value;b(k)},[b]);return y.jsxs("div",{ref:s,className:bu(cn.Toolbar,e),"data-testid":"toolbar-blocks",children:[y.jsx("div",{className:cn.Header,children:y.jsx(so,{ref:h,size:"md",variant:"outlined",placeholder:i||"Search Block",onChange:x,onKeyDown:v,"data-testid":"block-search"})}),y.jsx("div",{className:cn.Sections,children:y.jsx(nw,{className:cn.SimpleBar,children:y.jsx(eA,{type:"multiple",defaultValue:l,children:r.map(w=>{const k=((w==null?void 0:w.blocks)||[]).filter(E=>f.indexOf(E)>-1);return k.length===0?null:y.jsx(u5e,{name:w.name,sections:r,blocks:k,addBlock:t,dragIndex:p,renderDraggableButton:o},w.name)})})})})]})});Xq.displayName="BuilderBlockToolbar",BO.displayName="ToolbarButton";const Qq={"root-container":"_root-container_1hesv_1","atom-quick-replies-input-container":"_atom-quick-replies-input-container_1hesv_20"},d5e=32,zO=O.forwardRef((e,t)=>{const{buttonLabel:n,buttonLabelMaxLength:r=d5e,selectorProps:i,setButtonLabel:o}=e,[a,s]=O.useState(!1),[l,c]=O.useState(()=>n??"");O.useEffect(()=>{n!=null&&c(n)},[n]);const u=O.useRef(),d=O.useCallback(()=>{u.current!==null&&clearTimeout(u.current)},[]);return O.useEffect(()=>{l.length>r&&(s(!0),d(),u.current=setTimeout(()=>{s(!1)},3e3)),c(f=>f.slice(0,r)??"")},[l]),y.jsx("div",{className:Qq["root-container"],children:y.jsxs("div",{className:Qq["atom-quick-replies-input-container"],children:[y.jsxs(Id,{rootProps:{open:a},children:[y.jsx(vu,{children:y.jsx(so,{variant:"filled",value:l,onChange:f=>c(f.target.value),onBlur:f=>o(f.target.value),size:"sm",autoComplete:"off",autoResize:!0})}),y.jsx(gu,{isDark:!0,title:"Sooo long...",description:`Maximum length is ${r} character${r>1&&"s"}`})]}),y.jsx(a1,{label:"Choose destination",...i})]})})});zO.displayName="AtomQuickRepliesInput";const HO={"ai-chat--trigger":"_ai-chat--trigger_17efd_1","ai-chat":"_ai-chat_17efd_1","ai-chat--container":"_ai-chat--container_17efd_11"},Jq=Am;Jq.displayName="ChatRoot";const eW=O.forwardRef((e,t)=>y.jsx(Om,{ref:t,className:HO["ai-chat--trigger"],onClick:n=>n.preventDefault,children:y.jsx(xO,{image:e.avatarBot.image,active:e.active,onClick:e.onClick})}));eW.displayName="ChatTrigger";const tW=O.forwardRef(({children:e},t)=>y.jsx(yV,{children:y.jsx(jm,{ref:t,side:"top",align:"end",avoidCollisions:!1,sideOffset:16,className:HO["ai-chat--container"],children:y.jsx("div",{className:HO["ai-chat"],children:e})})}));tW.displayName="ChatContainer";const O3={"chat-header":"_chat-header_2piic_1","chat-header--purple":"_chat-header--purple_2piic_14","chat-header--white":"_chat-header--white_2piic_18","chat-header--label":"_chat-header--label_2piic_22","chat-header--close":"_chat-header--close_2piic_27"},f5e=({botName:e,avatar:t,repliesInstantlyLabel:n="Replies instantly",type:r})=>{const i=r==="purple"?"white":"gray-1000";return y.jsxs("div",{className:vt(O3["chat-header"],O3[`chat-header--${r}`]),children:[y.jsx("div",{children:y.jsx(mh,{...t})}),y.jsxs("div",{className:O3["chat-header--label"],children:[y.jsx(et,{fontWeight:"bold",size:"md",color:i,children:e}),y.jsx(et,{fontWeight:"regular",size:"xs",color:i,children:n})]}),y.jsx(PCe,{className:O3["chat-header--close"],children:y.jsx(l3,{color:i,height:"3.2rem",width:"3.2rem"})})]})},nW={"chat-content":"_chat-content_1yrah_1","chat-messages":"_chat-messages_1yrah_16"},w1={"chat-input--container":"_chat-input--container_vv57m_1","chat-input--disabled":"_chat-input--disabled_vv57m_13","chat-input--input":"_chat-input--input_vv57m_18","chat-input--icon":"_chat-input--icon_vv57m_42","chat-input--content":"_chat-input--content_vv57m_53","send-button":"_send-button_vv57m_70"},h5e=(e,t)=>{O.useEffect(()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}},[e,t])},rW=O.forwardRef((e,t)=>{const{disabled:n,placeholder:r,className:i,onChange:o,value:a,...s}=e,l=O.useRef(null),[c,u]=O.useState(a);h5e(l.current,c);const d=f=>{var h;const p=(h=f.target)==null?void 0:h.value;u(p),o==null||o(f)};return y.jsx("div",{className:vt(w1["chat-input--container"],n&&w1["chat-input--disabled"],i),children:y.jsxs("div",{className:w1["chat-input--content"],children:[y.jsx("textarea",{ref:l,className:vt(w1["chat-input--input"],n&&"cursor-not-allowed"),placeholder:r,disabled:n,value:c,onChange:d,rows:1,...s}),y.jsx("span",{className:w1["chat-input--icon"],children:y.jsx(vr,{className:w1["send-button"],variant:"ghost",color:"primary",size:"md",children:y.jsx(Ewe,{className:"text--purple-600"})})})]})})});rW.displayName="ChatInput";const Qr={"chat-item":"_chat-item_1oblk_1","chat-item--bot":"_chat-item--bot_1oblk_6","chat-item--user":"_chat-item--user_1oblk_10","chat-item--avatar-container":"_chat-item--avatar-container_1oblk_14","chat-item--chat":"_chat-item--chat_1oblk_20","chat-item--typing":"_chat-item--typing_1oblk_28","chat-item--chat-bot":"_chat-item--chat-bot_1oblk_37","chat-item--chat-user":"_chat-item--chat-user_1oblk_43","chat-item--feedback-requested":"_chat-item--feedback-requested_1oblk_49","chat-item--media":"_chat-item--media_1oblk_53","chat-item--image":"_chat-item--image_1oblk_57","chat-item--video":"_chat-item--video_1oblk_62","chat-item--button-container":"_chat-item--button-container_1oblk_67","chat-item--caption":"_chat-item--caption_1oblk_76","chat-item--icon":"_chat-item--icon_1oblk_80","chat-item--feedback":"_chat-item--feedback_1oblk_49","chat-item-feedback-icons":"_chat-item-feedback-icons_1oblk_102","chat-item--feedback-given":"_chat-item--feedback-given_1oblk_107","chat-item--card":"_chat-item--card_1oblk_114","chat-item--card-image":"_chat-item--card-image_1oblk_123","chat-item--card-content":"_chat-item--card-content_1oblk_127","chat-item--card-buttons":"_chat-item--card-buttons_1oblk_134","chat-item--carousel":"_chat-item--carousel_1oblk_138","chat-item--carousel-card":"_chat-item--carousel-card_1oblk_147","chat-item--carousel-left-navigation":"_chat-item--carousel-left-navigation_1oblk_155","chat-item--carousel-right-navigation":"_chat-item--carousel-right-navigation_1oblk_162","swiper-wrapper":"_swiper-wrapper_1oblk_169"};function iW(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function UO(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:iW(t[n])&&iW(e[n])&&Object.keys(t[n]).length>0&&UO(e[n],t[n])})}const oW={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ld(){const e=typeof document<"u"?document:{};return UO(e,oW),e}const p5e={document:oW,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Va(){const e=typeof window<"u"?window:{};return UO(e,p5e),e}function m5e(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function VO(e,t=0){return setTimeout(e,t)}function j3(){return Date.now()}function g5e(e){const t=Va();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function v5e(e,t="x"){const n=Va();let r,i,o;const a=g5e(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(s=>s.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function D3(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function y5e(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Js(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!y5e(i)){const o=Object.keys(Object(i)).filter(a=>n.indexOf(a)<0);for(let a=0,s=o.length;a<s;a+=1){const l=o[a],c=Object.getOwnPropertyDescriptor(i,l);c!==void 0&&c.enumerable&&(D3(t[l])&&D3(i[l])?i[l].__swiper__?t[l]=i[l]:Js(t[l],i[l]):!D3(t[l])&&D3(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:Js(t[l],i[l])):t[l]=i[l])}}}return t}function I3(e,t,n){e.style.setProperty(t,n)}function aW({swiper:e,targetPosition:t,side:n}){const r=Va(),i=-e.translate;let o=null,a;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",c=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,u=()=>{a=new Date().getTime(),o===null&&(o=a);const d=Math.max(Math.min((a-o)/s,1),0),f=.5-Math.cos(d*Math.PI)/2;let p=i+f*(t-i);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function xu(e,t=""){return[...e.children].filter(n=>n.matches(t))}function sW(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function b5e(e){const t=Va(),n=Ld(),r=e.getBoundingClientRect(),i=n.body,o=e.clientTop||i.clientTop||0,a=e.clientLeft||i.clientLeft||0,s=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+s-o,left:r.left+l-a}}function w5e(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function _5e(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function vh(e,t){return Va().getComputedStyle(e,null).getPropertyValue(t)}function lW(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function qO(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function cW(e,t,n){const r=Va();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}let WO;function x5e(){const e=Va(),t=Ld();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function uW(){return WO||(WO=x5e()),WO}let GO;function k5e({userAgent:e}={}){const t=uW(),n=Va(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let p=r==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&h.indexOf(`${a}x${s}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}function E5e(e={}){return GO||(GO=k5e(e)),GO}let KO;function C5e(){const e=Va();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,o]=r.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));t=i<16||i===16&&o<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function S5e(){return KO||(KO=C5e()),KO}function T5e({swiper:e,on:t,emit:n}){const r=Va();let i=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(u=>{o=r.requestAnimationFrame(()=>{const{width:d,height:f}=e;let p=d,h=f;u.forEach(({contentBoxSize:m,contentRect:v,target:g})=>{g&&g!==e.el||(p=v?v.width:(m[0]||m).inlineSize,h=v?v.height:(m[0]||m).blockSize)}),(p!==d||h!==f)&&a()})}),i.observe(e.el))},l=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){s();return}r.addEventListener("resize",a),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",c)})}function A5e({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Va(),a=(c,u={})=>{const d=o.MutationObserver||o.WebkitMutationObserver,f=new d(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const h=function(){r("observerUpdate",p[0])};o.requestAnimationFrame?o.requestAnimationFrame(h):o.setTimeout(h,0)});f.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),i.push(f)},s=()=>{if(e.params.observer){if(e.params.observeParents){const c=qO(e.el);for(let u=0;u<c.length;u+=1)a(c[u])}a(e.el,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},l=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",l)}const O5e={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(i,[a,...r])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(s=>{s.apply(i,r)})}),t}};function j5e(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(vh(r,"padding-left")||0,10)-parseInt(vh(r,"padding-right")||0,10),n=n-parseInt(vh(r,"padding-top")||0,10)-parseInt(vh(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function D5e(){const e=this;function t(R){return e.isHorizontal()?R:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[R]}function n(R,M){return parseFloat(R.getPropertyValue(t(M))||0)}const r=e.params,{wrapperEl:i,slidesEl:o,size:a,rtlTranslate:s,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=xu(o,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let p=[];const h=[],m=[];let v=r.slidesOffsetBefore;typeof v=="function"&&(v=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(e));const b=e.snapGrid.length,x=e.slidesGrid.length;let w=r.spaceBetween,k=-v,E=0,j=0;if(typeof a>"u")return;typeof w=="string"&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*a:typeof w=="string"&&(w=parseFloat(w)),e.virtualSize=-w,d.forEach(R=>{s?R.style.marginLeft="":R.style.marginRight="",R.style.marginBottom="",R.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(I3(i,"--swiper-centered-offset-before",""),I3(i,"--swiper-centered-offset-after",""));const T=r.grid&&r.grid.rows>1&&e.grid;T&&e.grid.initSlides(f);let C;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(R=>typeof r.breakpoints[R].slidesPerView<"u").length>0;for(let R=0;R<f;R+=1){C=0;let M;if(d[R]&&(M=d[R]),T&&e.grid.updateSlide(R,M,f,t),!(d[R]&&vh(M,"display")==="none")){if(r.slidesPerView==="auto"){D&&(d[R].style[t("width")]="");const L=getComputedStyle(M),B=M.style.transform,W=M.style.webkitTransform;if(B&&(M.style.transform="none"),W&&(M.style.webkitTransform="none"),r.roundLengths)C=e.isHorizontal()?cW(M,"width"):cW(M,"height");else{const ee=n(L,"width"),G=n(L,"padding-left"),Y=n(L,"padding-right"),q=n(L,"margin-left"),V=n(L,"margin-right"),A=L.getPropertyValue("box-sizing");if(A&&A==="border-box")C=ee+q+V;else{const{clientWidth:U,offsetWidth:P}=M;C=ee+G+Y+q+V+(P-U)}}B&&(M.style.transform=B),W&&(M.style.webkitTransform=W),r.roundLengths&&(C=Math.floor(C))}else C=(a-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(C=Math.floor(C)),d[R]&&(d[R].style[t("width")]=`${C}px`);d[R]&&(d[R].swiperSlideSize=C),m.push(C),r.centeredSlides?(k=k+C/2+E/2+w,E===0&&R!==0&&(k=k-a/2-w),R===0&&(k=k-a/2-w),Math.abs(k)<1/1e3&&(k=0),r.roundLengths&&(k=Math.floor(k)),j%r.slidesPerGroup===0&&p.push(k),h.push(k)):(r.roundLengths&&(k=Math.floor(k)),(j-Math.min(e.params.slidesPerGroupSkip,j))%e.params.slidesPerGroup===0&&p.push(k),h.push(k),k=k+C+w),e.virtualSize+=C+w,E=C,j+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+g,s&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+w}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+w}px`),T&&e.grid.updateWrapperSize(C,p,t),!r.centeredSlides){const R=[];for(let M=0;M<p.length;M+=1){let L=p[M];r.roundLengths&&(L=Math.floor(L)),p[M]<=e.virtualSize-a&&R.push(L)}p=R,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(c&&r.loop){const R=m[0]+w;if(r.slidesPerGroup>1){const M=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),L=R*r.slidesPerGroup;for(let B=0;B<M;B+=1)p.push(p[p.length-1]+L)}for(let M=0;M<e.virtual.slidesBefore+e.virtual.slidesAfter;M+=1)r.slidesPerGroup===1&&p.push(p[p.length-1]+R),h.push(h[h.length-1]+R),e.virtualSize+=R}if(p.length===0&&(p=[0]),w!==0){const R=e.isHorizontal()&&s?"marginLeft":t("marginRight");d.filter((M,L)=>!r.cssMode||r.loop?!0:L!==d.length-1).forEach(M=>{M.style[R]=`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let R=0;m.forEach(L=>{R+=L+(w||0)}),R-=w;const M=R-a;p=p.map(L=>L<=0?-v:L>M?M+g:L)}if(r.centerInsufficientSlides){let R=0;if(m.forEach(M=>{R+=M+(w||0)}),R-=w,R<a){const M=(a-R)/2;p.forEach((L,B)=>{p[B]=L-M}),h.forEach((L,B)=>{h[B]=L+M})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){I3(i,"--swiper-centered-offset-before",`${-p[0]}px`),I3(i,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const R=-e.snapGrid[0],M=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+R),e.slidesGrid=e.slidesGrid.map(L=>L+M)}if(f!==u&&e.emit("slidesLengthChange"),p.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==x&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const R=`${r.containerModifierClass}backface-hidden`,M=e.el.classList.contains(R);f<=r.maxBackfaceHiddenSlides?M||e.el.classList.add(R):M&&e.el.classList.remove(R)}}function I5e(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=s=>r?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{n.push(s)});else for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const s=t.activeIndex+o;if(s>t.slides.length&&!r)break;n.push(a(s))}else n.push(a(t.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const s=n[o].offsetHeight;i=s>i?s:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function P5e(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function $5e(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;i&&(a=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(a+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+s),f=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+s),p=-(a-u),h=p+t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=i?-d:d,c.originalProgress=i?-f:f}}function R5e(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,c=a;if(r===0)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;o=u||i<=0,a=d||i>=1,u&&(i=0),d&&(i=1)}if(n.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[u],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?s=(m-f)/h:s=(m+h-p)/h,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)}function M5e(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=l=>xu(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s;if(o)if(n.loop){let l=i-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${l}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else s=t[i];if(s){s.classList.add(n.slideActiveClass);let l=_5e(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=w5e(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const P3=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}},YO=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},ZO=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=i,s=[a-t];s.push(...Array.from({length:t}).map((l,c)=>a+r+c)),e.slides.forEach((l,c)=>{s.includes(l.column)&&YO(e,c)});return}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=o+t;a+=1){const s=(a%n+n)%n;(s<i||s>o)&&YO(e,s)}else for(let a=Math.max(i-t,0);a<=Math.min(o+t,n-1);a+=1)a!==i&&(a>o||a<i)&&YO(e,a)};function N5e(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)typeof t[o+1]<"u"?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function L5e(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l=e,c;const u=f=>{let p=f-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof l>"u"&&(l=N5e(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const f=Math.min(i.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/i.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===o){c!==s&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(l));return}let d;t.virtual&&i.virtual.enabled&&i.loop?d=u(l):t.slides[l]?d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):d=l,Object.assign(t,{previousSnapIndex:s,snapIndex:c,previousRealIndex:a,realIndex:d,previousIndex:o,activeIndex:l}),t.initialized&&ZO(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function F5e(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,o;if(r){for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===r){i=!0,o=a;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const B5e={updateSize:j5e,updateSlides:D5e,updateAutoHeight:I5e,updateSlidesOffset:P5e,updateSlidesProgress:$5e,updateProgress:R5e,updateSlidesClasses:M5e,updateActiveIndex:L5e,updateClickedSlide:F5e};function z5e(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:o}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let a=v5e(o,e);return a+=t.cssOverflowAdjustment(),r&&(a=-a),a||0}function H5e(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s=0,l=0;const c=0;n.isHorizontal()?s=r?-e:e:l=e,i.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:l,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-l:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${s}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(e-n.minTranslate())/d,u!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function U5e(){return-this.snapGrid[0]}function V5e(){return-this.snapGrid[this.snapGrid.length-1]}function q5e(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(r&&e>l?u=l:r&&e<c?u=c:u=e,o.updateProgress(u),a.cssMode){const d=o.isHorizontal();if(t===0)s[d?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return aW({swiper:o,targetPosition:-u,side:d?"left":"top"}),!0;s.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}const W5e={getTranslate:z5e,setTranslate:H5e,minTranslate:U5e,maxTranslate:V5e,translateTo:q5e};function G5e(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function dW({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let a=n;if(a||(i>o?a="next":i<o?a="prev":a="reset"),e.emit(`transition${r}`),t&&i!==o){if(a==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),a==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function K5e(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),dW({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function Y5e(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),dW({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const Z5e={setTransition:G5e,transitionStart:K5e,transitionEnd:Y5e};function X5e(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=o;if(o.animating&&s.preventInteractionOnTransition||!h&&!r&&!i)return!1;const m=Math.min(o.params.slidesPerGroupSkip,a);let v=m+Math.floor((a-m)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(s.normalizeSlideIndex)for(let x=0;x<c.length;x+=1){const w=-Math.floor(g*100),k=Math.floor(c[x]*100),E=Math.floor(c[x+1]*100);typeof c[x+1]<"u"?w>=k&&w<E-(E-k)/2?a=x:w>=k&&w<E&&(a=x+1):w>=k&&(a=x)}if(o.initialized&&a!==d&&(!o.allowSlideNext&&(f?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate())||!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==a))return!1;a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g);let b;if(a>d?b="next":a<d?b="prev":b="reset",f&&-g===o.translate||!f&&g===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),s.effect!=="slide"&&o.setTranslate(g),b!=="reset"&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(s.cssMode){const x=o.isHorizontal(),w=f?g:-g;if(t===0){const k=o.virtual&&o.params.virtual.enabled;k&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),k&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[x?"scrollLeft":"scrollTop"]=w})):p[x?"scrollLeft":"scrollTop"]=w,k&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return aW({swiper:o,targetPosition:w,side:x?"left":"top"}),!0;p.scrollTo({[x?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,b),t===0?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function Q5e(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o=o+i.virtual.slidesBefore:o=i.getSlideIndexByData(o)),i.slideTo(o,t,n,r)}function J5e(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i)return r;let s=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:s,c=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function e6e(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=r;if(!l)return r;const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=s?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=o.map(g=>f(g));let m=o[h.indexOf(p)-1];if(typeof m>"u"&&i.cssMode){let g;o.forEach((b,x)=>{p>=b&&(g=x)}),typeof g<"u"&&(m=o[g>0?g-1:g])}let v=0;if(typeof m<"u"&&(v=a.indexOf(m),v<0&&(v=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return r.slideTo(v,e,t,n)}function t6e(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function n6e(e=this.params.speed,t=!0,n,r=.5){const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const c=i.snapGrid[s],u=i.snapGrid[s+1];l-c>(u-c)*r&&(o+=i.params.slidesPerGroup)}else{const c=i.snapGrid[s-1],u=i.snapGrid[s];l-c<=(u-c)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function r6e(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(xu(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),VO(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(xu(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),VO(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const i6e={slideTo:X5e,slideToLoop:Q5e,slideNext:J5e,slidePrev:e6e,slideReset:t6e,slideToClosest:n6e,slideToClickedSlide:r6e};function o6e(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;xu(r,`.${n.slideClass}, swiper-slide`).forEach((o,a)=>{o.setAttribute("data-swiper-slide-index",a)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function a6e({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:a}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:f}=s;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):f.centeredSlides&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=c,s.allowSlideNext=u,s.emit("loopFix");return}const p=f.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let h=f.loopedSlides||p;h%f.slidesPerGroup!==0&&(h+=f.slidesPerGroup-h%f.slidesPerGroup),s.loopedSlides=h;const m=[],v=[];let g=s.activeIndex;typeof i>"u"?i=s.getSlideIndex(s.slides.filter(E=>E.classList.contains(f.slideActiveClass))[0]):g=i;const b=n==="next"||!n,x=n==="prev"||!n;let w=0,k=0;if(i<h){w=Math.max(h-i,f.slidesPerGroup);for(let E=0;E<h-i;E+=1){const j=E-Math.floor(E/l.length)*l.length;m.push(l.length-j-1)}}else if(i>s.slides.length-h*2){k=Math.max(i-(s.slides.length-h*2),f.slidesPerGroup);for(let E=0;E<k;E+=1){const j=E-Math.floor(E/l.length)*l.length;v.push(j)}}if(x&&m.forEach(E=>{s.slides[E].swiperLoopMoveDOM=!0,d.prepend(s.slides[E]),s.slides[E].swiperLoopMoveDOM=!1}),b&&v.forEach(E=>{s.slides[E].swiperLoopMoveDOM=!0,d.append(s.slides[E]),s.slides[E].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"&&s.updateSlides(),f.watchSlidesProgress&&s.updateSlidesOffset(),t){if(m.length>0&&x)if(typeof e>"u"){const E=s.slidesGrid[g],T=s.slidesGrid[g+w]-E;a?s.setTranslate(s.translate-T):(s.slideTo(g+w,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=T))}else r&&s.slideToLoop(e,0,!1,!0);else if(v.length>0&&b)if(typeof e>"u"){const E=s.slidesGrid[g],T=s.slidesGrid[g-k]-E;a?s.setTranslate(s.translate-T):(s.slideTo(g-k,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=T))}else s.slideToLoop(e,0,!1,!0)}if(s.allowSlidePrev=c,s.allowSlideNext=u,s.controller&&s.controller.control&&!o){const E={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(j=>{!j.destroyed&&j.params.loop&&j.loopFix(E)}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix(E)}s.emit("loopFix")}function s6e(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const o=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const l6e={loopCreate:o6e,loopFix:a6e,loopDestroy:s6e};function c6e(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function u6e(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const d6e={setGrabCursor:c6e,unsetGrabCursor:u6e};function f6e(e,t=this){function n(r){if(!r||r===Ld()||r===Va())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function h6e(e){const t=this,n=Ld(),r=Va(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:a,enabled:s}=t;if(!s||!o.simulateTouch&&e.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=d[0]);const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(p?f6e(f,c):c.closest(f))){t.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const h=a.currentX,m=a.currentY,v=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,g=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(v&&(h<=g||h>=r.innerWidth-g))if(v==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,i.touchStartTime=j3(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let b=!0;c.matches(i.focusableElements)&&(b=!1,c.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const x=b&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!c.isContentEditable&&l.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function p6e(e){const t=Ld(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(E=>E.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const u=r.evCache.length>1?r.evCache[0]:l,d=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){o.startX=d,o.startY=f;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:d,startY:f,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:f}),r.touchStartTime=j3());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(f<o.startY&&n.translate<=n.maxTranslate()||f>o.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<o.startX&&n.translate<=n.maxTranslate()||d>o.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=d,o.currentY=f;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let E;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:p*p+h*h>=25&&(E=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let m=n.isHorizontal()?p:h,v=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),v=Math.abs(v)*(a?1:-1)),o.diff=m,m*=i.touchRatio,a&&(m=-m,v=-v);const g=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const b=n.params.loop&&!i.cssMode;if(!r.isMoved){if(b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let x;r.isMoved&&g!==n.touchesDirection&&b&&Math.abs(m)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),x=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let w=!0,k=i.resistanceRatio;if(i.touchReleaseOnEdges&&(k=0),m>0?(b&&!x&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**k))):m<0&&(b&&!x&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**k))),w&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(m)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function m6e(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(x=>x.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:i,touches:o,rtlTranslate:a,slidesGrid:s,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=j3(),d=u-n.touchStartTime;if(t.allowClick){const x=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(x&&x[0]||c.target),t.emit("tap click",c),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=j3(),VO(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(i.followFinger?f=a?t.translate:-t.translate:f=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,h=t.slidesSizesGrid[0];for(let x=0;x<s.length;x+=x<i.slidesPerGroupSkip?1:i.slidesPerGroup){const w=x<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof s[x+w]<"u"?f>=s[x]&&f<s[x+w]&&(p=x,h=s[x+w]-s[x]):f>=s[x]&&(p=x,h=s[s.length-1]-s[s.length-2])}let m=null,v=null;i.rewind&&(t.isBeginning?v=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const g=(f-s[p])/h,b=p<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(d>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?m:p+b):t.slideTo(p)),t.swipeDirection==="prev"&&(g>1-i.longSwipesRatio?t.slideTo(p+b):v!==null&&g<0&&Math.abs(g)>i.longSwipesRatio?t.slideTo(v):t.slideTo(p))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:p+b),t.swipeDirection==="prev"&&t.slideTo(v!==null?v:p))}}function fW(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function g6e(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function v6e(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function y6e(e){const t=this;P3(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let hW=!1;function b6e(){}const pW=(e,t)=>{const n=Ld(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",fW,!0):e[c]("observerUpdate",fW,!0),i[l]("load",e.onLoad,{capture:!0})};function w6e(){const e=this,t=Ld(),{params:n}=e;e.onTouchStart=h6e.bind(e),e.onTouchMove=p6e.bind(e),e.onTouchEnd=m6e.bind(e),n.cssMode&&(e.onScroll=v6e.bind(e)),e.onClick=g6e.bind(e),e.onLoad=y6e.bind(e),hW||(t.addEventListener("touchstart",b6e),hW=!0),pW(e,"on")}function _6e(){pW(this,"off")}const x6e={attachEvents:w6e,detachEvents:_6e},mW=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function k6e(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||e.originalParams,c=mW(e,r),u=mW(e,l),d=r.enabled;c&&!u?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof l[m]>"u")return;const v=r[m]&&r[m].enabled,g=l[m]&&l[m].enabled;v&&!g&&e[m].disable(),!v&&g&&e[m].enable()});const f=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);f&&n&&e.changeDirection(),Js(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function E6e(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Va(),o=t==="window"?i.innerHeight:n.clientHeight,a=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:o*l,point:s}}return{value:s,point:s}});a.sort((s,l)=>parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s<a.length;s+=1){const{point:l,value:c}=a[s];t==="window"?i.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const C6e={setBreakpoint:k6e,getBreakpoint:E6e};function S6e(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function T6e(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=S6e(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()}function A6e(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const O6e={addClasses:T6e,removeClasses:A6e};function j6e(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const D6e={checkOverflow:j6e},gW={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function I6e(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){Js(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){Js(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Js(t,r)}}const XO={eventsEmitter:O5e,update:B5e,translate:W5e,transition:Z5e,slide:i6e,loop:l6e,grabCursor:d6e,events:x6e,breakpoints:C6e,checkOverflow:D6e,classes:O6e},QO={};let ww=class eh{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Js({},r),n&&!r.el&&(r.el=n);const i=Ld();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(c=>{const u=Js({},r,{el:c});l.push(new eh(u))}),l}const o=this;o.__swiper__=!0,o.support=uW(),o.device=E5e({userAgent:r.userAgent}),o.browser=S5e(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const a={};o.modules.forEach(l=>{l({params:r,swiper:o,extendParams:I6e(r,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const s=Js({},gW,a);return o.params=Js({},s,QO,r),o.originalParams=Js({},o.params),o.passedParams=Js({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=xu(n,`.${r.slideClass}, swiper-slide`),o=lW(i[0]);return lW(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=xu(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),a=(r.maxTranslate()-i)*t+i;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:o,slidesGrid:a,slidesSizesGrid:s,size:l,activeIndex:c}=r;let u=1;if(i.centeredSlides){let d=o[c]?o[c].swiperSlideSize:0,f;for(let p=c+1;p<o.length;p+=1)o[p]&&!f&&(d+=o[p].swiperSlideSize,u+=1,d>l&&(f=!0));for(let p=c-1;p>=0;p-=1)o[p]&&!f&&(d+=o[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(t==="current")for(let d=c+1;d<o.length;d+=1)(n?a[d]+s[d]-a[c]<l:a[d]-a[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)a[c]-a[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&P3(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const a=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let o;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const a=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;o=t.slideTo(a.length-1,0,!1,!0)}else o=t.slideTo(t.activeIndex,0,!1,!0);o||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):xu(r,i())[0];return!a&&n.params.createElements&&(a=sW("div",n.params.wrapperClass),r.append(a),xu(r,`.${n.params.slideClass}`).forEach(s=>{a.append(s)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement?r:a,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||vh(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||vh(r,"direction")==="rtl"),wrongRTL:vh(a,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?P3(n,i):i.addEventListener("load",o=>{P3(n,o.target)})}),ZO(n),n.initialized=!0,ZO(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:o,wrapperEl:a,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),a.removeAttribute("style"),s&&s.length&&s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,m5e(r)),r.destroyed=!0),null}static extendDefaults(t){Js(QO,t)}static get extendedDefaults(){return QO}static get defaults(){return gW}static installModule(t){eh.prototype.__modules__||(eh.prototype.__modules__=[]);const n=eh.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>eh.installModule(n)),eh):(eh.installModule(t),eh)}};Object.keys(XO).forEach(e=>{Object.keys(XO[e]).forEach(t=>{ww.prototype[t]=XO[e][t]})}),ww.use([T5e,A5e]);function P6e({swiper:e,extendParams:t,on:n,emit:r}){const i=Ld(),o=Va();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(c){if(!e.enabled)return;const{rtlTranslate:u}=e;let d=c;d.originalEvent&&(d=d.originalEvent);const f=d.keyCode||d.charCode,p=e.params.keyboard.pageUpDown,h=p&&f===33,m=p&&f===34,v=f===37,g=f===39,b=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||m)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&b||h))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(h||m||v||g||b||x)){let w=!1;if(qO(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&qO(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,E=k.clientWidth,j=k.clientHeight,T=o.innerWidth,C=o.innerHeight,D=b5e(k);u&&(D.left-=k.scrollLeft);const R=[[D.left,D.top],[D.left+E,D.top],[D.left,D.top+j],[D.left+E,D.top+j]];for(let M=0;M<R.length;M+=1){const L=R[M];if(L[0]>=0&&L[0]<=T&&L[1]>=0&&L[1]<=C){if(L[0]===0&&L[1]===0)continue;w=!0}}if(!w)return}e.isHorizontal()?((h||m||v||g)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((m||g)&&!u||(h||v)&&u)&&e.slideNext(),((h||v)&&!u||(m||g)&&u)&&e.slidePrev()):((h||m||b||x)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(m||x)&&e.slideNext(),(h||b)&&e.slidePrev()),r("keyPress",f)}}function s(){e.keyboard.enabled||(i.addEventListener("keydown",a),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(i.removeEventListener("keydown",a),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:s,disable:l})}function $6e(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=xu(e.el,`.${r[i]}`)[0];o||(o=sW("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function R6e({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=h=>(Array.isArray(h)||(h=[h].filter(m=>!!m)),h);function o(h){let m;return h&&typeof h=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(h),m)?m:(h&&(typeof h=="string"&&(m=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&m.length>1&&e.el.querySelectorAll(h).length===1&&(m=e.el.querySelector(h))),h&&!m?h:m)}function a(h,m){const v=e.params.navigation;h=i(h),h.forEach(g=>{g&&(g.classList[m?"add":"remove"](...v.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=m),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](v.lockClass))})}function s(){const{nextEl:h,prevEl:m}=e.navigation;if(e.params.loop){a(m,!1),a(h,!1);return}a(m,e.isBeginning&&!e.params.rewind),a(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const h=e.params.navigation;if(e.params.navigation=$6e(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let m=o(h.nextEl),v=o(h.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:v}),m=i(m),v=i(v);const g=(b,x)=>{b&&b.addEventListener("click",x==="next"?c:l),!e.enabled&&b&&b.classList.add(...h.lockClass.split(" "))};m.forEach(b=>g(b,"next")),v.forEach(b=>g(b,"prev"))}function d(){let{nextEl:h,prevEl:m}=e.navigation;h=i(h),m=i(m);const v=(g,b)=>{g.removeEventListener("click",b==="next"?c:l),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(g=>v(g,"next")),m.forEach(g=>v(g,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(u(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:h,prevEl:m}=e.navigation;h=i(h),m=i(m),[...h,...m].filter(v=>!!v).forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(h,m)=>{let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g);const b=m.target;if(e.params.navigation.hideOnClick&&!g.includes(b)&&!v.includes(b)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let x;v.length?x=v[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(x=g[0].classList.contains(e.params.navigation.hiddenClass)),r(x===!0?"navigationShow":"navigationHide"),[...v,...g].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),s()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:p,update:s,init:u,destroy:d})}function Mm(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function yh(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Mm(t[r])&&Mm(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:yh(e[r],t[r]):e[r]=t[r]})}function vW(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function yW(e={}){return e.pagination&&typeof e.pagination.el>"u"}function bW(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function wW(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function M6e(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const _W=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function N6e(e={},t=!0){const n={on:{}},r={},i={};yh(n,ww.defaults),yh(n,ww.extendedDefaults),n._emitClasses=!0,n.init=!1;const o={},a=_W.map(l=>l.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(l=>{typeof e[l]>"u"||(a.indexOf(l)>=0?Mm(e[l])?(n[l]={},i[l]={},yh(n[l],e[l]),yh(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:o,events:r}}function L6e({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){vW(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),yW(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),bW(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}function F6e(e,t,n,r,i){const o=[];if(!t)return o;const a=l=>{o.indexOf(l)<0&&o.push(l)};if(n&&r){const l=r.map(i),c=n.map(i);l.join("")!==c.join("")&&a("children"),r.length!==n.length&&a("children")}return _W.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Mm(e[l])&&Mm(t[l])){const c=Object.keys(e[l]),u=Object.keys(t[l]);c.length!==u.length?a(l):(c.forEach(d=>{e[l][d]!==t[l][d]&&a(l)}),u.forEach(d=>{e[l][d]!==t[l][d]&&a(l)}))}else e[l]!==t[l]&&a(l)}),o}function xW(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function kW(e){const t=[];return O.Children.toArray(e).forEach(n=>{xW(n)?t.push(n):n.props&&n.props.children&&kW(n.props.children).forEach(r=>t.push(r))}),t}function B6e(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return O.Children.toArray(e).forEach(r=>{if(xW(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=kW(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function z6e({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let m,v,g,b,x,w,k,E;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(v=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(b=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(x=!0);const j=T=>{e[T]&&(e[T].destroy(),T==="navigation"?(e.isElement&&(e[T].prevEl.remove(),e[T].nextEl.remove()),c[T].prevEl=void 0,c[T].nextEl=void 0,e[T].prevEl=void 0,e[T].nextEl=void 0):(e.isElement&&e[T].el.remove(),c[T].el=void 0,e[T].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?w=!0:!c.loop&&n.loop?k=!0:E=!0),l.forEach(T=>{if(Mm(c[T])&&Mm(n[T]))yh(c[T],n[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in n[T]&&!n[T].enabled&&j(T);else{const C=n[T];(C===!0||C===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?C===!1&&j(T):c[T]=n[T]}}),l.includes("controller")&&!v&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),r.includes("children")&&t&&c.loop&&(E=!0),m&&h.init()&&h.update(!0),v&&(e.controller.control=c.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(s)),s&&(c.pagination.el=s),u.init(),u.render(),u.update()),b&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(a)),a&&(c.scrollbar.el=a),f.init(),f.updateSize(),f.setTranslate()),x&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||E)&&e.loopDestroy(),(k||E)&&e.loopCreate(),e.update()}function H6e(e,t,n){if(!n)return null;const r=u=>{let d=u;return u<0?d=t.length+u:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,s=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,c=[];for(let u=s;u<l;u+=1)u>=o&&u<=a&&c.push(t[r(u)]);return c.map((u,d)=>O.cloneElement(u,{swiper:e,style:i,key:`slide-${d}`}))}const U6e=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function _w(e,t){return typeof window>"u"?O.useEffect(e,t):O.useLayoutEffect(e,t)}const EW=O.createContext(null),V6e=O.createContext(null);function JO(){return JO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JO.apply(this,arguments)}const CW=O.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:o,onSwiper:a,...s}=e===void 0?{}:e,l=!1;const[c,u]=O.useState("swiper"),[d,f]=O.useState(null),[p,h]=O.useState(!1),m=O.useRef(!1),v=O.useRef(null),g=O.useRef(null),b=O.useRef(null),x=O.useRef(null),w=O.useRef(null),k=O.useRef(null),E=O.useRef(null),j=O.useRef(null),{params:T,passedParams:C,rest:D,events:R}=N6e(s),{slides:M,slots:L}=B6e(o),B=()=>{h(!p)};Object.assign(T.on,{_containerClasses(q,V){u(V)}});const W=()=>{Object.assign(T.on,R),l=!0;const q={...T};if(delete q.wrapperClass,g.current=new ww(q),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=M;const V={cache:!1,slides:M,renderExternal:f,renderExternalUpdate:!1};yh(g.current.params.virtual,V),yh(g.current.originalParams.virtual,V)}};v.current||W(),g.current&&g.current.on("_beforeBreakpoint",B);const ee=()=>{l||!R||!g.current||Object.keys(R).forEach(q=>{g.current.on(q,R[q])})},G=()=>{!R||!g.current||Object.keys(R).forEach(q=>{g.current.off(q,R[q])})};O.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",B)}),O.useEffect(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),_w(()=>{if(t&&(t.current=v.current),!!v.current)return g.current.destroyed&&W(),L6e({el:v.current,nextEl:w.current,prevEl:k.current,paginationEl:E.current,scrollbarEl:j.current,swiper:g.current},T),a&&a(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),_w(()=>{ee();const q=F6e(C,b.current,M,x.current,V=>V.key);return b.current=C,x.current=M,q.length&&g.current&&!g.current.destroyed&&z6e({swiper:g.current,slides:M,passedParams:C,changedParams:q,nextEl:w.current,prevEl:k.current,scrollbarEl:j.current,paginationEl:E.current}),()=>{G()}}),_w(()=>{U6e(g.current)},[d]);function Y(){return T.virtual?H6e(g.current,M,d):M.map((q,V)=>O.cloneElement(q,{swiper:g.current,swiperSlideIndex:V}))}return O.createElement(r,JO({ref:v,className:wW(`${c}${n?` ${n}`:""}`)},D),O.createElement(V6e.Provider,{value:g.current},L["container-start"],O.createElement(i,{className:M6e(T.wrapperClass)},L["wrapper-start"],Y(),L["wrapper-end"]),vW(T)&&O.createElement(O.Fragment,null,O.createElement("div",{ref:k,className:"swiper-button-prev"}),O.createElement("div",{ref:w,className:"swiper-button-next"})),bW(T)&&O.createElement("div",{ref:j,className:"swiper-scrollbar"}),yW(T)&&O.createElement("div",{ref:E,className:"swiper-pagination"}),L["container-end"]))});CW.displayName="Swiper";function e7(){return e7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e7.apply(this,arguments)}const SW=O.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:a,lazy:s,virtualIndex:l,swiperSlideIndex:c,...u}=e===void 0?{}:e;const d=O.useRef(null),[f,p]=O.useState("swiper-slide"),[h,m]=O.useState(!1);function v(w,k,E){k===d.current&&p(E)}_w(()=>{if(typeof c<"u"&&(d.current.swiperSlideIndex=c),t&&(t.current=d.current),!(!d.current||!o)){if(o.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return o.on("_slideClass",v),()=>{o&&o.off("_slideClass",v)}}}),_w(()=>{o&&d.current&&!o.destroyed&&p(o.getSlideClasses(d.current))},[o]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof r=="function"?r(g):r,x=()=>{m(!0)};return O.createElement(n,e7({ref:d,className:wW(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:x},u),a&&O.createElement(EW.Provider,{value:g},O.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),s&&!h&&O.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&O.createElement(EW.Provider,{value:g},b(),s&&!h&&O.createElement("div",{className:"swiper-lazy-preloader"})))});SW.displayName="SwiperSlide";const q6e=e=>{const{avatar:t,message:n,feedbackRequested:r,onFeedbackClicked:i,onMessageButtonClicked:o}=e,[a,s]=O.useState(null),[l,c]=O.useState(null),[u,d]=O.useState(),f=m=>m.isPositive?y.jsx("div",{className:vt(Qr["chat-item--icon"],Qr["chat-item--feedback-given"]),children:y.jsx(GU,{className:"text--purple-800"})}):y.jsx("div",{className:vt(Qr["chat-item--icon"],Qr["chat-item--feedback-given"]),children:y.jsx(WU,{className:"text--purple-800"})}),p=m=>y.jsxs("div",{className:Qr["chat-item--feedback"],children:[y.jsx(Pr,{size:"md",fontWeight:"regular",color:"gray-700",children:m||"Was it helpful?"}),y.jsxs("div",{className:Qr["chat-item-feedback-icons"],children:[y.jsx("button",{className:vt(Qr["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!0),children:y.jsx(GU,{className:"text--gray-700"})}),y.jsx("button",{className:vt(Qr["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!1),children:y.jsx(WU,{className:"text--gray-700"})})]})]}),h=m=>{switch(m.type){case"chat":return y.jsxs("div",{children:[y.jsxs("div",{className:vt(Qr["chat-item--chat"],Qr[`chat-item--chat-${m.whoSent}`]),children:[y.jsx(et,{size:"xs",fontWeight:"regular",color:m.whoSent==="bot"?"gray-1000":"white",children:m.text}),r&&f(r)]}),m.whoSent==="bot"&&m.caption&&y.jsx(Pr,{size:"sm",fontWeight:"regular",color:"gray-700",className:Qr["chat-item--caption"],children:m.caption}),m.whoSent==="bot"&&m.feedbackRequest&&!r&&p(m.feedbackRequestLabel)]});case"jpg":return y.jsxs("div",{className:Qr["chat-item--media"],children:[y.jsxs("div",{className:Qr["chat-item--feedback-requested"],children:[y.jsx("img",{src:m.imageUrl,alt:m.imageAlt,className:Qr["chat-item--image"]}),r&&f(r)]}),m.whoSent==="bot"&&m.caption&&y.jsx(Pr,{size:"sm",fontWeight:"regular",color:"gray-700",className:Qr["chat-item--caption"],children:m.caption}),m.whoSent==="bot"&&m.feedbackRequest&&!r&&p(m.feedbackRequestLabel)]});case"mp4":return y.jsxs("div",{className:Qr["chat-item--media"],children:[y.jsxs("div",{className:Qr["chat-item--feedback-requested"],children:[y.jsx("iframe",{src:m.videoPreviewUrl,className:Qr["chat-item--video"],title:"Video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}),r&&f(r)]}),m.whoSent==="bot"&&m.caption&&y.jsx(Pr,{size:"sm",fontWeight:"regular",color:"gray-700",className:Qr["chat-item--caption"],children:m.caption}),m.whoSent==="bot"&&m.feedbackRequest&&!r&&p(m.feedbackRequestLabel)]});case"button":return y.jsx("div",{className:Qr["chat-item--button-container"],children:m.buttons.map((v,g)=>y.jsx(jr,{onClick:()=>o==null?void 0:o((v==null?void 0:v.label)||""),...v},(v==null?void 0:v.id)??g))});case"typing":return y.jsx("div",{className:Qr["chat-item--typing"],children:y.jsx(et,{size:"xs",fontWeight:"regular",color:"gray-1000",children:"..."})});case"cards":return y.jsxs("div",{className:Qr["chat-item--carousel"],children:[y.jsx(CW,{slidesPerView:"auto",modules:[R6e,P6e],onSlideChange:v=>d(v.activeIndex),navigation:{prevEl:a,nextEl:l},keyboard:{enabled:!0},className:Qr["swiper-wrapper"],children:m.cards.map((v,g)=>y.jsx(SW,{children:y.jsxs("div",{className:Qr["chat-item--carousel-card"],children:[v.imageUrl&&y.jsx("img",{src:v.imageUrl,alt:v.imageAlt,className:Qr["chat-item--card-image"]}),y.jsxs("div",{className:Qr["chat-item--card-content"],children:[y.jsx(et,{fontWeight:"bold",size:"sm",color:"gray-1000",children:v.title}),y.jsx(et,{fontWeight:"regular",size:"xs",color:"gray-800",children:v.title}),v.buttons&&y.jsx("div",{className:Qr["chat-item--card-buttons"],children:v.buttons.map((b,x)=>y.jsx(jr,{...b,fullWidth:!0},(b==null?void 0:b.id)??x))})]})]})},g))}),m.cards.length>1&&y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:v=>s(v),className:Qr["chat-item--carousel-left-navigation"],children:y.jsx(vr,{color:"primary",variant:"outlined",disabled:u===0,children:y.jsx(fEe,{})})}),y.jsx("div",{ref:v=>c(v),className:Qr["chat-item--carousel-right-navigation"],children:y.jsx(vr,{color:"primary",variant:"outlined",disabled:u===m.cards.length-1,children:y.jsx(pEe,{})})})]})]})}};return y.jsxs("div",{className:vt(Qr["chat-item"],Qr[`chat-item--${n.whoSent}`]),children:[n.whoSent==="bot"&&y.jsx("div",{className:Qr["chat-item--avatar-container"],children:y.jsx(mh,{...t})}),h(n)]})},W6e=e=>{const{avatar:t,messages:n,isTyping:r=!1,feedbackRequested:i=[],onMessageButtonClicked:o,onInputChange:a,onFeedbackClicked:s}=e,l=[...n,...r?[{type:"typing",whoSent:"bot"}]:[]],c=(d,f)=>{d.whoSent==="bot"&&d.type!=="typing"&&!i.find(p=>p.id===d.id)&&(s==null||s(d,f))},u=l[l.length-1].type==="button";return y.jsxs("div",{className:nW["chat-content"],children:[y.jsx("div",{className:nW["chat-messages"],children:l.map((d,f)=>{const p="id"in d?i.find(h=>h.id===d.id):void 0;return y.jsx(q6e,{avatar:t,message:d,feedbackRequested:p,onMessageButtonClicked:o,onFeedbackClicked:h=>c(d,h)},(d==null?void 0:d.id)??f)})}),u?y.jsx("div",{children:y.jsx(ds,{variant:"soft",color:"gray",label:"Choose an option to continue",closeIcon:!1})}):y.jsx(rW,{placeholder:"Chat input",onChange:a})]})},lo={"chat-input--container":"_chat-input--container_1hwp8_1","chat-input--input":"_chat-input--input_1hwp8_9",resizer:"_resizer_1hwp8_10","chat-input--size-lg":"_chat-input--size-lg_1hwp8_21","chat-input--size-md":"_chat-input--size-md_1hwp8_26","chat-input--size-sm":"_chat-input--size-sm_1hwp8_31","chat-input--input-error":"_chat-input--input-error_1hwp8_47","chat-input--input-content-container":"_chat-input--input-content-container_1hwp8_64","chat-input--tags-container":"_chat-input--tags-container_1hwp8_72","chat-input--content":"_chat-input--content_1hwp8_79","chat-input--outlined":"_chat-input--outlined_1hwp8_95","chat-input--filled":"_chat-input--filled_1hwp8_101","chat-input--helper-text":"_chat-input--helper-text_1hwp8_107","chat-input--label-text":"_chat-input--label-text_1hwp8_111","chat-input--disabled":"_chat-input--disabled_1hwp8_115","chat-input--no-resize":"_chat-input--no-resize_1hwp8_120","chat-input--icon-container":"_chat-input--icon-container_1hwp8_124","chat-input--icon":"_chat-input--icon_1hwp8_124","chat-input--left-icon":"_chat-input--left-icon_1hwp8_145","chat-input--right-icon":"_chat-input--right-icon_1hwp8_149","input-container":"_input-container_1hwp8_187","input-container--column":"_input-container--column_1hwp8_191"},G6e=({autoResize:e,value:t,children:n})=>e?y.jsx("div",{className:lo.resizer,"data-replicated-value":t,children:n}):y.jsx(y.Fragment,{children:n}),TW=O.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:o="outlined",label:a,placeholder:s,helperText:l,leftIcon:c,leftIconTwo:u,rightIcon:d,rightIconTwo:f,rows:p=1,resize:h=!1,autoResize:m=!0,value:v,defaultValue:g,onChange:b,className:x,inputClassName:w,contentClassName:k,tags:E=[],onTagsChange:j,...T}=e,C=(L,B)=>{switch(B){case"lg":return y.jsx(et,{size:"sm",fontWeight:"regular",color:"gray-800",className:lo["chat-input--label-text"],children:L});default:case"md":return y.jsx(et,{size:"xs",fontWeight:"regular",color:"gray-800",className:lo["chat-input--label-text"],children:L});case"sm":return y.jsx(Pr,{size:"md",fontWeight:"regular",color:"gray-800",className:lo["chat-input--label-text"],children:L})}},[D,R]=O.useState(v??g??""),M=O.useCallback(L=>{b==null||b(L),R(L.target.value)},[b]);return O.useEffect(()=>{R(v??"")},[v]),y.jsxs("div",{className:vt(lo["chat-input--container"],i&&lo["chat-input--disabled"],x),children:[a?C(a,n):null,y.jsxs("div",{className:vt(lo["chat-input--content"],lo[`chat-input--size-${n}`],lo[`chat-input--${o}`],r&&lo["chat-input--input-error"],k),children:[c||u?y.jsxs("div",{className:vt(lo["chat-input--icon-container"],lo["chat-input--left-icon"]),children:[c?y.jsx("span",{className:lo["chat-input--icon"],children:c}):null,u?y.jsx("span",{className:vt(lo["chat-input--icon"]),children:u}):null]}):null,y.jsxs("div",{className:lo["chat-input--input-content-container"],children:[E.length>0&&y.jsx("div",{className:lo["chat-input--tags-container"],children:E.map((L,B)=>y.jsx(ds,{variant:"text",fontWeight:"regular",iconSize:"lg",closeIcon:!0,label:L.label,renderIcon:L.renderIcon,onCloseIconClicked:()=>{const W=[...E];W.splice(B,1),j==null||j(W)},className:lo["multiline-tag-input--tag"]},`${L.label}-${B}`))}),y.jsx(G6e,{autoResize:m,value:D||(s??""),children:y.jsx("textarea",{ref:t,className:vt(lo["chat-input--input"],o==="filled"&&"bg--sand-200",i&&"cursor-not-allowed",!h&&lo["chat-input--no-resize"],w),placeholder:s,disabled:i,rows:p,value:D,onChange:M,...T})})]}),d||f?y.jsxs("div",{className:lo["chat-input--icon-container"],children:[d?y.jsx("span",{className:lo["chat-input--icon"],children:d}):null,f?y.jsx("span",{className:vt(lo["chat-input--icon"]),children:f}):null]}):null]}),l?y.jsx(Pr,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:lo["chat-input--helper-text"],children:l}):null]})});TW.displayName="ChatInput";let K6e=0;function Y6e(e,t){const n=`atom${++K6e}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=i=>i(r),r.write=(i,o,a)=>o(r,typeof a=="function"?a(i(r)):a)),r}const el={},bh=Symbol(),t7=e=>!!e[bh],$3=e=>!e[bh].c,xw=e=>{var t;const{b:n,c:r}=e[bh];r&&(r(),(t=X6e.get(n))==null||t())},R3=(e,t)=>{const n=e[bh].o,r=t[bh].o;return n===r||e===r||t7(n)&&R3(n,t)},n7=(e,t)=>{const n={b:e,o:t,c:null},r=new Promise(i=>{n.c=()=>{n.c=null,i()},t.finally(n.c)});return r[bh]=n,r},Z6e=e=>n7(e[bh].b,e[bh].o),X6e=new WeakMap,M3=e=>"init"in e,r7="r",i7="w",kw="c",o7="s",AW="h",Q6e="n",J6e="l",eTe="a",tTe="m",nTe=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let i,o;if((el&&"production")!=="production"&&(i=new Set,o=new Set),e)for(const[V,A]of e){const U={v:A,r:0,y:!0,d:new Map};(el&&"production")!=="production"&&(Object.freeze(U),M3(V)||console.warn("Found initial value for derived atom which can cause unexpected behavior",V)),t.set(V,U)}const a=new WeakMap,s=(V,A,U)=>{let P=a.get(A);P||(P=new Map,a.set(A,P)),U.then(()=>{P.get(V)===U&&(P.delete(V),P.size||a.delete(A))}),P.set(V,U)},l=V=>{const A=new Set,U=a.get(V);return U&&(a.delete(V),U.forEach((P,$)=>{xw(P),A.add($)})),A},c=new WeakMap,u=V=>{let A=c.get(V);return A||(A=new Map,c.set(V,A)),A},d=(V,A)=>{if(V){const U=u(V);let P=U.get(A);return P||(P=d(V.p,A),P&&"p"in P&&$3(P.p)&&(P=void 0),P&&U.set(A,P)),P}return t.get(A)},f=(V,A,U)=>{if((el&&"production")!=="production"&&Object.freeze(U),V)u(V).set(A,U);else{const P=t.get(A);t.set(A,U),r.has(A)||r.set(A,P)}},p=(V,A=new Map,U)=>{if(!U)return A;const P=new Map;let $=!1;return U.forEach(F=>{var N;const ne=((N=d(V,F))==null?void 0:N.r)||0;P.set(F,ne),A.get(F)!==ne&&($=!0)}),A.size===P.size&&!$?A:P},h=(V,A,U,P,$)=>{const F=d(V,A);if(F){if($&&(!("p"in F)||!R3(F.p,$)))return F;"p"in F&&xw(F.p)}const N={v:U,r:(F==null?void 0:F.r)||0,y:!0,d:p(V,F==null?void 0:F.d,P)};let ne=!(F!=null&&F.y);return!F||!("v"in F)||!Object.is(F.v,U)?(ne=!0,++N.r,N.d.has(A)&&(N.d=new Map(N.d).set(A,N.r))):N.d!==F.d&&(N.d.size!==F.d.size||!Array.from(N.d.keys()).every(z=>F.d.has(z)))&&(ne=!0,Promise.resolve().then(()=>{W(V)})),F&&!ne?F:(f(V,A,N),N)},m=(V,A,U,P,$)=>{const F=d(V,A);if(F){if($&&(!("p"in F)||!R3(F.p,$)))return F;"p"in F&&xw(F.p)}const N={e:U,r:((F==null?void 0:F.r)||0)+1,y:!0,d:p(V,F==null?void 0:F.d,P)};return f(V,A,N),N},v=(V,A,U,P)=>{const $=d(V,A);if($&&"p"in $){if(R3($.p,U)&&!$3($.p))return $.y?$:{...$,y:!0};xw($.p)}s(V,A,U);const F={p:U,r:(($==null?void 0:$.r)||0)+1,y:!0,d:p(V,$==null?void 0:$.d,P)};return f(V,A,F),F},g=(V,A,U,P)=>{if(U instanceof Promise){const $=n7(U,U.then(F=>{h(V,A,F,P,$)}).catch(F=>{if(F instanceof Promise)return t7(F)?F.then(()=>{x(V,A,!0)}):F;m(V,A,F,P,$)}));return v(V,A,$,P)}return h(V,A,U,P)},b=(V,A)=>{const U=d(V,A);if(U){const P={...U,y:!1};f(V,A,P)}else(el&&"production")!=="production"&&console.warn("[Bug] could not invalidate non existing atom",A)},x=(V,A,U)=>{if(!U){const $=d(V,A);if($){if($.y&&"p"in $&&!$3($.p))return $;if($.d.forEach((F,N)=>{if(N!==A)if(!n.has(N))x(V,N);else{const ne=d(V,N);ne&&!ne.y&&x(V,N)}}),Array.from($.d).every(([F,N])=>{const ne=d(V,F);return ne&&!("p"in ne)&&ne.r===N}))return $.y?$:{...$,y:!0}}}const P=new Set;try{const $=A.read(F=>{P.add(F);const N=F===A?d(V,F):x(V,F);if(N){if("e"in N)throw N.e;if("p"in N)throw N.p;return N.v}if(M3(F))return F.init;throw new Error("no atom init")});return g(V,A,$,P)}catch($){if($ instanceof Promise){const F=t7($)&&$3($)?Z6e($):n7($,$);return v(V,A,F,P)}return m(V,A,$,P)}},w=(V,A)=>x(A,V),k=(V,A)=>{let U=n.get(A);return U||(U=M(V,A)),U},E=(V,A)=>!A.l.size&&(!A.t.size||A.t.size===1&&A.t.has(V)),j=(V,A)=>{const U=n.get(A);U&&E(A,U)&&L(V,A)},T=(V,A)=>{const U=n.get(A);U==null||U.t.forEach(P=>{P!==A&&(b(V,P),T(V,P))})},C=(V,A,U)=>{let P=!0;const $=(ne,z)=>{const Z=x(V,ne);if("e"in Z)throw Z.e;if("p"in Z){if(z!=null&&z.unstable_promise)return Z.p.then(()=>{const se=d(V,ne);return se&&"p"in se&&se.p===Z.p?new Promise(X=>setTimeout(X)).then(()=>$(ne,z)):$(ne,z)});throw(el&&"production")!=="production"&&console.info("Reading pending atom state in write operation. We throw a promise for now.",ne),Z.p}if("v"in Z)return Z.v;throw(el&&"production")!=="production"&&console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",ne),new Error("no value found")},F=(ne,z)=>{let Z;if(ne===A){if(!M3(ne))throw new Error("atom not writable");l(ne).forEach(le=>{le!==V&&g(le,ne,z)});const X=d(V,ne),re=g(V,ne,z);X!==re&&T(V,ne)}else Z=C(V,ne,z);return P||W(V),Z},N=A.write($,F,U);return P=!1,N},D=(V,A,U)=>{const P=C(U,V,A);return W(U),P},R=V=>!!V.write,M=(V,A,U)=>{const P={t:new Set(U&&[U]),l:new Set};if(n.set(A,P),(el&&"production")!=="production"&&o.add(A),x(void 0,A).d.forEach((F,N)=>{const ne=n.get(N);ne?ne.t.add(A):N!==A&&M(V,N,A)}),R(A)&&A.onMount){const F=ne=>D(A,ne,V),N=A.onMount(F);V=void 0,N&&(P.u=N)}return P},L=(V,A)=>{var U;const P=(U=n.get(A))==null?void 0:U.u;P&&P(),n.delete(A),(el&&"production")!=="production"&&o.delete(A);const $=d(V,A);$?("p"in $&&xw($.p),$.d.forEach((F,N)=>{if(N!==A){const ne=n.get(N);ne&&(ne.t.delete(A),E(N,ne)&&L(V,N))}})):(el&&"production")!=="production"&&console.warn("[Bug] could not find atom state to unmount",A)},B=(V,A,U,P)=>{const $=new Set(U.d.keys());P==null||P.forEach((F,N)=>{if($.has(N)){$.delete(N);return}const ne=n.get(N);ne&&(ne.t.delete(A),E(N,ne)&&L(V,N))}),$.forEach(F=>{const N=n.get(F);N?N.t.add(A):n.has(A)&&M(V,F,A)})},W=V=>{if(V){u(V).forEach((U,P)=>{const $=t.get(P);if(U!==$){const F=n.get(P);F==null||F.l.forEach(N=>N(V))}});return}for(;r.size;){const A=Array.from(r);r.clear(),A.forEach(([U,P])=>{const $=d(void 0,U);if($&&$.d!==(P==null?void 0:P.d)&&B(void 0,U,$,P==null?void 0:P.d),P&&!P.y&&($!=null&&$.y))return;const F=n.get(U);F==null||F.l.forEach(N=>N())})}(el&&"production")!=="production"&&i.forEach(A=>A())},ee=V=>{u(V).forEach((U,P)=>{const $=t.get(P);(!$||U.r>$.r||U.y!==$.y||U.r===$.r&&U.d!==$.d)&&(t.set(P,U),U.d!==($==null?void 0:$.d)&&B(V,P,U,$==null?void 0:$.d))})},G=(V,A)=>{A&&ee(A),W(void 0)},Y=(V,A,U)=>{const $=k(U,V).l;return $.add(A),()=>{$.delete(A),j(U,V)}},q=(V,A)=>{for(const[U,P]of V)M3(U)&&(g(A,U,P),T(A,U));W(A)};return(el&&"production")!=="production"?{[r7]:w,[i7]:D,[kw]:G,[o7]:Y,[AW]:q,[Q6e]:V=>(i.add(V),()=>{i.delete(V)}),[J6e]:()=>o.values(),[eTe]:V=>t.get(V),[tTe]:V=>n.get(V)}:{[r7]:w,[i7]:D,[kw]:G,[o7]:Y,[AW]:q}},OW=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:nTe(e)}),a7=new Map,s7=e=>(a7.has(e)||a7.set(e,O.createContext(OW())),a7.get(e)),rTe=({children:e,initialValues:t,scope:n,unstable_createStore:r,unstable_enableVersionedWrite:i})=>{const[o,a]=O.useState({});O.useEffect(()=>{const c=s.current;c.w&&(c.s[kw](null,o),delete o.p,c.v=o)},[o]);const s=O.useRef();if(!s.current){const c=OW(t,r);if(i){let u=0;c.w=d=>{a(f=>{const p=u?f:{p:f};return d(p),p})},c.v=o,c.r=d=>{++u,d(),--u}}s.current=c}const l=s7(n);return O.createElement(l.Provider,{value:s.current},e)};function jW(e,t){return Y6e(e)}function DW(e,t){const n=s7(t),r=O.useContext(n),{s:i,v:o}=r,a=f=>{const p=i[r7](e,f);if((el&&"production")!=="production"&&!p.y)throw new Error("should not be invalidated");if("e"in p)throw p.e;if("p"in p)throw p.p;if("v"in p)return p.v;throw new Error("no atom value")},[[s,l,c],u]=O.useReducer((f,p)=>{const h=a(p);return Object.is(f[1],h)&&f[2]===e?f:[p,h,e]},o,f=>{const p=a(f);return[f,p,e]});let d=l;return c!==e&&(u(s),d=a(s)),O.useEffect(()=>{const{v:f}=r;f&&i[kw](e,f);const p=i[o7](e,u,f);return u(f),p},[i,e,r]),O.useEffect(()=>{i[kw](e,s)}),O.useDebugValue(d),d}function IW(e,t){const n=s7(t),{s:r,w:i}=O.useContext(n);return O.useCallback(a=>{if((el&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");const s=l=>r[i7](e,a,l);return i?i(s):s()},[r,i,e])}function PW(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[DW(e,t),IW(e,t)]}let l7=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function c7(){return c7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c7.apply(null,arguments)}var $W=["shift","alt","meta","mod","ctrl"],iTe={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function wh(e){return(e&&iTe[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function oTe(e){return $W.includes(e)}function u7(e,t){return t===void 0&&(t=","),e.split(t)}function d7(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return wh(a)}),i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},o=r.filter(function(a){return!$W.includes(a)});return c7({},i,{keys:o,description:n,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&RW([wh(e.key),wh(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&MW([wh(e.key),wh(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){_h.clear()})})();var _h=new Set;function f7(e){return Array.isArray(e)}function aTe(e,t){t===void 0&&(t=",");var n=f7(e)?e:e.split(t);return n.every(function(r){return _h.has(r.trim().toLowerCase())})}function RW(e){var t=Array.isArray(e)?e:[e];_h.has("meta")&&_h.forEach(function(n){return!oTe(n)&&_h.delete(n.toLowerCase())}),t.forEach(function(n){return _h.add(n.toLowerCase())})}function MW(e){var t=Array.isArray(e)?e:[e];e==="meta"?_h.clear():t.forEach(function(n){return _h.delete(n.toLowerCase())})}function sTe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function lTe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function cTe(e){return NW(e,["input","textarea","select"])}function NW(e,t){t===void 0&&(t=!1);var n=e.target,r=e.composed,i=null;return uTe(n)&&r?i=e.composedPath()[0]&&e.composedPath()[0].tagName:i=n&&n.tagName,f7(t)?!!(i&&t&&t.some(function(o){var a;return o.toLowerCase()===((a=i)==null?void 0:a.toLowerCase())})):!!(i&&t&&t)}function uTe(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function dTe(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var fTe=function(t,n,r){r===void 0&&(r=!1);var i=n.alt,o=n.meta,a=n.mod,s=n.shift,l=n.ctrl,c=n.keys,u=t.key,d=t.code,f=t.ctrlKey,p=t.metaKey,h=t.shiftKey,m=t.altKey,v=wh(d),g=u.toLowerCase();if(!(c!=null&&c.includes(v))&&!(c!=null&&c.includes(g))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(i===!m&&g!=="alt"||s===!h&&g!=="shift")return!1;if(a){if(!p&&!f)return!1}else if(o===!p&&g!=="meta"&&g!=="os"||l===!f&&g!=="ctrl"&&g!=="control")return!1}return c&&c.length===1&&(c.includes(g)||c.includes(v))?!0:c?aTe(c):!c},hTe=O.createContext(void 0),pTe=function(){return O.useContext(hTe)};function LW(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&LW(e[r],t[r])},!0):e===t}var mTe=O.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),gTe=function(){return O.useContext(mTe)};function vTe(e){var t=O.useRef(void 0);return LW(t.current,e)||(t.current=e),t.current}var FW=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},yTe=typeof window<"u"?O.useLayoutEffect:O.useEffect;function _1(e,t,n,r){var i=O.useState(null),o=i[0],a=i[1],s=O.useRef(!1),l=n instanceof Array?r instanceof Array?void 0:r:n,c=f7(e)?e.join(l==null?void 0:l.splitKey):e,u=n instanceof Array?n:r instanceof Array?r:void 0,d=O.useCallback(t,u??[]),f=O.useRef(d);u?f.current=d:f.current=t;var p=vTe(l),h=gTe(),m=h.enabledScopes,v=pTe();return yTe(function(){if(!((p==null?void 0:p.enabled)===!1||!dTe(m,p==null?void 0:p.scopes))){var g=function(E,j){var T;if(j===void 0&&(j=!1),!(cTe(E)&&!NW(E,p==null?void 0:p.enableOnFormTags))){if(o!==null){var C=o.getRootNode();if((C instanceof Document||C instanceof ShadowRoot)&&C.activeElement!==o&&!o.contains(C.activeElement)){FW(E);return}}(T=E.target)!=null&&T.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||u7(c,p==null?void 0:p.splitKey).forEach(function(D){var R,M=d7(D,p==null?void 0:p.combinationKey);if(fTe(E,M,p==null?void 0:p.ignoreModifiers)||(R=M.keys)!=null&&R.includes("*")){if(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(E)||j&&s.current)return;if(sTe(E,M,p==null?void 0:p.preventDefault),!lTe(E,M,p==null?void 0:p.enabled)){FW(E);return}f.current(E,M),j||(s.current=!0)}})}},b=function(E){E.key!==void 0&&(RW(wh(E.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&g(E))},x=function(E){E.key!==void 0&&(MW(wh(E.code)),s.current=!1,p!=null&&p.keyup&&g(E,!0))},w=o||(l==null?void 0:l.document)||document;return w.addEventListener("keyup",x),w.addEventListener("keydown",b),v&&u7(c,p==null?void 0:p.splitKey).forEach(function(k){return v.addHotkey(d7(k,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){w.removeEventListener("keyup",x),w.removeEventListener("keydown",b),v&&u7(c,p==null?void 0:p.splitKey).forEach(function(k){return v.removeHotkey(d7(k,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[o,c,p,m]),a}function ea(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var i=ATe[e],o=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nm(e){return!!e&&!!e[li]}function Fd(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===OTe}(e)||Array.isArray(e)||!!e[KW]||!!(!((t=e.constructor)===null||t===void 0)&&t[KW])||p7(e)||m7(e))}function x1(e,t,n){n===void 0&&(n=!1),k1(e)===0?(n?Object.keys:C7)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function k1(e){var t=e[li];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p7(e)?2:m7(e)?3:0}function h7(e,t){return k1(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bTe(e,t){return k1(e)===2?e.get(t):e[t]}function BW(e,t,n){var r=k1(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function wTe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function p7(e){return STe&&e instanceof Map}function m7(e){return TTe&&e instanceof Set}function ta(e){return e.o||e.t}function g7(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=jTe(e);delete t[li];for(var n=C7(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function v7(e,t){return t===void 0&&(t=!1),y7(e)||Nm(e)||!Fd(e)||(k1(e)>1&&(e.set=e.add=e.clear=e.delete=_Te),Object.freeze(e),t&&x1(e,function(n,r){return v7(r,!0)},!0)),e}function _Te(){ea(2)}function y7(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ku(e){var t=S7[e];return t||ea(18,e),t}function xTe(e,t){S7[e]||(S7[e]=t)}function N3(){return process.env.NODE_ENV==="production"||E1||ea(0),E1}function b7(e,t){t&&(ku("Patches"),e.u=[],e.s=[],e.v=t)}function L3(e){w7(e),e.p.forEach(kTe),e.p=null}function w7(e){e===E1&&(E1=e.l)}function zW(e){return E1={p:[],l:E1,h:e,m:!0,_:0}}function kTe(e){var t=e[li];t.i===0||t.i===1?t.j():t.g=!0}function _7(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ku("ES5").S(t,e,r),r?(n[li].P&&(L3(t),ea(4)),Fd(e)&&(e=F3(t,e),t.l||B3(t,e)),t.u&&ku("Patches").M(n[li].t,e,t.u,t.s)):e=F3(t,n,[]),L3(t),t.u&&t.v(t.u,t.s),e!==GW?e:void 0}function F3(e,t,n){if(y7(t))return t;var r=t[li];if(!r)return x1(t,function(s,l){return HW(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return B3(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=g7(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),x1(o,function(s,l){return HW(e,r,i,s,l,n,a)}),B3(e,i,!1),n&&e.u&&ku("Patches").N(r,n,e.u,e.s)}return r.o}function HW(e,t,n,r,i,o,a){if(process.env.NODE_ENV!=="production"&&i===n&&ea(5),Nm(i)){var s=F3(e,i,o&&t&&t.i!==3&&!h7(t.R,r)?o.concat(r):void 0);if(BW(n,r,s),!Nm(s))return;e.m=!1}else a&&n.add(i);if(Fd(i)&&!y7(i)){if(!e.h.D&&e._<1)return;F3(e,i),t&&t.A.l||B3(e,i)}}function B3(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&v7(t,n)}function x7(e,t){var n=e[li];return(n?ta(n):e)[t]}function UW(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Bd(e){e.P||(e.P=!0,e.l&&Bd(e.l))}function k7(e){e.o||(e.o=g7(e.t))}function Ew(e,t,n){var r=p7(t)?ku("MapSet").F(t,n):m7(t)?ku("MapSet").T(t,n):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:N3(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=T7;a&&(l=[s],c=Cw);var u=Proxy.revocable(l,c),d=u.revoke,f=u.proxy;return s.k=f,s.j=d,f}(t,n):ku("ES5").J(t,n);return(n?n.A:N3()).p.push(r),r}function ETe(e){return Nm(e)||ea(22,e),function t(n){if(!Fd(n))return n;var r,i=n[li],o=k1(n);if(i){if(!i.P&&(i.i<4||!ku("ES5").K(i)))return i.t;i.I=!0,r=VW(n,o),i.I=!1}else r=VW(n,o);return x1(r,function(a,s){i&&bTe(i.t,a)===s||BW(r,a,t(s))}),o===3?new Set(r):r}(e)}function VW(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g7(e)}function CTe(){function e(s,l){function c(){this.constructor=s}i(s,l),s.prototype=(c.prototype=l.prototype,new c)}function t(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function n(s){s.o||(s.o=new Set,s.t.forEach(function(l){if(Fd(l)){var c=Ew(s.A.h,l,s);s.p.set(l,c),s.o.add(c)}else s.o.add(l)}))}function r(s){s.g&&ea(3,JSON.stringify(ta(s)))}var i=function(s,l){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])})(s,l)},o=function(){function s(c,u){return this[li]={i:2,l:u,A:u?u.A:N3(),P:!1,I:!1,o:void 0,R:void 0,t:c,k:this,C:!1,g:!1},this}e(s,Map);var l=s.prototype;return Object.defineProperty(l,"size",{get:function(){return ta(this[li]).size}}),l.has=function(c){return ta(this[li]).has(c)},l.set=function(c,u){var d=this[li];return r(d),ta(d).has(c)&&ta(d).get(c)===u||(t(d),Bd(d),d.R.set(c,!0),d.o.set(c,u),d.R.set(c,!0)),this},l.delete=function(c){if(!this.has(c))return!1;var u=this[li];return r(u),t(u),Bd(u),u.t.has(c)?u.R.set(c,!1):u.R.delete(c),u.o.delete(c),!0},l.clear=function(){var c=this[li];r(c),ta(c).size&&(t(c),Bd(c),c.R=new Map,x1(c.t,function(u){c.R.set(u,!1)}),c.o.clear())},l.forEach=function(c,u){var d=this;ta(this[li]).forEach(function(f,p){c.call(u,d.get(p),p,d)})},l.get=function(c){var u=this[li];r(u);var d=ta(u).get(c);if(u.I||!Fd(d)||d!==u.t.get(c))return d;var f=Ew(u.A.h,d,u);return t(u),u.o.set(c,f),f},l.keys=function(){return ta(this[li]).keys()},l.values=function(){var c,u=this,d=this.keys();return(c={})[z3]=function(){return u.values()},c.next=function(){var f=d.next();return f.done?f:{done:!1,value:u.get(f.value)}},c},l.entries=function(){var c,u=this,d=this.keys();return(c={})[z3]=function(){return u.entries()},c.next=function(){var f=d.next();if(f.done)return f;var p=u.get(f.value);return{done:!1,value:[f.value,p]}},c},l[z3]=function(){return this.entries()},s}(),a=function(){function s(c,u){return this[li]={i:3,l:u,A:u?u.A:N3(),P:!1,I:!1,o:void 0,t:c,k:this,p:new Map,g:!1,C:!1},this}e(s,Set);var l=s.prototype;return Object.defineProperty(l,"size",{get:function(){return ta(this[li]).size}}),l.has=function(c){var u=this[li];return r(u),u.o?!!u.o.has(c)||!(!u.p.has(c)||!u.o.has(u.p.get(c))):u.t.has(c)},l.add=function(c){var u=this[li];return r(u),this.has(c)||(n(u),Bd(u),u.o.add(c)),this},l.delete=function(c){if(!this.has(c))return!1;var u=this[li];return r(u),n(u),Bd(u),u.o.delete(c)||!!u.p.has(c)&&u.o.delete(u.p.get(c))},l.clear=function(){var c=this[li];r(c),ta(c).size&&(n(c),Bd(c),c.o.clear())},l.values=function(){var c=this[li];return r(c),n(c),c.o.values()},l.entries=function(){var c=this[li];return r(c),n(c),c.o.entries()},l.keys=function(){return this.values()},l[z3]=function(){return this.values()},l.forEach=function(c,u){for(var d=this.values(),f=d.next();!f.done;)c.call(u,f.value,f.value,this),f=d.next()},s}();xTe("MapSet",{F:function(s,l){return new o(s,l)},T:function(s,l){return new a(s,l)}})}var qW,E1,E7=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",STe=typeof Map<"u",TTe=typeof Set<"u",WW=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",GW=E7?Symbol.for("immer-nothing"):((qW={})["immer-nothing"]=!0,qW),KW=E7?Symbol.for("immer-draftable"):"__$immer_draftable",li=E7?Symbol.for("immer-state"):"__$immer_state",z3=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",ATe={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},OTe=""+Object.prototype.constructor,C7=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,jTe=Object.getOwnPropertyDescriptors||function(e){var t={};return C7(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},S7={},T7={get:function(e,t){if(t===li)return e;var n=ta(e);if(!h7(n,t))return function(i,o,a){var s,l=UW(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Fd(r)?r:r===x7(e.t,t)?(k7(e),e.o[t]=Ew(e.A.h,r,e)):r},has:function(e,t){return t in ta(e)},ownKeys:function(e){return Reflect.ownKeys(ta(e))},set:function(e,t,n){var r=UW(ta(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=x7(ta(e),t),o=i==null?void 0:i[li];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(wTe(n,i)&&(n!==void 0||h7(e.t,t)))return!0;k7(e),Bd(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return x7(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,k7(e),Bd(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ta(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ea(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ea(12)}},Cw={};x1(T7,function(e,t){Cw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Cw.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ea(13),Cw.set.call(this,e,t,void 0)},Cw.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ea(14),T7.set.call(this,e[0],t,n,e[0])};var DTe=function(){function e(n){var r=this;this.O=WW,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(m){var v=this;m===void 0&&(m=s);for(var g=arguments.length,b=Array(g>1?g-1:0),x=1;x<g;x++)b[x-1]=arguments[x];return l.produce(m,function(w){var k;return(k=o).call.apply(k,[v,w].concat(b))})}}var c;if(typeof o!="function"&&ea(6),a!==void 0&&typeof a!="function"&&ea(7),Fd(i)){var u=zW(r),d=Ew(r,i,void 0),f=!0;try{c=o(d),f=!1}finally{f?L3(u):w7(u)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(m){return b7(u,a),_7(m,u)},function(m){throw L3(u),m}):(b7(u,a),_7(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===GW&&(c=void 0),r.D&&v7(c,!0),a){var p=[],h=[];ku("Patches").M(i,c,p,h),a(p,h)}return c}ea(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];return r.produceWithPatches(c,function(p){return i.apply(void 0,[p].concat(d))})};var a,s,l=r.produce(i,o,function(c,u){a=c,s=u});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,a,s]}):[l,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Fd(n)||ea(8),Nm(n)&&(n=ETe(n));var r=zW(this),i=Ew(this,n,void 0);return i[li].C=!0,w7(r),i},t.finishDraft=function(n,r){var i=n&&n[li];process.env.NODE_ENV!=="production"&&(i&&i.C||ea(9),i.I&&ea(10));var o=i.A;return b7(o,r),_7(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!WW&&ea(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=ku("Patches").$;return Nm(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),tl=new DTe,H3=tl.produce;tl.produceWithPatches.bind(tl);var ITe=tl.setAutoFreeze.bind(tl);tl.setUseProxies.bind(tl),tl.applyPatches.bind(tl);var YW=tl.createDraft.bind(tl),ZW=tl.finishDraft.bind(tl);const PTe=Symbol(),XW=Symbol(),Sw="a",Tw="w";let $Te=(e,t)=>new Proxy(e,t);const A7=Object.getPrototypeOf,QW=new WeakMap,RTe=e=>e&&(QW.has(e)?QW.get(e):A7(e)===Object.prototype||A7(e)===Array.prototype),U3=e=>typeof e=="object"&&e!==null,MTe=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(A7(e),t)},O7=e=>e[XW]||e,JW=(e,t,n,r)=>{if(!RTe(e))return e;let i=r&&r.get(e);if(!i){const l=O7(e);i=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,MTe(l)]:[l],r==null||r.set(e,i)}const[o,a]=i;let s=n&&n.get(o);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const f=(h,m)=>{if(!d){let v=u[Sw].get(l);if(v||(v={},u[Sw].set(l,v)),h===Tw)v[Tw]=!0;else{let g=v[h];g||(g=new Set,v[h]=g),g.add(m)}}},p={get:(h,m)=>m===XW?l:(f("k",m),JW(Reflect.get(h,m),u[Sw],u.c,u.t)),has:(h,m)=>m===PTe?(d=!0,u[Sw].delete(l),!0):(f("h",m),Reflect.has(h,m)),getOwnPropertyDescriptor:(h,m)=>(f("o",m),Reflect.getOwnPropertyDescriptor(h,m)),ownKeys:h=>(f(Tw),Reflect.ownKeys(h))};return c&&(p.set=p.deleteProperty=()=>!1),[p,u]})(o,!!a),s[1].p=$Te(a||o,s[0]),n&&n.set(o,s)),s[1][Sw]=t,s[1].c=n,s[1].t=r,s[1].p},j7=(e,t,n,r,i=Object.is)=>{if(i(e,t))return!1;if(!U3(e)||!U3(t))return!0;const o=n.get(O7(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const s of o.h||[])if(a=Reflect.has(e,s)!==Reflect.has(t,s),a)return a;if(o[Tw]===!0){if(a=((s,l)=>{const c=Reflect.ownKeys(s),u=Reflect.ownKeys(l);return c.length!==u.length||c.some((d,f)=>d!==u[f])})(e,t),a)return a}else for(const s of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),a)return a;for(const s of o.k||[])if(a=j7(e[s],t[s],n,r,i),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},NTe=(e,t,n)=>{const r=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;U3(a)&&i.add(a);const l=U3(a)&&t.get(O7(a));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const p=`:has(${String(f)})`;r.push(s?[...s,p]:[p])}),l[Tw]===!0){const f=":ownKeys";r.push(s?[...s,f]:[f])}else{var d;(d=l.o)==null||d.forEach(f=>{const p=`:hasOwn(${String(f)})`;r.push(s?[...s,p]:[p])})}(u=l.k)==null||u.forEach(f=>{o(a[f],s?[...s,f]:[f])})}else s&&r.push(s)};return o(e),r},LTe=(e,t)=>{const n=O.useRef();O.useEffect(()=>{n.current=NTe(e,t)}),O.useDebugValue(e)},FTe=e=>()=>{const[,n]=O.useReducer(u=>u+1,0),r=new WeakMap,i=O.useRef(),o=O.useRef(),a=O.useRef();O.useEffect(()=>{i.current=r,o.current!==a.current&&j7(o.current,a.current,r,new WeakMap)&&(o.current=a.current,n())});const s=O.useCallback(u=>(a.current=u,o.current&&o.current!==u&&i.current&&!j7(o.current,u,i.current,new WeakMap)?o.current:(o.current=u,u)),[]),l=e(s);typeof process=="object"&&process.env.NODE_ENV!=="production"&<e(l,r);const c=O.useMemo(()=>new WeakMap,[]);return JW(l,r,c)};function BTe(e){let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(d!==t){const f=t;t=u?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},i=()=>t,o=(c,u=i,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(t);function p(){const h=u(t);if(!d(f,h)){const m=f;c(f=h,m)}}return n.add(p),()=>n.delete(p)},l={setState:r,getState:i,subscribe:(c,u,d)=>u||d?o(c,u,d):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,i,l),l}const eG=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?O.useEffect:O.useLayoutEffect;function zTe(e){const t=typeof e=="function"?BTe(e):e,n=(r=t.getState,i=Object.is)=>{const[,o]=O.useReducer(v=>v+1,0),a=t.getState(),s=O.useRef(a),l=O.useRef(r),c=O.useRef(i),u=O.useRef(!1),d=O.useRef();d.current===void 0&&(d.current=r(a));let f,p=!1;(s.current!==a||l.current!==r||c.current!==i||u.current)&&(f=r(a),p=!i(d.current,f)),eG(()=>{p&&(d.current=f),s.current=a,l.current=r,c.current=i,u.current=!1});const h=O.useRef(a);eG(()=>{const v=()=>{try{const b=t.getState(),x=l.current(b);c.current(d.current,x)||(s.current=b,d.current=x,o())}catch{u.current=!0,o()}},g=t.subscribe(v);return t.getState()!==h.current&&v(),g},[]);const m=p?f:d.current;return O.useDebugValue(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},n}const HTe={};function UTe(e,t){return(n,r,i)=>{var o;let a=!1;typeof t=="string"&&!a&&(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=t===void 0?{name:void 0,anonymousActionType:void 0}:typeof t=="string"?{name:t}:t;typeof((o=s==null?void 0:s.serialize)==null?void 0:o.options)<"u"&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");let l;try{l=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return(HTe&&"production")!=="production"&&typeof window<"u"&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);let c=Object.create(l.connect(s)),u=!1;Object.defineProperty(i,"devtools",{get:()=>(u||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),u=!0),c),set:m=>{u||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),u=!0),c=m}});let d=!1;Object.defineProperty(c,"prefix",{get:()=>(d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0),""),set:()=>{d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0)}});let f=!0;i.setState=(m,v,g)=>{n(m,v),f&&c.send(g===void 0?{type:s.anonymousActionType||"anonymous"}:typeof g=="string"?{type:g}:g,r())};const p=(...m)=>{const v=f;f=!1,n(...m),f=v},h=e(i.setState,r,i);if(c.init(h),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let m=!1;const v=i.dispatch;i.dispatch=(...g)=>{g[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),v(...g)}}return c.subscribe(m=>{var v;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return D7(m.payload,g=>{if(g.type==="__setState"){p(g.state);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(g)});case"DISPATCH":switch(m.payload.type){case"RESET":return p(h),c.init(i.getState());case"COMMIT":return c.init(i.getState());case"ROLLBACK":return D7(m.state,g=>{p(g),c.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return D7(m.state,g=>{p(g)});case"IMPORT_STATE":{const{nextLiftedState:g}=m.payload,b=(v=g.computedStates.slice(-1)[0])==null?void 0:v.state;if(!b)return;p(b),c.send(null,g);return}case"PAUSE_RECORDING":return f=!f}return}}),h}}const D7=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};var VTe=Object.defineProperty,tG=Object.getOwnPropertySymbols,qTe=Object.prototype.hasOwnProperty,WTe=Object.prototype.propertyIsEnumerable,nG=(e,t,n)=>t in e?VTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C1=(e,t)=>{for(var n in t||(t={}))qTe.call(t,n)&&nG(e,n,t[n]);if(tG)for(var n of tG(t))WTe.call(t,n)&&nG(e,n,t[n]);return e};const V3=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return V3(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return V3(r)(n)}}}},GTe=(e,t)=>(n,r,i)=>{let o=C1({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,g)=>C1(C1({},g),v)},t);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(c)c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);else return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=V3(o.serialize),d=()=>{const v=o.partialize(C1({},r()));o.whitelist&&Object.keys(v).forEach(x=>{var w;!((w=o.whitelist)!=null&&w.includes(x))&&delete v[x]}),o.blacklist&&o.blacklist.forEach(x=>delete v[x]);let g;const b=u({state:v,version:o.version}).then(x=>c.setItem(o.name,x)).catch(x=>{g=x});if(g)throw g;return b},f=i.setState;i.setState=(v,g)=>{f(v,g),d()};const p=e((...v)=>{n(...v),d()},r,i);let h;const m=()=>{var v;if(!c)return;a=!1,s.forEach(b=>b(r()));const g=((v=o.onRehydrateStorage)==null?void 0:v.call(o,r()))||void 0;return V3(c.getItem.bind(c))(o.name).then(b=>{if(b)return o.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return o.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var x;return h=o.merge(b,(x=r())!=null?x:p),n(h,!0),d()}).then(()=>{g==null||g(h,void 0),a=!0,l.forEach(b=>b(h))}).catch(b=>{g==null||g(void 0,b)})};return i.persist={setOptions:v=>{o=C1(C1({},o),v),v.getStorage&&(c=v.getStorage())},clearStorage:()=>{var v;(v=c==null?void 0:c.removeItem)==null||v.call(c,o.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},m(),h||p};function KTe(e){let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(d!==t){const f=t;t=u?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},i=()=>t,o=(c,u=i,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(t);function p(){const h=u(t);if(!d(f,h)){const m=f;c(f=h,m)}}return n.add(p),()=>n.delete(p)},l={setState:r,getState:i,subscribe:(c,u,d)=>u||d?o(c,u,d):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,i,l),l}const YTe=(e,t)=>{const n={};return Object.keys(e.getState()).forEach(r=>{n[r]=i=>{if(e.getState()[r]===i)return;const a=r.replace(/^\S/,s=>s.toUpperCase());e.setState(s=>{s[r]=i},`@@${t}/set${a}`)}}),n},ZTe=(e,t)=>{const n=e(t.set,t.get,t);return{...t,set:{...t.set,...n}}},XTe=(e,t)=>{const n={...t.use},r={...t.useTracked},i={...t.get};return Object.keys(e(t.store.getState(),t.get,t)).forEach(o=>{n[o]=(...a)=>t.useStore(s=>{const c=e(s,t.get,t)[o];return c(...a)}),r[o]=(...a)=>{const s=t.useTrackedStore(),c=e(s,t.get,t)[o];return c(...a)},i[o]=(...a)=>{const l=e(t.store.getState(),t.get,t)[o];return l(...a)}}),{...t,get:i,use:n,useTracked:r}},I7=e=>({...e,extendSelectors:t=>I7(XTe(t,e)),extendActions:t=>I7(ZTe(t,e))}),QTe=e=>{const t={};return Object.keys(e.getState()).forEach(n=>{t[n]=()=>e.getState()[n]}),t},JTe=e=>{const t={};return Object.keys(e.getState()).forEach(n=>{t[n]=r=>e(i=>i[n],r)}),t},e9e=(e,t)=>{const n={};return Object.keys(e.getState()).forEach(r=>{n[r]=()=>t()[r]}),n},t9e=e=>(t,n,r)=>{const i=(o,a)=>t(H3(o),!0,a);return r.setState=i,e(i,n,r)};function n9e(e,...t){return t.reduce((n,r)=>r(n),e)}const xh=e=>(t,n={})=>{var r;const{middlewares:i=[],devtools:o,persist:a,immer:s}=n;ITe((r=s==null?void 0:s.enabledAutoFreeze)!==null&&r!==void 0?r:!1),s!=null&&s.enableMapSet&&CTe();const l=[t9e,...i];if(a!=null&&a.enabled){var c;const k={...a,name:(c=a.name)!==null&&c!==void 0?c:e};l.push(E=>GTe(E,k))}o!=null&&o.enabled&&l.push(k=>UTe(k,{...o,name:e})),l.push(KTe);const d=(k=>n9e(k,...l))(()=>t),f=zTe(d),p=YTe(f,e),h=(k,E)=>{d.setState(j=>{Object.assign(j,k)},E||`@@${e}/mergeState`)},m=(k,E)=>{d.setState(k,E||`@@${e}/setState`)},v=JTe(f),g=QTe(f),b=FTe(f),x=e9e(f,b),w={get:{state:d.getState,...g},name:e,set:{state:m,mergeState:h,...p},store:d,use:v,useTracked:x,useStore:f,useTrackedStore:b,extendSelectors:()=>w,extendActions:()=>w};return I7(w)};var q3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rG(e,t){return t={exports:{}},e(t,t.exports),t.exports}var r9e=typeof q3=="object"&&q3&&q3.Object===Object&&q3,iG=r9e,i9e=typeof self=="object"&&self&&self.Object===Object&&self,o9e=iG||i9e||Function("return this")(),zd=o9e,a9e=zd.Symbol,kh=a9e,oG=Object.prototype,s9e=oG.hasOwnProperty,l9e=oG.toString,Aw=kh?kh.toStringTag:void 0;function c9e(e){var t=s9e.call(e,Aw),n=e[Aw];try{e[Aw]=void 0;var r=!0}catch{}var i=l9e.call(e);return r&&(t?e[Aw]=n:delete e[Aw]),i}var u9e=c9e,d9e=Object.prototype,f9e=d9e.toString;function h9e(e){return f9e.call(e)}var p9e=h9e,m9e="[object Null]",g9e="[object Undefined]",aG=kh?kh.toStringTag:void 0;function v9e(e){return e==null?e===void 0?g9e:m9e:aG&&aG in Object(e)?u9e(e):p9e(e)}var W3=v9e;function y9e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sG=y9e,b9e="[object AsyncFunction]",w9e="[object Function]",_9e="[object GeneratorFunction]",x9e="[object Proxy]";function k9e(e){if(!sG(e))return!1;var t=W3(e);return t==w9e||t==_9e||t==b9e||t==x9e}var E9e=k9e,C9e=zd["__core-js_shared__"],P7=C9e,lG=function(){var e=/[^.]+$/.exec(P7&&P7.keys&&P7.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function S9e(e){return!!lG&&lG in e}var T9e=S9e,A9e=Function.prototype,O9e=A9e.toString;function j9e(e){if(e!=null){try{return O9e.call(e)}catch{}try{return e+""}catch{}}return""}var Lm=j9e,D9e=/[\\^$.*+?()[\]{}|]/g,I9e=/^\[object .+?Constructor\]$/,P9e=Function.prototype,$9e=Object.prototype,R9e=P9e.toString,M9e=$9e.hasOwnProperty,N9e=RegExp("^"+R9e.call(M9e).replace(D9e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L9e(e){if(!sG(e)||T9e(e))return!1;var t=E9e(e)?N9e:I9e;return t.test(Lm(e))}var F9e=L9e;function B9e(e,t){return e==null?void 0:e[t]}var z9e=B9e;function H9e(e,t){var n=z9e(e,t);return F9e(n)?n:void 0}var Fm=H9e;(function(){try{var e=Fm(Object,"defineProperty");return e({},"",{}),e}catch{}})();function U9e(e){return e!=null&&typeof e=="object"}var cG=U9e,V9e="[object Arguments]";function q9e(e){return cG(e)&&W3(e)==V9e}var uG=q9e,dG=Object.prototype,W9e=dG.hasOwnProperty,G9e=dG.propertyIsEnumerable;uG(function(){return arguments}());function K9e(){return!1}var Y9e=K9e;rG(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,o=i?zd.Buffer:void 0,a=o?o.isBuffer:void 0,s=a||Y9e;e.exports=s});var fG=rG(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,o=i&&iG.process,a=function(){try{var s=r&&r.require&&r.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a});fG&&fG.isTypedArray;function Z9e(){this.__data__=[],this.size=0}var X9e=Z9e;function Q9e(e,t){return e===t||e!==e&&t!==t}var J9e=Q9e;function eAe(e,t){for(var n=e.length;n--;)if(J9e(e[n][0],t))return n;return-1}var G3=eAe,tAe=Array.prototype,nAe=tAe.splice;function rAe(e){var t=this.__data__,n=G3(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nAe.call(t,n,1),--this.size,!0}var iAe=rAe;function oAe(e){var t=this.__data__,n=G3(t,e);return n<0?void 0:t[n][1]}var aAe=oAe;function sAe(e){return G3(this.__data__,e)>-1}var lAe=sAe;function cAe(e,t){var n=this.__data__,r=G3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uAe=cAe;function S1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}S1.prototype.clear=X9e,S1.prototype.delete=iAe,S1.prototype.get=aAe,S1.prototype.has=lAe,S1.prototype.set=uAe;var dAe=S1,fAe=Fm(zd,"Map"),K3=fAe,hAe=Fm(Object,"create"),Ow=hAe;function pAe(){this.__data__=Ow?Ow(null):{},this.size=0}var mAe=pAe;function gAe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vAe=gAe,yAe="__lodash_hash_undefined__",bAe=Object.prototype,wAe=bAe.hasOwnProperty;function _Ae(e){var t=this.__data__;if(Ow){var n=t[e];return n===yAe?void 0:n}return wAe.call(t,e)?t[e]:void 0}var xAe=_Ae,kAe=Object.prototype,EAe=kAe.hasOwnProperty;function CAe(e){var t=this.__data__;return Ow?t[e]!==void 0:EAe.call(t,e)}var SAe=CAe,TAe="__lodash_hash_undefined__";function AAe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ow&&t===void 0?TAe:t,this}var OAe=AAe;function T1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}T1.prototype.clear=mAe,T1.prototype.delete=vAe,T1.prototype.get=xAe,T1.prototype.has=SAe,T1.prototype.set=OAe;var hG=T1;function jAe(){this.size=0,this.__data__={hash:new hG,map:new(K3||dAe),string:new hG}}var DAe=jAe;function IAe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var PAe=IAe;function $Ae(e,t){var n=e.__data__;return PAe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Y3=$Ae;function RAe(e){var t=Y3(this,e).delete(e);return this.size-=t?1:0,t}var MAe=RAe;function NAe(e){return Y3(this,e).get(e)}var LAe=NAe;function FAe(e){return Y3(this,e).has(e)}var BAe=FAe;function zAe(e,t){var n=Y3(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var HAe=zAe;function A1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}A1.prototype.clear=DAe,A1.prototype.delete=MAe,A1.prototype.get=LAe,A1.prototype.has=BAe,A1.prototype.set=HAe;var pG=A1;zd.Uint8Array;var mG=kh?kh.prototype:void 0;mG&&mG.valueOf;var UAe=Fm(zd,"DataView"),$7=UAe,VAe=Fm(zd,"Promise"),R7=VAe,qAe=Fm(zd,"Set"),M7=qAe,WAe=Fm(zd,"WeakMap"),N7=WAe,gG="[object Map]",GAe="[object Object]",vG="[object Promise]",yG="[object Set]",bG="[object WeakMap]",wG="[object DataView]",KAe=Lm($7),YAe=Lm(K3),ZAe=Lm(R7),XAe=Lm(M7),QAe=Lm(N7),O1=W3;($7&&O1(new $7(new ArrayBuffer(1)))!=wG||K3&&O1(new K3)!=gG||R7&&O1(R7.resolve())!=vG||M7&&O1(new M7)!=yG||N7&&O1(new N7)!=bG)&&(O1=function(e){var t=W3(e),n=t==GAe?e.constructor:void 0,r=n?Lm(n):"";if(r)switch(r){case KAe:return wG;case YAe:return gG;case ZAe:return vG;case XAe:return yG;case QAe:return bG}return t});var JAe="Expected a function";function L7(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(JAe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(L7.Cache||pG),n}L7.Cache=pG;var eOe=L7,tOe=500;function nOe(e){var t=eOe(e,function(r){return n.size===tOe&&n.clear(),r}),n=t.cache;return t}var rOe=nOe,iOe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oOe=/\\(\\)?/g;rOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iOe,function(n,r,i,o){t.push(i?o.replace(oOe,"$1"):r||n)}),t});var _G=kh?kh.prototype:void 0;_G&&_G.toString;const xG=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),aOe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),jw=(e,t)=>!e||e.nodeName===t?e:jw(e.parentElement,t),F7=(e,...t)=>()=>{e==null||e(...t)},sOe=/^(?:\w+:)?\/\/(\S+)$/,lOe=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,cOe=/^[^\s.]+\.\S{2,}$/,B7=e=>{if(typeof e!="string")return!1;const t=e.match(sOe);if(!t)return!1;const n=t[1];if(!n)return!1;try{new URL(e)}catch{return!1}return lOe.test(n)||cOe.test(n)},Z3=(e,t,{handlerKeys:n,handlerQuery:r=i=>i.indexOf("on")===0}={})=>{const i=new Map,o={},a=s=>{s&&Object.entries(s).forEach(([l,c])=>{if((!n||n.includes(l))&&(!r||r(l))&&typeof c=="function"){var u;i.has(l)||i.set(l,[]),(u=i.get(l))===null||u===void 0||u.push(c),o[l]=(...d)=>{var f;(f=i.get(l))===null||f===void 0||f.forEach(p=>p(...d))}}else o[l]=c})};return a(e),a(t),o},kG=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;let r=null;try{r=new URL(e)}catch{return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},uOe=e=>typeof e>"u",dOe=e=>e===null,fOe=e=>uOe(e)||dOe(e),Dw=e=>!fOe(e);var EG=Object.prototype.hasOwnProperty;function CG(e,t,n){for(n of e.keys())if(Iw(n,t))return n}function Iw(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Iw(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=CG(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=CG(t,i),!i)||!Iw(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(EG.call(e,n)&&++r&&!EG.call(t,n)||!(n in t)||!Iw(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function hOe(e){const t=O.useRef(e),n=O.useRef(0);return Iw(e,t.current)||(t.current=e,n.current+=1),O.useMemo(()=>t.current,[n.current])}function SG(e,t){return O.useMemo(e,hOe(t))}/*!
|
|
71
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(tq);var aSe=tq.exports;const bu=du(aSe),nq=({selected:e,color:t,children:n,onSelect:r,onEdit:i,onDelete:o})=>y.jsxs("div",{className:bu(y3["atom-item-tag-dropdown"],e&&y3.selected),onClick:r,children:[y.jsx(U9,{color:t}),y.jsx(et,{size:"sm",color:"gray-1000",className:y3.label,children:n}),y.jsxs("div",{className:y3["actions-container"],children:[y.jsx(vr,{variant:"ghost",color:"sand",size:"sm",onClick:i,children:y.jsx(jk,{})}),y.jsx(vr,{variant:"ghost",color:"sand",size:"sm",onClick:o,children:y.jsx(jwe,{})})]})]});nq.displayName="AtomItemTagDropdown";const c1={"tag-dropdown--content-container":"_tag-dropdown--content-container_izi7x_1","tag-dropdown--add-cta-container":"_tag-dropdown--add-cta-container_izi7x_15","tag-dropdown--add-cta-label":"_tag-dropdown--add-cta-label_izi7x_19","tag-dropdown--header-container":"_tag-dropdown--header-container_izi7x_32","tag-dropdown--options-container":"_tag-dropdown--options-container_izi7x_40","tag-dropdown--edit-options-container":"_tag-dropdown--edit-options-container_izi7x_46"},Pd={"atom-trigger-tag-dropdown--trigger":"_atom-trigger-tag-dropdown--trigger_1lgcl_1","atom-trigger-tag-dropdown--tooltip":"_atom-trigger-tag-dropdown--tooltip_1lgcl_9","atom-trigger-tag-dropdown--tooltip-item":"_atom-trigger-tag-dropdown--tooltip-item_1lgcl_17","atom-trigger-tag-dropdown--select":"_atom-trigger-tag-dropdown--select_1lgcl_25","atom-trigger-tag-dropdown--select-placeholder-container":"_atom-trigger-tag-dropdown--select-placeholder-container_1lgcl_46","atom-trigger-tag-dropdown--select-trigger-icon":"_atom-trigger-tag-dropdown--select-trigger-icon_1lgcl_54","atom-trigger-tag-dropdown--select-lg":"_atom-trigger-tag-dropdown--select-lg_1lgcl_63","atom-trigger-tag-dropdown--select-md":"_atom-trigger-tag-dropdown--select-md_1lgcl_67","atom-trigger-tag-dropdown--select-sm":"_atom-trigger-tag-dropdown--select-sm_1lgcl_71","atom-trigger-tag-dropdown--select-disabled":"_atom-trigger-tag-dropdown--select-disabled_1lgcl_75"},rq=({selectedTags:e,size:t,type:n,style:r,disabled:i=!1})=>{const o=()=>{var a;return y.jsxs("div",{className:Pd["atom-trigger-tag-dropdown--trigger"],children:[y.jsx("div",{style:{display:"flex",alignItems:"center",flexDirection:"row"},children:e.map((s,l)=>y.jsx(UU,{fontSize:10,color:s.color,style:{marginLeft:l>0?"-4px":"0"}},`selected_tag_${l}`))}),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:((a=e==null?void 0:e[e.length-1])==null?void 0:a.label)??"Select Tag"})]})};return n==="icon"?y.jsx(t1,{asChild:!0,disabled:i,children:y.jsx(ds,{variant:"text",color:"sand",label:y.jsxs(Id,{children:[y.jsx(vu,{children:y.jsx(o,{})}),e&&e.length>0&&y.jsx(gu,{className:Pd["tooltip-description"],isDark:!0,description:y.jsx("div",{className:Pd["atom-trigger-tag-dropdown--tooltip"],children:e.map((a,s)=>y.jsxs("div",{className:Pd["atom-trigger-tag-dropdown--tooltip-item"],children:[y.jsx(UU,{fontSize:10,color:a.color,style:{left:"2px"}}),y.jsx(et,{color:"white",size:"xs",children:y.jsx("span",{style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:a.label})})]},`selected_tag_${s}`))})})]}),closeIcon:!1,style:{userSelect:"none",cursor:"pointer"}})}):n==="select"?y.jsx(t1,{asChild:!0,disabled:i,children:y.jsxs("button",{className:vt(Pd["atom-trigger-tag-dropdown--select"],Pd[`atom-trigger-tag-dropdown--select-${t}`],i&&Pd["atom-trigger-tag-dropdown--select-disabled"]),style:r,children:[y.jsx("div",{className:Pd["atom-trigger-tag-dropdown--select-placeholder-container"],children:y.jsx(o,{})}),y.jsx("span",{className:Pd["atom-trigger-tag-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}):y.jsx(y.Fragment,{})};rq.displayName="AtomTriggerTagDropdown";const sSe=["#868686","#D04141","#F2B500","#5DBA6C","#64C8F7","#ED9987","#1C3C9E"],lSe=({label:e,align:t="start",tagsList:n,tagsSelected:r,onSelect:i,onCreate:o,onEdit:a,onDelete:s,onBlur:l=()=>{},useInternalState:c=!1,triggerType:u="icon",triggerSize:d="md",disabled:f=!1,triggerStyle:p})=>{const[h,m]=O.useState(r),[v,g]=O.useState(""),[b,x]=O.useState(void 0),[w,k]=O.useState(void 0),[E,j]=O.useState(Ua.SEARCH),T=c?h:r,C=n.filter(Y=>T.includes(Y.value)),D=O.useRef(null),R=O.useMemo(()=>!v||v===""?n:n.filter(Y=>Y.label.toLowerCase().includes(v.toLowerCase())),[n,v]);O.useEffect(()=>{E!==Ua.EDIT&&(v!==""&&!R.map(Y=>Y.label.toLowerCase()).includes(v.toLowerCase())?j(Ua.CREATE):E===Ua.CREATE&&j(Ua.SEARCH))},[v,R]);const M=Y=>{if(c)if(h.includes(Y.value)){const q=h.filter(V=>V!==Y.value);m(q),i(q)}else{const q=[...h,Y.value];m(q),i(q)}else r.includes(Y.value)?i(r.filter(q=>q!==Y.value)):i([...r,Y.value])},L=(Y,q)=>{Y.stopPropagation(),q&&(x(q),k(q.color),j(Ua.EDIT),g(q.label),D.current&&D.current.focus())},B=()=>{o({label:v,color:w??"#868686",value:v}),G(),D.current&&D.current.focus()},W=(Y,q)=>{Y.stopPropagation(),s(q)},ee=()=>{if(!b||n.findIndex(V=>V.value===b.value)===-1)return;const q={...b,label:v,color:w??"#868686"};a(q),G()},G=()=>{j(Ua.SEARCH),g(""),x(void 0),k("#868686")};return y.jsxs("div",{children:[e&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:e}),y.jsxs(Sl,{modal:!1,onOpenChange:Y=>{Y||l&&l(c?h:r)},children:[y.jsx(rq,{disabled:f,size:d,type:u,style:p,selectedTags:C}),y.jsx(Tl,{align:t,sideOffset:5,children:y.jsxs("div",{className:c1["tag-dropdown--content-container"],children:[y.jsxs("div",{className:c1["tag-dropdown--header-container"],children:[E!==Ua.SEARCH&&y.jsx(eq,{value:w??"#868686",onChange:k,availableColors:sSe}),y.jsx(JV,{ref:D,state:E,value:v,isEditing:!!b,onChange:Y=>g(Y.target.value)})]}),E===Ua.SEARCH&&y.jsx("div",{className:c1["tag-dropdown--options-container"],children:R.map((Y,q)=>{const V=C.map(A=>A.value).includes(Y.value);return y.jsx(nq,{onSelect:()=>M(Y),onEdit:A=>L(A,Y),onDelete:A=>W(A,Y),selected:V,color:Y.color,children:Y.label},`tag_${q}`)})}),E===Ua.EDIT&&y.jsxs("div",{className:c1["tag-dropdown--edit-options-container"],children:[y.jsx(jr,{variant:"text",color:"primary",size:"sm",onClick:G,children:"Cancel"}),y.jsx(jr,{variant:"filled",color:"primary",size:"sm",onClick:ee,children:"Edit"})]}),E===Ua.CREATE&&y.jsx("div",{className:c1["tag-dropdown--add-cta-container"],children:y.jsx(jr,{variant:"text",color:"primary",size:"sm",startIcon:y.jsx(Ad,{}),onClick:B,children:y.jsxs("span",{className:c1["tag-dropdown--add-cta-label"],children:['Create "',v,'"']})})})]})})]})]})};var Xs=(e=>(e[e.SEARCH=0]="SEARCH",e[e.EDIT=1]="EDIT",e[e.CREATE=2]="CREATE",e))(Xs||{});const u1={"atom-head-status-dropdown":"_atom-head-status-dropdown_1mwp5_1","atom-head-status-dropdown--text-field":"_atom-head-status-dropdown--text-field_1mwp5_9","atom-head-status-dropdown--container":"_atom-head-status-dropdown--container_1mwp5_17","atom-head-status-dropdown--text-container":"_atom-head-status-dropdown--text-container_1mwp5_30","atom-head-status-dropdown--icon":"_atom-head-status-dropdown--icon_1mwp5_53","atom-head-status-dropdown--input-container":"_atom-head-status-dropdown--input-container_1mwp5_61"},iq=O.forwardRef(({state:e,selectedOption:t,isEditing:n,...r},i)=>{let o;switch(e){case Xs.CREATE:o=y.jsx(Ad,{});break;case Xs.EDIT:o=y.jsx(jk,{});break;case Xs.SEARCH:o=y.jsx(Hv,{});break}return y.jsx("div",{className:u1["atom-head-status-dropdown"],children:y.jsxs("div",{className:u1["atom-head-status-dropdown--container"],children:[y.jsx("div",{className:u1["atom-head-status-dropdown--icon"],children:o}),y.jsx("div",{className:u1["atom-head-status-dropdown--input-container"],children:y.jsx(so,{...r,ref:i,size:"md",contentClassName:u1["atom-head-status-dropdown--text-field"],className:u1["atom-head-status-dropdown--text-container"],placeholder:"Search Status",style:{padding:"0px"}})})]})})});iq.displayName="AtomHeadStatusDropdown";const cSe={"atom-type-selector--container":"_atom-type-selector--container_5klcx_1"},oq=({value:e,onChange:t})=>{const[n,r]=O.useState(!1),i=o=>{o&&t(o),r(!1)};return y.jsxs(Sl,{modal:!0,open:n,onOpenChange:r,children:[y.jsx(Ks,{asChild:!0,children:y.jsx(vr,{size:"md",variant:"outlined",children:f1(e??cw[0])})}),y.jsx(Tl,{align:"start",sideOffset:5,children:y.jsx("div",{className:cSe["atom-type-selector--container"],children:cw.map((o,a)=>y.jsx(vr,{variant:"ghost",onClick:()=>i(o),children:f1(o)},`type_${a}`))})})]})};oq.displayName="AtomStatusSelectorStatusDropdown";const b3={"atom-item-status-dropdown":"_atom-item-status-dropdown_bkgm5_1","actions-container":"_actions-container_bkgm5_15",selected:"_selected_bkgm5_20",label:"_label_bkgm5_30"},aq=({option:e,selected:t,onSelect:n,onEdit:r,onDelete:i})=>y.jsxs("div",{className:bu(b3["atom-item-status-dropdown"],t&&b3.selected),onClick:n,children:[f1(e.type),y.jsx(et,{size:"sm",color:"gray-1000",className:b3.label,children:e.label}),y.jsx("div",{className:b3["actions-container"],children:y.jsx(vr,{variant:"ghost",color:"sand",size:"sm",onClick:r,children:y.jsx(jk,{})})})]});aq.displayName="AtomItemStatusDropdown";const d1={"status-dropdown--content-container":"_status-dropdown--content-container_1r9tj_1","status-dropdown--add-cta-container":"_status-dropdown--add-cta-container_1r9tj_8","status-dropdown--add-cta-label":"_status-dropdown--add-cta-label_1r9tj_12","status-dropdown--header-container":"_status-dropdown--header-container_1r9tj_25","status-dropdown--options-container":"_status-dropdown--options-container_1r9tj_33","status-dropdown--edit-options-container":"_status-dropdown--edit-options-container_1r9tj_39"},Im={"atom-trigger-status-dropdown--tooltip-content":"_atom-trigger-status-dropdown--tooltip-content_1njsr_1","atom-trigger-status-dropdown--select":"_atom-trigger-status-dropdown--select_1njsr_8","atom-trigger-status-dropdown--select-placeholder-container":"_atom-trigger-status-dropdown--select-placeholder-container_1njsr_29","atom-trigger-status-dropdown--select-trigger-icon":"_atom-trigger-status-dropdown--select-trigger-icon_1njsr_37","atom-trigger-status-dropdown--select-lg":"_atom-trigger-status-dropdown--select-lg_1njsr_46","atom-trigger-status-dropdown--select-md":"_atom-trigger-status-dropdown--select-md_1njsr_50","atom-trigger-status-dropdown--select-sm":"_atom-trigger-status-dropdown--select-sm_1njsr_54","atom-trigger-status-dropdown--select-disabled":"_atom-trigger-status-dropdown--select-disabled_1njsr_58"},sq=({option:e,size:t,type:n,disabled:r,style:i})=>n==="icon"?y.jsx(t1,{asChild:!0,disabled:r,children:y.jsx(vr,{variant:"ghost",color:"primary",children:y.jsxs(Id,{children:[y.jsx(vu,{children:f1(e==null?void 0:e.type)}),e&&e.value!==""&&y.jsx(gu,{isDark:!0,description:y.jsxs("div",{className:Im["atom-trigger-status-dropdown--tooltip-content"],children:[y.jsx("span",{children:f1(e==null?void 0:e.type)}),y.jsx(et,{size:"xs",color:"white",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:e.label})]})})]})})}):n==="select"?y.jsx(t1,{asChild:!0,disabled:r,children:y.jsxs("button",{className:vt(Im["atom-trigger-status-dropdown--select"],Im[`atom-trigger-status-dropdown--select-${t}`],r&&Im["atom-trigger-status-dropdown--select-disabled"]),style:i,children:[y.jsx("div",{className:Im["atom-trigger-status-dropdown--select-placeholder-container"],children:y.jsxs("div",{className:Im["atom-trigger-status-dropdown--tooltip-content"],children:[f1(e==null?void 0:e.type),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:e==null?void 0:e.label})]})}),y.jsx("span",{className:Im["atom-trigger-tag-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}):y.jsx(y.Fragment,{});sq.displayName="AtomTriggerStatusDropdown";const uSe=({align:e="start",optionsList:t,value:n="",onChange:r,onUpdateList:i,triggerType:o="icon",triggerSize:a="md",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),[h,m]=O.useState(void 0),[v,g]=O.useState(cw[0]),[b,x]=O.useState(Xs.SEARCH),w=t.find(L=>L.value===n),k=O.useRef(null),E=O.useMemo(()=>!f||f===""?t:t.filter(L=>L.label.toLowerCase().includes(f.toLowerCase())),[t,f]);O.useEffect(()=>{b!==Xs.EDIT&&x(Xs.SEARCH)},[f,E]);const j=L=>{(w==null?void 0:w.value)!==L.value&&(r(L.value),d(!1))},T=(L,B)=>{L.stopPropagation(),B&&(m(B),g(B.value),x(Xs.EDIT),p(B.label),k.current&&k.current.focus())},C=()=>{const L={label:f,value:"",type:v};r(L.value),M(),k.current&&k.current.focus(),i([...t,L])},D=(L,B)=>{L.stopPropagation(),i(t.filter(W=>W.label!==B.label)),n&&n===B.value&&r("")},R=()=>{if(!h)return;const L=t.findIndex(ee=>ee.label===h.label);if(L===-1)return;const B={label:f,value:"",type:v??cw[0]},W=[...t];W[L]=B,i(W),M()},M=()=>{x(Xs.SEARCH),p(""),m(void 0),g(cw[0])};return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!1,open:u,onOpenChange:d,children:[y.jsx(sq,{disabled:l,size:a,type:o,style:s,option:w}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:d1["status-dropdown--content-container"],children:[y.jsxs("div",{className:d1["status-dropdown--header-container"],children:[b!==Xs.SEARCH&&y.jsx(oq,{value:n??"",onChange:g}),y.jsx(iq,{ref:k,state:b,value:f,selectedOption:w,isEditing:!!h,onChange:L=>p(L.target.value)})]}),b===Xs.SEARCH&&y.jsx("div",{className:d1["status-dropdown--options-container"],children:E.map((L,B)=>{const W=w&&w.label===L.label;return y.jsx(aq,{onSelect:()=>j(L),onEdit:ee=>T(ee,L),onDelete:ee=>D(ee,L),selected:W,option:L},`option_${B}`)})}),b===Xs.EDIT&&y.jsxs("div",{className:d1["status-dropdown--edit-options-container"],children:[y.jsx(jr,{variant:"text",color:"primary",size:"sm",onClick:M,children:"Cancel"}),y.jsx(jr,{variant:"filled",color:"primary",size:"sm",onClick:R,children:"Edit"})]}),b===Xs.CREATE&&y.jsx("div",{className:d1["status-dropdown--add-cta-container"],children:y.jsx(jr,{variant:"text",color:"primary",size:"sm",startIcon:y.jsx(Ad,{}),onClick:C,children:y.jsxs("span",{className:d1["status-dropdown--add-cta-label"],children:['Create "',f,'"']})})})]})})]})]})},cw=["backlog","unstarted","started","completed","canceled"],f1=e=>{if(!e)return y.jsx(JA,{});switch(e){case"backlog":return y.jsx(JA,{});case"unstarted":return y.jsx(XU,{});case"started":return y.jsx(QU,{});case"completed":return y.jsx(JU,{});case"canceled":return y.jsx(_z,{})}},h1={"atom-head-priority-dropdown":"_atom-head-priority-dropdown_qt3rj_1","atom-head-priority-dropdown--text-field":"_atom-head-priority-dropdown--text-field_qt3rj_9","atom-head-priority-dropdown--container":"_atom-head-priority-dropdown--container_qt3rj_17","atom-head-priority-dropdown--text-container":"_atom-head-priority-dropdown--text-container_qt3rj_30","atom-head-priority-dropdown--icon":"_atom-head-priority-dropdown--icon_qt3rj_53","atom-head-priority-dropdown--input-container":"_atom-head-priority-dropdown--input-container_qt3rj_61"},lq=O.forwardRef(({...e},t)=>y.jsx("div",{className:h1["atom-head-priority-dropdown"],children:y.jsxs("div",{className:h1["atom-head-priority-dropdown--container"],children:[y.jsx("div",{className:h1["atom-head-priority-dropdown--icon"],children:y.jsx(Hv,{})}),y.jsx("div",{className:h1["atom-head-priority-dropdown--input-container"],children:y.jsx(so,{...e,ref:t,size:"md",contentClassName:h1["atom-head-priority-dropdown--text-field"],className:h1["atom-head-priority-dropdown--text-container"],placeholder:"Search Priority",style:{padding:"0px"}})})]})}));lq.displayName="AtomHeadPriorityDropdown";const pO={"atom-item-priority-dropdown":"_atom-item-priority-dropdown_1eu3n_1",selected:"_selected_1eu3n_20",label:"_label_1eu3n_30"},cq=({option:e,selected:t,onSelect:n})=>y.jsxs("div",{className:bu(pO["atom-item-priority-dropdown"],t&&pO.selected),onClick:n,children:[w3(e.value),y.jsx(et,{size:"sm",color:"gray-1000",className:pO.label,children:e.label})]});cq.displayName="AtomItemPriorityDropdown";const $d={"priority-dropdown--content-container":"_priority-dropdown--content-container_1sukb_1","priority-dropdown--add-cta-container":"_priority-dropdown--add-cta-container_1sukb_8","priority-dropdown--add-cta-label":"_priority-dropdown--add-cta-label_1sukb_12","priority-dropdown--header-container":"_priority-dropdown--header-container_1sukb_25","priority-dropdown--options-container":"_priority-dropdown--options-container_1sukb_33","priority-dropdown--edit-options-container":"_priority-dropdown--edit-options-container_1sukb_39","priority-dropdown--select":"_priority-dropdown--select_1sukb_47","priority-dropdown--select-placeholder-container":"_priority-dropdown--select-placeholder-container_1sukb_68","priority-dropdown--select-trigger-icon":"_priority-dropdown--select-trigger-icon_1sukb_76","priority-dropdown--select-lg":"_priority-dropdown--select-lg_1sukb_85","priority-dropdown--select-md":"_priority-dropdown--select-md_1sukb_89","priority-dropdown--select-sm":"_priority-dropdown--select-sm_1sukb_93","priority-dropdown--select-disabled":"_priority-dropdown--select-disabled_1sukb_97","priority-dropdown--trigger":"_priority-dropdown--trigger_1sukb_102"},dSe=({align:e="start",optionsList:t,enableSearch:n=!1,value:r,onChange:i,triggerSize:o="md",triggerType:a="icon",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),h=t.find(b=>b.value===r),m=O.useRef(null),v=O.useMemo(()=>!f||f===""?t:t.filter(b=>b.label.toLowerCase().includes(f.toLowerCase())),[t,f]),g=b=>{(h==null?void 0:h.value)!==b.value&&(i(b.value),d(!1))};return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!1,open:u,onOpenChange:d,children:[a==="select"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsxs("button",{className:vt($d["priority-dropdown--select"],$d[`priority-dropdown--select-${o}`],l&&$d["priority-dropdown--select-disabled"]),style:s,children:[y.jsx("div",{className:$d["priority-dropdown--select-placeholder-container"],children:y.jsxs("div",{className:$d["priority-dropdown--trigger"],children:[w3((h==null?void 0:h.value)??4),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:h==null?void 0:h.label})]})}),y.jsx("span",{className:$d["priority-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}),a==="icon"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsx(vr,{variant:"ghost",color:"primary",children:w3((h==null?void 0:h.value)??4)})}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:$d["priority-dropdown--content-container"],children:[n&&y.jsx("div",{className:$d["priority-dropdown--header-container"],children:y.jsx(lq,{ref:m,value:f,onChange:b=>p(b.target.value)})}),y.jsx("div",{className:$d["priority-dropdown--options-container"],children:v.map((b,x)=>{const w=h&&h.label===b.label;return y.jsx(cq,{onSelect:()=>g(b),selected:w,option:b},`option_${x}`)})})]})})]})]})},w3=e=>{switch(e){case 0:return y.jsx(QA,{});case 1:return y.jsx(bwe,{});case 2:return y.jsx(HEe,{});case 3:return y.jsx(VEe,{});case 4:return y.jsx(WEe,{});default:return y.jsx(QA,{})}},ph={"document-dropdown":"_document-dropdown_1rbf9_1","filter-applied-container":"_filter-applied-container_1rbf9_15",tag:"_tag_1rbf9_22","popover-container":"_popover-container_1rbf9_68","apply-cta":"_apply-cta_1rbf9_92"},mO={"atom-sub-issue-filters-dropdown-counter-container":"_atom-sub-issue-filters-dropdown-counter-container_10agb_1","atom-sub-document-dropdown--trigger":"_atom-sub-document-dropdown--trigger_10agb_15","atom-sub-document-dropdown--label":"_atom-sub-document-dropdown--label_10agb_40"},uw=O.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:i="gray-1000",children:o,appliedFiltersCounter:a},s)=>{const[l,c]=O.useState(!1),u=O.useRef(),d=()=>{u.current=setTimeout(()=>{c(!1)},t)},f=()=>{u.current&&clearTimeout(u.current),c(!0)};return y.jsxs(Am,{open:l,children:[y.jsx(Om,{asChild:!0,children:y.jsx("div",{ref:s,className:mO["atom-sub-document-dropdown--trigger"],onMouseEnter:f,onMouseLeave:d,children:y.jsxs("div",{className:mO["atom-sub-document-dropdown--label"],children:[y.jsx(et,{size:n,fontWeight:r,color:i,children:e}),!!a&&y.jsx("div",{className:mO["atom-sub-issue-filters-dropdown-counter-container"],children:y.jsx(et,{size:"xs",fontWeight:"regular",color:"purple-600",children:a})})]})})}),y.jsx(jm,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:f,onMouseLeave:d,children:o})]})});uw.displayName="AtomSubIssueFilterDropdown";const _3={avatar:"_avatar_u6yy9_1","avatar--size-md":"_avatar--size-md_u6yy9_15","avatar--size-sm":"_avatar--size-sm_u6yy9_23","avatar--size-xs":"_avatar--size-xs_u6yy9_31","avatar--size-xxs":"_avatar--size-xxs_u6yy9_39","avatar--disabled":"_avatar--disabled_u6yy9_47","avatar--badge":"_avatar--badge_u6yy9_51","avatar--badge-size-sm":"_avatar--badge-size-sm_u6yy9_62","avatar--image":"_avatar--image_u6yy9_67"},gO={badge:"_badge_1y0vz_1","badge--size-sm":"_badge--size-sm_1y0vz_11","badge--green":"_badge--green_1y0vz_16","badge--red":"_badge--red_1y0vz_20"},vO=O.forwardRef((e,t)=>{const{small:n=!1,color:r,className:i}=e;return y.jsx("div",{ref:t,className:vt(gO.badge,gO[`badge--${r}`],n&&gO["badge--size-sm"],i)})});vO.displayName="Badge";const uq=e=>{const[t,n]=e.split(" ");return t&&n?`${t.charAt(0)}${n.charAt(0)}`:t.charAt(0)},mh=O.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,disabled:o,badge:a,image:s,status:l,className:c,children:u,...d}=e,f=()=>s?y.jsx("img",{src:s.url,alt:s.alt,className:_3["avatar--image"]}):n?u:y.jsx(Pr,{size:r,color:"white",children:uq(i??"")}),p=O.useMemo(()=>({backgroundColor:e.color}),[e.color]);return y.jsxs("div",{ref:t,style:p,className:vt(_3.avatar,_3[`avatar--size-${r}`],o&&_3["avatar--disabled"],c),...d,children:[f(),a?y.jsx(vO,{color:l&&l==="online"?"green":"red",small:r==="xs"||r==="xxs"}):null]})});mh.displayName="Avatar";const fSe=({type:e})=>{switch(e){case"backlog":return y.jsx(JA,{});case"unstarted":return y.jsx(XU,{});case"started":return y.jsx(QU,{});case"completed":return y.jsx(JU,{});case"canceled":return y.jsx(_z,{});default:return null}},hSe=({avatar:e})=>{switch(typeof e){case"string":return y.jsx(mh,{color:"ff0000",name:e,size:"xs"});default:return y.jsx(mh,{color:"#B2B2B2",size:"xs",icon:!0,children:y.jsx(Abe,{})})}},yO={"atom-item-issue-filter-dropdown-container--trigger":"_atom-item-issue-filter-dropdown-container--trigger_19xw8_1","text-truncate":"_text-truncate_19xw8_10","atom-item-issue-filter-dropdown--trigger":"_atom-item-issue-filter-dropdown--trigger_19xw8_17"},dw=O.forwardRef(({...e},t)=>y.jsx(dq,{ref:t,...e}));dw.displayName="AtomItemIssueFiltersDropdown";const dq=O.forwardRef(({label:e,onSelect:t,isSelected:n,icon:r},i)=>{const o=()=>{t&&t()};return y.jsxs("div",{ref:i,className:yO["atom-item-issue-filter-dropdown-container--trigger"],onClick:o,children:[y.jsxs("div",{className:yO["atom-item-issue-filter-dropdown--trigger"],children:[y.jsx(dh,{checked:n,small:!0}),y.jsx(et,{size:"xs",className:yO["text-truncate"],children:e})]}),r]})});dq.displayName="AtomItemSingleIssueFiltersDropdown";function pSe({tags:e,assignees:t,states:n,priorities:r,onConfirmSelection:i,areFiltersApplied:o,closeDelay:a,selectedOptions:s}){const[l,c]=O.useState(s),u=v=>{c(g=>{const b=g.tags.some(w=>w.id===v),x=e.find(w=>w.id===v);return x?{...g,tags:b?g.tags.filter(w=>w.id!==v):[...g.tags,x]}:g})},d=v=>{c(g=>{const b=g.assignees.some(w=>w.id.toString()===v),x=t.find(w=>w.id.toString()===v);return x?{...g,assignees:b?g.assignees.filter(w=>w.id.toString()!==v):[...g.assignees,x]}:g})},f=v=>{c(g=>{const b=g.priorities.some(w=>w.value===v),x=r.find(w=>w.value===v);return x?{...g,priorities:b?g.priorities.filter(w=>w.value!==v):[...g.priorities,x]}:g})},p=v=>{c(g=>{const b=g.states.some(w=>w.id.toString()===v),x=n.find(w=>w.id.toString()===v);return x?{...g,states:b?g.states.filter(w=>w.id.toString()!==v):[...g.states,x]}:g})},h=()=>{i(l)},m=v=>y.jsx("div",{className:ph["apply-cta"],children:y.jsx(jr,{variant:"text",color:"primary",size:"sm",onClick:h,disabled:!o&&v.optionLength===0,children:"Apply filter"})});return y.jsxs("div",{className:ph["document-dropdown"],children:[y.jsx(uw,{fontWeight:o&&l.priorities.length?"bold":"regular",closeDelay:a,label:"Priority",appliedFiltersCounter:o?l.priorities.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[r.map(v=>{const g=l.priorities.includes(v);return y.jsx(dw,{isSelected:g,label:v.label,value:v.value.toString(),icon:w3(v.value),onSelect:()=>f(v.value)},`issues_priorities_${v.value}`)}),y.jsx(m,{optionLength:l.priorities.length})]})}),y.jsx(uw,{fontWeight:o&&l.states.length?"bold":"regular",closeDelay:a,label:"Status",appliedFiltersCounter:o?l.states.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[n.map(v=>{const g=l.states.includes(v);return y.jsx(dw,{isSelected:g,label:v.name,value:v.id,icon:y.jsx(fSe,{type:v.type}),onSelect:()=>p(v.id)},`issues_states_${v.id}`)}),y.jsx(m,{optionLength:l.states.length})]})}),y.jsx(uw,{fontWeight:o&&l.tags.length?"bold":"regular",closeDelay:a,label:"Tags",appliedFiltersCounter:o?l.tags.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[e.map(v=>{const g=l.tags.some(b=>b.id===v.id);return y.jsx(dw,{isSelected:g,label:v.name,value:v.id,icon:y.jsx("div",{className:ph.tag,style:{backgroundColor:v.color}}),onSelect:()=>u(v.id)},`issues_tags_${v.id}`)}),y.jsx(m,{optionLength:l.tags.length})]})}),y.jsx(uw,{fontWeight:o&&l.assignees.length?"bold":"regular",closeDelay:a,label:"Assignees",appliedFiltersCounter:o?l.assignees.length:void 0,children:y.jsxs("div",{className:ph["popover-container"],children:[t.map(v=>{const g=l.assignees.some(b=>b.id===v.id);return y.jsx(dw,{isSelected:g,label:v.email,value:v.id.toString(),icon:y.jsx(hSe,{avatar:v.email}),onSelect:()=>d(v.id.toString())},`issues_assignees_${v.id}`)}),y.jsx(m,{optionLength:l.assignees.length})]})})]})}const fq=O.forwardRef((e,t)=>{const[n,r]=O.useState(!1),[i,o]=O.useState({tags:e.selectedTags??[],states:e.selectedStates??[],priorities:e.selectedPriorities??[],assignees:e.selectedAssignees??[]}),[a,s]=O.useState(!1),l=O.useMemo(()=>i.tags.length+i.states.length+i.priorities.length+i.assignees.length,[i]),c=O.useCallback(()=>{r(!1)},[]);O.useImperativeHandle(t,()=>({close:c}));const u=O.useCallback(d=>{var f;r(d),(f=e.onOpenChange)==null||f.call(e,d)},[e.onOpenChange]);return y.jsxs(Sl,{modal:!1,open:n,onOpenChange:u,children:[y.jsx(Ks,{asChild:!0,disabled:e.disabled,children:y.jsx(jr,{startIcon:y.jsx(ZU,{}),color:"sand",size:"md",variant:n?"filled":"text",endIcon:a&&y.jsxs(et,{size:"xs",className:ph["filter-applied-container"],children:[l," Filters applied"]}),children:"Add filters"})}),y.jsx(Tl,{align:"start",sideOffset:5,children:y.jsx(pSe,{...e,selectedOptions:i,onSelectedOptionChange:o,areFiltersApplied:a,onConfirmSelection:d=>{o(d),s(!!(d.tags.length||d.assignees.length||d.priorities.length||d.states.length)),e.onConfirmSelection(d),c()}})})]})});fq.displayName="IssueFiltersDropdown";const p1={"atom-head-source-dropdown":"_atom-head-source-dropdown_l53bo_1","atom-head-source-dropdown--text-field":"_atom-head-source-dropdown--text-field_l53bo_9","atom-head-source-dropdown--container":"_atom-head-source-dropdown--container_l53bo_17","atom-head-source-dropdown--text-container":"_atom-head-source-dropdown--text-container_l53bo_30","atom-head-source-dropdown--icon":"_atom-head-source-dropdown--icon_l53bo_53","atom-head-source-dropdown--input-container":"_atom-head-source-dropdown--input-container_l53bo_61"},hq=O.forwardRef(({...e},t)=>y.jsx("div",{className:p1["atom-head-source-dropdown"],children:y.jsxs("div",{className:p1["atom-head-source-dropdown--container"],children:[y.jsx("div",{className:p1["atom-head-source-dropdown--icon"],children:y.jsx(Hv,{})}),y.jsx("div",{className:p1["atom-head-source-dropdown--input-container"],children:y.jsx(so,{...e,ref:t,size:"md",contentClassName:p1["atom-head-source-dropdown--text-field"],className:p1["atom-head-source-dropdown--text-container"],placeholder:"Search Source",style:{padding:"0px"}})})]})}));hq.displayName="AtomHeadSourceDropdown";const bO={"atom-item-source-dropdown":"_atom-item-source-dropdown_1r6od_1",selected:"_selected_1r6od_20",label:"_label_1r6od_30"},pq=({option:e,selected:t,onSelect:n})=>y.jsxs("div",{className:bu(bO["atom-item-source-dropdown"],t&&bO.selected),onClick:n,children:[wO(e.value),y.jsx(et,{size:"sm",color:"gray-1000",className:bO.label,children:e.label})]});pq.displayName="AtomItemSourceDropdown";const Rd={"source-dropdown--content-container":"_source-dropdown--content-container_kmuds_1","source-dropdown--add-cta-container":"_source-dropdown--add-cta-container_kmuds_8","source-dropdown--add-cta-label":"_source-dropdown--add-cta-label_kmuds_12","source-dropdown--header-container":"_source-dropdown--header-container_kmuds_25","source-dropdown--options-container":"_source-dropdown--options-container_kmuds_33","source-dropdown--edit-options-container":"_source-dropdown--edit-options-container_kmuds_39","source-dropdown--select":"_source-dropdown--select_kmuds_47","source-dropdown--select-placeholder-container":"_source-dropdown--select-placeholder-container_kmuds_68","source-dropdown--select-trigger-icon":"_source-dropdown--select-trigger-icon_kmuds_76","source-dropdown--select-lg":"_source-dropdown--select-lg_kmuds_85","source-dropdown--select-md":"_source-dropdown--select-md_kmuds_89","source-dropdown--select-sm":"_source-dropdown--select-sm_kmuds_93","source-dropdown--select-disabled":"_source-dropdown--select-disabled_kmuds_97","source-dropdown--trigger":"_source-dropdown--trigger_kmuds_102"},mSe=({align:e="start",enableSearch:t=!1,value:n,options:r,onChange:i,triggerSize:o="md",triggerType:a="icon",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),h=r.find(b=>b.value===n),m=O.useRef(null),v=O.useMemo(()=>!f||f===""?r:r.filter(b=>b.label.toLowerCase().includes(f.toLowerCase())),[r,f]),g=b=>{(h==null?void 0:h.value)!==b.value&&(i(b.value),d(!1))};return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!0,open:u,onOpenChange:d,children:[a==="select"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsxs("button",{className:vt(Rd["source-dropdown--select"],Rd[`source-dropdown--select-${o}`],l&&Rd["source-dropdown--select-disabled"]),children:[y.jsx("div",{className:Rd["source-dropdown--select-placeholder-container"],children:y.jsxs("div",{className:Rd["source-dropdown--trigger"],children:[wO((h==null?void 0:h.value)??"not_set"),y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:h==null?void 0:h.label})]})}),y.jsx("span",{className:Rd["source-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}),a==="icon"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsx(vr,{variant:"ghost",color:"primary",children:wO((h==null?void 0:h.value)??"not_set")})}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:Rd["source-dropdown--content-container"],style:s,children:[t&&y.jsx("div",{className:Rd["source-dropdown--header-container"],children:y.jsx(hq,{ref:m,value:f,onChange:b=>p(b.target.value)})}),y.jsx("div",{className:Rd["source-dropdown--options-container"],children:v.map((b,x)=>{const w=h&&h.label===b.label;return y.jsx(pq,{onSelect:()=>g(b),selected:w,option:b},`option_${x}`)})})]})})]})]})},wO=e=>{switch(e){case"source_production":return y.jsx(Twe,{});case"source_test":return y.jsx(wEe,{});default:return y.jsx(QA,{})}},Md={"draggable-dropdown--content-container":"_draggable-dropdown--content-container_akcks_1","draggable-dropdown--add-cta-container":"_draggable-dropdown--add-cta-container_akcks_8","draggable-dropdown--add-cta-label":"_draggable-dropdown--add-cta-label_akcks_12","draggable-dropdown--header-container":"_draggable-dropdown--header-container_akcks_25","draggable-dropdown--options-container":"_draggable-dropdown--options-container_akcks_33","draggable-dropdown--edit-options-container":"_draggable-dropdown--edit-options-container_akcks_39","draggable-dropdown--select":"_draggable-dropdown--select_akcks_47","draggable-dropdown--select-placeholder-container":"_draggable-dropdown--select-placeholder-container_akcks_68","draggable-dropdown--select-trigger-icon":"_draggable-dropdown--select-trigger-icon_akcks_76","draggable-dropdown--select-lg":"_draggable-dropdown--select-lg_akcks_85","draggable-dropdown--select-md":"_draggable-dropdown--select-md_akcks_89","draggable-dropdown--select-sm":"_draggable-dropdown--select-sm_akcks_93","draggable-dropdown--select-disabled":"_draggable-dropdown--select-disabled_akcks_97","draggable-dropdown--trigger":"_draggable-dropdown--trigger_akcks_102"},mq={"atom-head-draggable-dropdown":"_atom-head-draggable-dropdown_8sv0m_1","atom-head-draggable-dropdown--container":"_atom-head-draggable-dropdown--container_8sv0m_9"},_O=O.forwardRef(({children:e},t)=>y.jsx("div",{className:mq["atom-head-draggable-dropdown"],children:y.jsx("div",{className:mq["atom-head-draggable-dropdown--container"],children:e})}));_O.displayName="AtomHeadSourceDropdown";const gSe=({align:e="start",enableSearch:t=!1,value:n,options:r,onChange:i,triggerSize:o="md",triggerType:a="icon",triggerStyle:s,disabled:l=!1,label:c})=>{const[u,d]=O.useState(!1),[f,p]=O.useState(""),h=r.find(g=>g.value===n),m=O.useRef(null),v=O.useMemo(()=>!f||f===""?r:r.filter(g=>g.label.toLowerCase().includes(f.toLowerCase())),[r,f]);return y.jsxs("div",{children:[c&&y.jsx(et,{size:"sm",color:"gray-800",style:{marginBottom:"var(--spacing-0)"},children:c}),y.jsxs(Sl,{modal:!0,open:u,onOpenChange:d,children:[a==="select"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsxs("button",{className:vt(Md["draggable-dropdown--select"],Md[`draggable-dropdown--select-${o}`],l&&Md["draggable-dropdown--select-disabled"]),children:[y.jsx("div",{className:Md["draggable-dropdown--select-placeholder-container"],children:y.jsx("div",{className:Md["draggable-dropdown--trigger"],children:y.jsx(et,{size:"xs",style:{textTransform:"capitalize",whiteSpace:"nowrap"},children:h==null?void 0:h.label})})}),y.jsx("span",{className:Md["draggable-dropdown--select-trigger-icon"],children:y.jsx(s1,{})})]})}),a==="icon"&&y.jsx(Ks,{asChild:!0,disabled:l,children:y.jsx(vr,{variant:"ghost",color:"primary"})}),y.jsx(Tl,{align:e,sideOffset:5,children:y.jsxs("div",{className:Md["draggable-dropdown--content-container"],style:s,children:[t&&y.jsx("div",{className:Md["draggable-dropdown--header-container"],children:y.jsx(_O,{ref:m})}),y.jsx("div",{className:Md["draggable-dropdown--options-container"],children:v.map((g,b)=>(h&&(h.label,g.label),y.jsx(_O,{},`option_${b}`)))})]})})]})]})},Pm={"avatar-bot":"_avatar-bot_1x2kl_1","avatar-bot--image-bg":"_avatar-bot--image-bg_1x2kl_18","avatar-bot--active":"_avatar-bot--active_1x2kl_27","avatar-bot--active-icon":"_avatar-bot--active-icon_1x2kl_31","avatar-bot--image":"_avatar-bot--image_1x2kl_18","avatar-bot--image-active":"_avatar-bot--image-active_1x2kl_43","avatar-bot--custom-icon":"_avatar-bot--custom-icon_1x2kl_51"},xO=O.forwardRef((e,t)=>{const{icon:n,image:r,active:i,className:o,onClick:a}=e;return y.jsxs("div",{ref:t,onClick:a,className:vt(Pm["avatar-bot"],i&&Pm["avatar-bot--active"],r&&Pm["avatar-bot--image-bg"],o),children:[i?y.jsx(H9,{width:"2.4rem",height:"2.4rem",className:Pm["avatar-bot--active-icon"]}):n&&y.jsx("span",{className:Pm["avatar-bot--custom-icon"],children:n}),r&&y.jsx("img",{src:r.url,alt:r.alt,className:vt(Pm["avatar-bot--image"],i&&Pm["avatar-bot--image-active"])})]})});xO.displayName="AvatarBot";const kO={"avatar-workspace":"_avatar-workspace_jxkxx_1","avatar-workspace--size-md":"_avatar-workspace--size-md_jxkxx_15","avatar-workspace--size-sm":"_avatar-workspace--size-sm_jxkxx_24","avatar-workspace--purple":"_avatar-workspace--purple_jxkxx_33","avatar-workspace--gray":"_avatar-workspace--gray_jxkxx_37"},gq=O.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,color:o="purple",className:a,children:s}=e;return y.jsx("div",{ref:t,className:vt(kO["avatar-workspace"],kO[`avatar-workspace--size-${r}`],kO[`avatar--${o}`],a),children:n?s:y.jsx(Pr,{size:r,color:"white",children:uq(i)})})});gq.displayName="AvatarWorkspace";const EO={editor:"_editor_183tc_9","editor-text-field":"_editor-text-field_183tc_16","icon-button-gray":"_icon-button-gray_183tc_24"},x3=O.forwardRef((e,t)=>{const{initialLabel:n,onSaveLabel:r}=e,[i,o]=O.useState(n),[a,s]=O.useState(n),[l,c]=O.useState(!1),u=()=>{c(p=>!p)},d=p=>{s(p.target.value)},f=()=>{r&&a&&(o(a),r(a)),c(!1)};return y.jsx(y.Fragment,{children:l?y.jsxs("div",{className:EO["editor-text-field"],ref:t,children:[y.jsx(so,{value:a,onChange:d,placeholder:"Change name...",size:"sm",variant:"filled"}),y.jsxs("div",{children:[y.jsx(vr,{onClick:f,color:"green",size:"sm",variant:"ghost",children:y.jsx(F9,{})}),y.jsx(vr,{onClick:u,color:"red",size:"sm",variant:"ghost",children:y.jsx(V9,{})})]})]}):y.jsxs("div",{className:EO.editor,ref:t,children:[y.jsx(et,{fontWeight:"bold",color:"black",size:"md",children:i}),y.jsx(vr,{onClick:u,color:"primary",size:"xs",variant:"ghost",children:y.jsx(LEe,{className:EO["icon-button-gray"]})})]})})});x3.displayName="AtomNameDivBlockModule";const vq={"title-block-module":"_title-block-module_1v5qg_1","drag-icon":"_drag-icon_1v5qg_9"},CO={"icon-button":"_icon-button_7unaa_1","icon-button--size-lg":"_icon-button--size-lg_7unaa_14","icon-button--size-md":"_icon-button--size-md_7unaa_19","icon-button--size-sm":"_icon-button--size-sm_7unaa_24","icon-button--children":"_icon-button--children_7unaa_29","icon-button--icon":"_icon-button--icon_7unaa_35","icon-button--message":"_icon-button--message_7unaa_40","icon-button--logic":"_icon-button--logic_7unaa_45","icon-button--utility":"_icon-button--utility_7unaa_50","icon-button--action":"_icon-button--action_7unaa_55"},yq={text:{icon:y.jsx(fz,{}),category:"message"},image:{icon:y.jsx(mz,{}),category:"message"},video:{icon:y.jsx(B9,{}),category:"message"},agent:{icon:y.jsx(YU,{}),category:"message"},card:{icon:y.jsx(bz,{}),category:"message"},handover:{icon:y.jsx(Xbe,{}),category:"logic"},contact_request:{icon:y.jsx(Ok,{}),category:"logic"},quick_reply:{icon:y.jsx(dz,{}),category:"logic"},reroute:{icon:y.jsx(z9,{}),category:"logic"},api:{icon:y.jsx(yz,{}),category:"logic"},capture:{icon:y.jsx(hz,{}),category:"logic"},set_values:{icon:y.jsx(pz,{}),category:"logic"},condition:{icon:y.jsx(wz,{}),category:"logic"},notes:{icon:y.jsx(dwe,{}),category:"utility"},mail:{icon:y.jsx(Ok,{}),category:"action"},upload:{icon:y.jsx(Iwe,{}),category:"action"},collect_data:{icon:y.jsx(vz,{}),category:"logic"},metadata:{icon:y.jsx(uz,{}),category:"utility"}},bq=O.forwardRef((e,t)=>{const{size:n="md",block:r="text",className:i,...o}=e,a=yq[r].category,s=yq[r].icon;return y.jsx("div",{ref:t,className:vt(CO["icon-button"],CO[`icon-button--size-${n}`],CO[`icon-button--${a}`],i),...o,children:s})}),vSe={text:{label:"Text"},image:{label:"Image"},video:{label:"Video"},agent:{label:"Agent"},card:{label:"Card"},handover:{label:"Handover"},contact_request:{label:"Contact Request"},quick_reply:{label:"Quick Reply"},reroute:{label:"Reroute"},api:{label:"API"},capture:{label:"Capture"},set_values:{label:"Set Values"},condition:{label:"Condition"},notes:{label:"Notes"},mail:{label:"Mail"},upload:{label:"Upload"},collect_data:{label:"Collect"},metadata:{label:"Metadata"}},SO=O.forwardRef((e,t)=>{const{block:n="text",...r}=e,i=vSe[n].label;return y.jsxs("div",{className:vq["title-block-module"],ref:t,...r,children:[y.jsx(yEe,{className:vq["drag-icon"]}),y.jsx(bq,{block:n,size:"md"}),y.jsx(et,{size:"sm",children:i})]})});SO.displayName="TitleBlockModule";const fw={"atom-top-modulo":"_atom-top-modulo_19pon_1","atom-top-modulo-button":"_atom-top-modulo-button_19pon_11","atom-top-modulo-button-copy":"_atom-top-modulo-button-copy_19pon_17","atom-top-modulo-button-dont-delete":"_atom-top-modulo-button-dont-delete_19pon_30","atom-top-modulo-button-confirm-delete":"_atom-top-modulo-button-confirm-delete_19pon_31"},TO=O.forwardRef((e,t)=>{const{block:n="text",dragHandlerProps:r,isCollapsed:i,onDelete:o,onCopy:a,onCollapse:s,showCopy:l=!1,className:c,withDeleteConfirmation:u=!1,isDeleteLoading:d=!1}=e,[f,p]=O.useState(),h=O.useCallback(()=>{u?p(!0):o()},[o,u]);return y.jsxs("div",{ref:t,className:vt(fw["atom-top-modulo"],c),children:[y.jsx(SO,{block:n,...r}),y.jsxs("div",{className:fw["atom-top-modulo-button"],children:[f?y.jsx(jr,{className:fw["atom-top-modulo-button-dont-delete"],variant:"text",size:"sm",onClick:()=>p(!1),disabled:d,children:"No, don't delete"}):y.jsxs(y.Fragment,{children:[l?y.jsx(jr,{color:"primary",size:"sm",startIcon:y.jsx(cEe,{className:fw["atom-top-modulo-button-copy"]}),variant:"text",onClick:a,children:"Copy"}):null,y.jsx(jr,{color:"primary",size:"sm",variant:"outlined",startIcon:i?y.jsx(Ube,{}):y.jsx(Ibe,{}),onClick:s,children:i?"Expand":"Collapse"})]}),f?y.jsx(jr,{className:fw["atom-top-modulo-button-confirm-delete"],variant:"filled",color:"red",size:"sm",startIcon:y.jsx(lh,{}),onClick:o,isLoading:d,children:"Confirm delete"}):y.jsx(vr,{onClick:h,variant:"ghost",isLoading:d,children:y.jsx(lh,{})})]})]})});TO.displayName="AtomTopModulo";const m1={block:"_block_b4jhb_1","is-dragging":"_is-dragging_b4jhb_6","block-children":"_block-children_b4jhb_11","block-collapse":"_block-collapse_b4jhb_20","block-is-dragging":"_block-is-dragging_b4jhb_25"},vc=O.forwardRef((e,t)=>{const{id:n,type:r,children:i,className:o,bodyClassName:a,isDragging:s,insertPosition:l,dragOverlay:c,dragListeners:u,dragAttributes:d,setDraggableNodeRef:f,headerClassName:p,onCopy:h,onDeleteBlock:m,isCollapsed:v,touched:g,isDeleteLoading:b=()=>!1,...x}=e,w=O.useRef(null),k=O.useCallback(D=>{w.current=D,typeof t=="function"?t(D):t!=null&&t.current&&(t.current=D)},[t]),[E,j]=O.useState(v);O.useEffect(()=>{v!==E&&j(v)},[v]);const T=()=>{j(!E)},C={...u,...d};return y.jsxs("div",{ref:k,tabIndex:-1,className:bu(m1.block,s&&m1["is-dragging"],!s&&l,o),"data-testid":`block-${n}`,"data-id":n,"data-block-type":r,children:[y.jsx(TO,{ref:f,className:vt({[m1["block-collapse"]]:E},{[m1["block-is-dragging"]]:s}),isCollapsed:E,onCollapse:T,onCopy:h,onDelete:m,isDragging:s,dragHandlerProps:C,withDeleteConfirmation:g,isDeleteLoading:b(n),...x}),c?null:y.jsx(y.Fragment,{children:E?null:y.jsx("div",{className:vt(m1["block-children"],{[m1["block-is-dragging"]]:s},a),children:i})})]},n)});vc.displayName="Block";const k3={breadcrumb:"_breadcrumb_1685c_1","breadcrumb--list-item":"_breadcrumb--list-item_1685c_9","breadcrumb--link":"_breadcrumb--link_1685c_14","breadcrumb--separator":"_breadcrumb--separator_1685c_18"},wq=O.forwardRef((e,t)=>{const{items:n,separator:r,className:i}=e,o=n.map((a,s)=>{const l=s+1===n.length;return y.jsxs("li",{onClick:a.onClick,className:vt(k3["breadcrumb--list-item"],a.className),children:[y.jsx("a",{href:a.href,className:k3["breadcrumb--link"],children:typeof a.title=="string"?y.jsx(et,{size:"xs",color:"gray-1000",children:a.title}):a.title}),!l&&y.jsx("span",{className:k3["breadcrumb--separator"],children:r?y.jsx(et,{size:"xs",color:"gray-700",children:r}):y.jsx(Tk,{className:"text--gray-700"})})]},s)});return y.jsx("ul",{ref:t,className:vt(k3.breadcrumb,i),children:o})});wq.displayName="Breadcrumb";var ySe="Expected a function",_q=NaN,bSe="[object Symbol]",wSe=/^\s+|\s+$/g,_Se=/^[-+]0x[0-9a-f]+$/i,xSe=/^0b[01]+$/i,kSe=/^0o[0-7]+$/i,ESe=parseInt,CSe=typeof kl=="object"&&kl&&kl.Object===Object&&kl,SSe=typeof self=="object"&&self&&self.Object===Object&&self,TSe=CSe||SSe||Function("return this")(),ASe=Object.prototype,OSe=ASe.toString,jSe=Math.max,DSe=Math.min,AO=function(){return TSe.Date.now()};function ISe(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(ySe);t=xq(t)||0,OO(n)&&(u=!!n.leading,d="maxWait"in n,o=d?jSe(xq(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function p(E){var j=r,T=i;return r=i=void 0,c=E,a=e.apply(T,j),a}function h(E){return c=E,s=setTimeout(g,t),u?p(E):a}function m(E){var j=E-l,T=E-c,C=t-j;return d?DSe(C,o-T):C}function v(E){var j=E-l,T=E-c;return l===void 0||j>=t||j<0||d&&T>=o}function g(){var E=AO();if(v(E))return b(E);s=setTimeout(g,m(E))}function b(E){return s=void 0,f&&r?p(E):(r=i=void 0,a)}function x(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function w(){return s===void 0?a:b(AO())}function k(){var E=AO(),j=v(E);if(r=arguments,i=this,l=E,j){if(s===void 0)return h(l);if(d)return s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),a}return k.cancel=x,k.flush=w,k}function OO(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function PSe(e){return!!e&&typeof e=="object"}function $Se(e){return typeof e=="symbol"||PSe(e)&&OSe.call(e)==bSe}function xq(e){if(typeof e=="number")return e;if($Se(e))return _q;if(OO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=OO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(wSe,"");var n=xSe.test(e);return n||kSe.test(e)?ESe(e.slice(2),n?2:8):_Se.test(e)?_q:+e}var RSe=ISe;const MSe=du(RSe),cn={Toolbar:"_Toolbar_1lgxq_1",Header:"_Header_1lgxq_9",Sections:"_Sections_1lgxq_13",SimpleBar:"_SimpleBar_1lgxq_19",Section:"_Section_1lgxq_13",SectionHeader:"_SectionHeader_1lgxq_34",Chevron:"_Chevron_1lgxq_38",SectionTrigger:"_SectionTrigger_1lgxq_46",BlockButtons:"_BlockButtons_1lgxq_51",Block:"_Block_1lgxq_51",ToolbarButtonIcon:"_ToolbarButtonIcon_1lgxq_91",Info:"_Info_1lgxq_119",TextInfoExample:"_TextInfoExample_1lgxq_127",InfoDescription:"_InfoDescription_1lgxq_139",InfoClickDrag:"_InfoClickDrag_1lgxq_145",IsDragging:"_IsDragging_1lgxq_156",IsDraggingIcon:"_IsDraggingIcon_1lgxq_161",TooltipIconContainer:"_TooltipIconContainer_1lgxq_165",TooltipIcon:"_TooltipIcon_1lgxq_165"};var kq=K.createContext(),Eq=K.createContext();function NSe(e){var t=e.children,n=K.useState(null),r=n[0],i=n[1],o=K.useRef(!1);K.useEffect(function(){return function(){o.current=!0}},[]);var a=K.useCallback(function(s){o.current||i(s)},[]);return K.createElement(kq.Provider,{value:r},K.createElement(Eq.Provider,{value:a},t))}var Cq=function(t){return Array.isArray(t)?t[0]:t},Sq=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},jO=function(t,n){if(typeof t=="function")return Sq(t,n);t!=null&&(t.current=n)},Tq=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},Aq=typeof window<"u"&&window.document&&window.document.createElement?K.useLayoutEffect:K.useEffect,fs="top",Ol="bottom",jl="right",hs="left",DO="auto",hw=[fs,Ol,jl,hs],g1="start",pw="end",LSe="clippingParents",Oq="viewport",mw="popper",FSe="reference",jq=hw.reduce(function(e,t){return e.concat([t+"-"+g1,t+"-"+pw])},[]),Dq=[].concat(hw,[DO]).reduce(function(e,t){return e.concat([t,t+"-"+g1,t+"-"+pw])},[]),BSe="beforeRead",zSe="read",HSe="afterRead",USe="beforeMain",VSe="main",qSe="afterMain",WSe="beforeWrite",GSe="write",KSe="afterWrite",YSe=[BSe,zSe,HSe,USe,VSe,qSe,WSe,GSe,KSe];function wu(e){return e?(e.nodeName||"").toLowerCase():null}function Qs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $m(e){var t=Qs(e).Element;return e instanceof t||e instanceof Element}function Dl(e){var t=Qs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function IO(e){if(typeof ShadowRoot>"u")return!1;var t=Qs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZSe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Dl(o)||!wu(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function XSe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Dl(i)||!wu(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Iq={name:"applyStyles",enabled:!0,phase:"write",fn:ZSe,effect:XSe,requires:["computeStyles"]};function _u(e){return e.split("-")[0]}var Rm=Math.max,E3=Math.min,v1=Math.round;function PO(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Pq(){return!/^((?!chrome|android).)*safari/i.test(PO())}function y1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Dl(e)&&(i=e.offsetWidth>0&&v1(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&v1(r.height)/e.offsetHeight||1);var a=$m(e)?Qs(e):window,s=a.visualViewport,l=!Pq()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function $O(e){var t=y1(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $q(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&IO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nd(e){return Qs(e).getComputedStyle(e)}function QSe(e){return["table","td","th"].indexOf(wu(e))>=0}function gh(e){return(($m(e)?e.ownerDocument:e.document)||window.document).documentElement}function C3(e){return wu(e)==="html"?e:e.assignedSlot||e.parentNode||(IO(e)?e.host:null)||gh(e)}function Rq(e){return!Dl(e)||Nd(e).position==="fixed"?null:e.offsetParent}function JSe(e){var t=/firefox/i.test(PO()),n=/Trident/i.test(PO());if(n&&Dl(e)){var r=Nd(e);if(r.position==="fixed")return null}var i=C3(e);for(IO(i)&&(i=i.host);Dl(i)&&["html","body"].indexOf(wu(i))<0;){var o=Nd(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function gw(e){for(var t=Qs(e),n=Rq(e);n&&QSe(n)&&Nd(n).position==="static";)n=Rq(n);return n&&(wu(n)==="html"||wu(n)==="body"&&Nd(n).position==="static")?t:n||JSe(e)||t}function RO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vw(e,t,n){return Rm(e,E3(t,n))}function e4e(e,t,n){var r=vw(e,t,n);return r>n?n:r}function Mq(){return{top:0,right:0,bottom:0,left:0}}function Nq(e){return Object.assign({},Mq(),e)}function Lq(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var t4e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Nq(typeof t!="number"?t:Lq(t,hw))};function n4e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=_u(n.placement),l=RO(s),c=[hs,jl].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=t4e(i.padding,n),f=$O(o),p=l==="y"?fs:hs,h=l==="y"?Ol:jl,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],v=a[l]-n.rects.reference[l],g=gw(o),b=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,x=m/2-v/2,w=d[p],k=b-f[u]-d[h],E=b/2-f[u]/2+x,j=vw(w,E,k),T=l;n.modifiersData[r]=(t={},t[T]=j,t.centerOffset=j-E,t)}}function r4e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||$q(t.elements.popper,i)&&(t.elements.arrow=i))}const i4e={name:"arrow",enabled:!0,phase:"main",fn:n4e,effect:r4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function b1(e){return e.split("-")[1]}var o4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a4e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:v1(n*i)/i||0,y:v1(r*i)/i||0}}function Fq(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,h=a.y,m=h===void 0?0:h,v=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var g=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),x=hs,w=fs,k=window;if(c){var E=gw(n),j="clientHeight",T="clientWidth";if(E===Qs(n)&&(E=gh(n),Nd(E).position!=="static"&&s==="absolute"&&(j="scrollHeight",T="scrollWidth")),E=E,i===fs||(i===hs||i===jl)&&o===pw){w=Ol;var C=d&&E===k&&k.visualViewport?k.visualViewport.height:E[j];m-=C-r.height,m*=l?1:-1}if(i===hs||(i===fs||i===Ol)&&o===pw){x=jl;var D=d&&E===k&&k.visualViewport?k.visualViewport.width:E[T];p-=D-r.width,p*=l?1:-1}}var R=Object.assign({position:s},c&&o4e),M=u===!0?a4e({x:p,y:m},Qs(n)):{x:p,y:m};if(p=M.x,m=M.y,l){var L;return Object.assign({},R,(L={},L[w]=b?"0":"",L[x]=g?"0":"",L.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",L))}return Object.assign({},R,(t={},t[w]=b?m+"px":"",t[x]=g?p+"px":"",t.transform="",t))}function s4e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:_u(t.placement),variation:b1(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fq(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fq(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const l4e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s4e,data:{}};var S3={passive:!0};function c4e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Qs(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,S3)}),s&&l.addEventListener("resize",n.update,S3),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,S3)}),s&&l.removeEventListener("resize",n.update,S3)}}const u4e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:c4e,data:{}};var d4e={left:"right",right:"left",bottom:"top",top:"bottom"};function T3(e){return e.replace(/left|right|bottom|top/g,function(t){return d4e[t]})}var f4e={start:"end",end:"start"};function Bq(e){return e.replace(/start|end/g,function(t){return f4e[t]})}function MO(e){var t=Qs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function NO(e){return y1(gh(e)).left+MO(e).scrollLeft}function h4e(e,t){var n=Qs(e),r=gh(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Pq();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+NO(e),y:l}}function p4e(e){var t,n=gh(e),r=MO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Rm(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Rm(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+NO(e),l=-r.scrollTop;return Nd(i||n).direction==="rtl"&&(s+=Rm(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function LO(e){var t=Nd(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function zq(e){return["html","body","#document"].indexOf(wu(e))>=0?e.ownerDocument.body:Dl(e)&&LO(e)?e:zq(C3(e))}function yw(e,t){var n;t===void 0&&(t=[]);var r=zq(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Qs(r),a=i?[o].concat(o.visualViewport||[],LO(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(yw(C3(a)))}function FO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function m4e(e,t){var n=y1(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Hq(e,t,n){return t===Oq?FO(h4e(e,n)):$m(t)?m4e(t,n):FO(p4e(gh(e)))}function g4e(e){var t=yw(C3(e)),n=["absolute","fixed"].indexOf(Nd(e).position)>=0,r=n&&Dl(e)?gw(e):e;return $m(r)?t.filter(function(i){return $m(i)&&$q(i,r)&&wu(i)!=="body"}):[]}function v4e(e,t,n,r){var i=t==="clippingParents"?g4e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=Hq(e,c,r);return l.top=Rm(u.top,l.top),l.right=E3(u.right,l.right),l.bottom=E3(u.bottom,l.bottom),l.left=Rm(u.left,l.left),l},Hq(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Uq(e){var t=e.reference,n=e.element,r=e.placement,i=r?_u(r):null,o=r?b1(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case fs:l={x:a,y:t.y-n.height};break;case Ol:l={x:a,y:t.y+t.height};break;case jl:l={x:t.x+t.width,y:s};break;case hs:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?RO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case g1:l[c]=l[c]-(t[u]/2-n[u]/2);break;case pw:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function bw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?LSe:s,c=n.rootBoundary,u=c===void 0?Oq:c,d=n.elementContext,f=d===void 0?mw:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,v=m===void 0?0:m,g=Nq(typeof v!="number"?v:Lq(v,hw)),b=f===mw?FSe:mw,x=e.rects.popper,w=e.elements[h?b:f],k=v4e($m(w)?w:w.contextElement||gh(e.elements.popper),l,u,a),E=y1(e.elements.reference),j=Uq({reference:E,element:x,placement:i}),T=FO(Object.assign({},x,j)),C=f===mw?T:E,D={top:k.top-C.top+g.top,bottom:C.bottom-k.bottom+g.bottom,left:k.left-C.left+g.left,right:C.right-k.right+g.right},R=e.modifiersData.offset;if(f===mw&&R){var M=R[i];Object.keys(D).forEach(function(L){var B=[jl,Ol].indexOf(L)>=0?1:-1,W=[fs,Ol].indexOf(L)>=0?"y":"x";D[L]+=M[W]*B})}return D}function y4e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Dq:l,u=b1(r),d=u?s?jq:jq.filter(function(h){return b1(h)===u}):hw,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=bw(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[_u(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function b4e(e){if(_u(e)===DO)return[];var t=T3(e);return[Bq(e),t,Bq(t)]}function w4e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,v=t.options.placement,g=_u(v),b=g===v,x=l||(b||!h?[T3(v)]:b4e(v)),w=[v].concat(x).reduce(function($,F){return $.concat(_u(F)===DO?y4e(t,{placement:F,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):F)},[]),k=t.rects.reference,E=t.rects.popper,j=new Map,T=!0,C=w[0],D=0;D<w.length;D++){var R=w[D],M=_u(R),L=b1(R)===g1,B=[fs,Ol].indexOf(M)>=0,W=B?"width":"height",ee=bw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),G=B?L?jl:hs:L?Ol:fs;k[W]>E[W]&&(G=T3(G));var Y=T3(G),q=[];if(o&&q.push(ee[M]<=0),s&&q.push(ee[G]<=0,ee[Y]<=0),q.every(function($){return $})){C=R,T=!1;break}j.set(R,q)}if(T)for(var V=h?3:1,A=function(F){var N=w.find(function(ne){var z=j.get(ne);if(z)return z.slice(0,F).every(function(Z){return Z})});if(N)return C=N,"break"},U=V;U>0;U--){var P=A(U);if(P==="break")break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}}const _4e={name:"flip",enabled:!0,phase:"main",fn:w4e,requiresIfExists:["offset"],data:{_skip:!1}};function Vq(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qq(e){return[fs,jl,Ol,hs].some(function(t){return e[t]>=0})}function x4e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=bw(t,{elementContext:"reference"}),s=bw(t,{altBoundary:!0}),l=Vq(a,r),c=Vq(s,i,o),u=qq(l),d=qq(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const k4e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x4e};function E4e(e,t,n){var r=_u(e),i=[hs,fs].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[hs,jl].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function C4e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Dq.reduce(function(u,d){return u[d]=E4e(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const S4e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:C4e};function T4e(e){var t=e.state,n=e.name;t.modifiersData[n]=Uq({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const A4e={name:"popperOffsets",enabled:!0,phase:"read",fn:T4e,data:{}};function O4e(e){return e==="x"?"y":"x"}function j4e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,v=bw(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=_u(t.placement),b=b1(t.placement),x=!b,w=RO(g),k=O4e(w),E=t.modifiersData.popperOffsets,j=t.rects.reference,T=t.rects.popper,C=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(E){if(o){var L,B=w==="y"?fs:hs,W=w==="y"?Ol:jl,ee=w==="y"?"height":"width",G=E[w],Y=G+v[B],q=G-v[W],V=p?-T[ee]/2:0,A=b===g1?j[ee]:T[ee],U=b===g1?-T[ee]:-j[ee],P=t.elements.arrow,$=p&&P?$O(P):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mq(),N=F[B],ne=F[W],z=vw(0,j[ee],$[ee]),Z=x?j[ee]/2-V-z-N-D.mainAxis:A-z-N-D.mainAxis,se=x?-j[ee]/2+V+z+ne+D.mainAxis:U+z+ne+D.mainAxis,X=t.elements.arrow&&gw(t.elements.arrow),re=X?w==="y"?X.clientTop||0:X.clientLeft||0:0,le=(L=R==null?void 0:R[w])!=null?L:0,ge=G+Z-le-re,S=G+se-le,I=vw(p?E3(Y,ge):Y,G,p?Rm(q,S):q);E[w]=I,M[w]=I-G}if(s){var H,oe=w==="x"?fs:hs,be=w==="x"?Ol:jl,De=E[k],Fe=k==="y"?"height":"width",tt=De+v[oe],ut=De-v[be],we=[fs,hs].indexOf(g)!==-1,Ge=(H=R==null?void 0:R[k])!=null?H:0,Q=we?tt:De-j[Fe]-T[Fe]-Ge+D.altAxis,ce=we?De+j[Fe]+T[Fe]-Ge-D.altAxis:ut,de=p&&we?e4e(Q,De,ce):vw(p?Q:tt,De,p?ce:ut);E[k]=de,M[k]=de-De}t.modifiersData[r]=M}}const D4e={name:"preventOverflow",enabled:!0,phase:"main",fn:j4e,requiresIfExists:["offset"]};function I4e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function P4e(e){return e===Qs(e)||!Dl(e)?MO(e):I4e(e)}function $4e(e){var t=e.getBoundingClientRect(),n=v1(t.width)/e.offsetWidth||1,r=v1(t.height)/e.offsetHeight||1;return n!==1||r!==1}function R4e(e,t,n){n===void 0&&(n=!1);var r=Dl(t),i=Dl(t)&&$4e(t),o=gh(t),a=y1(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((wu(t)!=="body"||LO(o))&&(s=P4e(t)),Dl(t)?(l=y1(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=NO(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function M4e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function N4e(e){var t=M4e(e);return YSe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function L4e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function F4e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Wq={placement:"bottom",modifiers:[],strategy:"absolute"};function Gq(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function B4e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Wq:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wq,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(g){var b=typeof g=="function"?g(u.options):g;m(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:$m(s)?yw(s):s.contextElement?yw(s.contextElement):[],popper:yw(l)};var x=N4e(F4e([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(w){return w.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var g=u.elements,b=g.reference,x=g.popper;if(Gq(b,x)){u.rects={reference:R4e(b,gw(x),u.options.strategy==="fixed"),popper:$O(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var k=u.orderedModifiers[w],E=k.fn,j=k.options,T=j===void 0?{}:j,C=k.name;typeof E=="function"&&(u=E({state:u,options:T,name:C,instance:p})||u)}}}},update:L4e(function(){return new Promise(function(v){p.forceUpdate(),v(u)})}),destroy:function(){m(),f=!0}};if(!Gq(s,l))return p;p.setOptions(c).then(function(v){!f&&c.onFirstUpdate&&c.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var g=v.name,b=v.options,x=b===void 0?{}:b,w=v.effect;if(typeof w=="function"){var k=w({state:u,name:g,instance:p,options:x}),E=function(){};d.push(k||E)}})}function m(){d.forEach(function(v){return v()}),d=[]}return p}}var z4e=[u4e,A4e,l4e,Iq,S4e,_4e,D4e,i4e,k4e],Kq=B4e({defaultModifiers:z4e}),H4e=typeof Element<"u",U4e=typeof Map=="function",V4e=typeof Set=="function",q4e=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function A3(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!A3(e[r],t[r]))return!1;return!0}var o;if(U4e&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!A3(r.value[1],t.get(r.value[0])))return!1;return!0}if(V4e&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(q4e&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(H4e&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!A3(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var W4e=function(t,n){try{return A3(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const G4e=du(W4e);var K4e=[],Y4e=function(t,n,r){r===void 0&&(r={});var i=K.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||K4e},a=K.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],l=a[1],c=K.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(p){var h=p.state,m=Object.keys(h.elements);Bv.flushSync(function(){l({styles:Tq(m.map(function(v){return[v,h.styles[v]||{}]})),attributes:Tq(m.map(function(v){return[v,h.attributes[v]]}))})})},requires:["computeStyles"]}},[]),u=K.useMemo(function(){var f={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[c,{name:"applyStyles",enabled:!1}])};return G4e(i.current,f)?i.current||f:(i.current=f,f)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,c]),d=K.useRef();return Aq(function(){d.current&&d.current.setOptions(u)},[u]),Aq(function(){if(!(t==null||n==null)){var f=r.createPopper||Kq,p=f(t,n,u);return d.current=p,function(){p.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Z4e=function(){},X4e=function(){return Promise.resolve(null)},Q4e=[];function J4e(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?Q4e:o,s=e.referenceElement,l=e.onFirstUpdate,c=e.innerRef,u=e.children,d=K.useContext(kq),f=K.useState(null),p=f[0],h=f[1],m=K.useState(null),v=m[0],g=m[1];K.useEffect(function(){jO(c,p)},[c,p]);var b=K.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:l,modifiers:[].concat(a,[{name:"arrow",enabled:v!=null,options:{element:v}}])}},[n,i,l,a,v]),x=Y4e(s||d,p,b),w=x.state,k=x.styles,E=x.forceUpdate,j=x.update,T=K.useMemo(function(){return{ref:h,style:k.popper,placement:w?w.placement:n,hasPopperEscaped:w&&w.modifiersData.hide?w.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:w&&w.modifiersData.hide?w.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:g},forceUpdate:E||Z4e,update:j||X4e}},[h,g,n,w,k,j,E]);return Cq(u)(T)}var e5e=process.env.NODE_ENV!=="production",Yq=function(){};if(e5e){var t5e=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};Yq=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||t5e.apply(null,[t].concat(n))}}var n5e=Yq;const r5e=du(n5e);function i5e(e){var t=e.children,n=e.innerRef,r=K.useContext(Eq),i=K.useCallback(function(o){jO(n,o),Sq(r,o)},[n,r]);return K.useEffect(function(){return function(){return jO(n,null)}},[]),K.useEffect(function(){r5e(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),Cq(t)({ref:i})}const o5e={Info:"_Info_1syrj_1"},a5e=({text:e,disabled:t=!1,preferPlace:n="top",offset:r=2,active:i=!1,wait:o=300,children:a,className:s,hover:l=!0,leaveOpen:c=0})=>{const u=O.useRef(null),[d,f]=O.useState(i),p=O.useCallback(()=>{u.current!==null&&clearTimeout(u.current)},[]),h=O.useCallback(()=>{p(),u.current=setTimeout(()=>{f(!0)},o)},[o,p]),m=O.useCallback(()=>{p(),c!==0?u.current=setTimeout(()=>{f(!1)},c):l&&f(!1)},[l,c,p]),v=O.useCallback(()=>{p(),f(!0)},[p]),g=O.useCallback(()=>{p(),f(!1)},[p]),b=O.useMemo(()=>[{name:"offset",options:{offset:[0,r]}}],[r]);return O.useEffect(()=>p,[p]),t?a:y.jsxs(NSe,{children:[y.jsx(i5e,{children:({ref:x})=>O.cloneElement(a,{ref:x,onMouseEnter:h,onMouseLeave:m})}),d?ls.createPortal(y.jsx(J4e,{placement:n,modifiers:b,children:({ref:x,style:w,placement:k})=>y.jsx("div",{onMouseEnter:v,onMouseLeave:g,ref:x,className:bu(o5e.Info,s),style:w,"data-placement":k,children:e})}),document.body):null]})};function s5e({hideRect:e,...t}){return y.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:y.jsx("g",{id:"icon.ndg/solid/store 01-",children:y.jsxs("g",{id:"Vector",children:[y.jsx("path",{d:"M7.73146 2H17.2689C19.0863 2 20.7206 3.24475 21.3955 5.14305L22.1535 7.27487C22.3829 7.92019 22.5415 8.61074 22.3742 9.27488C21.9778 10.8478 20.692 12 19.1669 12C17.3259 12 15.8335 10.3211 15.8335 8.25C15.8335 10.3211 14.3412 12 12.5002 12C10.6593 12 9.16687 10.3211 9.16687 8.25C9.16687 10.3211 7.67449 12 5.83354 12C4.30844 12 3.02257 10.8478 2.62622 9.27488C2.45887 8.61074 2.61747 7.92019 2.84692 7.27487L3.6049 5.14305C4.27985 3.24476 5.91411 2 7.73146 2Z",fill:"currentColor"}),y.jsx("path",{d:"M4.50021 13.3005V17.9999C4.50021 20.2091 6.29107 21.9999 8.50021 21.9999H9.50021V20C9.50021 18.3431 10.8434 17 12.5002 17C14.1571 17 15.5002 18.3431 15.5002 20V21.9999H16.5002C18.7093 21.9999 20.5002 20.2091 20.5002 17.9999V13.3005C20.0814 13.4298 19.635 13.4999 19.1669 13.4999C17.8298 13.4999 16.6774 12.9373 15.8336 12.0559C14.9898 12.9373 13.8374 13.4999 12.5003 13.4999C11.1632 13.4999 10.0108 12.9373 9.16695 12.0559C8.32313 12.9373 7.17073 13.4999 5.83361 13.4999C5.36548 13.4999 4.91907 13.4297 4.50021 13.3005Z",fill:"currentColor"})]})})})}function l5e(e){switch(e){case"text":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain text answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"image":return y.jsxs("div",{children:[y.jsx("img",{src:"/images/Picture.png",alt:""}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Upload or link a picture"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"videods":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain videods answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"video":return y.jsxs("div",{children:[y.jsx("img",{src:"/images/Video.png",alt:""}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Connect from YouTube, Vimeo, direct link..."})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"generative":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"This text will be dynamically generated by an AI!"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a prompt answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"agent":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"This text will be dynamically generated by an AI!"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add an agent answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"card":return y.jsxs("div",{children:[y.jsx("div",{className:cn.TooltipIconContainer,children:y.jsx("img",{src:"/images/Card.png",alt:"",className:cn.TooltipIcon})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a card to show your content"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"api":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Call an API and save the result"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add an api answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"conditional":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Show blocks based on conditions"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a conditional answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"capture":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Ask a user for a value"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a capture answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"redirect":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Go to another answer"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a reroute answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"setValues":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Set the values of variables"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a set values answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"contactRequest":case"agentTakeover":return y.jsx("div",{children:y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Logic block"})})});case"note":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Take notes on the answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"products":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain text answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"mail":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a plain mail answer"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"upload":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"Planet Earth is the third planet from the Sun 🌍"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a upload block"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});case"quickReply":return y.jsxs("div",{children:[y.jsx(et,{className:cn.TextInfoExample,children:y.jsx("span",{children:"A button"})}),y.jsx(et,{className:cn.InfoDescription,children:y.jsx("span",{children:"Add a quick reply"})}),y.jsx(et,{className:cn.InfoClickDrag,children:y.jsx("span",{children:"Click or drag to enter"})})]});default:return console.warn("Unknown block type:",e),y.jsx(y.Fragment,{})}}function Zq(e){switch(e){case"text":return fz;case"image":return mz;case"video":return B9;case"videods":return B9;case"generative":return jbe;case"agent":return YU;case"card":return bz;case"reroute":return z9;case"collectData":return vz;case"api":return yz;case"conditional":return wz;case"capture":return hz;case"redirect":return z9;case"setValues":return pz;case"contactRequest":return Ok;case"agentTakeover":return Jbe;case"note":return hwe;case"products":return s5e;case"mail":return Ok;case"upload":return eV;case"quickReply":return dz;case"metadata":return uz;default:return console.warn("Unknown block type:",e),()=>null}}function c5e(e){switch(e){case"text":return"Text";case"image":return"Image";case"video":return"Video";case"videods":return"VideoDS";case"generative":return"Prompt";case"agent":return"Agent";case"card":return"Card";case"api":return"API";case"conditional":return"Condition";case"capture":return"Capture";case"redirect":return"Reroute";case"setValues":return"Set Values";case"contactRequest":return"Contact";case"agentTakeover":return"Handover";case"note":return"Note";case"products":return"Products";case"mail":return"Mail";case"upload":return"Upload";case"quickReply":return"Quick Reply";case"metadata":return"Metadata";default:return console.warn("Unknown block type:",e),""}}const BO=O.forwardRef(({type:e,section:t,addBlock:n,dragAttributes:r,dragListeners:i,isDragging:o,getBlockTooltip:a,getBlockLabel:s,dragOverlay:l=!1,noInfo:c=!1},u)=>{const d=O.useCallback(()=>{n(e)},[e,n]),f=Zq(e);return y.jsx(a5e,{className:cn.Info,preferPlace:"left",text:(a==null?void 0:a(e))||l5e(e),wait:1e3,disabled:c,children:y.jsx("div",{"data-testid":e+"-button",children:y.jsxs("button",{ref:u,className:bu(cn.Block,o&&!l&&cn.IsDragging,l&&cn.IsDraggingIcon),onClick:d,...i,...r,"data-section":t,children:[y.jsx(f,{className:cn.ToolbarButtonIcon}),y.jsx(et,{size:"xs",fontWeight:"regular",color:"gray-1000",children:(s==null?void 0:s(e))||c5e(e)})]})})})});function u5e({name:e,sections:t,blocks:n,addBlock:r,dragIndex:i,renderDraggableButton:o}){const a=t.find(s=>s.name===e);return y.jsxs(tA,{value:e,className:cn.Section,children:[y.jsx(nA,{className:cn.SectionHeader,children:y.jsx(rA,{asChild:!0,children:y.jsx(jr,{size:"md",variant:"text",className:cn.SectionTrigger,startIcon:y.jsx(H9,{className:cn.Chevron,"aria-hidden":!0}),children:y.jsx(et,{size:"xs",color:"gray-1000",children:a==null?void 0:a.label})})})}),y.jsx(iA,{className:cn.BlockButtons,children:n.map((s,l)=>y.jsx(O.Fragment,{children:o({type:s,index:l,section:(a==null?void 0:a.name)+"",addBlock:r,activeIndex:i})},l))})]})}const Xq=O.forwardRef(({className:e,addBlock:t,blockPermissions:n,sections:r,searchPlaceholder:i,renderDraggableButton:o,itemBeingDragged:a="toolbar-button-text"},s)=>{const l=O.useMemo(()=>r.map(w=>w.name),[r]),[c,u]=O.useState(""),d=O.useMemo(()=>r.reduce((w,k)=>w.concat((k.blocks||[]).filter(E=>n[E]).map(E=>E)),[]),[r,n]),f=O.useMemo(()=>d.filter(w=>w.toLowerCase().includes(c.toLowerCase())),[d,c]),p=f.findIndex(w=>a==null?void 0:a.includes(w));O.useEffect(()=>{var w;p<0||window.dispatchEvent(new CustomEvent("indigoai-set-global-drag-overlay",{detail:y.jsx("div",{children:y.jsx(BO,{dragOverlay:!0,type:f[p],addBlock:()=>{},noInfo:!0,section:((w=(r||[]).find(k=>{var E;return(E=k.blocks)==null?void 0:E.some(j=>j===f[p])}))==null?void 0:w.name)+""})})}))},[f,p]);const h=O.useRef(null),m=O.useCallback(()=>{u(""),h!=null&&h.current&&(h.current.value="")},[]),v=O.useCallback(w=>{w.stopPropagation(),w.key==="Escape"&&m()},[m]),g=O.useCallback(w=>{u(w)},[]),b=O.useMemo(()=>MSe(g,300),[g]),x=O.useCallback(w=>{const k=w.target.value;b(k)},[b]);return y.jsxs("div",{ref:s,className:bu(cn.Toolbar,e),"data-testid":"toolbar-blocks",children:[y.jsx("div",{className:cn.Header,children:y.jsx(so,{ref:h,size:"md",variant:"outlined",placeholder:i||"Search Block",onChange:x,onKeyDown:v,"data-testid":"block-search"})}),y.jsx("div",{className:cn.Sections,children:y.jsx(nw,{className:cn.SimpleBar,children:y.jsx(eA,{type:"multiple",defaultValue:l,children:r.map(w=>{const k=((w==null?void 0:w.blocks)||[]).filter(E=>f.indexOf(E)>-1);return k.length===0?null:y.jsx(u5e,{name:w.name,sections:r,blocks:k,addBlock:t,dragIndex:p,renderDraggableButton:o},w.name)})})})})]})});Xq.displayName="BuilderBlockToolbar",BO.displayName="ToolbarButton";const Qq={"root-container":"_root-container_1hesv_1","atom-quick-replies-input-container":"_atom-quick-replies-input-container_1hesv_20"},d5e=32,zO=O.forwardRef((e,t)=>{const{buttonLabel:n,buttonLabelMaxLength:r=d5e,selectorProps:i,setButtonLabel:o}=e,[a,s]=O.useState(!1),[l,c]=O.useState(()=>n??"");O.useEffect(()=>{n!=null&&c(n)},[n]);const u=O.useRef(),d=O.useCallback(()=>{u.current!==null&&clearTimeout(u.current)},[]);return O.useEffect(()=>{l.length>r&&(s(!0),d(),u.current=setTimeout(()=>{s(!1)},3e3)),c(f=>f.slice(0,r)??"")},[l]),y.jsx("div",{className:Qq["root-container"],children:y.jsxs("div",{className:Qq["atom-quick-replies-input-container"],children:[y.jsxs(Id,{rootProps:{open:a},children:[y.jsx(vu,{children:y.jsx(so,{variant:"filled",value:l,onChange:f=>c(f.target.value),onBlur:f=>o(f.target.value),size:"sm",autoComplete:"off",autoResize:!0})}),y.jsx(gu,{isDark:!0,title:"Sooo long...",description:`Maximum length is ${r} character${r>1&&"s"}`})]}),y.jsx(a1,{label:"Choose destination",...i})]})})});zO.displayName="AtomQuickRepliesInput";const HO={"ai-chat--trigger":"_ai-chat--trigger_17efd_1","ai-chat":"_ai-chat_17efd_1","ai-chat--container":"_ai-chat--container_17efd_11"},Jq=Am;Jq.displayName="ChatRoot";const eW=O.forwardRef((e,t)=>y.jsx(Om,{ref:t,className:HO["ai-chat--trigger"],onClick:n=>n.preventDefault,children:y.jsx(xO,{image:e.avatarBot.image,active:e.active,onClick:e.onClick})}));eW.displayName="ChatTrigger";const tW=O.forwardRef(({children:e},t)=>y.jsx(yV,{children:y.jsx(jm,{ref:t,side:"top",align:"end",avoidCollisions:!1,sideOffset:16,className:HO["ai-chat--container"],children:y.jsx("div",{className:HO["ai-chat"],children:e})})}));tW.displayName="ChatContainer";const O3={"chat-header":"_chat-header_2piic_1","chat-header--purple":"_chat-header--purple_2piic_14","chat-header--white":"_chat-header--white_2piic_18","chat-header--label":"_chat-header--label_2piic_22","chat-header--close":"_chat-header--close_2piic_27"},f5e=({botName:e,avatar:t,repliesInstantlyLabel:n="Replies instantly",type:r})=>{const i=r==="purple"?"white":"gray-1000";return y.jsxs("div",{className:vt(O3["chat-header"],O3[`chat-header--${r}`]),children:[y.jsx("div",{children:y.jsx(mh,{...t})}),y.jsxs("div",{className:O3["chat-header--label"],children:[y.jsx(et,{fontWeight:"bold",size:"md",color:i,children:e}),y.jsx(et,{fontWeight:"regular",size:"xs",color:i,children:n})]}),y.jsx(PCe,{className:O3["chat-header--close"],children:y.jsx(l3,{color:i,height:"3.2rem",width:"3.2rem"})})]})},nW={"chat-content":"_chat-content_1yrah_1","chat-messages":"_chat-messages_1yrah_16"},w1={"chat-input--container":"_chat-input--container_vv57m_1","chat-input--disabled":"_chat-input--disabled_vv57m_13","chat-input--input":"_chat-input--input_vv57m_18","chat-input--icon":"_chat-input--icon_vv57m_42","chat-input--content":"_chat-input--content_vv57m_53","send-button":"_send-button_vv57m_70"},h5e=(e,t)=>{O.useEffect(()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}},[e,t])},rW=O.forwardRef((e,t)=>{const{disabled:n,placeholder:r,className:i,onChange:o,value:a,...s}=e,l=O.useRef(null),[c,u]=O.useState(a);h5e(l.current,c);const d=f=>{var h;const p=(h=f.target)==null?void 0:h.value;u(p),o==null||o(f)};return y.jsx("div",{className:vt(w1["chat-input--container"],n&&w1["chat-input--disabled"],i),children:y.jsxs("div",{className:w1["chat-input--content"],children:[y.jsx("textarea",{ref:l,className:vt(w1["chat-input--input"],n&&"cursor-not-allowed"),placeholder:r,disabled:n,value:c,onChange:d,rows:1,...s}),y.jsx("span",{className:w1["chat-input--icon"],children:y.jsx(vr,{className:w1["send-button"],variant:"ghost",color:"primary",size:"md",children:y.jsx(Ewe,{className:"text--purple-600"})})})]})})});rW.displayName="ChatInput";const Qr={"chat-item":"_chat-item_1oblk_1","chat-item--bot":"_chat-item--bot_1oblk_6","chat-item--user":"_chat-item--user_1oblk_10","chat-item--avatar-container":"_chat-item--avatar-container_1oblk_14","chat-item--chat":"_chat-item--chat_1oblk_20","chat-item--typing":"_chat-item--typing_1oblk_28","chat-item--chat-bot":"_chat-item--chat-bot_1oblk_37","chat-item--chat-user":"_chat-item--chat-user_1oblk_43","chat-item--feedback-requested":"_chat-item--feedback-requested_1oblk_49","chat-item--media":"_chat-item--media_1oblk_53","chat-item--image":"_chat-item--image_1oblk_57","chat-item--video":"_chat-item--video_1oblk_62","chat-item--button-container":"_chat-item--button-container_1oblk_67","chat-item--caption":"_chat-item--caption_1oblk_76","chat-item--icon":"_chat-item--icon_1oblk_80","chat-item--feedback":"_chat-item--feedback_1oblk_49","chat-item-feedback-icons":"_chat-item-feedback-icons_1oblk_102","chat-item--feedback-given":"_chat-item--feedback-given_1oblk_107","chat-item--card":"_chat-item--card_1oblk_114","chat-item--card-image":"_chat-item--card-image_1oblk_123","chat-item--card-content":"_chat-item--card-content_1oblk_127","chat-item--card-buttons":"_chat-item--card-buttons_1oblk_134","chat-item--carousel":"_chat-item--carousel_1oblk_138","chat-item--carousel-card":"_chat-item--carousel-card_1oblk_147","chat-item--carousel-left-navigation":"_chat-item--carousel-left-navigation_1oblk_155","chat-item--carousel-right-navigation":"_chat-item--carousel-right-navigation_1oblk_162","swiper-wrapper":"_swiper-wrapper_1oblk_169"};function iW(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function UO(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:iW(t[n])&&iW(e[n])&&Object.keys(t[n]).length>0&&UO(e[n],t[n])})}const oW={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ld(){const e=typeof document<"u"?document:{};return UO(e,oW),e}const p5e={document:oW,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Va(){const e=typeof window<"u"?window:{};return UO(e,p5e),e}function m5e(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function VO(e,t=0){return setTimeout(e,t)}function j3(){return Date.now()}function g5e(e){const t=Va();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function v5e(e,t="x"){const n=Va();let r,i,o;const a=g5e(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(s=>s.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function D3(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function y5e(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Js(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!y5e(i)){const o=Object.keys(Object(i)).filter(a=>n.indexOf(a)<0);for(let a=0,s=o.length;a<s;a+=1){const l=o[a],c=Object.getOwnPropertyDescriptor(i,l);c!==void 0&&c.enumerable&&(D3(t[l])&&D3(i[l])?i[l].__swiper__?t[l]=i[l]:Js(t[l],i[l]):!D3(t[l])&&D3(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:Js(t[l],i[l])):t[l]=i[l])}}}return t}function I3(e,t,n){e.style.setProperty(t,n)}function aW({swiper:e,targetPosition:t,side:n}){const r=Va(),i=-e.translate;let o=null,a;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",c=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,u=()=>{a=new Date().getTime(),o===null&&(o=a);const d=Math.max(Math.min((a-o)/s,1),0),f=.5-Math.cos(d*Math.PI)/2;let p=i+f*(t-i);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function xu(e,t=""){return[...e.children].filter(n=>n.matches(t))}function sW(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function b5e(e){const t=Va(),n=Ld(),r=e.getBoundingClientRect(),i=n.body,o=e.clientTop||i.clientTop||0,a=e.clientLeft||i.clientLeft||0,s=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+s-o,left:r.left+l-a}}function w5e(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function _5e(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function vh(e,t){return Va().getComputedStyle(e,null).getPropertyValue(t)}function lW(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function qO(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function cW(e,t,n){const r=Va();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}let WO;function x5e(){const e=Va(),t=Ld();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function uW(){return WO||(WO=x5e()),WO}let GO;function k5e({userAgent:e}={}){const t=uW(),n=Va(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let p=r==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&h.indexOf(`${a}x${s}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(o.os="android",o.android=!0),(c||d||u)&&(o.os="ios",o.ios=!0),o}function E5e(e={}){return GO||(GO=k5e(e)),GO}let KO;function C5e(){const e=Va();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,o]=r.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));t=i<16||i===16&&o<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function S5e(){return KO||(KO=C5e()),KO}function T5e({swiper:e,on:t,emit:n}){const r=Va();let i=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(u=>{o=r.requestAnimationFrame(()=>{const{width:d,height:f}=e;let p=d,h=f;u.forEach(({contentBoxSize:m,contentRect:v,target:g})=>{g&&g!==e.el||(p=v?v.width:(m[0]||m).inlineSize,h=v?v.height:(m[0]||m).blockSize)}),(p!==d||h!==f)&&a()})}),i.observe(e.el))},l=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){s();return}r.addEventListener("resize",a),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",c)})}function A5e({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Va(),a=(c,u={})=>{const d=o.MutationObserver||o.WebkitMutationObserver,f=new d(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const h=function(){r("observerUpdate",p[0])};o.requestAnimationFrame?o.requestAnimationFrame(h):o.setTimeout(h,0)});f.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),i.push(f)},s=()=>{if(e.params.observer){if(e.params.observeParents){const c=qO(e.el);for(let u=0;u<c.length;u+=1)a(c[u])}a(e.el,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},l=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",l)}const O5e={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(i,[a,...r])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(s=>{s.apply(i,r)})}),t}};function j5e(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(vh(r,"padding-left")||0,10)-parseInt(vh(r,"padding-right")||0,10),n=n-parseInt(vh(r,"padding-top")||0,10)-parseInt(vh(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function D5e(){const e=this;function t(R){return e.isHorizontal()?R:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[R]}function n(R,M){return parseFloat(R.getPropertyValue(t(M))||0)}const r=e.params,{wrapperEl:i,slidesEl:o,size:a,rtlTranslate:s,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=xu(o,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let p=[];const h=[],m=[];let v=r.slidesOffsetBefore;typeof v=="function"&&(v=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(e));const b=e.snapGrid.length,x=e.slidesGrid.length;let w=r.spaceBetween,k=-v,E=0,j=0;if(typeof a>"u")return;typeof w=="string"&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*a:typeof w=="string"&&(w=parseFloat(w)),e.virtualSize=-w,d.forEach(R=>{s?R.style.marginLeft="":R.style.marginRight="",R.style.marginBottom="",R.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(I3(i,"--swiper-centered-offset-before",""),I3(i,"--swiper-centered-offset-after",""));const T=r.grid&&r.grid.rows>1&&e.grid;T&&e.grid.initSlides(f);let C;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(R=>typeof r.breakpoints[R].slidesPerView<"u").length>0;for(let R=0;R<f;R+=1){C=0;let M;if(d[R]&&(M=d[R]),T&&e.grid.updateSlide(R,M,f,t),!(d[R]&&vh(M,"display")==="none")){if(r.slidesPerView==="auto"){D&&(d[R].style[t("width")]="");const L=getComputedStyle(M),B=M.style.transform,W=M.style.webkitTransform;if(B&&(M.style.transform="none"),W&&(M.style.webkitTransform="none"),r.roundLengths)C=e.isHorizontal()?cW(M,"width"):cW(M,"height");else{const ee=n(L,"width"),G=n(L,"padding-left"),Y=n(L,"padding-right"),q=n(L,"margin-left"),V=n(L,"margin-right"),A=L.getPropertyValue("box-sizing");if(A&&A==="border-box")C=ee+q+V;else{const{clientWidth:U,offsetWidth:P}=M;C=ee+G+Y+q+V+(P-U)}}B&&(M.style.transform=B),W&&(M.style.webkitTransform=W),r.roundLengths&&(C=Math.floor(C))}else C=(a-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(C=Math.floor(C)),d[R]&&(d[R].style[t("width")]=`${C}px`);d[R]&&(d[R].swiperSlideSize=C),m.push(C),r.centeredSlides?(k=k+C/2+E/2+w,E===0&&R!==0&&(k=k-a/2-w),R===0&&(k=k-a/2-w),Math.abs(k)<1/1e3&&(k=0),r.roundLengths&&(k=Math.floor(k)),j%r.slidesPerGroup===0&&p.push(k),h.push(k)):(r.roundLengths&&(k=Math.floor(k)),(j-Math.min(e.params.slidesPerGroupSkip,j))%e.params.slidesPerGroup===0&&p.push(k),h.push(k),k=k+C+w),e.virtualSize+=C+w,E=C,j+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+g,s&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+w}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+w}px`),T&&e.grid.updateWrapperSize(C,p,t),!r.centeredSlides){const R=[];for(let M=0;M<p.length;M+=1){let L=p[M];r.roundLengths&&(L=Math.floor(L)),p[M]<=e.virtualSize-a&&R.push(L)}p=R,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(c&&r.loop){const R=m[0]+w;if(r.slidesPerGroup>1){const M=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),L=R*r.slidesPerGroup;for(let B=0;B<M;B+=1)p.push(p[p.length-1]+L)}for(let M=0;M<e.virtual.slidesBefore+e.virtual.slidesAfter;M+=1)r.slidesPerGroup===1&&p.push(p[p.length-1]+R),h.push(h[h.length-1]+R),e.virtualSize+=R}if(p.length===0&&(p=[0]),w!==0){const R=e.isHorizontal()&&s?"marginLeft":t("marginRight");d.filter((M,L)=>!r.cssMode||r.loop?!0:L!==d.length-1).forEach(M=>{M.style[R]=`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let R=0;m.forEach(L=>{R+=L+(w||0)}),R-=w;const M=R-a;p=p.map(L=>L<=0?-v:L>M?M+g:L)}if(r.centerInsufficientSlides){let R=0;if(m.forEach(M=>{R+=M+(w||0)}),R-=w,R<a){const M=(a-R)/2;p.forEach((L,B)=>{p[B]=L-M}),h.forEach((L,B)=>{h[B]=L+M})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:m}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){I3(i,"--swiper-centered-offset-before",`${-p[0]}px`),I3(i,"--swiper-centered-offset-after",`${e.size/2-m[m.length-1]/2}px`);const R=-e.snapGrid[0],M=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+R),e.slidesGrid=e.slidesGrid.map(L=>L+M)}if(f!==u&&e.emit("slidesLengthChange"),p.length!==b&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==x&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const R=`${r.containerModifierClass}backface-hidden`,M=e.el.classList.contains(R);f<=r.maxBackfaceHiddenSlides?M||e.el.classList.add(R):M&&e.el.classList.remove(R)}}function I5e(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=s=>r?t.slides[t.getSlideIndexByData(s)]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{n.push(s)});else for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const s=t.activeIndex+o;if(s>t.slides.length&&!r)break;n.push(a(s))}else n.push(a(t.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const s=n[o].offsetHeight;i=s>i?s:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function P5e(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function $5e(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;i&&(a=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s=="string"&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:typeof s=="string"&&(s=parseFloat(s));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(a+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+s),f=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+s),p=-(a-u),h=p+t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=i?-d:d,c.originalProgress=i?-f:f}}function R5e(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,c=a;if(r===0)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;o=u||i<=0,a=d||i>=1,u&&(i=0),d&&(i=1)}if(n.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[u],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],m=Math.abs(e);m>=f?s=(m-f)/h:s=(m+h-p)/h,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&t.emit("fromEdge"),t.emit("progress",i)}function M5e(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=l=>xu(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s;if(o)if(n.loop){let l=i-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${l}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else s=t[i];if(s){s.classList.add(n.slideActiveClass);let l=_5e(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=w5e(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const P3=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}},YO=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},ZO=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=i,s=[a-t];s.push(...Array.from({length:t}).map((l,c)=>a+r+c)),e.slides.forEach((l,c)=>{s.includes(l.column)&&YO(e,c)});return}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let a=i-t;a<=o+t;a+=1){const s=(a%n+n)%n;(s<i||s>o)&&YO(e,s)}else for(let a=Math.max(i-t,0);a<=Math.min(o+t,n-1);a+=1)a!==i&&(a>o||a<i)&&YO(e,a)};function N5e(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)typeof t[o+1]<"u"?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function L5e(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l=e,c;const u=f=>{let p=f-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof l>"u"&&(l=N5e(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const f=Math.min(i.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/i.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===o){c!==s&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(l));return}let d;t.virtual&&i.virtual.enabled&&i.loop?d=u(l):t.slides[l]?d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):d=l,Object.assign(t,{previousSnapIndex:s,snapIndex:c,previousRealIndex:a,realIndex:d,previousIndex:o,activeIndex:l}),t.initialized&&ZO(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function F5e(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,o;if(r){for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===r){i=!0,o=a;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const B5e={updateSize:j5e,updateSlides:D5e,updateAutoHeight:I5e,updateSlidesOffset:P5e,updateSlidesProgress:$5e,updateProgress:R5e,updateSlidesClasses:M5e,updateActiveIndex:L5e,updateClickedSlide:F5e};function z5e(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:o}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let a=v5e(o,e);return a+=t.cssOverflowAdjustment(),r&&(a=-a),a||0}function H5e(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s=0,l=0;const c=0;n.isHorizontal()?s=r?-e:e:l=e,i.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:l,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-l:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${s}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(e-n.minTranslate())/d,u!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function U5e(){return-this.snapGrid[0]}function V5e(){return-this.snapGrid[this.snapGrid.length-1]}function q5e(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let u;if(r&&e>l?u=l:r&&e<c?u=c:u=e,o.updateProgress(u),a.cssMode){const d=o.isHorizontal();if(t===0)s[d?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return aW({swiper:o,targetPosition:-u,side:d?"left":"top"}),!0;s.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(o.setTransition(0),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(f){!o||o.destroyed||f.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}const W5e={getTranslate:z5e,setTranslate:H5e,minTranslate:U5e,maxTranslate:V5e,translateTo:q5e};function G5e(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function dW({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let a=n;if(a||(i>o?a="next":i<o?a="prev":a="reset"),e.emit(`transition${r}`),t&&i!==o){if(a==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),a==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function K5e(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),dW({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function Y5e(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),dW({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const Z5e={setTransition:G5e,transitionStart:K5e,transitionEnd:Y5e};function X5e(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=o;if(o.animating&&s.preventInteractionOnTransition||!h&&!r&&!i)return!1;const m=Math.min(o.params.slidesPerGroupSkip,a);let v=m+Math.floor((a-m)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const g=-l[v];if(s.normalizeSlideIndex)for(let x=0;x<c.length;x+=1){const w=-Math.floor(g*100),k=Math.floor(c[x]*100),E=Math.floor(c[x+1]*100);typeof c[x+1]<"u"?w>=k&&w<E-(E-k)/2?a=x:w>=k&&w<E&&(a=x+1):w>=k&&(a=x)}if(o.initialized&&a!==d&&(!o.allowSlideNext&&(f?g>o.translate&&g>o.minTranslate():g<o.translate&&g<o.minTranslate())||!o.allowSlidePrev&&g>o.translate&&g>o.maxTranslate()&&(d||0)!==a))return!1;a!==(u||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(g);let b;if(a>d?b="next":a<d?b="prev":b="reset",f&&-g===o.translate||!f&&g===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),s.effect!=="slide"&&o.setTranslate(g),b!=="reset"&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(s.cssMode){const x=o.isHorizontal(),w=f?g:-g;if(t===0){const k=o.virtual&&o.params.virtual.enabled;k&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),k&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[x?"scrollLeft":"scrollTop"]=w})):p[x?"scrollLeft":"scrollTop"]=w,k&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return aW({swiper:o,targetPosition:w,side:x?"left":"top"}),!0;p.scrollTo({[x?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(g),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,b),t===0?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function Q5e(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o=o+i.virtual.slidesBefore:o=i.getSlideIndexByData(o)),i.slideTo(o,t,n,r)}function J5e(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i)return r;let s=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:s,c=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function e6e(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=r;if(!l)return r;const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=s?r.translate:-r.translate;function f(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const p=f(d),h=o.map(g=>f(g));let m=o[h.indexOf(p)-1];if(typeof m>"u"&&i.cssMode){let g;o.forEach((b,x)=>{p>=b&&(g=x)}),typeof g<"u"&&(m=o[g>0?g-1:g])}let v=0;if(typeof m<"u"&&(v=a.indexOf(m),v<0&&(v=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(v=v-r.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),i.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return r.slideTo(v,e,t,n)}function t6e(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function n6e(e=this.params.speed,t=!0,n,r=.5){const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const c=i.snapGrid[s],u=i.snapGrid[s+1];l-c>(u-c)*r&&(o+=i.params.slidesPerGroup)}else{const c=i.snapGrid[s-1],u=i.snapGrid[s];l-c<=(u-c)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function r6e(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(xu(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),VO(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(xu(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),VO(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const i6e={slideTo:X5e,slideToLoop:Q5e,slideNext:J5e,slidePrev:e6e,slideReset:t6e,slideToClosest:n6e,slideToClickedSlide:r6e};function o6e(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;xu(r,`.${n.slideClass}, swiper-slide`).forEach((o,a)=>{o.setAttribute("data-swiper-slide-index",a)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function a6e({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:a}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:f}=s;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):f.centeredSlides&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=c,s.allowSlideNext=u,s.emit("loopFix");return}const p=f.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let h=f.loopedSlides||p;h%f.slidesPerGroup!==0&&(h+=f.slidesPerGroup-h%f.slidesPerGroup),s.loopedSlides=h;const m=[],v=[];let g=s.activeIndex;typeof i>"u"?i=s.getSlideIndex(s.slides.filter(E=>E.classList.contains(f.slideActiveClass))[0]):g=i;const b=n==="next"||!n,x=n==="prev"||!n;let w=0,k=0;if(i<h){w=Math.max(h-i,f.slidesPerGroup);for(let E=0;E<h-i;E+=1){const j=E-Math.floor(E/l.length)*l.length;m.push(l.length-j-1)}}else if(i>s.slides.length-h*2){k=Math.max(i-(s.slides.length-h*2),f.slidesPerGroup);for(let E=0;E<k;E+=1){const j=E-Math.floor(E/l.length)*l.length;v.push(j)}}if(x&&m.forEach(E=>{s.slides[E].swiperLoopMoveDOM=!0,d.prepend(s.slides[E]),s.slides[E].swiperLoopMoveDOM=!1}),b&&v.forEach(E=>{s.slides[E].swiperLoopMoveDOM=!0,d.append(s.slides[E]),s.slides[E].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView==="auto"&&s.updateSlides(),f.watchSlidesProgress&&s.updateSlidesOffset(),t){if(m.length>0&&x)if(typeof e>"u"){const E=s.slidesGrid[g],T=s.slidesGrid[g+w]-E;a?s.setTranslate(s.translate-T):(s.slideTo(g+w,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=T))}else r&&s.slideToLoop(e,0,!1,!0);else if(v.length>0&&b)if(typeof e>"u"){const E=s.slidesGrid[g],T=s.slidesGrid[g-k]-E;a?s.setTranslate(s.translate-T):(s.slideTo(g-k,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=T))}else s.slideToLoop(e,0,!1,!0)}if(s.allowSlidePrev=c,s.allowSlideNext=u,s.controller&&s.controller.control&&!o){const E={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(j=>{!j.destroyed&&j.params.loop&&j.loopFix(E)}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix(E)}s.emit("loopFix")}function s6e(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const o=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const l6e={loopCreate:o6e,loopFix:a6e,loopDestroy:s6e};function c6e(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function u6e(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const d6e={setGrabCursor:c6e,unsetGrabCursor:u6e};function f6e(e,t=this){function n(r){if(!r||r===Ld()||r===Va())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function h6e(e){const t=this,n=Ld(),r=Va(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:a,enabled:s}=t;if(!s||!o.simulateTouch&&e.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const u=!!o.noSwipingClass&&o.noSwipingClass!=="",d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=d[0]);const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(p?f6e(f,c):c.closest(f))){t.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const h=a.currentX,m=a.currentY,v=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,g=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(v&&(h<=g||h>=r.innerWidth-g))if(v==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,i.touchStartTime=j3(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let b=!0;c.matches(i.focusableElements)&&(b=!1,c.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const x=b&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||x)&&!c.isContentEditable&&l.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function p6e(e){const t=Ld(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(E=>E.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const u=r.evCache.length>1?r.evCache[0]:l,d=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){o.startX=d,o.startY=f;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:d,startY:f,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:f}),r.touchStartTime=j3());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(f<o.startY&&n.translate<=n.maxTranslate()||f>o.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<o.startX&&n.translate<=n.maxTranslate()||d>o.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=d,o.currentY=f;const p=o.currentX-o.startX,h=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let E;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:p*p+h*h>=25&&(E=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>i.touchAngle:90-E>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let m=n.isHorizontal()?p:h,v=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),v=Math.abs(v)*(a?1:-1)),o.diff=m,m*=i.touchRatio,a&&(m=-m,v=-v);const g=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const b=n.params.loop&&!i.cssMode;if(!r.isMoved){if(b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let x;r.isMoved&&g!==n.touchesDirection&&b&&Math.abs(m)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),x=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let w=!0,k=i.resistanceRatio;if(i.touchReleaseOnEdges&&(k=0),m>0?(b&&!x&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**k))):m<0&&(b&&!x&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**k))),w&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(m)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function m6e(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(x=>x.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:i,touches:o,rtlTranslate:a,slidesGrid:s,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=j3(),d=u-n.touchStartTime;if(t.allowClick){const x=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(x&&x[0]||c.target),t.emit("tap click",c),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=j3(),VO(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(i.followFinger?f=a?t.translate:-t.translate:f=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,h=t.slidesSizesGrid[0];for(let x=0;x<s.length;x+=x<i.slidesPerGroupSkip?1:i.slidesPerGroup){const w=x<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof s[x+w]<"u"?f>=s[x]&&f<s[x+w]&&(p=x,h=s[x+w]-s[x]):f>=s[x]&&(p=x,h=s[s.length-1]-s[s.length-2])}let m=null,v=null;i.rewind&&(t.isBeginning?v=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const g=(f-s[p])/h,b=p<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(d>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?m:p+b):t.slideTo(p)),t.swipeDirection==="prev"&&(g>1-i.longSwipesRatio?t.slideTo(p+b):v!==null&&g<0&&Math.abs(g)>i.longSwipesRatio?t.slideTo(v):t.slideTo(p))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+b):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(m!==null?m:p+b),t.swipeDirection==="prev"&&t.slideTo(v!==null?v:p))}}function fW(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function g6e(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function v6e(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function y6e(e){const t=this;P3(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let hW=!1;function b6e(){}const pW=(e,t)=>{const n=Ld(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",fW,!0):e[c]("observerUpdate",fW,!0),i[l]("load",e.onLoad,{capture:!0})};function w6e(){const e=this,t=Ld(),{params:n}=e;e.onTouchStart=h6e.bind(e),e.onTouchMove=p6e.bind(e),e.onTouchEnd=m6e.bind(e),n.cssMode&&(e.onScroll=v6e.bind(e)),e.onClick=g6e.bind(e),e.onLoad=y6e.bind(e),hW||(t.addEventListener("touchstart",b6e),hW=!0),pW(e,"on")}function _6e(){pW(this,"off")}const x6e={attachEvents:w6e,detachEvents:_6e},mW=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function k6e(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||e.originalParams,c=mW(e,r),u=mW(e,l),d=r.enabled;c&&!u?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(m=>{if(typeof l[m]>"u")return;const v=r[m]&&r[m].enabled,g=l[m]&&l[m].enabled;v&&!g&&e[m].disable(),!v&&g&&e[m].enable()});const f=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);f&&n&&e.changeDirection(),Js(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function E6e(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Va(),o=t==="window"?i.innerHeight:n.clientHeight,a=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:o*l,point:s}}return{value:s,point:s}});a.sort((s,l)=>parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s<a.length;s+=1){const{point:l,value:c}=a[s];t==="window"?i.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const C6e={setBreakpoint:k6e,getBreakpoint:E6e};function S6e(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function T6e(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=S6e(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()}function A6e(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const O6e={addClasses:T6e,removeClasses:A6e};function j6e(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const D6e={checkOverflow:j6e},gW={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function I6e(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){Js(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){Js(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Js(t,r)}}const XO={eventsEmitter:O5e,update:B5e,translate:W5e,transition:Z5e,slide:i6e,loop:l6e,grabCursor:d6e,events:x6e,breakpoints:C6e,checkOverflow:D6e,classes:O6e},QO={};let ww=class eh{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Js({},r),n&&!r.el&&(r.el=n);const i=Ld();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(c=>{const u=Js({},r,{el:c});l.push(new eh(u))}),l}const o=this;o.__swiper__=!0,o.support=uW(),o.device=E5e({userAgent:r.userAgent}),o.browser=S5e(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const a={};o.modules.forEach(l=>{l({params:r,swiper:o,extendParams:I6e(r,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const s=Js({},gW,a);return o.params=Js({},s,QO,r),o.originalParams=Js({},o.params),o.passedParams=Js({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=xu(n,`.${r.slideClass}, swiper-slide`),o=lW(i[0]);return lW(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=xu(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),a=(r.maxTranslate()-i)*t+i;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:o,slidesGrid:a,slidesSizesGrid:s,size:l,activeIndex:c}=r;let u=1;if(i.centeredSlides){let d=o[c]?o[c].swiperSlideSize:0,f;for(let p=c+1;p<o.length;p+=1)o[p]&&!f&&(d+=o[p].swiperSlideSize,u+=1,d>l&&(f=!0));for(let p=c-1;p>=0;p-=1)o[p]&&!f&&(d+=o[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(t==="current")for(let d=c+1;d<o.length;d+=1)(n?a[d]+s[d]-a[c]<l:a[d]-a[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)a[c]-a[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&P3(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const a=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let o;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const a=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;o=t.slideTo(a.length-1,0,!1,!0)}else o=t.slideTo(t.activeIndex,0,!1,!0);o||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):xu(r,i())[0];return!a&&n.params.createElements&&(a=sW("div",n.params.wrapperClass),r.append(a),xu(r,`.${n.params.slideClass}`).forEach(s=>{a.append(s)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement?r:a,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||vh(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||vh(r,"direction")==="rtl"),wrongRTL:vh(a,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?P3(n,i):i.addEventListener("load",o=>{P3(n,o.target)})}),ZO(n),n.initialized=!0,ZO(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:o,wrapperEl:a,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),a.removeAttribute("style"),s&&s.length&&s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,m5e(r)),r.destroyed=!0),null}static extendDefaults(t){Js(QO,t)}static get extendedDefaults(){return QO}static get defaults(){return gW}static installModule(t){eh.prototype.__modules__||(eh.prototype.__modules__=[]);const n=eh.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>eh.installModule(n)),eh):(eh.installModule(t),eh)}};Object.keys(XO).forEach(e=>{Object.keys(XO[e]).forEach(t=>{ww.prototype[t]=XO[e][t]})}),ww.use([T5e,A5e]);function P6e({swiper:e,extendParams:t,on:n,emit:r}){const i=Ld(),o=Va();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(c){if(!e.enabled)return;const{rtlTranslate:u}=e;let d=c;d.originalEvent&&(d=d.originalEvent);const f=d.keyCode||d.charCode,p=e.params.keyboard.pageUpDown,h=p&&f===33,m=p&&f===34,v=f===37,g=f===39,b=f===38,x=f===40;if(!e.allowSlideNext&&(e.isHorizontal()&&g||e.isVertical()&&x||m)||!e.allowSlidePrev&&(e.isHorizontal()&&v||e.isVertical()&&b||h))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(h||m||v||g||b||x)){let w=!1;if(qO(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&qO(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,E=k.clientWidth,j=k.clientHeight,T=o.innerWidth,C=o.innerHeight,D=b5e(k);u&&(D.left-=k.scrollLeft);const R=[[D.left,D.top],[D.left+E,D.top],[D.left,D.top+j],[D.left+E,D.top+j]];for(let M=0;M<R.length;M+=1){const L=R[M];if(L[0]>=0&&L[0]<=T&&L[1]>=0&&L[1]<=C){if(L[0]===0&&L[1]===0)continue;w=!0}}if(!w)return}e.isHorizontal()?((h||m||v||g)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((m||g)&&!u||(h||v)&&u)&&e.slideNext(),((h||v)&&!u||(m||g)&&u)&&e.slidePrev()):((h||m||b||x)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(m||x)&&e.slideNext(),(h||b)&&e.slidePrev()),r("keyPress",f)}}function s(){e.keyboard.enabled||(i.addEventListener("keydown",a),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(i.removeEventListener("keydown",a),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&s()}),n("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:s,disable:l})}function $6e(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=xu(e.el,`.${r[i]}`)[0];o||(o=sW("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function R6e({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=h=>(Array.isArray(h)||(h=[h].filter(m=>!!m)),h);function o(h){let m;return h&&typeof h=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(h),m)?m:(h&&(typeof h=="string"&&(m=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&m.length>1&&e.el.querySelectorAll(h).length===1&&(m=e.el.querySelector(h))),h&&!m?h:m)}function a(h,m){const v=e.params.navigation;h=i(h),h.forEach(g=>{g&&(g.classList[m?"add":"remove"](...v.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=m),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](v.lockClass))})}function s(){const{nextEl:h,prevEl:m}=e.navigation;if(e.params.loop){a(m,!1),a(h,!1);return}a(m,e.isBeginning&&!e.params.rewind),a(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const h=e.params.navigation;if(e.params.navigation=$6e(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let m=o(h.nextEl),v=o(h.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:v}),m=i(m),v=i(v);const g=(b,x)=>{b&&b.addEventListener("click",x==="next"?c:l),!e.enabled&&b&&b.classList.add(...h.lockClass.split(" "))};m.forEach(b=>g(b,"next")),v.forEach(b=>g(b,"prev"))}function d(){let{nextEl:h,prevEl:m}=e.navigation;h=i(h),m=i(m);const v=(g,b)=>{g.removeEventListener("click",b==="next"?c:l),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(g=>v(g,"next")),m.forEach(g=>v(g,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(u(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:h,prevEl:m}=e.navigation;h=i(h),m=i(m),[...h,...m].filter(v=>!!v).forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(h,m)=>{let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g);const b=m.target;if(e.params.navigation.hideOnClick&&!g.includes(b)&&!v.includes(b)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let x;v.length?x=v[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(x=g[0].classList.contains(e.params.navigation.hiddenClass)),r(x===!0?"navigationShow":"navigationHide"),[...v,...g].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),s()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:p,update:s,init:u,destroy:d})}function Mm(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function yh(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Mm(t[r])&&Mm(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:yh(e[r],t[r]):e[r]=t[r]})}function vW(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function yW(e={}){return e.pagination&&typeof e.pagination.el>"u"}function bW(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function wW(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function M6e(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const _W=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function N6e(e={},t=!0){const n={on:{}},r={},i={};yh(n,ww.defaults),yh(n,ww.extendedDefaults),n._emitClasses=!0,n.init=!1;const o={},a=_W.map(l=>l.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(l=>{typeof e[l]>"u"||(a.indexOf(l)>=0?Mm(e[l])?(n[l]={},i[l]={},yh(n[l],e[l]),yh(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:o,events:r}}function L6e({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){vW(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),yW(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),bW(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}function F6e(e,t,n,r,i){const o=[];if(!t)return o;const a=l=>{o.indexOf(l)<0&&o.push(l)};if(n&&r){const l=r.map(i),c=n.map(i);l.join("")!==c.join("")&&a("children"),r.length!==n.length&&a("children")}return _W.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Mm(e[l])&&Mm(t[l])){const c=Object.keys(e[l]),u=Object.keys(t[l]);c.length!==u.length?a(l):(c.forEach(d=>{e[l][d]!==t[l][d]&&a(l)}),u.forEach(d=>{e[l][d]!==t[l][d]&&a(l)}))}else e[l]!==t[l]&&a(l)}),o}function xW(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function kW(e){const t=[];return O.Children.toArray(e).forEach(n=>{xW(n)?t.push(n):n.props&&n.props.children&&kW(n.props.children).forEach(r=>t.push(r))}),t}function B6e(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return O.Children.toArray(e).forEach(r=>{if(xW(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=kW(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function z6e({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(T=>T!=="children"&&T!=="direction"&&T!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let m,v,g,b,x,w,k,E;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(m=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(v=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(g=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(b=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(x=!0);const j=T=>{e[T]&&(e[T].destroy(),T==="navigation"?(e.isElement&&(e[T].prevEl.remove(),e[T].nextEl.remove()),c[T].prevEl=void 0,c[T].nextEl=void 0,e[T].prevEl=void 0,e[T].nextEl=void 0):(e.isElement&&e[T].el.remove(),c[T].el=void 0,e[T].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?w=!0:!c.loop&&n.loop?k=!0:E=!0),l.forEach(T=>{if(Mm(c[T])&&Mm(n[T]))yh(c[T],n[T]),(T==="navigation"||T==="pagination"||T==="scrollbar")&&"enabled"in n[T]&&!n[T].enabled&&j(T);else{const C=n[T];(C===!0||C===!1)&&(T==="navigation"||T==="pagination"||T==="scrollbar")?C===!1&&j(T):c[T]=n[T]}}),l.includes("controller")&&!v&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),r.includes("children")&&t&&c.loop&&(E=!0),m&&h.init()&&h.update(!0),v&&(e.controller.control=c.controller.control),g&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(s)),s&&(c.pagination.el=s),u.init(),u.render(),u.update()),b&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(a)),a&&(c.scrollbar.el=a),f.init(),f.updateSize(),f.setTranslate()),x&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||E)&&e.loopDestroy(),(k||E)&&e.loopCreate(),e.update()}function H6e(e,t,n){if(!n)return null;const r=u=>{let d=u;return u<0?d=t.length+u:d>=t.length&&(d=d-t.length),d},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,s=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,c=[];for(let u=s;u<l;u+=1)u>=o&&u<=a&&c.push(t[r(u)]);return c.map((u,d)=>O.cloneElement(u,{swiper:e,style:i,key:`slide-${d}`}))}const U6e=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function _w(e,t){return typeof window>"u"?O.useEffect(e,t):O.useLayoutEffect(e,t)}const EW=O.createContext(null),V6e=O.createContext(null);function JO(){return JO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JO.apply(this,arguments)}const CW=O.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:o,onSwiper:a,...s}=e===void 0?{}:e,l=!1;const[c,u]=O.useState("swiper"),[d,f]=O.useState(null),[p,h]=O.useState(!1),m=O.useRef(!1),v=O.useRef(null),g=O.useRef(null),b=O.useRef(null),x=O.useRef(null),w=O.useRef(null),k=O.useRef(null),E=O.useRef(null),j=O.useRef(null),{params:T,passedParams:C,rest:D,events:R}=N6e(s),{slides:M,slots:L}=B6e(o),B=()=>{h(!p)};Object.assign(T.on,{_containerClasses(q,V){u(V)}});const W=()=>{Object.assign(T.on,R),l=!0;const q={...T};if(delete q.wrapperClass,g.current=new ww(q),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=M;const V={cache:!1,slides:M,renderExternal:f,renderExternalUpdate:!1};yh(g.current.params.virtual,V),yh(g.current.originalParams.virtual,V)}};v.current||W(),g.current&&g.current.on("_beforeBreakpoint",B);const ee=()=>{l||!R||!g.current||Object.keys(R).forEach(q=>{g.current.on(q,R[q])})},G=()=>{!R||!g.current||Object.keys(R).forEach(q=>{g.current.off(q,R[q])})};O.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",B)}),O.useEffect(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),_w(()=>{if(t&&(t.current=v.current),!!v.current)return g.current.destroyed&&W(),L6e({el:v.current,nextEl:w.current,prevEl:k.current,paginationEl:E.current,scrollbarEl:j.current,swiper:g.current},T),a&&a(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),_w(()=>{ee();const q=F6e(C,b.current,M,x.current,V=>V.key);return b.current=C,x.current=M,q.length&&g.current&&!g.current.destroyed&&z6e({swiper:g.current,slides:M,passedParams:C,changedParams:q,nextEl:w.current,prevEl:k.current,scrollbarEl:j.current,paginationEl:E.current}),()=>{G()}}),_w(()=>{U6e(g.current)},[d]);function Y(){return T.virtual?H6e(g.current,M,d):M.map((q,V)=>O.cloneElement(q,{swiper:g.current,swiperSlideIndex:V}))}return O.createElement(r,JO({ref:v,className:wW(`${c}${n?` ${n}`:""}`)},D),O.createElement(V6e.Provider,{value:g.current},L["container-start"],O.createElement(i,{className:M6e(T.wrapperClass)},L["wrapper-start"],Y(),L["wrapper-end"]),vW(T)&&O.createElement(O.Fragment,null,O.createElement("div",{ref:k,className:"swiper-button-prev"}),O.createElement("div",{ref:w,className:"swiper-button-next"})),bW(T)&&O.createElement("div",{ref:j,className:"swiper-scrollbar"}),yW(T)&&O.createElement("div",{ref:E,className:"swiper-pagination"}),L["container-end"]))});CW.displayName="Swiper";function e7(){return e7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e7.apply(this,arguments)}const SW=O.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:a,lazy:s,virtualIndex:l,swiperSlideIndex:c,...u}=e===void 0?{}:e;const d=O.useRef(null),[f,p]=O.useState("swiper-slide"),[h,m]=O.useState(!1);function v(w,k,E){k===d.current&&p(E)}_w(()=>{if(typeof c<"u"&&(d.current.swiperSlideIndex=c),t&&(t.current=d.current),!(!d.current||!o)){if(o.destroyed){f!=="swiper-slide"&&p("swiper-slide");return}return o.on("_slideClass",v),()=>{o&&o.off("_slideClass",v)}}}),_w(()=>{o&&d.current&&!o.destroyed&&p(o.getSlideClasses(d.current))},[o]);const g={isActive:f.indexOf("swiper-slide-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0},b=()=>typeof r=="function"?r(g):r,x=()=>{m(!0)};return O.createElement(n,e7({ref:d,className:wW(`${f}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:x},u),a&&O.createElement(EW.Provider,{value:g},O.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},b(),s&&!h&&O.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&O.createElement(EW.Provider,{value:g},b(),s&&!h&&O.createElement("div",{className:"swiper-lazy-preloader"})))});SW.displayName="SwiperSlide";const q6e=e=>{const{avatar:t,message:n,feedbackRequested:r,onFeedbackClicked:i,onMessageButtonClicked:o}=e,[a,s]=O.useState(null),[l,c]=O.useState(null),[u,d]=O.useState(),f=m=>m.isPositive?y.jsx("div",{className:vt(Qr["chat-item--icon"],Qr["chat-item--feedback-given"]),children:y.jsx(GU,{className:"text--purple-800"})}):y.jsx("div",{className:vt(Qr["chat-item--icon"],Qr["chat-item--feedback-given"]),children:y.jsx(WU,{className:"text--purple-800"})}),p=m=>y.jsxs("div",{className:Qr["chat-item--feedback"],children:[y.jsx(Pr,{size:"md",fontWeight:"regular",color:"gray-700",children:m||"Was it helpful?"}),y.jsxs("div",{className:Qr["chat-item-feedback-icons"],children:[y.jsx("button",{className:vt(Qr["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!0),children:y.jsx(GU,{className:"text--gray-700"})}),y.jsx("button",{className:vt(Qr["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!1),children:y.jsx(WU,{className:"text--gray-700"})})]})]}),h=m=>{switch(m.type){case"chat":return y.jsxs("div",{children:[y.jsxs("div",{className:vt(Qr["chat-item--chat"],Qr[`chat-item--chat-${m.whoSent}`]),children:[y.jsx(et,{size:"xs",fontWeight:"regular",color:m.whoSent==="bot"?"gray-1000":"white",children:m.text}),r&&f(r)]}),m.whoSent==="bot"&&m.caption&&y.jsx(Pr,{size:"sm",fontWeight:"regular",color:"gray-700",className:Qr["chat-item--caption"],children:m.caption}),m.whoSent==="bot"&&m.feedbackRequest&&!r&&p(m.feedbackRequestLabel)]});case"jpg":return y.jsxs("div",{className:Qr["chat-item--media"],children:[y.jsxs("div",{className:Qr["chat-item--feedback-requested"],children:[y.jsx("img",{src:m.imageUrl,alt:m.imageAlt,className:Qr["chat-item--image"]}),r&&f(r)]}),m.whoSent==="bot"&&m.caption&&y.jsx(Pr,{size:"sm",fontWeight:"regular",color:"gray-700",className:Qr["chat-item--caption"],children:m.caption}),m.whoSent==="bot"&&m.feedbackRequest&&!r&&p(m.feedbackRequestLabel)]});case"mp4":return y.jsxs("div",{className:Qr["chat-item--media"],children:[y.jsxs("div",{className:Qr["chat-item--feedback-requested"],children:[y.jsx("iframe",{src:m.videoPreviewUrl,className:Qr["chat-item--video"],title:"Video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}),r&&f(r)]}),m.whoSent==="bot"&&m.caption&&y.jsx(Pr,{size:"sm",fontWeight:"regular",color:"gray-700",className:Qr["chat-item--caption"],children:m.caption}),m.whoSent==="bot"&&m.feedbackRequest&&!r&&p(m.feedbackRequestLabel)]});case"button":return y.jsx("div",{className:Qr["chat-item--button-container"],children:m.buttons.map((v,g)=>y.jsx(jr,{onClick:()=>o==null?void 0:o((v==null?void 0:v.label)||""),...v},(v==null?void 0:v.id)??g))});case"typing":return y.jsx("div",{className:Qr["chat-item--typing"],children:y.jsx(et,{size:"xs",fontWeight:"regular",color:"gray-1000",children:"..."})});case"cards":return y.jsxs("div",{className:Qr["chat-item--carousel"],children:[y.jsx(CW,{slidesPerView:"auto",modules:[R6e,P6e],onSlideChange:v=>d(v.activeIndex),navigation:{prevEl:a,nextEl:l},keyboard:{enabled:!0},className:Qr["swiper-wrapper"],children:m.cards.map((v,g)=>y.jsx(SW,{children:y.jsxs("div",{className:Qr["chat-item--carousel-card"],children:[v.imageUrl&&y.jsx("img",{src:v.imageUrl,alt:v.imageAlt,className:Qr["chat-item--card-image"]}),y.jsxs("div",{className:Qr["chat-item--card-content"],children:[y.jsx(et,{fontWeight:"bold",size:"sm",color:"gray-1000",children:v.title}),y.jsx(et,{fontWeight:"regular",size:"xs",color:"gray-800",children:v.title}),v.buttons&&y.jsx("div",{className:Qr["chat-item--card-buttons"],children:v.buttons.map((b,x)=>y.jsx(jr,{...b,fullWidth:!0},(b==null?void 0:b.id)??x))})]})]})},g))}),m.cards.length>1&&y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:v=>s(v),className:Qr["chat-item--carousel-left-navigation"],children:y.jsx(vr,{color:"primary",variant:"outlined",disabled:u===0,children:y.jsx(fEe,{})})}),y.jsx("div",{ref:v=>c(v),className:Qr["chat-item--carousel-right-navigation"],children:y.jsx(vr,{color:"primary",variant:"outlined",disabled:u===m.cards.length-1,children:y.jsx(pEe,{})})})]})]})}};return y.jsxs("div",{className:vt(Qr["chat-item"],Qr[`chat-item--${n.whoSent}`]),children:[n.whoSent==="bot"&&y.jsx("div",{className:Qr["chat-item--avatar-container"],children:y.jsx(mh,{...t})}),h(n)]})},W6e=e=>{const{avatar:t,messages:n,isTyping:r=!1,feedbackRequested:i=[],onMessageButtonClicked:o,onInputChange:a,onFeedbackClicked:s}=e,l=[...n,...r?[{type:"typing",whoSent:"bot"}]:[]],c=(d,f)=>{d.whoSent==="bot"&&d.type!=="typing"&&!i.find(p=>p.id===d.id)&&(s==null||s(d,f))},u=l[l.length-1].type==="button";return y.jsxs("div",{className:nW["chat-content"],children:[y.jsx("div",{className:nW["chat-messages"],children:l.map((d,f)=>{const p="id"in d?i.find(h=>h.id===d.id):void 0;return y.jsx(q6e,{avatar:t,message:d,feedbackRequested:p,onMessageButtonClicked:o,onFeedbackClicked:h=>c(d,h)},(d==null?void 0:d.id)??f)})}),u?y.jsx("div",{children:y.jsx(ds,{variant:"soft",color:"gray",label:"Choose an option to continue",closeIcon:!1})}):y.jsx(rW,{placeholder:"Chat input",onChange:a})]})},lo={"chat-input--container":"_chat-input--container_1hwp8_1","chat-input--input":"_chat-input--input_1hwp8_9",resizer:"_resizer_1hwp8_10","chat-input--size-lg":"_chat-input--size-lg_1hwp8_21","chat-input--size-md":"_chat-input--size-md_1hwp8_26","chat-input--size-sm":"_chat-input--size-sm_1hwp8_31","chat-input--input-error":"_chat-input--input-error_1hwp8_47","chat-input--input-content-container":"_chat-input--input-content-container_1hwp8_64","chat-input--tags-container":"_chat-input--tags-container_1hwp8_72","chat-input--content":"_chat-input--content_1hwp8_79","chat-input--outlined":"_chat-input--outlined_1hwp8_95","chat-input--filled":"_chat-input--filled_1hwp8_101","chat-input--helper-text":"_chat-input--helper-text_1hwp8_107","chat-input--label-text":"_chat-input--label-text_1hwp8_111","chat-input--disabled":"_chat-input--disabled_1hwp8_115","chat-input--no-resize":"_chat-input--no-resize_1hwp8_120","chat-input--icon-container":"_chat-input--icon-container_1hwp8_124","chat-input--icon":"_chat-input--icon_1hwp8_124","chat-input--left-icon":"_chat-input--left-icon_1hwp8_145","chat-input--right-icon":"_chat-input--right-icon_1hwp8_149","input-container":"_input-container_1hwp8_187","input-container--column":"_input-container--column_1hwp8_191"},G6e=({autoResize:e,value:t,children:n})=>e?y.jsx("div",{className:lo.resizer,"data-replicated-value":t,children:n}):y.jsx(y.Fragment,{children:n}),TW=O.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:o="outlined",label:a,placeholder:s,helperText:l,leftIcon:c,leftIconTwo:u,rightIcon:d,rightIconTwo:f,rows:p=1,resize:h=!1,autoResize:m=!0,value:v,defaultValue:g,onChange:b,className:x,inputClassName:w,contentClassName:k,tags:E=[],onTagsChange:j,...T}=e,C=(L,B)=>{switch(B){case"lg":return y.jsx(et,{size:"sm",fontWeight:"regular",color:"gray-800",className:lo["chat-input--label-text"],children:L});default:case"md":return y.jsx(et,{size:"xs",fontWeight:"regular",color:"gray-800",className:lo["chat-input--label-text"],children:L});case"sm":return y.jsx(Pr,{size:"md",fontWeight:"regular",color:"gray-800",className:lo["chat-input--label-text"],children:L})}},[D,R]=O.useState(v??g??""),M=O.useCallback(L=>{b==null||b(L),R(L.target.value)},[b]);return O.useEffect(()=>{R(v??"")},[v]),y.jsxs("div",{className:vt(lo["chat-input--container"],i&&lo["chat-input--disabled"],x),children:[a?C(a,n):null,y.jsxs("div",{className:vt(lo["chat-input--content"],lo[`chat-input--size-${n}`],lo[`chat-input--${o}`],r&&lo["chat-input--input-error"],k),children:[c||u?y.jsxs("div",{className:vt(lo["chat-input--icon-container"],lo["chat-input--left-icon"]),children:[c?y.jsx("span",{className:lo["chat-input--icon"],children:c}):null,u?y.jsx("span",{className:vt(lo["chat-input--icon"]),children:u}):null]}):null,y.jsxs("div",{className:lo["chat-input--input-content-container"],children:[E.length>0&&y.jsx("div",{className:lo["chat-input--tags-container"],children:E.map((L,B)=>y.jsx(ds,{variant:"text",fontWeight:"regular",iconSize:"lg",closeIcon:!0,label:L.label,renderIcon:L.renderIcon,onCloseIconClicked:()=>{const W=[...E];W.splice(B,1),j==null||j(W)},className:lo["multiline-tag-input--tag"]},`${L.label}-${B}`))}),y.jsx(G6e,{autoResize:m,value:D||(s??""),children:y.jsx("textarea",{ref:t,className:vt(lo["chat-input--input"],o==="filled"&&"bg--sand-200",i&&"cursor-not-allowed",!h&&lo["chat-input--no-resize"],w),placeholder:s,disabled:i,rows:p,value:D,onChange:M,...T})})]}),d||f?y.jsxs("div",{className:lo["chat-input--icon-container"],children:[d?y.jsx("span",{className:lo["chat-input--icon"],children:d}):null,f?y.jsx("span",{className:vt(lo["chat-input--icon"]),children:f}):null]}):null]}),l?y.jsx(Pr,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:lo["chat-input--helper-text"],children:l}):null]})});TW.displayName="ChatInput";let K6e=0;function Y6e(e,t){const n=`atom${++K6e}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=i=>i(r),r.write=(i,o,a)=>o(r,typeof a=="function"?a(i(r)):a)),r}const el={},bh=Symbol(),t7=e=>!!e[bh],$3=e=>!e[bh].c,xw=e=>{var t;const{b:n,c:r}=e[bh];r&&(r(),(t=X6e.get(n))==null||t())},R3=(e,t)=>{const n=e[bh].o,r=t[bh].o;return n===r||e===r||t7(n)&&R3(n,t)},n7=(e,t)=>{const n={b:e,o:t,c:null},r=new Promise(i=>{n.c=()=>{n.c=null,i()},t.finally(n.c)});return r[bh]=n,r},Z6e=e=>n7(e[bh].b,e[bh].o),X6e=new WeakMap,M3=e=>"init"in e,r7="r",i7="w",kw="c",o7="s",AW="h",Q6e="n",J6e="l",eTe="a",tTe="m",nTe=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let i,o;if((el&&"production")!=="production"&&(i=new Set,o=new Set),e)for(const[V,A]of e){const U={v:A,r:0,y:!0,d:new Map};(el&&"production")!=="production"&&(Object.freeze(U),M3(V)||console.warn("Found initial value for derived atom which can cause unexpected behavior",V)),t.set(V,U)}const a=new WeakMap,s=(V,A,U)=>{let P=a.get(A);P||(P=new Map,a.set(A,P)),U.then(()=>{P.get(V)===U&&(P.delete(V),P.size||a.delete(A))}),P.set(V,U)},l=V=>{const A=new Set,U=a.get(V);return U&&(a.delete(V),U.forEach((P,$)=>{xw(P),A.add($)})),A},c=new WeakMap,u=V=>{let A=c.get(V);return A||(A=new Map,c.set(V,A)),A},d=(V,A)=>{if(V){const U=u(V);let P=U.get(A);return P||(P=d(V.p,A),P&&"p"in P&&$3(P.p)&&(P=void 0),P&&U.set(A,P)),P}return t.get(A)},f=(V,A,U)=>{if((el&&"production")!=="production"&&Object.freeze(U),V)u(V).set(A,U);else{const P=t.get(A);t.set(A,U),r.has(A)||r.set(A,P)}},p=(V,A=new Map,U)=>{if(!U)return A;const P=new Map;let $=!1;return U.forEach(F=>{var N;const ne=((N=d(V,F))==null?void 0:N.r)||0;P.set(F,ne),A.get(F)!==ne&&($=!0)}),A.size===P.size&&!$?A:P},h=(V,A,U,P,$)=>{const F=d(V,A);if(F){if($&&(!("p"in F)||!R3(F.p,$)))return F;"p"in F&&xw(F.p)}const N={v:U,r:(F==null?void 0:F.r)||0,y:!0,d:p(V,F==null?void 0:F.d,P)};let ne=!(F!=null&&F.y);return!F||!("v"in F)||!Object.is(F.v,U)?(ne=!0,++N.r,N.d.has(A)&&(N.d=new Map(N.d).set(A,N.r))):N.d!==F.d&&(N.d.size!==F.d.size||!Array.from(N.d.keys()).every(z=>F.d.has(z)))&&(ne=!0,Promise.resolve().then(()=>{W(V)})),F&&!ne?F:(f(V,A,N),N)},m=(V,A,U,P,$)=>{const F=d(V,A);if(F){if($&&(!("p"in F)||!R3(F.p,$)))return F;"p"in F&&xw(F.p)}const N={e:U,r:((F==null?void 0:F.r)||0)+1,y:!0,d:p(V,F==null?void 0:F.d,P)};return f(V,A,N),N},v=(V,A,U,P)=>{const $=d(V,A);if($&&"p"in $){if(R3($.p,U)&&!$3($.p))return $.y?$:{...$,y:!0};xw($.p)}s(V,A,U);const F={p:U,r:(($==null?void 0:$.r)||0)+1,y:!0,d:p(V,$==null?void 0:$.d,P)};return f(V,A,F),F},g=(V,A,U,P)=>{if(U instanceof Promise){const $=n7(U,U.then(F=>{h(V,A,F,P,$)}).catch(F=>{if(F instanceof Promise)return t7(F)?F.then(()=>{x(V,A,!0)}):F;m(V,A,F,P,$)}));return v(V,A,$,P)}return h(V,A,U,P)},b=(V,A)=>{const U=d(V,A);if(U){const P={...U,y:!1};f(V,A,P)}else(el&&"production")!=="production"&&console.warn("[Bug] could not invalidate non existing atom",A)},x=(V,A,U)=>{if(!U){const $=d(V,A);if($){if($.y&&"p"in $&&!$3($.p))return $;if($.d.forEach((F,N)=>{if(N!==A)if(!n.has(N))x(V,N);else{const ne=d(V,N);ne&&!ne.y&&x(V,N)}}),Array.from($.d).every(([F,N])=>{const ne=d(V,F);return ne&&!("p"in ne)&&ne.r===N}))return $.y?$:{...$,y:!0}}}const P=new Set;try{const $=A.read(F=>{P.add(F);const N=F===A?d(V,F):x(V,F);if(N){if("e"in N)throw N.e;if("p"in N)throw N.p;return N.v}if(M3(F))return F.init;throw new Error("no atom init")});return g(V,A,$,P)}catch($){if($ instanceof Promise){const F=t7($)&&$3($)?Z6e($):n7($,$);return v(V,A,F,P)}return m(V,A,$,P)}},w=(V,A)=>x(A,V),k=(V,A)=>{let U=n.get(A);return U||(U=M(V,A)),U},E=(V,A)=>!A.l.size&&(!A.t.size||A.t.size===1&&A.t.has(V)),j=(V,A)=>{const U=n.get(A);U&&E(A,U)&&L(V,A)},T=(V,A)=>{const U=n.get(A);U==null||U.t.forEach(P=>{P!==A&&(b(V,P),T(V,P))})},C=(V,A,U)=>{let P=!0;const $=(ne,z)=>{const Z=x(V,ne);if("e"in Z)throw Z.e;if("p"in Z){if(z!=null&&z.unstable_promise)return Z.p.then(()=>{const se=d(V,ne);return se&&"p"in se&&se.p===Z.p?new Promise(X=>setTimeout(X)).then(()=>$(ne,z)):$(ne,z)});throw(el&&"production")!=="production"&&console.info("Reading pending atom state in write operation. We throw a promise for now.",ne),Z.p}if("v"in Z)return Z.v;throw(el&&"production")!=="production"&&console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",ne),new Error("no value found")},F=(ne,z)=>{let Z;if(ne===A){if(!M3(ne))throw new Error("atom not writable");l(ne).forEach(le=>{le!==V&&g(le,ne,z)});const X=d(V,ne),re=g(V,ne,z);X!==re&&T(V,ne)}else Z=C(V,ne,z);return P||W(V),Z},N=A.write($,F,U);return P=!1,N},D=(V,A,U)=>{const P=C(U,V,A);return W(U),P},R=V=>!!V.write,M=(V,A,U)=>{const P={t:new Set(U&&[U]),l:new Set};if(n.set(A,P),(el&&"production")!=="production"&&o.add(A),x(void 0,A).d.forEach((F,N)=>{const ne=n.get(N);ne?ne.t.add(A):N!==A&&M(V,N,A)}),R(A)&&A.onMount){const F=ne=>D(A,ne,V),N=A.onMount(F);V=void 0,N&&(P.u=N)}return P},L=(V,A)=>{var U;const P=(U=n.get(A))==null?void 0:U.u;P&&P(),n.delete(A),(el&&"production")!=="production"&&o.delete(A);const $=d(V,A);$?("p"in $&&xw($.p),$.d.forEach((F,N)=>{if(N!==A){const ne=n.get(N);ne&&(ne.t.delete(A),E(N,ne)&&L(V,N))}})):(el&&"production")!=="production"&&console.warn("[Bug] could not find atom state to unmount",A)},B=(V,A,U,P)=>{const $=new Set(U.d.keys());P==null||P.forEach((F,N)=>{if($.has(N)){$.delete(N);return}const ne=n.get(N);ne&&(ne.t.delete(A),E(N,ne)&&L(V,N))}),$.forEach(F=>{const N=n.get(F);N?N.t.add(A):n.has(A)&&M(V,F,A)})},W=V=>{if(V){u(V).forEach((U,P)=>{const $=t.get(P);if(U!==$){const F=n.get(P);F==null||F.l.forEach(N=>N(V))}});return}for(;r.size;){const A=Array.from(r);r.clear(),A.forEach(([U,P])=>{const $=d(void 0,U);if($&&$.d!==(P==null?void 0:P.d)&&B(void 0,U,$,P==null?void 0:P.d),P&&!P.y&&($!=null&&$.y))return;const F=n.get(U);F==null||F.l.forEach(N=>N())})}(el&&"production")!=="production"&&i.forEach(A=>A())},ee=V=>{u(V).forEach((U,P)=>{const $=t.get(P);(!$||U.r>$.r||U.y!==$.y||U.r===$.r&&U.d!==$.d)&&(t.set(P,U),U.d!==($==null?void 0:$.d)&&B(V,P,U,$==null?void 0:$.d))})},G=(V,A)=>{A&&ee(A),W(void 0)},Y=(V,A,U)=>{const $=k(U,V).l;return $.add(A),()=>{$.delete(A),j(U,V)}},q=(V,A)=>{for(const[U,P]of V)M3(U)&&(g(A,U,P),T(A,U));W(A)};return(el&&"production")!=="production"?{[r7]:w,[i7]:D,[kw]:G,[o7]:Y,[AW]:q,[Q6e]:V=>(i.add(V),()=>{i.delete(V)}),[J6e]:()=>o.values(),[eTe]:V=>t.get(V),[tTe]:V=>n.get(V)}:{[r7]:w,[i7]:D,[kw]:G,[o7]:Y,[AW]:q}},OW=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:nTe(e)}),a7=new Map,s7=e=>(a7.has(e)||a7.set(e,O.createContext(OW())),a7.get(e)),rTe=({children:e,initialValues:t,scope:n,unstable_createStore:r,unstable_enableVersionedWrite:i})=>{const[o,a]=O.useState({});O.useEffect(()=>{const c=s.current;c.w&&(c.s[kw](null,o),delete o.p,c.v=o)},[o]);const s=O.useRef();if(!s.current){const c=OW(t,r);if(i){let u=0;c.w=d=>{a(f=>{const p=u?f:{p:f};return d(p),p})},c.v=o,c.r=d=>{++u,d(),--u}}s.current=c}const l=s7(n);return O.createElement(l.Provider,{value:s.current},e)};function jW(e,t){return Y6e(e)}function DW(e,t){const n=s7(t),r=O.useContext(n),{s:i,v:o}=r,a=f=>{const p=i[r7](e,f);if((el&&"production")!=="production"&&!p.y)throw new Error("should not be invalidated");if("e"in p)throw p.e;if("p"in p)throw p.p;if("v"in p)return p.v;throw new Error("no atom value")},[[s,l,c],u]=O.useReducer((f,p)=>{const h=a(p);return Object.is(f[1],h)&&f[2]===e?f:[p,h,e]},o,f=>{const p=a(f);return[f,p,e]});let d=l;return c!==e&&(u(s),d=a(s)),O.useEffect(()=>{const{v:f}=r;f&&i[kw](e,f);const p=i[o7](e,u,f);return u(f),p},[i,e,r]),O.useEffect(()=>{i[kw](e,s)}),O.useDebugValue(d),d}function IW(e,t){const n=s7(t),{s:r,w:i}=O.useContext(n);return O.useCallback(a=>{if((el&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");const s=l=>r[i7](e,a,l);return i?i(s):s()},[r,i,e])}function PW(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[DW(e,t),IW(e,t)]}let l7=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function c7(){return c7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c7.apply(null,arguments)}var $W=["shift","alt","meta","mod","ctrl"],iTe={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function wh(e){return(e&&iTe[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function oTe(e){return $W.includes(e)}function u7(e,t){return t===void 0&&(t=","),e.split(t)}function d7(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return wh(a)}),i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},o=r.filter(function(a){return!$W.includes(a)});return c7({},i,{keys:o,description:n,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&RW([wh(e.key),wh(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&MW([wh(e.key),wh(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){_h.clear()})})();var _h=new Set;function f7(e){return Array.isArray(e)}function aTe(e,t){t===void 0&&(t=",");var n=f7(e)?e:e.split(t);return n.every(function(r){return _h.has(r.trim().toLowerCase())})}function RW(e){var t=Array.isArray(e)?e:[e];_h.has("meta")&&_h.forEach(function(n){return!oTe(n)&&_h.delete(n.toLowerCase())}),t.forEach(function(n){return _h.add(n.toLowerCase())})}function MW(e){var t=Array.isArray(e)?e:[e];e==="meta"?_h.clear():t.forEach(function(n){return _h.delete(n.toLowerCase())})}function sTe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function lTe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function cTe(e){return NW(e,["input","textarea","select"])}function NW(e,t){t===void 0&&(t=!1);var n=e.target,r=e.composed,i=null;return uTe(n)&&r?i=e.composedPath()[0]&&e.composedPath()[0].tagName:i=n&&n.tagName,f7(t)?!!(i&&t&&t.some(function(o){var a;return o.toLowerCase()===((a=i)==null?void 0:a.toLowerCase())})):!!(i&&t&&t)}function uTe(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function dTe(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var fTe=function(t,n,r){r===void 0&&(r=!1);var i=n.alt,o=n.meta,a=n.mod,s=n.shift,l=n.ctrl,c=n.keys,u=t.key,d=t.code,f=t.ctrlKey,p=t.metaKey,h=t.shiftKey,m=t.altKey,v=wh(d),g=u.toLowerCase();if(!(c!=null&&c.includes(v))&&!(c!=null&&c.includes(g))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(i===!m&&g!=="alt"||s===!h&&g!=="shift")return!1;if(a){if(!p&&!f)return!1}else if(o===!p&&g!=="meta"&&g!=="os"||l===!f&&g!=="ctrl"&&g!=="control")return!1}return c&&c.length===1&&(c.includes(g)||c.includes(v))?!0:c?aTe(c):!c},hTe=O.createContext(void 0),pTe=function(){return O.useContext(hTe)};function LW(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&LW(e[r],t[r])},!0):e===t}var mTe=O.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),gTe=function(){return O.useContext(mTe)};function vTe(e){var t=O.useRef(void 0);return LW(t.current,e)||(t.current=e),t.current}var FW=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},yTe=typeof window<"u"?O.useLayoutEffect:O.useEffect;function _1(e,t,n,r){var i=O.useState(null),o=i[0],a=i[1],s=O.useRef(!1),l=n instanceof Array?r instanceof Array?void 0:r:n,c=f7(e)?e.join(l==null?void 0:l.splitKey):e,u=n instanceof Array?n:r instanceof Array?r:void 0,d=O.useCallback(t,u??[]),f=O.useRef(d);u?f.current=d:f.current=t;var p=vTe(l),h=gTe(),m=h.enabledScopes,v=pTe();return yTe(function(){if(!((p==null?void 0:p.enabled)===!1||!dTe(m,p==null?void 0:p.scopes))){var g=function(E,j){var T;if(j===void 0&&(j=!1),!(cTe(E)&&!NW(E,p==null?void 0:p.enableOnFormTags))){if(o!==null){var C=o.getRootNode();if((C instanceof Document||C instanceof ShadowRoot)&&C.activeElement!==o&&!o.contains(C.activeElement)){FW(E);return}}(T=E.target)!=null&&T.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||u7(c,p==null?void 0:p.splitKey).forEach(function(D){var R,M=d7(D,p==null?void 0:p.combinationKey);if(fTe(E,M,p==null?void 0:p.ignoreModifiers)||(R=M.keys)!=null&&R.includes("*")){if(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(E)||j&&s.current)return;if(sTe(E,M,p==null?void 0:p.preventDefault),!lTe(E,M,p==null?void 0:p.enabled)){FW(E);return}f.current(E,M),j||(s.current=!0)}})}},b=function(E){E.key!==void 0&&(RW(wh(E.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&g(E))},x=function(E){E.key!==void 0&&(MW(wh(E.code)),s.current=!1,p!=null&&p.keyup&&g(E,!0))},w=o||(l==null?void 0:l.document)||document;return w.addEventListener("keyup",x),w.addEventListener("keydown",b),v&&u7(c,p==null?void 0:p.splitKey).forEach(function(k){return v.addHotkey(d7(k,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){w.removeEventListener("keyup",x),w.removeEventListener("keydown",b),v&&u7(c,p==null?void 0:p.splitKey).forEach(function(k){return v.removeHotkey(d7(k,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[o,c,p,m]),a}function ea(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var i=ATe[e],o=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Nm(e){return!!e&&!!e[li]}function Fd(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===OTe}(e)||Array.isArray(e)||!!e[KW]||!!(!((t=e.constructor)===null||t===void 0)&&t[KW])||p7(e)||m7(e))}function x1(e,t,n){n===void 0&&(n=!1),k1(e)===0?(n?Object.keys:C7)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function k1(e){var t=e[li];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p7(e)?2:m7(e)?3:0}function h7(e,t){return k1(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bTe(e,t){return k1(e)===2?e.get(t):e[t]}function BW(e,t,n){var r=k1(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function wTe(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function p7(e){return STe&&e instanceof Map}function m7(e){return TTe&&e instanceof Set}function ta(e){return e.o||e.t}function g7(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=jTe(e);delete t[li];for(var n=C7(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function v7(e,t){return t===void 0&&(t=!1),y7(e)||Nm(e)||!Fd(e)||(k1(e)>1&&(e.set=e.add=e.clear=e.delete=_Te),Object.freeze(e),t&&x1(e,function(n,r){return v7(r,!0)},!0)),e}function _Te(){ea(2)}function y7(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ku(e){var t=S7[e];return t||ea(18,e),t}function xTe(e,t){S7[e]||(S7[e]=t)}function N3(){return process.env.NODE_ENV==="production"||E1||ea(0),E1}function b7(e,t){t&&(ku("Patches"),e.u=[],e.s=[],e.v=t)}function L3(e){w7(e),e.p.forEach(kTe),e.p=null}function w7(e){e===E1&&(E1=e.l)}function zW(e){return E1={p:[],l:E1,h:e,m:!0,_:0}}function kTe(e){var t=e[li];t.i===0||t.i===1?t.j():t.g=!0}function _7(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||ku("ES5").S(t,e,r),r?(n[li].P&&(L3(t),ea(4)),Fd(e)&&(e=F3(t,e),t.l||B3(t,e)),t.u&&ku("Patches").M(n[li].t,e,t.u,t.s)):e=F3(t,n,[]),L3(t),t.u&&t.v(t.u,t.s),e!==GW?e:void 0}function F3(e,t,n){if(y7(t))return t;var r=t[li];if(!r)return x1(t,function(s,l){return HW(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return B3(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=g7(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),x1(o,function(s,l){return HW(e,r,i,s,l,n,a)}),B3(e,i,!1),n&&e.u&&ku("Patches").N(r,n,e.u,e.s)}return r.o}function HW(e,t,n,r,i,o,a){if(process.env.NODE_ENV!=="production"&&i===n&&ea(5),Nm(i)){var s=F3(e,i,o&&t&&t.i!==3&&!h7(t.R,r)?o.concat(r):void 0);if(BW(n,r,s),!Nm(s))return;e.m=!1}else a&&n.add(i);if(Fd(i)&&!y7(i)){if(!e.h.D&&e._<1)return;F3(e,i),t&&t.A.l||B3(e,i)}}function B3(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&v7(t,n)}function x7(e,t){var n=e[li];return(n?ta(n):e)[t]}function UW(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Bd(e){e.P||(e.P=!0,e.l&&Bd(e.l))}function k7(e){e.o||(e.o=g7(e.t))}function Ew(e,t,n){var r=p7(t)?ku("MapSet").F(t,n):m7(t)?ku("MapSet").T(t,n):e.O?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:N3(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,c=T7;a&&(l=[s],c=Cw);var u=Proxy.revocable(l,c),d=u.revoke,f=u.proxy;return s.k=f,s.j=d,f}(t,n):ku("ES5").J(t,n);return(n?n.A:N3()).p.push(r),r}function ETe(e){return Nm(e)||ea(22,e),function t(n){if(!Fd(n))return n;var r,i=n[li],o=k1(n);if(i){if(!i.P&&(i.i<4||!ku("ES5").K(i)))return i.t;i.I=!0,r=VW(n,o),i.I=!1}else r=VW(n,o);return x1(r,function(a,s){i&&bTe(i.t,a)===s||BW(r,a,t(s))}),o===3?new Set(r):r}(e)}function VW(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g7(e)}function CTe(){function e(s,l){function c(){this.constructor=s}i(s,l),s.prototype=(c.prototype=l.prototype,new c)}function t(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function n(s){s.o||(s.o=new Set,s.t.forEach(function(l){if(Fd(l)){var c=Ew(s.A.h,l,s);s.p.set(l,c),s.o.add(c)}else s.o.add(l)}))}function r(s){s.g&&ea(3,JSON.stringify(ta(s)))}var i=function(s,l){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])})(s,l)},o=function(){function s(c,u){return this[li]={i:2,l:u,A:u?u.A:N3(),P:!1,I:!1,o:void 0,R:void 0,t:c,k:this,C:!1,g:!1},this}e(s,Map);var l=s.prototype;return Object.defineProperty(l,"size",{get:function(){return ta(this[li]).size}}),l.has=function(c){return ta(this[li]).has(c)},l.set=function(c,u){var d=this[li];return r(d),ta(d).has(c)&&ta(d).get(c)===u||(t(d),Bd(d),d.R.set(c,!0),d.o.set(c,u),d.R.set(c,!0)),this},l.delete=function(c){if(!this.has(c))return!1;var u=this[li];return r(u),t(u),Bd(u),u.t.has(c)?u.R.set(c,!1):u.R.delete(c),u.o.delete(c),!0},l.clear=function(){var c=this[li];r(c),ta(c).size&&(t(c),Bd(c),c.R=new Map,x1(c.t,function(u){c.R.set(u,!1)}),c.o.clear())},l.forEach=function(c,u){var d=this;ta(this[li]).forEach(function(f,p){c.call(u,d.get(p),p,d)})},l.get=function(c){var u=this[li];r(u);var d=ta(u).get(c);if(u.I||!Fd(d)||d!==u.t.get(c))return d;var f=Ew(u.A.h,d,u);return t(u),u.o.set(c,f),f},l.keys=function(){return ta(this[li]).keys()},l.values=function(){var c,u=this,d=this.keys();return(c={})[z3]=function(){return u.values()},c.next=function(){var f=d.next();return f.done?f:{done:!1,value:u.get(f.value)}},c},l.entries=function(){var c,u=this,d=this.keys();return(c={})[z3]=function(){return u.entries()},c.next=function(){var f=d.next();if(f.done)return f;var p=u.get(f.value);return{done:!1,value:[f.value,p]}},c},l[z3]=function(){return this.entries()},s}(),a=function(){function s(c,u){return this[li]={i:3,l:u,A:u?u.A:N3(),P:!1,I:!1,o:void 0,t:c,k:this,p:new Map,g:!1,C:!1},this}e(s,Set);var l=s.prototype;return Object.defineProperty(l,"size",{get:function(){return ta(this[li]).size}}),l.has=function(c){var u=this[li];return r(u),u.o?!!u.o.has(c)||!(!u.p.has(c)||!u.o.has(u.p.get(c))):u.t.has(c)},l.add=function(c){var u=this[li];return r(u),this.has(c)||(n(u),Bd(u),u.o.add(c)),this},l.delete=function(c){if(!this.has(c))return!1;var u=this[li];return r(u),n(u),Bd(u),u.o.delete(c)||!!u.p.has(c)&&u.o.delete(u.p.get(c))},l.clear=function(){var c=this[li];r(c),ta(c).size&&(n(c),Bd(c),c.o.clear())},l.values=function(){var c=this[li];return r(c),n(c),c.o.values()},l.entries=function(){var c=this[li];return r(c),n(c),c.o.entries()},l.keys=function(){return this.values()},l[z3]=function(){return this.values()},l.forEach=function(c,u){for(var d=this.values(),f=d.next();!f.done;)c.call(u,f.value,f.value,this),f=d.next()},s}();xTe("MapSet",{F:function(s,l){return new o(s,l)},T:function(s,l){return new a(s,l)}})}var qW,E1,E7=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",STe=typeof Map<"u",TTe=typeof Set<"u",WW=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",GW=E7?Symbol.for("immer-nothing"):((qW={})["immer-nothing"]=!0,qW),KW=E7?Symbol.for("immer-draftable"):"__$immer_draftable",li=E7?Symbol.for("immer-state"):"__$immer_state",z3=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",ATe={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},OTe=""+Object.prototype.constructor,C7=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,jTe=Object.getOwnPropertyDescriptors||function(e){var t={};return C7(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},S7={},T7={get:function(e,t){if(t===li)return e;var n=ta(e);if(!h7(n,t))return function(i,o,a){var s,l=UW(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Fd(r)?r:r===x7(e.t,t)?(k7(e),e.o[t]=Ew(e.A.h,r,e)):r},has:function(e,t){return t in ta(e)},ownKeys:function(e){return Reflect.ownKeys(ta(e))},set:function(e,t,n){var r=UW(ta(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=x7(ta(e),t),o=i==null?void 0:i[li];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(wTe(n,i)&&(n!==void 0||h7(e.t,t)))return!0;k7(e),Bd(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return x7(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,k7(e),Bd(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ta(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ea(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ea(12)}},Cw={};x1(T7,function(e,t){Cw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Cw.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ea(13),Cw.set.call(this,e,t,void 0)},Cw.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ea(14),T7.set.call(this,e[0],t,n,e[0])};var DTe=function(){function e(n){var r=this;this.O=WW,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(m){var v=this;m===void 0&&(m=s);for(var g=arguments.length,b=Array(g>1?g-1:0),x=1;x<g;x++)b[x-1]=arguments[x];return l.produce(m,function(w){var k;return(k=o).call.apply(k,[v,w].concat(b))})}}var c;if(typeof o!="function"&&ea(6),a!==void 0&&typeof a!="function"&&ea(7),Fd(i)){var u=zW(r),d=Ew(r,i,void 0),f=!0;try{c=o(d),f=!1}finally{f?L3(u):w7(u)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(m){return b7(u,a),_7(m,u)},function(m){throw L3(u),m}):(b7(u,a),_7(c,u))}if(!i||typeof i!="object"){if((c=o(i))===void 0&&(c=i),c===GW&&(c=void 0),r.D&&v7(c,!0),a){var p=[],h=[];ku("Patches").M(i,c,p,h),a(p,h)}return c}ea(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];return r.produceWithPatches(c,function(p){return i.apply(void 0,[p].concat(d))})};var a,s,l=r.produce(i,o,function(c,u){a=c,s=u});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,a,s]}):[l,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Fd(n)||ea(8),Nm(n)&&(n=ETe(n));var r=zW(this),i=Ew(this,n,void 0);return i[li].C=!0,w7(r),i},t.finishDraft=function(n,r){var i=n&&n[li];process.env.NODE_ENV!=="production"&&(i&&i.C||ea(9),i.I&&ea(10));var o=i.A;return b7(o,r),_7(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!WW&&ea(20),this.O=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=ku("Patches").$;return Nm(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),tl=new DTe,H3=tl.produce;tl.produceWithPatches.bind(tl);var ITe=tl.setAutoFreeze.bind(tl);tl.setUseProxies.bind(tl),tl.applyPatches.bind(tl);var YW=tl.createDraft.bind(tl),ZW=tl.finishDraft.bind(tl);const PTe=Symbol(),XW=Symbol(),Sw="a",Tw="w";let $Te=(e,t)=>new Proxy(e,t);const A7=Object.getPrototypeOf,QW=new WeakMap,RTe=e=>e&&(QW.has(e)?QW.get(e):A7(e)===Object.prototype||A7(e)===Array.prototype),U3=e=>typeof e=="object"&&e!==null,MTe=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(n=>{n.configurable=!0}),Object.create(A7(e),t)},O7=e=>e[XW]||e,JW=(e,t,n,r)=>{if(!RTe(e))return e;let i=r&&r.get(e);if(!i){const l=O7(e);i=(c=>Object.values(Object.getOwnPropertyDescriptors(c)).some(u=>!u.configurable&&!u.writable))(l)?[l,MTe(l)]:[l],r==null||r.set(e,i)}const[o,a]=i;let s=n&&n.get(o);return s&&s[1].f===!!a||(s=((l,c)=>{const u={f:c};let d=!1;const f=(h,m)=>{if(!d){let v=u[Sw].get(l);if(v||(v={},u[Sw].set(l,v)),h===Tw)v[Tw]=!0;else{let g=v[h];g||(g=new Set,v[h]=g),g.add(m)}}},p={get:(h,m)=>m===XW?l:(f("k",m),JW(Reflect.get(h,m),u[Sw],u.c,u.t)),has:(h,m)=>m===PTe?(d=!0,u[Sw].delete(l),!0):(f("h",m),Reflect.has(h,m)),getOwnPropertyDescriptor:(h,m)=>(f("o",m),Reflect.getOwnPropertyDescriptor(h,m)),ownKeys:h=>(f(Tw),Reflect.ownKeys(h))};return c&&(p.set=p.deleteProperty=()=>!1),[p,u]})(o,!!a),s[1].p=$Te(a||o,s[0]),n&&n.set(o,s)),s[1][Sw]=t,s[1].c=n,s[1].t=r,s[1].p},j7=(e,t,n,r,i=Object.is)=>{if(i(e,t))return!1;if(!U3(e)||!U3(t))return!0;const o=n.get(O7(e));if(!o)return!0;if(r){const s=r.get(e);if(s&&s.n===t)return s.g;r.set(e,{n:t,g:!1})}let a=null;try{for(const s of o.h||[])if(a=Reflect.has(e,s)!==Reflect.has(t,s),a)return a;if(o[Tw]===!0){if(a=((s,l)=>{const c=Reflect.ownKeys(s),u=Reflect.ownKeys(l);return c.length!==u.length||c.some((d,f)=>d!==u[f])})(e,t),a)return a}else for(const s of o.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,s)!=!!Reflect.getOwnPropertyDescriptor(t,s),a)return a;for(const s of o.k||[])if(a=j7(e[s],t[s],n,r,i),a)return a;return a===null&&(a=!0),a}finally{r&&r.set(e,{n:t,g:a})}},NTe=(e,t,n)=>{const r=[],i=new WeakSet,o=(a,s)=>{if(i.has(a))return;U3(a)&&i.add(a);const l=U3(a)&&t.get(O7(a));if(l){var c,u;if((c=l.h)==null||c.forEach(f=>{const p=`:has(${String(f)})`;r.push(s?[...s,p]:[p])}),l[Tw]===!0){const f=":ownKeys";r.push(s?[...s,f]:[f])}else{var d;(d=l.o)==null||d.forEach(f=>{const p=`:hasOwn(${String(f)})`;r.push(s?[...s,p]:[p])})}(u=l.k)==null||u.forEach(f=>{o(a[f],s?[...s,f]:[f])})}else s&&r.push(s)};return o(e),r},LTe=(e,t)=>{const n=O.useRef();O.useEffect(()=>{n.current=NTe(e,t)}),O.useDebugValue(e)},FTe=e=>()=>{const[,n]=O.useReducer(u=>u+1,0),r=new WeakMap,i=O.useRef(),o=O.useRef(),a=O.useRef();O.useEffect(()=>{i.current=r,o.current!==a.current&&j7(o.current,a.current,r,new WeakMap)&&(o.current=a.current,n())});const s=O.useCallback(u=>(a.current=u,o.current&&o.current!==u&&i.current&&!j7(o.current,u,i.current,new WeakMap)?o.current:(o.current=u,u)),[]),l=e(s);typeof process=="object"&&process.env.NODE_ENV!=="production"&<e(l,r);const c=O.useMemo(()=>new WeakMap,[]);return JW(l,r,c)};function BTe(e){let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(d!==t){const f=t;t=u?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},i=()=>t,o=(c,u=i,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(t);function p(){const h=u(t);if(!d(f,h)){const m=f;c(f=h,m)}}return n.add(p),()=>n.delete(p)},l={setState:r,getState:i,subscribe:(c,u,d)=>u||d?o(c,u,d):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,i,l),l}const eG=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?O.useEffect:O.useLayoutEffect;function zTe(e){const t=typeof e=="function"?BTe(e):e,n=(r=t.getState,i=Object.is)=>{const[,o]=O.useReducer(v=>v+1,0),a=t.getState(),s=O.useRef(a),l=O.useRef(r),c=O.useRef(i),u=O.useRef(!1),d=O.useRef();d.current===void 0&&(d.current=r(a));let f,p=!1;(s.current!==a||l.current!==r||c.current!==i||u.current)&&(f=r(a),p=!i(d.current,f)),eG(()=>{p&&(d.current=f),s.current=a,l.current=r,c.current=i,u.current=!1});const h=O.useRef(a);eG(()=>{const v=()=>{try{const b=t.getState(),x=l.current(b);c.current(d.current,x)||(s.current=b,d.current=x,o())}catch{u.current=!0,o()}},g=t.subscribe(v);return t.getState()!==h.current&&v(),g},[]);const m=p?f:d.current;return O.useDebugValue(m),m};return Object.assign(n,t),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const r=[n,t];return{next(){const i=r.length<=0;return{value:r.shift(),done:i}}}},n}const HTe={};function UTe(e,t){return(n,r,i)=>{var o;let a=!1;typeof t=="string"&&!a&&(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=t===void 0?{name:void 0,anonymousActionType:void 0}:typeof t=="string"?{name:t}:t;typeof((o=s==null?void 0:s.serialize)==null?void 0:o.options)<"u"&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");let l;try{l=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return(HTe&&"production")!=="production"&&typeof window<"u"&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);let c=Object.create(l.connect(s)),u=!1;Object.defineProperty(i,"devtools",{get:()=>(u||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),u=!0),c),set:m=>{u||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),u=!0),c=m}});let d=!1;Object.defineProperty(c,"prefix",{get:()=>(d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0),""),set:()=>{d||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),d=!0)}});let f=!0;i.setState=(m,v,g)=>{n(m,v),f&&c.send(g===void 0?{type:s.anonymousActionType||"anonymous"}:typeof g=="string"?{type:g}:g,r())};const p=(...m)=>{const v=f;f=!1,n(...m),f=v},h=e(i.setState,r,i);if(c.init(h),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let m=!1;const v=i.dispatch;i.dispatch=(...g)=>{g[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),v(...g)}}return c.subscribe(m=>{var v;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return D7(m.payload,g=>{if(g.type==="__setState"){p(g.state);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(g)});case"DISPATCH":switch(m.payload.type){case"RESET":return p(h),c.init(i.getState());case"COMMIT":return c.init(i.getState());case"ROLLBACK":return D7(m.state,g=>{p(g),c.init(i.getState())});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return D7(m.state,g=>{p(g)});case"IMPORT_STATE":{const{nextLiftedState:g}=m.payload,b=(v=g.computedStates.slice(-1)[0])==null?void 0:v.state;if(!b)return;p(b),c.send(null,g);return}case"PAUSE_RECORDING":return f=!f}return}}),h}}const D7=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};var VTe=Object.defineProperty,tG=Object.getOwnPropertySymbols,qTe=Object.prototype.hasOwnProperty,WTe=Object.prototype.propertyIsEnumerable,nG=(e,t,n)=>t in e?VTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C1=(e,t)=>{for(var n in t||(t={}))qTe.call(t,n)&&nG(e,n,t[n]);if(tG)for(var n of tG(t))WTe.call(t,n)&&nG(e,n,t[n]);return e};const V3=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return V3(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return V3(r)(n)}}}},GTe=(e,t)=>(n,r,i)=>{let o=C1({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,g)=>C1(C1({},g),v)},t);(o.blacklist||o.whitelist)&&console.warn(`The ${o.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let a=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(c)c.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${o.name}' does not contain a 'removeItem' method, which will be required in v4.`);else return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=V3(o.serialize),d=()=>{const v=o.partialize(C1({},r()));o.whitelist&&Object.keys(v).forEach(x=>{var w;!((w=o.whitelist)!=null&&w.includes(x))&&delete v[x]}),o.blacklist&&o.blacklist.forEach(x=>delete v[x]);let g;const b=u({state:v,version:o.version}).then(x=>c.setItem(o.name,x)).catch(x=>{g=x});if(g)throw g;return b},f=i.setState;i.setState=(v,g)=>{f(v,g),d()};const p=e((...v)=>{n(...v),d()},r,i);let h;const m=()=>{var v;if(!c)return;a=!1,s.forEach(b=>b(r()));const g=((v=o.onRehydrateStorage)==null?void 0:v.call(o,r()))||void 0;return V3(c.getItem.bind(c))(o.name).then(b=>{if(b)return o.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return o.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var x;return h=o.merge(b,(x=r())!=null?x:p),n(h,!0),d()}).then(()=>{g==null||g(h,void 0),a=!0,l.forEach(b=>b(h))}).catch(b=>{g==null||g(void 0,b)})};return i.persist={setOptions:v=>{o=C1(C1({},o),v),v.getStorage&&(c=v.getStorage())},clearStorage:()=>{var v;(v=c==null?void 0:c.removeItem)==null||v.call(c,o.name)},rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},m(),h||p};function KTe(e){let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(d!==t){const f=t;t=u?d:Object.assign({},t,d),n.forEach(p=>p(t,f))}},i=()=>t,o=(c,u=i,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let f=u(t);function p(){const h=u(t);if(!d(f,h)){const m=f;c(f=h,m)}}return n.add(p),()=>n.delete(p)},l={setState:r,getState:i,subscribe:(c,u,d)=>u||d?o(c,u,d):(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,i,l),l}const YTe=(e,t)=>{const n={};return Object.keys(e.getState()).forEach(r=>{n[r]=i=>{if(e.getState()[r]===i)return;const a=r.replace(/^\S/,s=>s.toUpperCase());e.setState(s=>{s[r]=i},`@@${t}/set${a}`)}}),n},ZTe=(e,t)=>{const n=e(t.set,t.get,t);return{...t,set:{...t.set,...n}}},XTe=(e,t)=>{const n={...t.use},r={...t.useTracked},i={...t.get};return Object.keys(e(t.store.getState(),t.get,t)).forEach(o=>{n[o]=(...a)=>t.useStore(s=>{const c=e(s,t.get,t)[o];return c(...a)}),r[o]=(...a)=>{const s=t.useTrackedStore(),c=e(s,t.get,t)[o];return c(...a)},i[o]=(...a)=>{const l=e(t.store.getState(),t.get,t)[o];return l(...a)}}),{...t,get:i,use:n,useTracked:r}},I7=e=>({...e,extendSelectors:t=>I7(XTe(t,e)),extendActions:t=>I7(ZTe(t,e))}),QTe=e=>{const t={};return Object.keys(e.getState()).forEach(n=>{t[n]=()=>e.getState()[n]}),t},JTe=e=>{const t={};return Object.keys(e.getState()).forEach(n=>{t[n]=r=>e(i=>i[n],r)}),t},e9e=(e,t)=>{const n={};return Object.keys(e.getState()).forEach(r=>{n[r]=()=>t()[r]}),n},t9e=e=>(t,n,r)=>{const i=(o,a)=>t(H3(o),!0,a);return r.setState=i,e(i,n,r)};function n9e(e,...t){return t.reduce((n,r)=>r(n),e)}const xh=e=>(t,n={})=>{var r;const{middlewares:i=[],devtools:o,persist:a,immer:s}=n;ITe((r=s==null?void 0:s.enabledAutoFreeze)!==null&&r!==void 0?r:!1),s!=null&&s.enableMapSet&&CTe();const l=[t9e,...i];if(a!=null&&a.enabled){var c;const k={...a,name:(c=a.name)!==null&&c!==void 0?c:e};l.push(E=>GTe(E,k))}o!=null&&o.enabled&&l.push(k=>UTe(k,{...o,name:e})),l.push(KTe);const d=(k=>n9e(k,...l))(()=>t),f=zTe(d),p=YTe(f,e),h=(k,E)=>{d.setState(j=>{Object.assign(j,k)},E||`@@${e}/mergeState`)},m=(k,E)=>{d.setState(k,E||`@@${e}/setState`)},v=JTe(f),g=QTe(f),b=FTe(f),x=e9e(f,b),w={get:{state:d.getState,...g},name:e,set:{state:m,mergeState:h,...p},store:d,use:v,useTracked:x,useStore:f,useTrackedStore:b,extendSelectors:()=>w,extendActions:()=>w};return I7(w)};var q3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rG(e,t){return t={exports:{}},e(t,t.exports),t.exports}var r9e=typeof q3=="object"&&q3&&q3.Object===Object&&q3,iG=r9e,i9e=typeof self=="object"&&self&&self.Object===Object&&self,o9e=iG||i9e||Function("return this")(),zd=o9e,a9e=zd.Symbol,kh=a9e,oG=Object.prototype,s9e=oG.hasOwnProperty,l9e=oG.toString,Aw=kh?kh.toStringTag:void 0;function c9e(e){var t=s9e.call(e,Aw),n=e[Aw];try{e[Aw]=void 0;var r=!0}catch{}var i=l9e.call(e);return r&&(t?e[Aw]=n:delete e[Aw]),i}var u9e=c9e,d9e=Object.prototype,f9e=d9e.toString;function h9e(e){return f9e.call(e)}var p9e=h9e,m9e="[object Null]",g9e="[object Undefined]",aG=kh?kh.toStringTag:void 0;function v9e(e){return e==null?e===void 0?g9e:m9e:aG&&aG in Object(e)?u9e(e):p9e(e)}var W3=v9e;function y9e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var sG=y9e,b9e="[object AsyncFunction]",w9e="[object Function]",_9e="[object GeneratorFunction]",x9e="[object Proxy]";function k9e(e){if(!sG(e))return!1;var t=W3(e);return t==w9e||t==_9e||t==b9e||t==x9e}var E9e=k9e,C9e=zd["__core-js_shared__"],P7=C9e,lG=function(){var e=/[^.]+$/.exec(P7&&P7.keys&&P7.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function S9e(e){return!!lG&&lG in e}var T9e=S9e,A9e=Function.prototype,O9e=A9e.toString;function j9e(e){if(e!=null){try{return O9e.call(e)}catch{}try{return e+""}catch{}}return""}var Lm=j9e,D9e=/[\\^$.*+?()[\]{}|]/g,I9e=/^\[object .+?Constructor\]$/,P9e=Function.prototype,$9e=Object.prototype,R9e=P9e.toString,M9e=$9e.hasOwnProperty,N9e=RegExp("^"+R9e.call(M9e).replace(D9e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L9e(e){if(!sG(e)||T9e(e))return!1;var t=E9e(e)?N9e:I9e;return t.test(Lm(e))}var F9e=L9e;function B9e(e,t){return e==null?void 0:e[t]}var z9e=B9e;function H9e(e,t){var n=z9e(e,t);return F9e(n)?n:void 0}var Fm=H9e;(function(){try{var e=Fm(Object,"defineProperty");return e({},"",{}),e}catch{}})();function U9e(e){return e!=null&&typeof e=="object"}var cG=U9e,V9e="[object Arguments]";function q9e(e){return cG(e)&&W3(e)==V9e}var uG=q9e,dG=Object.prototype,W9e=dG.hasOwnProperty,G9e=dG.propertyIsEnumerable;uG(function(){return arguments}());function K9e(){return!1}var Y9e=K9e;rG(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,o=i?zd.Buffer:void 0,a=o?o.isBuffer:void 0,s=a||Y9e;e.exports=s});var fG=rG(function(e,t){var n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,o=i&&iG.process,a=function(){try{var s=r&&r.require&&r.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a});fG&&fG.isTypedArray;function Z9e(){this.__data__=[],this.size=0}var X9e=Z9e;function Q9e(e,t){return e===t||e!==e&&t!==t}var J9e=Q9e;function eAe(e,t){for(var n=e.length;n--;)if(J9e(e[n][0],t))return n;return-1}var G3=eAe,tAe=Array.prototype,nAe=tAe.splice;function rAe(e){var t=this.__data__,n=G3(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():nAe.call(t,n,1),--this.size,!0}var iAe=rAe;function oAe(e){var t=this.__data__,n=G3(t,e);return n<0?void 0:t[n][1]}var aAe=oAe;function sAe(e){return G3(this.__data__,e)>-1}var lAe=sAe;function cAe(e,t){var n=this.__data__,r=G3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uAe=cAe;function S1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}S1.prototype.clear=X9e,S1.prototype.delete=iAe,S1.prototype.get=aAe,S1.prototype.has=lAe,S1.prototype.set=uAe;var dAe=S1,fAe=Fm(zd,"Map"),K3=fAe,hAe=Fm(Object,"create"),Ow=hAe;function pAe(){this.__data__=Ow?Ow(null):{},this.size=0}var mAe=pAe;function gAe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vAe=gAe,yAe="__lodash_hash_undefined__",bAe=Object.prototype,wAe=bAe.hasOwnProperty;function _Ae(e){var t=this.__data__;if(Ow){var n=t[e];return n===yAe?void 0:n}return wAe.call(t,e)?t[e]:void 0}var xAe=_Ae,kAe=Object.prototype,EAe=kAe.hasOwnProperty;function CAe(e){var t=this.__data__;return Ow?t[e]!==void 0:EAe.call(t,e)}var SAe=CAe,TAe="__lodash_hash_undefined__";function AAe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ow&&t===void 0?TAe:t,this}var OAe=AAe;function T1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}T1.prototype.clear=mAe,T1.prototype.delete=vAe,T1.prototype.get=xAe,T1.prototype.has=SAe,T1.prototype.set=OAe;var hG=T1;function jAe(){this.size=0,this.__data__={hash:new hG,map:new(K3||dAe),string:new hG}}var DAe=jAe;function IAe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var PAe=IAe;function $Ae(e,t){var n=e.__data__;return PAe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Y3=$Ae;function RAe(e){var t=Y3(this,e).delete(e);return this.size-=t?1:0,t}var MAe=RAe;function NAe(e){return Y3(this,e).get(e)}var LAe=NAe;function FAe(e){return Y3(this,e).has(e)}var BAe=FAe;function zAe(e,t){var n=Y3(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var HAe=zAe;function A1(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}A1.prototype.clear=DAe,A1.prototype.delete=MAe,A1.prototype.get=LAe,A1.prototype.has=BAe,A1.prototype.set=HAe;var pG=A1;zd.Uint8Array;var mG=kh?kh.prototype:void 0;mG&&mG.valueOf;var UAe=Fm(zd,"DataView"),$7=UAe,VAe=Fm(zd,"Promise"),R7=VAe,qAe=Fm(zd,"Set"),M7=qAe,WAe=Fm(zd,"WeakMap"),N7=WAe,gG="[object Map]",GAe="[object Object]",vG="[object Promise]",yG="[object Set]",bG="[object WeakMap]",wG="[object DataView]",KAe=Lm($7),YAe=Lm(K3),ZAe=Lm(R7),XAe=Lm(M7),QAe=Lm(N7),O1=W3;($7&&O1(new $7(new ArrayBuffer(1)))!=wG||K3&&O1(new K3)!=gG||R7&&O1(R7.resolve())!=vG||M7&&O1(new M7)!=yG||N7&&O1(new N7)!=bG)&&(O1=function(e){var t=W3(e),n=t==GAe?e.constructor:void 0,r=n?Lm(n):"";if(r)switch(r){case KAe:return wG;case YAe:return gG;case ZAe:return vG;case XAe:return yG;case QAe:return bG}return t});var JAe="Expected a function";function L7(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(JAe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(L7.Cache||pG),n}L7.Cache=pG;var eOe=L7,tOe=500;function nOe(e){var t=eOe(e,function(r){return n.size===tOe&&n.clear(),r}),n=t.cache;return t}var rOe=nOe,iOe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oOe=/\\(\\)?/g;rOe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iOe,function(n,r,i,o){t.push(i?o.replace(oOe,"$1"):r||n)}),t});var _G=kh?kh.prototype:void 0;_G&&_G.toString;const xG=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),aOe=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),jw=(e,t)=>!e||e.nodeName===t?e:jw(e.parentElement,t),F7=(e,...t)=>()=>{e==null||e(...t)},sOe=/^(?:\w+:)?\/\/(\S+)$/,lOe=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,cOe=/^[^\s.]+\.\S{2,}$/,B7=e=>{if(typeof e!="string")return!1;const t=e.match(sOe);if(!t)return!1;const n=t[1];if(!n)return!1;try{new URL(e)}catch{return!1}return lOe.test(n)||cOe.test(n)},Z3=(e,t,{handlerKeys:n,handlerQuery:r=i=>i.indexOf("on")===0}={})=>{const i=new Map,o={},a=s=>{s&&Object.entries(s).forEach(([l,c])=>{if((!n||n.includes(l))&&(!r||r(l))&&typeof c=="function"){var u;i.has(l)||i.set(l,[]),(u=i.get(l))===null||u===void 0||u.push(c),o[l]=(...d)=>{var f;(f=i.get(l))===null||f===void 0||f.forEach(p=>p(...d))}}else o[l]=c})};return a(e),a(t),o},kG=(e,{allowedSchemes:t,permitInvalid:n=!1})=>{if(!e)return null;let r=null;try{r=new URL(e)}catch{return n?e:null}return t&&!t.includes(r.protocol.slice(0,-1))?null:r.href},uOe=e=>typeof e>"u",dOe=e=>e===null,fOe=e=>uOe(e)||dOe(e),Dw=e=>!fOe(e);var EG=Object.prototype.hasOwnProperty;function CG(e,t,n){for(n of e.keys())if(Iw(n,t))return n}function Iw(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Iw(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=CG(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=CG(t,i),!i)||!Iw(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(EG.call(e,n)&&++r&&!EG.call(t,n)||!(n in t)||!Iw(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function hOe(e){const t=O.useRef(e),n=O.useRef(0);return Iw(e,t.current)||(t.current=e,n.current+=1),O.useMemo(()=>t.current,[n.current])}function SG(e,t){return O.useMemo(e,hOe(t))}/*!
|
|
72
72
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
73
73
|
*
|
|
74
74
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|