1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="93814d17-f87c-4198-9c3f-5dcee736f463",e._sentryDebugIdIdentifier="sentry-dbid-93814d17-f87c-4198-9c3f-5dcee736f463")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[496,1813,3004,10081,12181,14792,19510,20352,22099,27752,29164,46045,50083,50167,55892,56799,61249,67421,74842,79111,81527,99676],{12871:(e,t,r)=>{var n=r(96360).k5;e.exports.i=function(e){return n({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"},child:[]}]})(e)}},86208:(e,t,r)=>{var n=r(96360).k5;e.exports.j=function(e){return n({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"},child:[]},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},child:[]}]})(e)}},33057:(e,t,r)=>{var n=r(96360).k5;e.exports.A=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(e)}},84541:(e,t,r)=>{var n=r(96360).k5;e.exports.Z=function(e){return n({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 17h8m0 0V9m0 8l-8-8-4 4-6-6"},child:[]}]})(e)}},62996:(e,t,r)=>{var n=r(96360).k5;e.exports.u=function(e){return n({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"},child:[]}]})(e)}},44625:(e,t,r)=>{var n=r(96360).k5;e.exports.S=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"},child:[]}]})(e)}},86833:(e,t,r)=>{var n=r(96360).k5;e.exports.i=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 3m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"},child:[]},{tag:"path",attr:{d:"M9 12l2 2l4 -4"},child:[]}]})(e)}},34932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},61074:e=>{e.exports=function(e){return e.split("")}},25160:e=>{e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var l=Array(i);++n<i;)l[n]=e[n+t];return l}},77556:(e,t,r)=>{var n=r(51873),i=r(34932),l=r(56449),o=r(44394),a=1/0,s=n?n.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(l(t))return i(t,e)+"";if(o(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-a?"-0":r}},28754:(e,t,r)=>{var n=r(25160);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},12507:(e,t,r)=>{var n=r(28754),i=r(49698),l=r(63912),o=r(13222);e.exports=function(e){return function(t){var r=i(t=o(t))?l(t):void 0,a=r?r[0]:t.charAt(0),s=r?n(r,1).join(""):t.slice(1);return a[e]()+s}}},49698:e=>{var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},63912:(e,t,r)=>{var n=r(61074),i=r(49698),l=r(42054);e.exports=function(e){return i(e)?l(e):n(e)}},42054:e=>{var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",l="(?:\ud83c[\udde6-\uddff]){2}",o="[\ud800-\udbff][\udc00-\udfff]",a="(?:"+r+"|"+n+")?",s="[\\ufe0e\\ufe0f]?",u="(?:\\u200d(?:"+[i,l,o].join("|")+")"+s+a+")*",d=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,l,o,"["+t+"]"].join("|")+")"+(s+a+u),"g");e.exports=function(e){return e.match(d)||[]}},14792:(e,t,r)=>{var n=r(13222),i=r(55808);e.exports=function(e){return i(n(e).toLowerCase())}},13222:(e,t,r)=>{var n=r(77556);e.exports=function(e){return null==e?"":n(e)}},55808:(e,t,r)=>{var n=r(12507)("toUpperCase");e.exports=n},92524:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(74848),i=r(42071),l=r(80809),o=r(42258);let a=e=>{let{coins:t,coinSize:r=37,coinSpacing:a=10,withCoins:s=!0,textStyle:u="text-text-title-primary"}=e;return t&&t.length?(0,n.jsx)(l.A,{children:(0,n.jsxs)("div",{className:"flex flex-row space-around items-center",children:[(0,n.jsx)("div",{className:"flex flex-row items-center",style:{height:r},children:t.slice(0,6).map((e,t)=>{let l=r-5;return(0,n.jsx)("div",{className:"bg-white react-tooltip shrink-0 p-[1.5px] border-[1px] rounded-full",style:{marginLeft:"-".concat(a,"px"),height:r,width:r},"data-tooltip-content":e.symbol,children:(0,n.jsx)(i.L7,{size:l,symbol
1:null==e?void 0:e.symbol,isBundle:!0,className:"rounded-full"})},t)})}),t.length>6&&(0,n.jsx)("div",{children:(0,n.jsxs)("p",{className:"".concat(u," pl-2"),children:["+",t.length-6," ",s?(0,n.jsx)("span",{className:"hidden md:inline",children:(0,o.t)("Coins")}):null]})})]})}):null}},55003:(e,t,r)=>{"use strict";r.d(t,{$:()=>v,y:()=>f});var n=r(74848),i=r(91106),l=r.n(i),o=r(64400),a=r(60134),s=r(88718),u=r(42258),d=r(2141),c=r.n(d);let v=e=>{let{children:t,colour:r="blue",size:i="large",height:o="medium",mode:a="primary",onDisabledClick:u=null,linkPath:d,text:v,builderState:f,className:p="",disabled:h=!1,useNextLink:m=!0,target:x="_self",loading:g=!1,onClick:b=null,tooltip:y,animated:w=!1,...C}=e,j=(e,t)=>{switch(t){case"secondary":switch(e){case"pink":return"text-pink border border-pink disabled:text-pink-disabled hover:text-pink";case"white":return"text-text-inverted border border-white disabled:text-text-inverted-disabled hover:text-text-inverted";case"black":return"text-text-title-primary border border-black disabled:text-text-title-accent hover:text-text-title-primary";case"blue-opaque":return"text-blue-opaque border border-blue-opaque disabled:text-blue-disabled hover:text-blue-opaqueHover";case"earn-orange":return"text-text-inverted md:text-text-title-primary border border-earn-orange md:border-black disabled:text-text-inverted-blue-disabled hover:text-earn-orangeHover md:hover:text-text-title-primary";default:return"text-blue border border-blue disabled:text-blue-disabled hover:text-blue-hover font-semibold"}case"tertiary":switch(e){case"pink":return"text-pink hover:text-pink-hover";case"white":return"text-text-inverted hover:text-text-inverted-hover";case"black":return"text-text-title-primary hover:text-text-title-primary";case"orange":return"text-earn-black-off hover:text-earn-black";case"blue-opaque":return"text-blue-opaque hover:text-blue-opaqueHover";case"earn-orange":return"text-text-inverted border border-earn-orange disabled:text-text-inverted-blue-disabled hover:text-earn-orangeHover";default:return"text-blue hover:text-blue-hover"}default:switch(e){case"pink":return"text-text-inverted bg-pink hover:bg-pink-hover";case"white":return"bg-bg-inverted hover:bg-bg-inverted-hover text-blue";case"black":return"text-text-inverted bg-black hover:bg-black-hover";case"orange":return"text-text-inverted ".concat(c().orangeGradient," bg-earn hover:bg-earn-hover");case"blue-opaque":return"text-text-inverted bg-blue-opaque hover:bg-blue-opaqueHover";case"earn-orange":return"text-text-inverted ".concat(c().orangeGradient," hover:bg-earn-orangeHover");case"earn-white":return"bg-bg-inverted hover:bg-bg-inverted-hover text-text-title-primary text-bold";default:return"text-text-inverted bg-blue hover:bg-blue-hover"}}},k=(e=>"primary"===e?"".concat(j(r,e)," disabled:opacity-50 ").concat(h?"opacity-50":""):"secondary"===e?"".concat(j(r,e)," bg-transparent disabled:opacity-50 hover:opacity-70 ").concat(h?"opacity-50":""):"tertiary"===e?"".concat(j(r,e)," bg-transparent disabled:opacity-50 ").concat(h?"opacity-50":""):void 0)(a),N=(e=>{switch(e){case"auto":return"w-auto";case"large":return"w-60";case"medium":return"w-44";case"small":return"w-36";case"x-small":return"w-28";case"xx-small":return"w-18";case"full":return"w-full";default:return e}})(i),L=(e=>{switch(e){case"auto":return"h-auto";case"large":return"h-12";case"medium":return"h-9";case"small":return"h-7";case"xx-small":return"h-5";case"default":return"h-[44px]";default:return e}})(o),E="".concat(N," ").concat(L," leading-button ").concat(k," ").concat(p," rounded-md ");return(0,n.jsx)(n.Fragment,{children:d?m?(0,n.jsx)(l(),{href:d,legacyBehavior:!0,children:(0,n.jsx)("a",{onClick:h?u:g?null:b,className:"flex-shrink-0 ".concat(E," text-center flex items-center justify-around"),children:t||v})}):(0,n.jsx)("a",{href:d,target:x,onClick:h?u:g?null:b,className:"flex-shrink-0 ".concat(E," text-center flex items-center justify-around"),children:t||v}):(0,n.jsxs)("button",{...C,className:"flex-shrink-0 relative group overflow-hidden react-tooltip ".concat(E),disabled:h&&!u,onClick:h?u:g?null:b,"data-tooltip-content":y,
1children:[w&&(0,n.jsx)("span",{className:"absolute right-0 w-8 h-32 -mt-12 transition-all duration-1000 transform translate-x-12 bg-bg-inverted opacity-10 rotate-12 group-hover:-translate-x-40 ease"}),g?(0,n.jsx)(s.a,{colour:"primary"==a?"white":"blue",className:"h-4 w-4 -ml-1 mr-3"}):null,t]})})},f=e=>{let{socialNetwork:t,action:r="login",text:i=(0,u.t)("Sign in with"),className:l="",...o}=e;return(0,n.jsxs)("button",{className:"".concat(l," hover:opacity-70 text-text-inverted border border-white bg-blue-aqua flex flex-row rounded p-1 items-center justify-left"),onClick:e=>{e.preventDefault(),window.location.href="/api/auth/oauth?scheme=".concat(t,"&action=").concat(r)},...o,children:[(0,n.jsxs)("div",{className:"w-[40px] h-[40px] bg-bg-inverted flex justify-center items-center shrink-0",children:["Google"===t?(0,n.jsx)(a._,{alt:"Google",height:"30",width:"30",src:"auth-google.png"}):null,"Facebook"===t?(0,n.jsx)(a._,{alt:"Facebook",height:"30",width:"30",src:"auth-fb.png"}):null,"Apple"===t?(0,n.jsx)(a._,{alt:"Apple",height:"20",width:"20",src:"apple-black.svg"}):null]}),(0,n.jsx)("div",{className:"ml-3 mr-2",children:(0,n.jsx)("p",{className:"font-bold text-sm",children:"".concat(i," ").concat(t)})})]})};(0,o.N)(v,{name:"Button",inputs:[{name:"colour",type:"string",enum:["blue","pink","white","blue-opaque","black","orange","earn-orange","earn-white"],defaultValue:"blue",description:"Custom Button"},{name:"Size",type:"string",enum:["large","medium","small","x-small","auto","max","full"],defaultValue:"auto",description:"Width size that follows the tailwind width component"},{name:"mode",type:"string",enum:["primary","secondary","tertiary"],defaultValue:"primary",description:"Button types according to button importance"},{name:"text",type:"string",defaultValue:"Click here",description:"Button text"},{name:"linkPath",type:"string",defaultValue:"#",description:"Relative link"}]})},40519:(e,t,r)=>{"use strict";r.d(t,{D:()=>a});var n=r(74848),i=r(34164),l=r(96540),o=r(1276);let a=e=>{let{percent:t,size:r="sm",className:a="",fontClassName:s="text-[10px]/[10px]",isCounting:u=!0,decimals:d=2,disableCountUp:c=!1,fontName:v="font-ppformula"}=e,f=(0,l.useMemo)(()=>{switch(r){case"xs":return"h-[20px]";case"sm":return"h-[22px]";case"md":return"h-[24px]";default:return""}},[r]);return null==t||Number.isNaN(t)||!1===Number.isFinite(t)?null:(0,n.jsx)("div",{className:(0,i.A)("text-text-extra rounded-full flex items-center justify-center pl-2 pr-2 min-w-[77px]",t<0?"bg-bg-error":"bg-bg-success-primary",f,a),children:(0,n.jsx)(o.ZI,{prefix:t>0?"+":"",className:(0,i.A)("mt-[2px] font-semibold",s),isCounting:u,decimals:d,amount:t,fontClassName:v,suffix:"%",disableCountUp:c})})}},84112:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(74848),i=r(96540);function l(e){let{children:t,...r}=e,[l,o]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{o(!0)},[]),l)?(0,n.jsx)(i.Fragment,{...r,children:t}):null}},90256:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(74848);r(96540);let i=e=>{let{width:t=20,fill:r="currentColor",height:i=19,className:l="",...o}=e;return(0,n.jsx)("div",{className:l,...o,children:(0,n.jsxs)("svg",{width:t,height:i,viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M6.21793 2.701V7.00932V15.2456C6.21793 16.6846 5.05231 17.8502 3.61328 17.8502H15.7511C17.8352 17.8502 18.9911 16.4462 18.9911 14.1782L18.9999 2.701C18.9999 1.87203 18.2059 1.333 17.5171 1.68619L16.8642 2.03062C16.475 2.23397 16.0255 2.24273 15.6188 2.06565L13.774 1.24446C13.0239 0.918512 12.1939 0.918512 11.4438 1.24446L9.599 2.06565C9.1923 2.24273 8.7418 2.23397 8.3536 2.03062L7.70074 1.68619C7.01188 1.333 6.21793 1.88078 6.21793 2.701Z",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10.8906 6.83789H12.8482C13.5799 6.83789 14.2338 7.37302 14.3028 8.10178C14.3826 8.93658 13.7278 9.64008 12.9086 9.64008L10.8906 9.63998",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M10.8906 9.63672H12.8482C13.5799 9.63672 14.2338 10.1719 14.3028 10.9006C14.3826 11.7354 13.7278 12.4389 12.9086 12.4389L10.8906 12.4388",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M12.3477 13.2684V12.4424M12.3477 6.83386V6.00781",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("path",{d:"M3.61341 17.8506C2.88951 17.8506 2.23665 17.5587 1.76865 17.0917C1.29189 16.6149 1 15.9611 1 15.2459V7.99828C1 7.1683 1.79492 6.63024 2.48378
16.98343L3.13665 7.32786C3.52487 7.53118 3.97535 7.53998 4.38108 7.36289L5.62649 6.80635C5.72281 6.76257 5.96995 6.87738 6.21805 7.0097",stroke:r,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})}},83763:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(74848);let i=e=>{let{width:t=23,height:r=23,strokeWidth:i="2",...l}=e;return(0,n.jsxs)("svg",{width:t,height:r,viewBox:"0 0 37 37",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[(0,n.jsx)("circle",{cx:"18.5",cy:"18.5",r:"18",stroke:"currentColor"}),(0,n.jsx)("path",{d:"M12.9383 26.9179L18.2658 24.4067C18.581 24.244 18.947 24.244 19.252 24.4067L24.5694 26.9179L23.329 21.3871C23.2781 21.0414 23.39 20.6855 23.634 20.4415L27.5076 16.4561L22.0784 15.5512C21.7328 15.5004 21.4379 15.2869 21.2752 14.9717L18.7538 10L16.2324 14.9717C16.0697 15.2869 15.7749 15.5004 15.4292 15.5512L10 16.4561L13.8736 20.4415C14.1176 20.6855 14.2295 21.0414 14.1786 21.3871L12.9281 26.9179H12.9383Z",stroke:"currentColor",strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round"})]})}},68179:(e,t,r)=>{"use strict";r.d(t,{A:()=>k,b:()=>j});var n=r(74848),i=r(34164),l=r(55652),o=r(9885),a=r.n(o),s=r(96540),u=r(80809),d=r(88718),c=r(72797),v=r(26262),f=r(10123),p=r(97895),h=r(42258),m=r(48522),x=r.n(m);let g=[{title:"All",value:a()().add(-100,"years").unix()},{title:"1W",value:a()().add(-1,"week").unix()},{title:"1M",value:a()().add(-1,"month").unix()},{title:"1Q",value:a()().add(-1,"quarter").unix()},{title:"1Y",value:a()().add(-1,"year").unix()}],b={localization:{locale:"en-AU",dateFormat:"dd/MM/yy",timeFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD, MMM")}},timeScale:{timeVisible:!0,secondsVisible:!1,tickMarkFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD, MMM")}}},y={localization:{locale:"en-AU",dateFormat:"dd/MM/yy",timeFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD, MMM")}},timeScale:{timeVisible:!0,secondsVisible:!1,tickMarkFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD, MMM")}}},w={localization:{timeVisible:!1,secondsVisible:!1,locale:"en-AU",dateFormat:"dd/MM/yy",timeFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD/MM/YYYY")}},timeScale:{timeVisible:!1,secondsVisible:!1,tickMarkFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD/MM/YYYY")}}},C={localization:{locale:"en-AU",dateFormat:"dd/MM/yy",timeFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD/MM/YYYY")}},timeScale:{timeVisible:!1,secondsVisible:!1,tickMarkFormatter:e=>{let t=new Date(1e3*e);return a()(t).format("DD/MM/YYYY")}}},j=e=>{var t;let{data:r,height:o,loading:m,timeframe:j,className:k,color:N="purple"}=e,L=(0,s.useRef)(null),E=(0,s.useRef)(),[S,_]=(0,s.useState)(0),[A,M]=(0,s.use
1State)(0),[P,I]=(0,s.useState)(!1),{scheme:F}=(0,c.Ut)(),D=(0,s.useMemo)(()=>"light"!==F?F:N,[F]),{createChartOptions:R,areaChartOptions:T,loaderClass:O}=(0,s.useMemo)(()=>{let e=f.theme.colors.purple.dark,t=f.theme.colors.purple["light-50"],r=f.theme.colors.purple.light,n=f.theme.colors.purple["light-91"],i=f.theme.colors.purple["light-0"],l=f.theme.colors.purple.light,a="bg-purple-dark",s=1;return"purple"==D?(e=f.theme.colors.purple.dark,t=f.theme.colors.purple["light-50"],r=f.theme.colors.purple.light,n=f.theme.colors.purple["light-91"],s=1):"white"==D?(e=f.theme.colors.white.DEFAULT,t=f.theme.colors.purple["light-50"],r=f.theme.colors.purple.light,a="bg-bg-inverted",n=f.theme.colors.purple.DEFAULT,i=f.theme.colors.purple["light-0"],l=f.theme.colors.purple.DEFAULT,s=2):"gold"===D&&(e="#171717",t="hsla(48, 28%, 76%, 0.5)",r="D2CCB0",a="bg-bg-inverted",n="#95833A",i="hsla(48, 28%, 76%, 0)",l="#95833A",s=2),{loaderClass:a,areaChartOptions:{autoscaleInfoProvider:e=>({priceRange:{minValue:S,maxValue:A}}),topColor:n,bottomColor:i,lineColor:l,lineWidth:s,textColor:f.theme.colors.lineChart.textColor,textSize:12,backgroundColor:e,priceFormat:{type:"price",minMove:2e-13}},createChartOptions:{height:o,handleScroll:{mouseWheel:!1,pressedMouseMove:!1,horzTouchDrag:!1,vertTouchDrag:!1},handleScale:{axisPressedMouseMove:!1,mouseWheel:!1,pinch:!1},layout:{backgroundColor:e,lineColor:f.theme.colors.lineChart.lineColor,textColor:f.theme.colors.lineChart.textColor,fontSize:9,fontFamily:x().style.fontFamily,fontWeight:900},grid:{vertLines:{visible:!1},horzLines:{style:4,color:t}},timeScale:{borderColor:r,timeVisible:!0,secondsVisible:!1,tickMarkFormatter:y.timeScale.tickMarkFormatter},crosshair:{horzLine:{visible:!1},vertLine:{visible:!1}},priceScale:{position:"left",alignLabels:!1,entireTextOnly:!0,borderVisible:!1,drawTicks:!1,grid:{vertLines:{visible:!1},horzLines:{color:"#f00"}}},localization:{locale:"en-AU",dateFormat:"dd/MM/yy",timeFormatter:y.localization.timeFormatter,priceFormatter:e=>(0,h.d)(e).lessThanOrEqualTo("0")?"$0":(0,h.d)(e).lessThan("0.000000001")?"$".concat((0,h.d)(e).toFixed(18)):(0,h.d)(e).lessThan("0.00001")?"$".concat((0,h.d)(e).toFixed(12)):(0,h.d)(e).lessThan("1")?"$".concat((0,h.d)(e).toFixed(4)):(0,h.d)(e).lessThan("500")?"$".concat((0,h.d)(e).toFixed(2)):"$".concat((0,h.d)(e).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g,","))}}}},[o,D,S,A,_]),[V]=(0,v.l)();(0,s.useEffect)(()=>{var e,t;if((null==E?void 0:null===(e=E.current)||void 0===e?void 0:e.offsetWidth)&&(null==L?void 0:L.current)&&V>0)try{null==L||null===(t=L.current)||void 0===t||t.applyOptions({height:o,layout:{fontSize:9}})}catch(e){console.log("resize error",e)}},[V,o,null==E?void 0:null===(t=E.current)||void 0===t?void 0:t.offsetWidth]),(0,s.useEffect)(()=>{var e;if((null==E?void 0:E.current)&&(null==L?void 0:null===(e=L.current)||void 0===e?void 0:e.applyOptions)){let e=new ResizeObserver(e=>{try{var t;null==L||null===(t=L.current)||void 0===t||t.applyOptions({width:e[0].contentRect.width})}catch(e){console.log("chart observer error ",e)}});return e.observe(E.current),()=>Y.current&&e.unobserve(Y.current)}},[null==E?void 0:E.current,L]);let[U,z]=(0,s.useState)(),Y=(0,s.useRef)(null),q=e=>{let t=(0,h.d)(1/0),r=(0,h.d)(0);for(let n of e)null!=n.value&&((0,h.d)(n.value).lessThan(t)&&(t=(0,h.d)(n.value)),(0,h.d)(n.value).greaterThan(r)&&(r=(0,h.d)(n.value)));return{tmpMin:t.equals(1/0)?(0,h.d)(0):t,tmpMax:t.equals(1/0)?(0,h.d)(2):r}};(0,s.useEffect)(()=>{if(L&&void 0!==U&&r){var e,t,n,i,l,o,s;0==r.length?U&&U.setData([{value:0,time:g[j].value},{value:1,time:a()().unix()}]):U&&U.setData(r);let{tmpMin:u,tmpMax:d}=q(r);switch(_(u.toNumber()),M(d.toNumber()),j){case p.J.Week:null==L||null===(t=L.current)||void 0===t||t.applyOptions(b);break;case p.J.Month:null==L||null===(n=L.current)||void 0===n||n.applyOptions(y);break;case p.J.Year:null==L||null===(i=L.current)||void 0===i||i.applyOptions(w);break;case p.J.Quarter:null==L||null===(l=L.current)||void 0===l||l.applyOptions(w);break;case p.J.All:null==L||null===(o=L.current)||void 0===o||o.applyOptions(C);break;default:null==L||null===(s=L.current)||void 0===s||s.applyOptions(C)}null==L||null===(e=L.current)||void 0===e||e.timeScale().fitContent()}},[r,U,j]),(0,s.useEffect)(()=>{try{if(L&&U){var e,t,r;null==L||null===(e=L.current)||void 0===e||e.removeSeries(U),null==L||null===(t=L.current)||void 0===t||t.applyOptions(R);let n=null==L?void 0:null===(r=L.current)||void 0===r?void 0:r.addAreaSeries(T);z(n),I(!0)}}catch(e){console.error("chart error ",e)}},[S,A,R,R]),(0,s.useEffect)(()=>{L&&requestAnimationFrame(()=>requestAnimationFrame(()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.timeScale().fitContent()}))},[r]),(0,s.useEffect)(()=>{setTimeout(()=>{requestAnimationFrame(()=>requestAnimationFrame(()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.timeScale().fitContent()}))},250)},[P]);let W=async()=>{(null==L?void 0:L.current)||(async function(){L.current=(0,l.R9)(Y.current,R)})().then(async()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.addAreaSeries(T)}).then(async e=>{z(e),requestAnimationFrame(()=>requestAnimationFrame(()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.timeScale().fitContent()}))})};return(0,s.useEffect)(()=>(Y&&Y.current&&W(),()=>{z(null),L.current=null}),[]),(0,n.jsx)(u.A,{children:(0,n.jsx)("div",{className:(0,i.A)("relative",k),children:(0,n.jsxs)("div",{className:"relative chart-container md:p-0 md:min-
1h-[216px]",style:{height:o},ref:E,children:[(0,n.jsx)("div",{ref:Y,className:"absolute inset-0 ".concat(P?"":"hidden")}),m?(0,n.jsx)("div",{className:(0,i.A)("absolute inset-0 z-10",O),style:{width:"100%",height:o},children:(0,n.jsx)(d.A,{loaderProps:{className:"text-text-title-primary h-14 w-14"}})}):null]})})})},k=j},44201:(e,t,r)=>{"use strict";r.d(t,{z:()=>o});var n=r(74848),i=r(34164),l=r(96540);let o=e=>{let{progress:t,className:r="",bgClass:o="bg-bg-main-secondary",progressClass:a="bg-bg-main-primary"}=e,[s,u]=(0,l.useState)(0);return(0,l.useEffect)(()=>{u(t)},[t]),(0,n.jsx)("div",{className:(0,i.A)("w-full h-1 rounded-sm overflow-hidden",o,r),children:(0,n.jsx)("div",{style:{width:"".concat(s,"%")},className:(0,i.A)("transition-[width] duration-500 rounded-full h-full",a)})})}},15761:(e,t,r)=>{"use strict";r.d(t,{n:()=>l});var n=r(74848),i=r(34164);r(96540);let l=e=>{let{colour:t="green",name:r,size:l="sm",className:o=""}=e;return(0,n.jsx)("span",{className:(0,i.A)("font-extrabold leading-none rounded-2xl font-ppformula inline-flex justify-center items-center ".concat(o),"md"===l?"p-1 pt-[6px] pr-4 pl-4 text-sm":"","sm"===l?"p-2 px-3 text-[10px] h-[20px] font-semibold":"","xs"===l?"pt-2 pb-[7px] px-3 text-[10px] h-[16px] font-semibold":"","green"==t?"bg-bg-success-primary text-text-extra":"","red"==t?"bg-bg-error text-text-extra":"","dark-blue"==t?"bg-blue-dark text-text-inverted":"","purple"==t?"bg-bg-main-primary text-text-inverted":"","purple-dark"==t?"bg-bg-main-secondary text-text-inverted":"","purple-light"==t?"bg-bg-main-tertiary text-text-extra":"","blue"==t?"bg-blue text-text-inverted":"","yellow"==t?"bg-cs-background-warning text-cs-background-alwaysDark":""),children:r})}},32271:(e,t,r)=>{"use strict";r.d(t,{t:()=>d});var n=r(74848),i=r(34164),l=r(96540),o=r(80809),a=r(72797),s=r(93513),u=r.n(s);let d=e=>{let{scheme:t}=(0,a.Ut)(),{tabs:r,onChange:s,defaultTab:d,color:c="purple-light",size:v="xs",className:f="",rounded:p=!0}=e,{commonClassName:h,inactiveClassName:m,activeClassName:x}=(0,l.useMemo)(()=>"purple-light"===c?{commonClassName:" hover:text-text-extra hover:bg-bg-main-tertiary/90 font-semibold",inactiveClassName:"text-text-main-secondary",activeClassName:"bg-bg-main-tertiary text-text-extra"}:"purple"===c?{commonClassName:" hover:text-text-inverted hover:bg-bg-main-primary/90 font-semibold",inactiveClassName:"text-text-title-primary",activeClassName:"bg-bg-main-primary text-text-inverted"}:"purple-dark"===c?{commonClassName:"hover:text-text-inverted "+("light"===t?"hover:bg-purple-dark":"hover:bg-bg-main-primary"),inactiveClassName:"text-text-title-primary",activeClassName:"text-text-inverted "+("light"===t?"bg-purple-dark":"bg-bg-main-primary")}:"purple-dark-2"===c?{commonClassName:"border hover:text-text-inverted "+("light"===t?"border-purple-dark hover:bg-purple-dark":"border-border-main-primary hover:bg-bg-main-primary"),inactiveClassName:"text-text-title-primary",activeClassName:"text-text-inverted "+("light"===t?"bg-purple-dark":"bg-bg-main-primary")}:void 0,[c,t]),g=l.memo(e=>{let{tab:t,i:r}=e;return(0,n.jsx)("div",{className:(0,i.A)(h,"xs"==v?"px-3 h-[26px] text-sm":"","sm"==v?"px-4 h-[33px] text-sm":"","flex cursor-pointer flex-row items-center text-sm !font-fkGroteskNeue",p?"rounded-full":"rounded",r==d?x:m),onClick:()=>{s&&s(r)},children:t})});return(0,n.jsx)(o.A,{children:(0,n.jsx)("div",{className:(0,i.A)("flex flex-row space-x-2",u().scrollbar,f),children:r.map((e,t)=>(0,n.jsx)(g,{tab:e,i:t},t))})})}},20933:(e,t,r)=>{"use strict";r.d(t,{J:()=>u,t:()=>s});var n=r(74848),i=r(34164),l=r(96540),o=r(80809);let a=e=>{let{children:t,active:r,className:l,activeColour:a="bg-pink",onClick:s,border:u,textSize:d="text-lg",bgColour:c="bg-bg-inverted",design:v="default",disabled:f=!1}=e;return"pills"===v?(0,n.jsx)(o.A,{children:(0,n.jsx)("div",{onClick:s,className:"w-full",children:(0,n.jsx)("div",{className:(0,i.A)(["font-bold border-b-0 flex-1 text-center cursor-pointer px-4 py-3 break-normal overflow-hidden h-full flex items-center justify-center",r?"bg-bg-main-primary rounded-full text-text-inverted":"text-text-main-primary",d,f?"opacity-50 cursor-auto":""]),children:t})})}):(0,n.jsx)(o.A,{children:(0,n.jsxs)("div",{onClick:s,className:"w-full",children:[(0,n.jsx)("div",{className:"".concat(l||""," ").concat(r?"bg-bg-inverted":c," ").concat(r?"text-text-inverted":"text-text-main-primary"," font-bold ").concat(d).concat(u?"border":""," border-b-0 border-blue-light flex-1 text-center cursor-pointer"),children:t}),(0,n.jsx)("div",{className:"".concat(a," h-1 -mt-[4px] ").concat(r?"":"hidden")})]})})},s=e=>{let{children:t,defaultTab:r=0,className:s="bg-bg-inverted",activeColour:d="bg-pink",bgColour:c="bg-bg-inverted",tabTextSize:v="text-lg",rightAccessory:f,onTabChanged:p,design:h="default",firstTabTextSize:m,containerCLassName:x=""}=e,[g,b]=(0,l.useState)(r);return(0,n.jsxs)(o.A,{children:[(0,n.jsx)("div",{className:(0,i.A)("bg-gradient-to-b","",x),children:(0,n.jsxs)("div",{className:(0,i.A)("flex",{"bg-bg-special rounded-full mx-2":"pills"===h}),children:[t.filter(e=>null!=e).map((e,t,r)=>{var i,o;return(0,n.jsx)(l.Fragment,{children:e?(0,n.jsx)(a,{onClick:()=>{var r,n,i;(null==e||null===(r=e.props)||void 0===r||!r.disabled)&&(b(t),p&&p(null!==(i=null==e?void 0:null===(n=e.props)||void 0===n?void 0:n.id)&&void 0!==i?i:t))},design:h,className:"".concat(s," ").concat(0==t&&"default"===h?"rounded-tl":""," ").concat(t+1===r.length&&"default"===h?"rounded-tr":""),active:g===t,activeColour:d,textSize:0==t&&m?m:v,bgColour:c,disabled:null==e?void 0:null===(i=e.props)||void 0===i?void 0:i.disabled,children:null==e?void 0:null===(o=e.props)||void 0===o?void 0:o.title}):null},t)}),f]})}),t.filter(e=>null!=e).map((e,t)=>{var r;return(0,n.jsx)(u,{className:(0,i.A)("w-full flex flex-1 grow",{hidden:t!==g}),title:e.title,style:{display:t===g?"flex":"none"},children:(null==e?void 0:null===(r=e.props)||void 0===r?void 0:r.children)?e.props.children:null},t)})]})},u=e=>{let{children:t,...r}=e;return(0,n.jsx)("div",{className:"bg-bg-inverted w-full border-t-0 border border-blue-light",...r,children:t})}},57017:(e,t,r)=>{"use strict";r.d(t,{c:()=>d});var n=r(74848),i=r(96540),l=r(55003);let o=e=>{let{width:t=27,height:r=25,stroke:i="#535F78",fill:l="#fff"}=e;return(0,n.jsx)("svg",{width:t,height:r,viewBox:"0 0 27 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5 19.75l-7.347 3.863 1.403-8.182-5.944-5.794 8.214-1.193L13.5 1l3.674 7.444 8.214 1.193-5.944 5.794 1.403 8.182L13.5 19.75z",fill:l,stroke:i,strokeWidth:1.5,strokeLinejoin:"round"})})};var a=r(50850),s=r(94379),u=r(72797);let d=e=>{var t,r,d,c,v,f;
1let{starHeight:p=19,starWidth:h=19,symbol:m,iconOnly:x=!0,className:g="",type:b="coin",activeColor:y=null,inactiveColor:w=null,hideOnMobile:C=!1}=e,[j,k]=(0,i.useState)(!1),{data:N}=(0,s.fyO)({skip:!1}),{data:L,loading:E}=(0,s.uw7)({skip:!(null==N?void 0:N.userProfile),variables:{userId:null==N?void 0:null===(t=N.userProfile)||void 0===t?void 0:t.userId}}),[S]=(0,a.Ya0)({variables:{watchlistId:null==L?void 0:null===(r=L.getUserDefaultWatchlist)||void 0===r?void 0:r.watchlistId,symbol:m},refetchQueries:[{query:s.Nqt,variables:{userId:null==N?void 0:null===(d=N.userProfile)||void 0===d?void 0:d.userId}}]}),[_]=(0,a.hlq)({variables:{watchlistId:null==L?void 0:null===(c=L.getUserDefaultWatchlist)||void 0===c?void 0:c.watchlistId,addSymbolPayloadInput:{symbol:m}},refetchQueries:[{query:s.Nqt,variables:{userId:null==N?void 0:null===(v=N.userProfile)||void 0===v?void 0:v.userId}}]}),A=e=>{e.preventDefault(),j?("bundle"===b?alert():S(),k(!1)):("bundle"===b?alert(""):_(),k(!0))},{scheme:M,iconColor:P}=(0,u.Ut)(),I="light"!==M?P.watchlist.inactive:null!=w?w:P.watchlist.inactive,F="light"!==M?P.watchlist.active:null!=y?y:P.watchlist.active;return(0,i.useEffect)(()=>{if(!E&&m){var e;(null==L?void 0:null===(e=L.getUserDefaultWatchlist)||void 0===e?void 0:e.prices[m.toLowerCase()])!==void 0?k(!0):k(!1)}},[null==L?void 0:null===(f=L.getUserDefaultWatchlist)||void 0===f?void 0:f.prices,m,E]),x?(0,n.jsx)("div",{onClick:A,className:"react-tooltip","data-tooltip-content":"Add to the Watchlist",children:(0,n.jsx)(o,{className:"cursor-pointer ".concat(C?"hidden sm:flex":null),width:h,height:p,fill:j?F:I,stroke:F})}):(0,n.jsxs)(l.$,{onClick:A,className:"".concat(g," hidden md:flex justify-between"),colour:"blue",size:"auto",mode:"secondary",children:[(0,n.jsx)(o,{width:h,height:p,fill:j?I:F,stroke:F}),(0,n.jsxs)("span",{className:"hidden md:flex justify-center items-center font-semibold ml-1 h-6",children:[j?"Remove from":"Add to"," Watchlist"]})]})}},64400:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(74848),i=r(19293),l=r(80809);let o=(e,t)=>{let r={...t,noWrap:!0};i.M$.registerComponent(t=>(0,n.jsx)(l.A,{children:(0,n.jsx)("div",{...t.attributes,children:(0,n.jsx)(e,{...t})})}),r)}},55892:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Onboarding:()=>k});var n=r(74848),i=r(44625),l=r(86833),o=r(34164),a=r(99753),s=r(14953),u=r.n(s),d=r(96540),c=r(15587),v=r(46751),f=r(80809),p=r(44201),h=r(94379),m=r(72185),x=r(89908),g=r(42258);let b=u()(()=>Promise.all([r.e(46191),r.e(28007),r.e(19293),r.e(40148)]).then(r.bind(r,40148)).then(e=>e.InternationalModal),{loadableGenerated:{webpack:()=>[40148]},ssr:!1}),y=u()(()=>Promise.all([r.e(1813),r.e(46191),r.e(22099),r.e(25004),r.e(29605),r.e(49187),r.e(42271),r.e(76717),r.e(75039)]).then(r.bind(r,76717)).then(e=>e.KYCModal),{loadableGenerated:{webpack:()=>[76717]},ssr:!1}),w=u()(()=>r.e(36544).then(r.bind(r,14163)).then(e=>e.VerifyEmailModal),{loadableGenerated:{webpack:()=>[14163]},ssr:!1}),C=u()(()=>Promise.all([r.e(46191),r.e(46045),r.e(55651),r.e(69999),r.e(29848)]).then(r.bind(r,69999)).then(e=>e.VerifyPhoneModal),{loadableGenerated:{webpack:()=>[69999]},ssr:!1});var j=function(e){return e[e.Email=0]="Email",e[e.Phone=1]="Phone",e[e.ID=2]="ID",e[e.Personalization=3]="Personalization",e[e.Appointment=4]="Appointment",e}(j||{});let k=e=>{var t,r,i,l,s,u,v,j,k,L,E,S,_,A,M,P,I;let{className:F=""}=e,{data:D,loading:R}=(0,h.fyO)({skip:!1}),{data:T,loading:O}=(0,h.jmK)({skip:!(null==D?void 0:null===(t=D.userProfile)||void 0===t?void 0:t.userId)||(null==D?void 0:null===(r=D.userProfile)||void 0===r?void 0:r.isIdentityVerified)||R,variables:{userId:null==D?void 0:null===(i=D.userProfile)||void 0===i?void 0:i.userId}}),V=(0,c.n3)(),[U,z]=(0,d.useState)(),[Y,q]=(0,a.fp)(x.Nh);(0,d.useEffect)(()=>{var e,t,r,n,i,l,o,a,s,u,d,c,v;if((null==D?void 0:null===(e=D.userProfile)||void 0===e?void 0:e.accountType)==="ADVISER"){if(!D||!D.userProfile){z(0),q(0);return}let e=0;if(null==D?void 0:null===(d=D.userProfile)||void 0===d?void 0:d.isPhoneNumberVerified){q(100);return}let t=1;(null==D?void 0:null===(c=D.userProfile)||void 0===c?void 0:c.isPhoneNumberVerified)?t++:e=1,(null==D?void 0:null===(v=D.userProfile)||void 0===v?void 0:v.isEmailVerified)?t++:e=0,z(e),q(33*t);return}if(!D||!D.userProfile){z(0),q(0);return}let f=0;if(null==D?void 0:null===(r=D.userProfile)||void 0===r?void 0:null===(t=r.userOnboarding)||void 0===t?void 0:t.personalizationCompleted){q(100);return}let p=1;(null==D?void 0:null===(i=D.userProfile)||void 0===i?void 0:null===(n=i.userOnboarding)||void 0===n?void 0:n.personalizationCompleted)?p++:f=3,(null==D?void 0:null===(l=D.userProfile)||void 0===l?void 0:l.isIdentityVerified)?p++:f=2,(null==D?void 0:null===(o=D.userProfile)||void 0===o?void 0:o.isIdentityVerified)||(null==D?void 0:null===(a=D.userProfile)||void 0===a?void 0:a.accountType)==="INDIVIDUAL"||(f=4),(null==D?void 0:null===(s=D.userProfile)||void 0===s?void 0:s.isPhoneNumberVerified)?p++:f=1,(null==D?void 0:null===(u=D.userProfile)||void 0===u?void 0:u.isEmailVerified)?p++:f=0,z(f),q(25*p)},[D]),(0,d.useEffect)(()=>{var e,t;if((null==T?void 0:null===(e=T.getUserKyc)||void 0===e?void 0:e.address)&&(e=>!!((null==e?void 0:e.country)&&(null==e?void 0:e.country)!=="Australia"&&(null==e?void 0:e.country)!=="China"))(null==T?void 0:null===(t=T.getUserKyc)||void 0===t?void 0:t.address))try{V.open(b)}catch(e){console.error("error international modal ",e)}
1},[null==T?void 0:null===(l=T.getUserKyc)||void 0===l?void 0:l.address]);let W=(0,m.M)({userProfileData:D});return!D||!D.userProfile||(null==D?void 0:null===(s=D.userProfile)||void 0===s?void 0:s.isEmailVerified)&&(null==D?void 0:null===(u=D.userProfile)||void 0===u?void 0:u.isPhoneNumberVerified)&&(null==D?void 0:null===(v=D.userProfile)||void 0===v?void 0:v.isIdentityVerified)||100==Y||R?null:(0,n.jsx)(f.A,{children:(0,n.jsx)("div",{className:(0,o.A)("bg-bg-main-secondary",F),children:(0,n.jsxs)("div",{className:(0,o.A)("dash-container"),children:[(0,n.jsxs)("div",{className:"flex flex-col lg:flex-row lg:space-x-4 space-y-4 lg:space-y-0",children:[(0,n.jsx)(N,{className:"w-full",title:(0,g.t)("Create your Account"),completed:!0}),(0,n.jsx)(N,{className:"w-full",title:(0,g.t)("Verify Email"),actionText:(0,g.t)("Verify"),active:0==U,completed:null==D?void 0:null===(j=D.userProfile)||void 0===j?void 0:j.isEmailVerified,action:()=>{V.open(w)}}),(0,n.jsx)(N,{className:"w-full",title:(0,g.t)("Verify Phone"),actionText:(0,g.t)("Verify"),active:1==U,completed:null==D?void 0:null===(k=D.userProfile)||void 0===k?void 0:k.isPhoneNumberVerified,action:()=>{V.open(C)}}),(null==D?void 0:null===(L=D.userProfile)||void 0===L?void 0:L.accountType)==="COMPANY"?(0,n.jsx)(N,{className:"w-full",title:(0,g.t)("Verify Company"),actionText:(0,g.t)("Verify"),active:4==U,completed:null==D?void 0:null===(E=D.userProfile)||void 0===E?void 0:E.isIdentityVerified,action:()=>{W&&W()}}):(null==D?void 0:null===(S=D.userProfile)||void 0===S?void 0:S.accountType)==="SMSF"?(0,n.jsx)(N,{className:"w-full",title:(0,g.t)("Verify SMSF"),actionText:(0,g.t)("Verify"),active:4==U,completed:null==D?void 0:null===(_=D.userProfile)||void 0===_?void 0:_.isIdentityVerified,action:()=>{W&&W()}}):(null==D?void 0:null===(A=D.userProfile)||void 0===A?void 0:A.accountType)==="TRUST"?(0,n.jsx)(N,{className:"w-full",title:(0,g.t)("Verify Trust"),actionText:(0,g.t)("Verify"),active:4==U,completed:null==D?void 0:null===(M=D.userProfile)||void 0===M?void 0:M.isIdentityVerified,action:()=>{W&&W()}}):(null==D?void 0:null===(P=D.userProfile)||void 0===P?void 0:P.accountType)==="ADVISER"?null:(0,n.jsx)(N,{className:"w-full",title:(0,g.t)("Verify ID"),actionText:(0,g.t)("Verify"),active:2==U,completed:null==D?void 0:null===(I=D.userProfile)||void 0===I?void 0:I.isIdentityVerified,action:()=>{V.open(y,{personaEnvironment:"production"})}})]}),(0,n.jsx)(p.z,{className:"mt-6",progress:Y,bgClass:"bg-bg-main-primary",progressClass:"bg-bg-main-tertiary"})]})})})},N=e=>{let{title:t,completed:r,actionText:a,action:s,active:u=!1,className:d=""}=e;return(0,n.jsxs)("div",{className:(0,o.A)("h-[61px] border-2 flex flex-row px-4 rounded-lg justify-between items-center",u?"bg-bg-inverted border-white":"",r?"bg-bg-main-tertiary border-border-main-primary":"",u||u?"":"bg-transparent border-border-main-tertiary",d),onClick:u?s:null,children:[(0,n.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[r?(0,n.jsx)(l.i,{className:"text-text-inverted flex-shrink-0 text-[22px] rounded-[13px]"}):(0,n.jsx)(i.S,{className:(0,o.A)("text-text-main-secondary flex-shrink-0 text-[22px]")}),(0,n.jsx)("span",{className:(0,o.A)("ml-2 font-semibold text-[15px]",u?"text-text-main-primary":"text-text-main-secondary"),children:t})]}),(0,n.jsx)("div",{className:"flex items-center justify-center",children:r?(0,n.jsx)("span",{className:"text-[12px] text-text-main-secondary font-medium",children:(0,g.t)("Complete")}):(0,n.jsx)(n.Fragment,{children:u?(0,n.jsx)(v.A,{size:"xs",color:"light-purple",className:"!font-fkGroteskNeue font-medium leading-initial",children:a}):null})})]})}},92988:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9885),i=r.n(n),l=r(96540);function o(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[r,n]=(0,l.useState)(0),o=(0,l.useRef)(null);return(0,l.useEffect)(()=>(o.current&&clearInterval(o.current),e&&t&&(o.current=setInterval(()=>{n(i()(e).diff(i()(),"seconds"))},100)),()=>{o.current&&clearInterval(o.current)}),[e]),{seconds:r}}},70257:(e,t,r)=>{"use strict";r.d(t,{H:()=>i});var n=r(96540);function i(e,t){let r=(0,n.useRef)(!1);(0,n.useEffect)(()=>
1{if(r.current)return e();r.current=!0},t)}},50167:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96540),i=r(44526),l=r(33319);let o=e=>{let{symbols:t=[]}=e,{smartQuoteData:r,smartQuoteUpdated:o,symbols:a,quoteData:s,focusedSubscriptions:u}=(0,n.useContext)(l.v),d=(0,n.useRef)((0,i.A)()),c=e=>{var t,r,n;let i=null!==(n=null==a?void 0:null===(t=a.current)||void 0===t?void 0:t.get(d.current))&&void 0!==n?n:new Set;i.add(e),null==a||null===(r=a.current)||void 0===r||r.set(d.current,i)},v=e=>{var t,r,n;let i=null!==(n=null==a?void 0:null===(t=a.current)||void 0===t?void 0:t.get(d.current))&&void 0!==n?n:new Set;i.delete(e),null==a||null===(r=a.current)||void 0===r||r.set(d.current,i)};(0,n.useEffect)(()=>{var e;return null==u||null===(e=u.current)||void 0===e||e.add(d.current),()=>{var e;null==u||null===(e=u.current)||void 0===e||e.delete(d.current)}},[]),(0,n.useEffect)(()=>{for(let e of t.map(e=>null==e?void 0:e.toLowerCase()))c(e)},[t]);let f=(0,n.useCallback)(function(e){var t,n,i,l;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unsubscribe:a}=o,u=null==e?void 0:e.toLowerCase();if(a){v(u);return}return u&&c(u),{data:{getLast:(null==r?void 0:null===(n=r.current)||void 0===n?void 0:null===(t=n.smartQuoteChanged)||void 0===t?void 0:t.prices)?null==r?void 0:null===(i=r.current)||void 0===i?void 0:i.smartQuoteChanged:(null==s?void 0:null===(l=s.getLast)||void 0===l?void 0:l.prices)?null==s?void 0:s.getLast:void 0}}},[s,o]),p=(0,n.useCallback)(function(e){var t,n,i,l,o,a,u,d,f,p,h,m,x;let g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unsubscribe:b,field:y,priceSSR:w}=g,C=null==e?void 0:e.toLowerCase();if(b){v(C);return}return(c(C),y)?(null==r?void 0:null===(l=r.current)||void 0===l?void 0:null===(i=l.smartQuoteChanged)||void 0===i?void 0:null===(n=i.prices)||void 0===n?void 0:null===(t=n[C])||void 0===t?void 0:t[y])?null==r?void 0:null===(p=r.current)||void 0===p?void 0:null===(f=p.smartQuoteChanged.prices)||void 0===f?void 0:null===(d=f[C])||void 0===d?void 0:d[y]:(null==s?void 0:null===(u=s.getLast)||void 0===u?void 0:null===(a=u.prices)||void 0===a?void 0:null===(o=a[C])||void 0===o?void 0:o[y])?null==s?void 0:null===(x=s.getLast)||void 0===x?void 0:null===(m=x.prices)||void 0===m?void 0:null===(h=m[C])||void 0===h?void 0:h[y]:(null==w?void 0:w[y])?null==w?void 0:w[y]:void 0:void 0},[s,o]),h=(0,n.useMemo)(()=>{var e,t,n,i,l,o,u,c,v,f,p,h,m,x,g,b,y,w,C,j,k,N,L,E,S,_,A,M;if(!(null==r?void 0:null===(t=r.current)||void 0===t?void 0:null===(e=t.smartQuoteChanged)||void 0===e?void 0:e.prices)&&!(null==s?void 0:null===(n=s.getLast)||void 0===n?void 0:n.prices))return;let P={prices:{...null!==(g=null==s?void 0:null===(i=s.getLast)||void 0===i?void 0:i.prices)&&void 0!==g?g:{}},quoteId:null!==(y=null!==(b=null==r?void 0:null===(o=r.current)||void 0===o?void 0:null===(l=o.smartQuoteChanged)||void 0===l?void 0:l.quoteId)&&void 0!==b?b:null==s?void 0:null===(u=s.getLast)||void 0===u?void 0:u.quoteId)&&void 0!==y?y:null,targetCurrency:null!==(C=null!==(w=null==r?void 0:null===(v=r.current)||void 0===v?void 0:null===(c=v.smartQuoteChanged)||void 0===c?void 0:c.targetCurrency)&&void 0!==w?w:null==s?void 0:null===(f=s.getLast)||void 0===f?void 0:f.targetCurrency)&&void 0!==C?C:null,issuedOn:null!==(k=null!==(j=null==r?void 0:null===(h=r.current)||void 0===h?void 0:null===(p=h.smartQuoteChanged)||void 0===p?void 0:p.issuedOn)&&void 0!==j?j:null==s?void 0:null===(m=s.getLast)||void 0===m?void 0:m.issuedOn)&&void 0!==k?k:null};for(let e of Array.from(null!==(N=null==a?void 0:null===(x=a.current)||void 0===x?void 0:x.get(d.current))&&void 0!==N?N:new Set))(null==r?void 0:null===(S=r.current)||void 0===S?void 0:null===(E=S.smartQuoteChanged)||void 0===E?void 0:null===(L=E.prices)||void 0===L?void 0:L[e])&&(P.prices[e]=null==r?void 0:null===(M=r.current)||void 0===M?void 0:null===(A=M.smartQuoteChanged)||void 0===A?void 0:null===(_=A.prices)||void 0===_?void 0:_[e]);return P},[o,s]),m=!(null==r?void 0:r.current),x=!s;return{data:{getLast:h},loading:!h&&m||x,quoteLoading:x,smartQuoteLoading:m,getQuote:f,q:p}}},72185:(e,t,r)=>{"use strict";r.d(t,{M:()=>a,q:()=>s});var n=r(79772),i=r(86715),l=r(96540),o=r(93210);let a=e=>{let{userProfileData:t}=e;return(0,l.useMemo)(()=>{var e,r,i,l,a,s,u,d,c;let v="",f=null;if((null==t?void 0:null===(e=t.userProfile)||void 0===e?void 0:e.accountType)==="COMPANY"?v=null===o.bookAppointmentData||void 0===o.bookAppointmentData?void 0:null===(l=o.bookAppointmentData.COMPANY)||void 0===l?void 0:l.typeformLink:(null==t?void 0:null===(r=t.userProfile)||void 0===r?void 0:r.accountType)==="SMSF"?v=null===o.bookAppointmentData||void 0===o.bookAppointmentData?void 0:null===(a=o.bookAppointmentData.SMSF)||void 0===a?void 0:a.typeformLink:(null==t?void 0:null===(i=t.userProfile)||void 0===i?void 0:i.accountType)==="TRUST"&&(v=null===o.bookAppointmentData||void 0===o.bookAppointmentData?void 0:null===(s=o.bookAppointmentData.TRUST)||void 0===s?void 0:s.typeformLink),v){let e=null==t?void 0:null===(u=t.userProfile)||void 0===u?void 0:u.email,r=null==t?void 0:null===(d=t.userProfile)||void 0===d?void 0:d.phoneNumber,i=null==t?void 0:null===(c=t.userProfile)||void 0===c?void 0:c.userId,l="".concat(v,"?email=").concat(encodeURIComponent(e),"&phone_number=").concat(encodeURIComponent(r),"&user_id=").concat(encodeURIComponent(i)),{toggle:o}=(0,n.createPopup)(l,{size:70});f=o}return f},[t])},s=e=>{let{userProfileData:t}=e,r=(0,i.useRouter)(),n=a({userProfileData:t});(0,l.useEffect)(()=>{var e;let t=null==r?void 0:null===(e=r.query)||void 0===e?void 0:e.typeform;"string"==typeof t&&"show"===t&&r.replace(r.pathname,void 0,{shallow:!0}).finally(()=>{setTimeout(()=>{null==n||n()},250)})},[null==r?void 0:r.query])}},26262:(e,t,r)=>{"use strict";r.d(t,{l:()=>l});var n=r(96540);let i=n.useLayoutEffect;
1function l(){let[e,t]=(0,n.useState)([0,0]);return i(()=>{function e(){t([window.innerWidth,window.innerHeight])}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),e}},50083:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>h,pm:()=>x,vE:()=>m});var n=r(74848),i=r(34164),l=r(91106),o=r.n(l),a=r(96540),s=r(27428);r(14370);var u=r(8602),d=r(60134),c=r(34356),v=r(46190),f=r(82578),p=r(42258);let h=e=>{let{children:t,title:r,description:i}=e;return(0,f.Tp)(),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.I,{title:r,description:i}),(0,n.jsx)(v.tS,{isRecaptchaNet:!0,children:t})]})},m=e=>{let{children:t,title:r,description:l}=e,h=(0,a.useRef)(null);return(0,f.Tp)(),(0,a.useEffect)(()=>{var e;let t=null===(e=h.current)||void 0===e?void 0:e.querySelector(".carousel-slider");t&&t.classList.add("pb-16")},[]),(0,n.jsxs)(v.tS,{isRecaptchaNet:!0,children:[(0,n.jsx)(u.I,{title:r,description:l}),(0,n.jsx)("main",{className:"bg-black min-h-full",children:(0,n.jsxs)("div",{className:"flex min-h-full",children:[(0,n.jsxs)("div",{className:"lg:flex hidden flex-col lg:basis-6/12 grow bg-[#000000] overflow-hidden pb-12",children:[(0,n.jsx)("div",{className:"px-10 py-5",children:(0,n.jsx)(c.Ay,{fill:"white"})}),(0,n.jsx)("div",{ref:h,className:(0,i.A)("flex flex-col grow items-center justify-center self-center px-4"),children:(0,n.jsxs)(s.FN,{autoPlay:!0,swipeable:!0,emulateTouch:!0,infiniteLoop:!0,showArrows:!1,showThumbs:!1,interval:1e4,showStatus:!1,children:[(0,n.jsxs)("div",{className:"h-full flex flex-col space-y-8 items-center justify-between",children:[(0,n.jsx)("div",{className:"w-[400px] h-[320px] relative",children:(0,n.jsx)(d._,{src:"signup-carousel-1.png",width:576,height:537,alt:"",className:"absolute"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-6 w-[443px]",children:[(0,n.jsx)("p",{className:"text-display-mobile text-white uppercase whitespace-pre-line !leading-[32px]",children:(0,p.t)("Build & Manage Your\nCrypto Portfolio")}),(0,n.jsx)("p",{className:"text-heading-x-small text-white !leading-normal",children:(0,p.t)("Whether youâre a seasoned professional or just starting out, Coinstash has all the tools you need to invest like a pro.")})]})]}),(0,n.jsxs)("div",{className:"h-full flex flex-col space-y-8 items-center justify-between",children:[(0,n.jsx)("div",{className:"w-[400px] h-[320px] relative",children:(0,n.jsx)(d._,{src:"signup-carousel-2.png",width:560,height:537,alt:"",className:"absolute"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-6 w-[443px]",children:[(0,n.jsx)("p",{className:"text-display-mobile text-white uppercase whitespace-pre-line !leading-[32px]",children:(0,p.t)("Easy Deposits\n& Withdrawal")}),(0,n.jsx)("p",{className:"text-heading-x-small text-white !leading-normal",children:(0,p.t)("Enjoy fast, flexible, and free deposit and withdrawal options.")})]})]}),(0,n.jsxs)("div",{className:"h-full flex flex-col space-y-8 items-center justify-between",children:[(0,n.jsx)("div",{className:"w-[400px] h-[320px] relative",children:(0,n.jsx)(d._,{src:"signup-carousel-3.png",width:560,height:537,alt:"",className:"absolute"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-y-6 w-[443px]",children:[(0,n.jsx)("p",{className:"text-display-mobile text-white uppercase whitespace-pre-line !leading-[32px]",children:(0,p.t)("get started\nin minutes")}),(0,n.jsx)("p",{className:"text-heading-x-small text-white !leading-normal",children:(0,p.t)("Sign up and create a free account to begin your crypto journey today.")})]})]})]})}),(0,n.jsxs)("div",{className:"flex justify-center items-center space-x-6 mb-9 mt-[20px]",children:[(0,n.jsx)("div",{children:(0,n.jsx)(d._,{alt:"2024 award winner",src:"2024-award-winner.png",width:39,height:39})}),(0,n.jsx)("div",{children:(0,n.jsx)(d._,{alt:"2023 award winner",src:"2023-award-winner.png",width:39,height:39})}),(0,n.jsx)("div",{children:(0,n.jsx)(d._,{alt:"defi finder finalist",src:"defi-finder-finalist.png",width:39,height:39})})]}),(0,n.jsxs)("div",{className:"flex flex-col items-center relative",children:[(0,n.jsxs)("div",{className:"flex items-center mb-3",children:[(0,n.jsx)(o(),{href:"https://apps.apple.com/au/app/coinstash/id1577145939",className:"inline-flex",children:(0,n.jsx)(d._,{width:92,height:31,src:"AppStoreDownloadOutline.svg",alt:"App Store download"})}),(0,n.jsx)(o(),{href:"https://play.google.com/store/apps/details?id=cs.cs",className:"inline-flex ml-2",children:(0,n.jsx)(d._,{width:104,height:31,src:"PlaymarketDownload.svg",alt:"Play Store download"})})]}),(0,n.jsx)("span",{className:"!font-pptelegraf font-medium text-[16px] text-text-header",children:(0,p.t)("Available on all platforms")})]})]}),(0,n.jsx)("div",{className:"p-0 2xl:px-20 md:px-8 px-4 md:py-8 py-4 2xl
1:w-[838px] xl:w-[588px] lg:w-auto w-full lg:basis-6/12 shrink-0 bg-bg-inverted min-h-screen flex flex-col",children:t})]})})]})},x=e=>{let{children:t,title:r,description:l}=e,o=(0,a.useRef)(null);return(0,f.Tp)(),(0,a.useEffect)(()=>{var e;let t=null===(e=o.current)||void 0===e?void 0:e.querySelector(".carousel-slider");t&&t.classList.add("pb-16")},[]),(0,n.jsxs)(v.tS,{isRecaptchaNet:!0,children:[(0,n.jsx)(u.I,{title:r,description:l}),(0,n.jsx)("main",{className:"bg-black min-h-full",children:(0,n.jsxs)("div",{className:"flex min-h-full",children:[(0,n.jsxs)("div",{className:"lg:flex hidden flex-col lg:basis-6/12 grow bg-[#000000] overflow-hidden",children:[(0,n.jsx)("div",{className:"px-10 py-5",children:(0,n.jsx)(c.Ay,{fill:"white"})}),(0,n.jsx)("div",{ref:o,className:(0,i.A)("flex flex-col grow items-center justify-center self-center px-4"),children:(0,n.jsxs)(s.FN,{autoPlay:!0,swipeable:!0,emulateTouch:!0,infiniteLoop:!0,showArrows:!1,showThumbs:!1,interval:1e4,showStatus:!1,children:[(0,n.jsxs)("div",{className:"h-full flex flex-col space-y-8 items-center justify-between",children:[(0,n.jsx)("div",{children:(0,n.jsx)(d._,{src:"adviserOnboardingAd-1.png",width:533,height:343,alt:""})}),(0,n.jsx)("p",{className:"!font-pptelegraf text-[20px] text-white w-[300px]",children:"Access Client Trading History to streamline your crypto accounting."})]}),(0,n.jsxs)("div",{className:"h-full flex flex-col space-y-8 items-center justify-between",children:[(0,n.jsx)("div",{children:(0,n.jsx)(d._,{src:"adviserOnboardingAd-2.png",width:484,height:289,alt:""})}),(0,n.jsx)("p",{className:"!font-pptelegraf text-[20px] text-white w-[300px]",children:"Detailed EOFY 30 June reports including SMSF audit friendly statements"})]}),(0,n.jsxs)("div",{className:"h-full flex flex-col space-y-8 items-center justify-between",children:[(0,n.jsx)("div",{children:(0,n.jsx)(d._,{src:"adviserOnboardingAd-3.png",width:385,height:332,alt:""})}),(0,n.jsx)("p",{className:"!font-pptelegraf text-[20px] text-white w-[300px]",children:"Powerful Partner Integrations"})]})]})})]}),(0,n.jsx)("div",{className:"p-0 2xl:px-20 md:px-8 px-4 md:py-8 py-4 2xl:w-[838px] xl:w-[588px] lg:w-auto w-full lg:basis-6/12 shrink-0 bg-bg-inverted min-h-screen flex flex-col",children:t})]})})]})}},93136:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n={allowDownsampling:!0};function i(e,t){return void 0===t&&(t=n),new l(e,t)}var l=function(){function e(e,t){var r=this;this._resolutionMediaQueryList=null,this._resolutionListener=function(e){return r._onResolutionChanged()},this._canvasConfiguredListeners=[],this.canvas=e,this._canvasSize={width:this.canvas.clientWidth,height:this.canvas.clientHeight},this._options=t,this._configureCanvas(),this._installResolutionListener()}return e.prototype.destroy=function(){this._canvasConfiguredListeners.length=0,this._uninstallResolutionListener(),this.canvas=null},Object.defineProperty(e.prototype,"canvasSize",{get:function(){return{width:this._canvasSize.width,height:this._canvasSize.height}},enumerable:!0,configurable:!0}),e.prototype.resizeCanvas=function(e){this._canvasSize={width:e.width,height:e.height},this._configureCanvas()},Object.defineProperty(e.prototype,"pixelRatio",{get:function(){var e=this.canvas.ownerDocument.defaultView;if(null==e)throw Error("No window is associated with the canvas");return e.devicePixelRatio>1||this._options.allowDownsampling?e.devicePixelRatio:1},enumerable:!0,configurable:!0}),e.prototype.subscribeCanvasConfigured=function(e){this._canvasConfiguredListeners.push(e)},e.prototype.unsubscribeCanvasConfigured=function(e){this._canvasConfiguredListeners=this._canvasConfiguredListeners.filter(function(t){return t!=e})},e.prototype._configureCanvas=function(){var e=this.pixelRatio;this.canvas.style.width=this._canvasSize.width+"px",this.canvas.style.height=this._canvasSize.height+"px",this.canvas.width=this._canvasSize.width*e,this.canvas.height=this._canvasSize.height*e,this._emitCanvasConfigured()},e.prototype._emitCanvasConfigured=function(){var e=this;this._canvasConfiguredListeners.forEach(function(t){return t.call(e)})},e.prototype._installResolutionListener=function(){if(null!==this._resolutionMediaQueryList)throw Error("Resolution listener is already installed");var e=this.canvas.ownerDocument.defaultView;if(null==e)throw Error("No window is associated with the canvas");var t=e.devicePixelRatio;this._resolutionMediaQueryList=e.matchMedia("all and (resolution: "+t+"dppx)"),this._resolutionMediaQueryList.addListener(this._resolutionListener)},e.prototype._uninstallResolutionListener=function(){null!==this._resolutionMediaQueryList&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},e.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},e.prototype._onResolutionChanged=function(){this._configureCanvas(),this._reinstallResolutionListener()},e}()},81286:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d,serverSideProps:()=>u});
1var n=r(74848),i=r(96540),l=r(67264),o=r(50083),a=r(77836);let s=(0,i.memo)(e=>{let{referer:t}=e;return(0,i.useMemo)(()=>(0,n.jsx)(l.mM,{referer:t}),[t])});s.getLayout=e=>(0,n.jsx)(o.Ht,{title:"Sign Up | Coinstash",description:"Get started with Australia's trusted crypto investing platform in minutes. Join over 40,000 Australians investing on Coinstash.",children:e});let u=async e=>{let{req:t}=e,r=t.headers.referer||"";return{props:{personaEnvironment:a.env.PERSONA_ENVIRONMENT,referer:r,affiliate:null,promo:null}}},d=s},21179:(e,t,r)=>{"use strict";function n(e){return e?e.charAt(0).toUpperCase()+e.toLowerCase().slice(1):""}r.d(t,{Z:()=>n})},2141:e=>{e.exports={orangeGradient:"button_orangeGradient__639bx"}},93513:e=>{e.exports={scrollbar:"Tabs_scrollbar__hPkRC"}},55048:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(96540);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},o=function(e){var t,r=e.children,o=e.onClickAway,a=e.focusEvent,s=void 0===a?"focusin":a,u=e.mouseEvent,d=void 0===u?"click":u,c=e.touchEvent,v=void 0===c?"touchend":c,f=(0,n.useRef)(null),p=(0,n.useRef)(null),h=(0,n.useRef)(!1);(0,n.useEffect)(function(){return setTimeout(function(){h.current=!0},0),function(){h.current=!1}},[]);var m=function(e){return function(t){p.current=t.target;var n=null==r?void 0:r.props[e];n&&n(t)}};(0,n.useEffect)(function(){var e,t,r=null!==(e=null===(t=f.current)||void 0===t?void 0:t.ownerDocument)&&void 0!==e?e:document,n=function(e){h.current&&(f.current&&f.current.contains(e.target)||p.current===e.target||!r.contains(e.target)||o(e))};return r.addEventListener(d,n),r.addEventListener(v,n),r.addEventListener(s,n),function(){r.removeEventListener(d,n),r.removeEventListener(v,n),r.removeEventListener(s,n)}},[s,d,o,v]);var x=l[d],g=l[v],b=l[s];return n.Children.only((0,n.cloneElement)(r,(i(t={ref:function(e){f.current=e;var t=r.ref;"function"==typeof t?t(e):t&&(t.current=e)}},b,m(b)),i(t,x,m(x)),i(t,g,m(g)),t)))};o.displayName="ClickAwayListener"},56799:function(e,t,r){var n;n=e=>(()=>{"use strict";var t={729:e=>{var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function l(e,t,n,l,o){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new i(n,l||e,o),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,l=n.length,o=Array(l);i<l;i++)o[i]=n[i].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,i,l,o){var a=r?r+e:e;if(!this._events[a])return!1;var s,u,d=this._events[a],c=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),c){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,i),!0;case 5:return d.fn.call(d.context,t,n,i,l),!0;case 6:return d.fn.call(d.context,t,n,i,l,o),!0}for(u=1,s=Array(c-1);u<c;u++)s[u-1]=arguments[u];d.fn.apply(d.context,s)}else{var v,f=d.length;for(u=0;u<f;u++)switch(d[u].once&&this.removeListener(e,d[u].fn,void 0,!0),c){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,t);break;case 3:d[u].fn.call(d[u].context,t,n);break;case 4:d[u].fn.call(d[u].context,t,n,i);break;default:if(!s)for(v=1,s=Array(c-1);v<c;v++)s[v-1]=arguments[v];d[u].fn.apply(d[u].context,s)}}return!0},a.prototype.on=function(e,t,r){return l(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return l(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,i){var l=r?r+e:e;if(!this._events[l])return this;if(!t)return o(this,l),this;var a=this._events[l];if(a.fn)a.fn!==t||i&&!a.once||n&&a.context!==n||o(this,l);else{for(var s=0,u=[],d=a.length;s<d;s++)(a[s].fn!==t||i&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[l]=1===u.length?u[0]:u:o(this,l)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},639:t=>{t.exports=e}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n.r(i),n.d(i,{createEvent:()=>L});var t,r=n(729),l=n.n(r),o=n(639),a=!("undefined"==typeof window||null===(t=window.document)||void 0===t||!t.createElement),s=a?o.useLayoutEffect:o.useEffect,u=function(e){var t=(0,o.useRef)(function(){throw Error("Cannot call an event handler during the first render.")});return s(function(){t.current=e}),(0,o.useCallback)(function(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.apply(null,n)},[])},d=function(e){var t=u(e);s(function(){return window.addEventListener("storage",t),function(){window.removeEventListener("storage",t)}},[t])},c=function(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()},v="react-event-hook:undefined",f=Error("The input value could not be serialized"),p=function e(t){try{var r=c(t),n=JSON.stringify(t,function(e,t){return void 0===t?v:t}),i=h(n);if(c(i)!==r)throw f;return"object"===r&&Object.values(t).forEach(function(t){return e(t)}),"array"===r&&t.forEach(function(t){return e(t)}),n}catch(e){throw f}},h=function(e){return JSON.parse(e,function(e,t){if(t!==v)return t})},m=function(){return"".concat(Date.now(),":").concat(parseInt(Math.random().toString().replace(".",""),10))},x=function(e){var t=h(e);return{name:t.name,payload:t.payload}},g="react-event-hook";function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var y=function(e){var t;return[null===(t=e[0])||void 0===t?void 0:t.toUpperCase(),e.slice(1)].join("")},w=["-","_",":","/","."," "],C=function(e){return y(e.toLowerCase())},j=function e(t){var r,n=function(e){if(Array.isArray(e))return e}(r=t.split(new RegExp("[".concat(w.join(""),"](.*)"))))||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,l=[],o=!0,a=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(l.push(n.value),2!==l.length);o=!0);}catch(e){a=!0,i=e}finally{try{o||null==r.return||r.return()}finally{if(a)throw i}}return l}}(r,2)||function(e,t){if(e){if("string"==typeof e)return b(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,2):void 0}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=n[0],l=n[1];return void 0!==i&&void 0!==l?"".concat(C(i)).concat(e(l)):t.toUpperCase()===t&&t.toLowerCase()!==t?C(t):y(t)},k=new(l()),N=new Map,L=function(t){return function(){var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.crossTab,l=void 0!==i&&i,o=t.trim(),c=j(o),v="use".concat(c,"Listener"),f="emit".concat(c),h=m(),b=function(){N.has(o)&&N.get(o),N.set(o,h)},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.broadcast;if(a&&(b(),void 0!==r&&r||k.emit(o,e),l))try{var n=p({id:m(),name:o,payload:e});try{window.localStorage.setItem(g,n)}catch(e){}}catch(e){throw Error('Could not emit "'.concat(o,'" event. The event payload might contain values that cannot be serialized.'))}},w=function(e){return y(e)};return w.broadcast=function(e){return y(e,{broadcast:!0})},e(r={},v,function(e){var t=u(e);d(function(t){if(l&&t.newValue&&t.key===g){var r=x(t.newValue);r.name===o&&e(r.payload)}}),s(function(){return k.addListener(o,t),function(){k.removeListener(o,t)}},[t])}),e(r,f,w),r}}})(),i})(),e.exports=n(r(96540))},95098:()=>{},3473:(e,t,r)=>{"use strict";r.d(t,{W:()=>B});var n=r(96540),i=r(39347),l=r(73700),o=r(31418),a=r(85130),s=r(55621),u=r(39458),d=r(55312),c=r(24676),v=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(v||{}),f=r(52603),p=r(18209);function h(e){return p._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let m=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var x=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(x||{}),g=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(g||{}),b=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(b||{});function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(m)).sort((e,t)=>
1Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var w=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(w||{});function C(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=h(e))?void 0:t.body)&&(0,i.Y)(r,{0:()=>e.matches(m),1(){let t=e;for(;null!==t;){if(t.matches(m))return!0;t=t.parentElement}return!1}})}function j(e){let t=h(e);(0,o.e)().nextFrame(()=>{t&&!C(t.activeElement,0)&&(null==e||e.focus({preventScroll:!0}))})}var k=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(k||{});function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let l=n.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var L=r(5898);function E(e,t,r){let i=(0,L.Y)(t);(0,n.useEffect)(()=>{function t(e){i.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var S=r(41243),_=r(94623),A=r(16413);function M(e){return[e.screenX,e.screenY]}let P=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function I(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return n;let l=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),l=!0;let o=l?null!=(r=i.innerText)?r:"":n;return P.test(o)&&(o=o.replace(P,"")),o}var F=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(F||{}),D=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(D||{}),R=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(R||{});function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=N(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return -1===i&&(i=null),{items:n,activeItemIndex:i}}let O={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var r;let n=T(e),i=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1,l=(()=>{switch(e.focus){case 0:return r.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=r.slice().reverse().findIndex((e,r,n)=>(-1===i||!(n.length-r-1>=i))&&!t.resolveDisabled(e));return -1===e?e:r.length-1-e}case 2:return r.findIndex((e,r)=>!(r<=i)&&!t.resolveDisabled(e));case 3:{let e=r.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return -1===e?e:r.length-1-e}case 4:return r.findIndex(r=>t.resolveId(r)===e.id);case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}})();return -1===l?n:l}(t,{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,searchQuery:"",activeItemIndex:i,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>{let r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),l=i?e.items.indexOf(i):-1;return -1===l||l===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:l,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=T(e,e=>[...e,{id:t.id,dataRef:t.dataRef}
1]);return{...e,...r}},6:(e,t)=>{let r=T(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}}},V=(0,n.createContext)(null);function U(e){let t=(0,n.useContext)(V);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,U),t}return t}function z(e,t){return(0,i.Y)(t.type,O,e,t)}V.displayName="MenuContext";let Y=n.Fragment,q=l.O5.RenderStrategy|l.O5.Static,W=n.Fragment,B=Object.assign((0,l.FX)(function(e,t){let{__demoMode:r=!1,...o}=e,a=(0,n.useReducer)(z,{__demoMode:r,menuState:r?0:1,buttonRef:(0,n.createRef)(),itemsRef:(0,n.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:s,itemsRef:d,buttonRef:c},v]=a,f=(0,u.P)(t);!function(e,t){var r,i;let l,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=(0,n.useRef)(!1);function s(r,n){if(!a.current||r.defaultPrevented)return;let i=n(r);if(null!==i&&i.getRootNode().contains(i)){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(i)||r.composed&&r.composedPath().includes(e))return}return C(i,w.Loose)||-1===i.tabIndex||r.preventDefault(),t(r,i)}}(0,n.useEffect)(()=>{requestAnimationFrame(()=>{a.current=o})},[o]);let u=(0,n.useRef)(null);E("mousedown",e=>{var t,r;a.current&&(u.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),E("click",e=>{u.current&&(s(e,()=>u.current),u.current=null)},!0),r="blur",i=e=>s(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),l=(0,L.Y)(i),(0,n.useEffect)(()=>{function e(e){l.current(e)}return window.addEventListener(r,e,!0),()=>window.removeEventListener(r,e,!0)},[r,!0])}([c,d],(e,t)=>{var r;v({type:1}),C(t,w.Loose)||(e.preventDefault(),null==(r=c.current)||r.focus())},0===s);let p=(0,A._)(()=>{v({type:1})}),h=(0,n.useMemo)(()=>({open:0===s,close:p}),[s,p]);return n.createElement(V.Provider,{value:a},n.createElement(S.El,{value:(0,i.Y)(s,{0:S.Uw.Open,1:S.Uw.Closed})},(0,l.XX)({ourProps:{ref:f},theirProps:o,slot:h,defaultTag:Y,name:"Menu"})))}),{Button:(0,l.FX)(function(e,t){var r;let i=(0,d.B)(),{id:o="headlessui-menu-button-".concat(i),...s}=e,[p,h]=U("Menu.Button"),m=(0,u.P)(p.buttonRef,t),x=(0,a.L)(),g=(0,A._)(e=>{switch(e.key){case c.D.Space:case c.D.Enter:case c.D.ArrowDown:e.preventDefault(),e.stopPropagation(),h({type:0}),x.nextFrame(()=>h({type:2,focus:v.First}));break;case c.D.ArrowUp:e.preventDefault(),e.stopPropagation(),h({type:0}),x.nextFrame(()=>h({type:2,focus:v.Last}))}}),b=(0,A._)(e=>{e.key===c.D.Space&&e.preventDefault()}),y=(0,A._)(t=>{if((0,f.l)(t.currentTarget))return t.preventDefault();e.disabled||(0===p.menuState?(h({type:1}),x.nextFrame(()=>{var e;return null==(e=p.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
1)):(t.preventDefault(),h({type:0})))}),w=(0,n.useMemo)(()=>({open:0===p.menuState}),[p]),C={ref:m,id:o,type:(0,_.c)(e,p.buttonRef),"aria-haspopup":"menu","aria-controls":null==(r=p.itemsRef.current)?void 0:r.id,"aria-expanded":e.disabled?void 0:0===p.menuState,onKeyDown:g,onKeyUp:b,onClick:y};return(0,l.XX)({ourProps:C,theirProps:s,slot:w,defaultTag:"button",name:"Menu.Button"})}),Items:(0,l.FX)(function(e,t){var r,i;let f=(0,d.B)(),{id:p="headlessui-menu-items-".concat(f),...m}=e,[g,b]=U("Menu.Items"),w=(0,u.P)(g.itemsRef,t),C=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.useMemo)(()=>h(...t),[...t])}(g.itemsRef),k=(0,a.L)(),L=(0,S.O_)(),E=null!==L?(L&S.Uw.Open)===S.Uw.Open:0===g.menuState;(0,n.useEffect)(()=>{let e=g.itemsRef.current;e&&0===g.menuState&&e!==(null==C?void 0:C.activeElement)&&e.focus({preventScroll:!0})},[g.menuState,g.itemsRef,C]),function(e){let{container:t,accept:r,walk:i,enabled:l=!0}=e,o=(0,n.useRef)(r),a=(0,n.useRef)(i);(0,n.useEffect)(()=>{o.current=r,a.current=i},[r,i]),(0,s.s)(()=>{if(!t||!l)return;let e=h(t);if(!e)return;let r=o.current,n=a.current,i=Object.assign(e=>r(e),{acceptNode:r}),s=e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)n(s.currentNode)},[t,l,o,a])}({container:g.itemsRef.current,enabled:0===g.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let _=(0,A._)(e=>{var t,r;switch(k.dispose(),e.key){case c.D.Space:if(""!==g.searchQuery)return e.preventDefault(),e.stopPropagation(),b({type:3,value:e.key});case c.D.Enter:if(e.preventDefault(),e.stopPropagation(),b({type:1}),null!==g.activeItemIndex){let{dataRef:e}=g.items[g.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}j(g.buttonRef.current);break;case c.D.ArrowDown:return e.preventDefault(),e.stopPropagation(),b({type:2,focus:v.Next});case c.D.ArrowUp:return e.preventDefault(),e.stopPropagation(),b({type:2,focus:v.Previous});case c.D.Home:case c.D.PageUp:return e.preventDefault(),e.stopPropagation(),b({type:2,focus:v.First});case c.D.End:case c.D.PageDown:return e.preventDefault(),e.stopPropagation(),b({type:2,focus:v.Last});case c.D.Escape:e.preventDefault(),e.stopPropagation(),b({type:1}),(0,o.e)().nextFrame(()=>{var e;return null==(e=g.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case c.D.Tab:e.preventDefault(),e.stopPropagation(),b({type:1}),(0,o.e)().nextFrame(()=>{var t,r;t=g.buttonRef.current,r=e.shiftKey?x.Previous:x.Next,function(e,t){var r,n,i;let{sorted:l=!0,relativeTo:o=null,skipElements:a=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?l?N(e):e:y(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.includes(e))),o=null!=o?o:s.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(o))-1;if(4&t)return Math.max(0,u.indexOf(o))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),v=32&t?{preventScroll:!0}:{},f=0,p=u.length,h;do{if(f>=p||f+p<=0)return 0;let e=c+f;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(h=u[e])||h.focus(v),f+=d}while(h!==s.activeElement);6&t&&null!=(i=null==(n=null==(r=h)?void 0:r.matches)?void 0:n.call(r,"textarea,input"))&&i&&h.select()}(y(),r,{relativeTo:t})});break;default:1===e.key.length&&(b({type:3,value:e.key}),k.setTimeout(()=>b({type:4}),350))}}),M=(0,A._)(e=>{e.key===c.D.Space&&e.preventDefault()}),P=(0,n.useMemo)(()=>({open:0===g.menuState}),[g]),I={"aria-activedescendant":null===g.activeItemIndex||null==(r=g.items[g.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(i=g.buttonRef.current)?void 0:i.id,id:p,onKeyDown:_,onKeyUp:M,role:"menu",tabIndex:0,ref:w};return(0,l.XX)({ourProps:I,theirProps:m,slot:P,defaultTag:"div",features:q,visible:E,name:"Menu.Items"})}),Item:(0,l.FX)(function(e,t){let r,i,a,c=(0,d.B)(),{id:f="headlessui-menu-item-".concat(c),disabled:p=!1,...h}
1=e,[m,x]=U("Menu.Item"),g=null!==m.activeItemIndex&&m.items[m.activeItemIndex].id===f,b=(0,n.useRef)(null),y=(0,u.P)(t,b);(0,s.s)(()=>{if(m.__demoMode||0!==m.menuState||!g||0===m.activationTrigger)return;let e=(0,o.e)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=b.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[m.__demoMode,b,g,m.menuState,m.activationTrigger,m.activeItemIndex]);let w=(r=(0,n.useRef)(""),i=(0,n.useRef)(""),(0,A._)(()=>{let e=b.current;if(!e)return"";let t=e.innerText;if(r.current===t)return i.current;let n=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():I(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return I(e).trim()})(e).trim().toLowerCase();return r.current=t,i.current=n,n})),C=(0,n.useRef)({disabled:p,domRef:b,get textValue(){return w()}});(0,s.s)(()=>{C.current.disabled=p},[C,p]),(0,s.s)(()=>(x({type:5,id:f,dataRef:C}),()=>x({type:6,id:f})),[C,f]);let k=(0,A._)(()=>{x({type:1})}),N=(0,A._)(e=>{if(p)return e.preventDefault();x({type:1}),j(m.buttonRef.current)}),L=(0,A._)(()=>{if(p)return x({type:2,focus:v.Nothing});x({type:2,focus:v.Specific,id:f})}),E=(a=(0,n.useRef)([-1,-1]),{wasMoved(e){let t=M(e);return(a.current[0]!==t[0]||a.current[1]!==t[1])&&(a.current=t,!0)},update(e){a.current=M(e)}}),S=(0,A._)(e=>E.update(e)),_=(0,A._)(e=>{E.wasMoved(e)&&(p||g||x({type:2,focus:v.Specific,id:f,trigger:0}))}),P=(0,A._)(e=>{E.wasMoved(e)&&(p||g&&x({type:2,focus:v.Nothing}))}),F=(0,n.useMemo)(()=>({active:g,disabled:p,close:k}),[g,p,k]);return(0,l.XX)({ourProps:{id:f,ref:y,role:"menuitem",tabIndex:!0===p?void 0:-1,"aria-disabled":!0===p||void 0,disabled:void 0,onClick:N,onFocus:L,onPointerEnter:S,onMouseEnter:S,onPointerMove:_,onMouseMove:_,onPointerLeave:P,onMouseLeave:P},theirProps:h,slot:F,defaultTag:W,name:"Menu.Item"})})})},10118:(e,t,r)=>{"use strict";r.d(t,{e:()=>M});var n=r(96540),i=r(73700),l=r(41243),o=r(39347),a=r(55621);function s(){let e=(0,n.useRef)(!1);return(0,a.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var u=r(5898),d=r(8485),c=r(39458),v=r(31418);function f(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.add(...r)}function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e&&r.length>0&&e.classList.remove(...r)}var h=r(85130),m=r(16413),x=r(2951);function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split(" ").filter(e=>e.trim().length>1)}let b=(0,n.createContext)(null);b.displayName="TransitionContext";var y=(e=>(e.Visible="visible",e.Hidden="hidden",e))(y||{});let w=(0,n.createContext)(null);function C(e){return"children"in e?C(e.children):e.current.filter(e=>{let{el:t}=e;return null!==t.current}).filter(e=>{let{state:t}=e;return"visible"===t}).length>0}function j(e,t){let r=(0,u.Y)(e),l=(0,n.useRef)([]),a=s(),d=(0,h.L)(),c=(0,m._)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.mK.Hidden,n=l.current.findIndex(t=>{let{el:r}=t;return r===e});-1!==n&&((0,o.Y)(t,{[i.mK.Unmount](){l.current.splice(n,1)},[i.mK.Hidden](){l.current[n].state="hidden"}}),d.microTask(()=>{var e;!C(l)&&a.current&&(null==(e=r.current)||e.call(r))}))}),v=(0,m._)(e=>{let t=l.current.find(t=>{let{el:r}=t;return r===e});return t?"visible"!==t.state&&(t.state="visible"):l.current.push({el:e,state:"visible"}),()=>c(e,i.mK.Unmount)}),f=(0,n.useRef)([]),p=(0,n.useRef)(Promise.resolve()),x=(0,n.useRef)({enter:[],leave:[],idle:[]}),g=(0,m._)((e,r,n)=>{f.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(t=>{let[r]=t;return r!==e})),null==t||t.chains.current[r].push([e,new Promise(e=>{f.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(x.current[r].map(e=>{let[t,r]=e;return r})).then(()=>e())}
1)]),"enter"===r?p.current=p.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),b=(0,m._)((e,t,r)=>{Promise.all(x.current[t].splice(0).map(e=>{let[t,r]=e;return r})).then(()=>{var e;null==(e=f.current.shift())||e()}).then(()=>r(t))});return(0,n.useMemo)(()=>({children:l,register:v,unregister:c,onStart:g,onStop:b,wait:p,chains:x}),[v,c,l,g,b,x,p])}function k(){}w.displayName="NestingContext";let N=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function L(e){var t;let r={};for(let n of N)r[n]=null!=(t=e[n])?t:k;return r}let E=i.O5.RenderStrategy,S=(0,i.FX)(function(e,t){let{show:r,appear:o=!1,unmount:s,...u}=e,v=(0,n.useRef)(null),f=(0,c.P)(v,t);(0,d.g)();let p=(0,l.O_)();if(void 0===r&&null!==p&&(r=(p&l.Uw.Open)===l.Uw.Open),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,x]=(0,n.useState)(r?"visible":"hidden"),g=j(()=>{x("hidden")}),[y,k]=(0,n.useState)(!0),N=(0,n.useRef)([r]);(0,a.s)(()=>{!1!==y&&N.current[N.current.length-1]!==r&&(N.current.push(r),k(!1))},[N,r]);let L=(0,n.useMemo)(()=>({show:r,appear:o,initial:y}),[r,o,y]);(0,n.useEffect)(()=>{if(r)x("visible");else if(C(g)){let e=v.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&x("hidden")}else x("hidden")},[r,g]);let S={unmount:s},A=(0,m._)(()=>{var t;y&&k(!1),null==(t=e.beforeEnter)||t.call(e)}),M=(0,m._)(()=>{var t;y&&k(!1),null==(t=e.beforeLeave)||t.call(e)});return n.createElement(w.Provider,{value:g},n.createElement(b.Provider,{value:L},(0,i.XX)({ourProps:{...S,as:n.Fragment,children:n.createElement(_,{ref:f,...S,...u,beforeEnter:A,beforeLeave:M})},theirProps:{},defaultTag:n.Fragment,features:E,visible:"visible"===h,name:"Transition"})))}),_=(0,i.FX)(function(e,t){var r;let y,{beforeEnter:k,afterEnter:N,beforeLeave:S,afterLeave:_,enter:A,enterFrom:M,enterTo:P,entered:I,leave:F,leaveFrom:D,leaveTo:R,...T}=e,O=(0,n.useRef)(null),V=(0,c.P)(O,t),U=T.unmount?i.mK.Unmount:i.mK.Hidden,{show:z,appear:Y,initial:q}=function(){let e=(0,n.useContext)(b);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[W,B]=(0,n.useState)(z?"visible":"hidden"),H=function(){let e=(0,n.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:Q,unregister:K}=H,X=(0,n.useRef)(null);(0,n.useEffect)(()=>Q(O),[Q,O]),(0,n.useEffect)(()=>{if(U===i.mK.Hidden&&O.current){if(z&&"visible"!==W){B("visible");return}return(0,o.Y)(W,{hidden:()=>K(O),visible:()=>Q(O)})}},[W,O,Q,K,z,U]);let G=(0,u.Y)({enter:g(A),enterFrom:g(M),enterTo:g(P),entered:g(I),leave:g(F),leaveFrom:g(D),leaveTo:g(R)}),J=(r={beforeEnter:k,afterEnter:N,beforeLeave:S,afterLeave:_},y=(0,n.useRef)(L(r)),(0,n.useEffect)(()=>{y.current=L(r)},[r]),y),$=(0,d.g)();(0,n.useEffect)(()=>{if($&&"visible"===W&&null===O.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[O,W,$]);let Z=q&&!Y,ee=!$||Z||X.current===z?"idle":z?"enter":"leave",et=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,r]=(0,n.useState)(e),i=s(),l=(0,n.useCallback)(e=>{i.current&&r(t=>t|e)},[t,i]),o=(0,n.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:l,hasFlag:o,removeFlag:(0,n.useCallback)(e=>{i.current&&r(t=>t&~e)},[r,i]),toggleFlag:(0,n.useCallback)(e=>{i.current&&r(t=>t^e)},[r])}}(0),er=(0,m._)(e=>(0,o.Y)(e,{enter:()=>{et.addFlag(l.Uw.Opening),J.current.beforeEnter()},leave:()=>{et.addFlag(l.Uw.Closing),J.current.beforeLeave()},idle:()=>{}})),en=(0,m._)(e=>(0,o.Y)(e,{enter:()=>{et.removeFlag(l.Uw.Opening),J.current.afterEnter()},leave:()=>{et.removeFlag(l.Uw.Closing),J.current.afterLeave()},idle:()=>{}})),ei=j(()=>{B("hidden"),K(O)},H);(function(e){let{container:t,direction:r,classes:n,onStart:i,onStop:l}=e,d=s(),c=(0,h.L)(),m=(0,u.Y)(r);(0,a.s)(()=>{let e=(0,v.e)();c.add(e.dispose);let r=t.current;if(r&&"idle"!==m.current&&d.current){var a,s,u;let t,d,c,h,x,g,b;return e.dispose(),i.current(m.current),e.add((a=n.current,s="enter"===m.current,u=()=>{e.dispose(),l.current(m.current)},d=s?"enter":"leave",c=(0,v.e)(),h=void 0!==u?(t={called:!1},function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!t.called)return t.called=!0,u(...r)}):()=>{}
1,"enter"===d&&(r.removeAttribute("hidden"),r.style.display=""),x=(0,o.Y)(d,{enter:()=>a.enter,leave:()=>a.leave}),g=(0,o.Y)(d,{enter:()=>a.enterTo,leave:()=>a.leaveTo}),b=(0,o.Y)(d,{enter:()=>a.enterFrom,leave:()=>a.leaveFrom}),p(r,...a.enter,...a.enterTo,...a.enterFrom,...a.leave,...a.leaveFrom,...a.leaveTo,...a.entered),f(r,...x,...b),c.nextFrame(()=>{p(r,...b),f(r,...g),function(e,t){let r=(0,v.e)();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[l,o]=[n,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),a=l+o;if(0!==a){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},a),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(r,()=>(p(r,...x),f(r,...a.entered),h()))}),c.dispose)),e.dispose}},[r])})({container:O,classes:G,direction:ee,onStart:(0,u.Y)(e=>{ei.onStart(O,e,er)}),onStop:(0,u.Y)(e=>{ei.onStop(O,e,en),"leave"!==e||C(ei)||(B("hidden"),K(O))})}),(0,n.useEffect)(()=>{Z&&(U===i.mK.Hidden?X.current=null:X.current=z)},[z,Z,W]);let el=T;return Y&&z&&q&&(el={...el,className:(0,x.x)(T.className,...G.current.enter,...G.current.enterFrom)}),n.createElement(w.Provider,{value:ei},n.createElement(l.El,{value:(0,o.Y)(W,{visible:l.Uw.Open,hidden:l.Uw.Closed})|et.flags},(0,i.XX)({ourProps:{ref:V},theirProps:el,defaultTag:"div",features:E,visible:"visible"===W,name:"Transition.Child"})))}),A=(0,i.FX)(function(e,t){let r=null!==(0,n.useContext)(b),i=null!==(0,l.O_)();return n.createElement(n.Fragment,null,!r&&i?n.createElement(S,{ref:t,...e}):n.createElement(_,{ref:t,...e}))}),M=Object.assign(S,{Child:A,Root:S})},41243:(e,t,r)=>{"use strict";r.d(t,{El:()=>a,O_:()=>o,Uw:()=>l});var n=r(96540);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var l=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(l||{});function o(){return(0,n.useContext)(i)}function a(e){let{value:t,children:r}=e;return n.createElement(i.Provider,{value:t},r)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.