=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+u;return{name:c,styles:i,next:we}},Ee=!!a.useInsertionEffect&&a.useInsertionEffect,_e=Ee||function(e){return e()},xe=Ee||o.useLayoutEffect,Se=o.createContext("undefined"!==typeof HTMLElement?le({key:"css"}):null);Se.Provider;var Ie=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(Se);return e(t,r,n)}))};var De=o.createContext({});var Te=function(){return o.useContext(De)},Oe=de((function(e){return de((function(t){return function(e,t){return"function"===typeof t?t(e):(0,s.Z)({},e,t)}(e,t)}))})),Ne=function(e){var t=o.useContext(De);return e.theme!==t&&(t=Oe(t)(e.theme)),o.createElement(De.Provider,{value:t},e.children)};var Pe=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Le=function(e,t,n){Pe(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Be=u.Z,Me=function(e){return"theme"!==e},Re=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?Be:Me},je=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},Ze=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Pe(t,n,r),_e((function(){return Le(t,n,r)})),null},Fe=function e(t,n){var r,i,a=t.__emotion_real===t,u=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var c=je(t,n,a),l=c||Re(u),d=!l("as");return function(){var f=arguments,h=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&h.push("label:"+r+";"),null==f[0]||void 0===f[0].raw)h.push.apply(h,f);else{0,h.push(f[0][0]);for(var p=f.length,g=1;g0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function Je(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function $e(e){var t,n=e.values,r=e.breakpoints,i=e.base||function(e,t){if("object"!==typeof e)return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?(0,s.Z)({},e):e;return et(e)&&et(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(et(t[i])&&i in e&&et(e[i])?r[i]=nt(e[i],t[i],n):n.clone?r[i]=et(t[i])?tt(t[i]):t[i]:r[i]=t[i])})),r}var rt=n(29439);function it(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function st(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:at(e,n)||i,t&&(r=t(r,i,e)),r}var ut=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=at(e.theme,i)||{};return Xe(e,n,(function(e){var n=st(a,o,e);return e===n&&"string"===typeof e&&(n=st(a,o,"".concat(t).concat("default"===e?"":ot(e)),e)),!1===r?n:(0,Ve.Z)({},r,n)}))};return a.propTypes={},a.filterProps=[t],a};var ct=function(e,t){return t?nt(e,t,{clone:!1}):e};var lt={m:"margin",p:"padding"},dt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ft={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ht=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!ft[e])return[e];e=ft[e]}var t=e.split(""),n=(0,rt.Z)(t,2),r=n[0],i=n[1],o=lt[r],a=dt[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),pt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vt=[].concat(pt,gt);function mt(e,t,n,r){var i,o=null!=(i=at(e,t,!1))?i:n;return"number"===typeof o?function(e){return"string"===typeof e?e:o*e}:Array.isArray(o)?function(e){return"string"===typeof e?e:o[e]}:"function"===typeof o?o:function(){}}function yt(e){return mt(e,"spacing",8)}function At(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function bt(e,t,n,r){if(-1===t.indexOf(n))return null;var i=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=At(t,n),e}),{})}}(ht(n),r);return Xe(e,e[n],i)}function wt(e,t){var n=yt(e.theme);return Object.keys(e).map((function(r){return bt(e,t,r,n)})).reduce(ct,{})}function Ct(e){return wt(e,pt)}function kt(e){return wt(e,gt)}function Et(e){return wt(e,vt)}Ct.propTypes={},Ct.filterProps=pt,kt.propTypes={},kt.filterProps=gt,Et.propTypes={},Et.filterProps=vt;var _t=function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){if(r){var i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var en=Fe.bind();function tn(e,t){return en(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){en[e]=en(e)}));var nn=["values","unit","step"],rn=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,s.Z)({},e,(0,Ve.Z)({},t.key,t.val))}),{})};var on={borderRadius:4};var an=function(){function e(e,t,n,r){var i,o=(i={},(0,Ve.Z)(i,e,t),(0,Ve.Z)(i,"theme",n),i),a=r[e];if(!a)return(0,Ve.Z)({},e,t);var s=a.cssProperty,u=void 0===s?e:s,c=a.themeKey,l=a.transform,d=a.style;if(null==t)return null;if("typography"===c&&"inherit"===t)return(0,Ve.Z)({},e,t);var f=at(n,c)||{};if(d)return d(o);return Xe(o,t,(function(t){var n=st(f,l,t);return t===n&&"string"===typeof t&&(n=st(f,l,"".concat(e).concat("default"===t?"":ot(t)),t)),!1===u?n:(0,Ve.Z)({},u,n)}))}return function t(n){var r,i=n||{},o=i.sx,a=i.theme,s=void 0===a?{}:a;if(!o)return null;var u=null!=(r=s.unstable_sxConfig)?r:Kt;function c(n){var r=n;if("function"===typeof n)r=n(s);else if("object"!==typeof n)return n;if(!r)return null;var i=Ye(s.breakpoints),o=Object.keys(i),a=i;return Object.keys(r).forEach((function(n){var i,o,c=(i=r[n],o=s,"function"===typeof i?i(o):i);if(null!==c&&void 0!==c)if("object"===typeof c)if(u[n])a=ct(a,e(n,c,s,u));else{var l=Xe({theme:s},c,(function(e){return(0,Ve.Z)({},n,e)}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.palette,i=void 0===r?{}:r,o=e.spacing,a=e.shape,u=void 0===a?{}:a,c=(0,Ue.Z)(e,un),l=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,u=(0,Ue.Z)(e,nn),c=rn(n),l=Object.keys(c);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-a/100).concat(i,")")}function h(e,t){var r=l.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[l[r]]?n[l[r]]:t)-a/100).concat(i,")")}return(0,s.Z)({keys:l,values:c,up:d,down:f,between:h,only:function(e){return l.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=yt({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?h-1:0),g=1;g1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Cn(e){if(e.type)return e;if("#"===e.charAt(0))return Cn(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(it(9,e));var r,i=e.substring(t+1,e.length-1);if("color"===n){if(r=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(it(10,r))}else i=i.split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)})),colorSpace:r}}function kn(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function En(e){var t="hsl"===(e=Cn(e)).type||"hsla"===e.type?Cn(function(e){var t=(e=Cn(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),kn({type:s,values:u})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _n(e,t){return e=Cn(e),t=wn(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,kn(e)}function xn(e,t){if(e=Cn(e),t=wn(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return kn(e)}function Sn(e,t){if(e=Cn(e),t=wn(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return kn(e)}var In={black:"#000",white:"#fff"},Dn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Tn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},On={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Nn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Pn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ln={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Bn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Mn=["mode","contrastThreshold","tonalOffset"],Rn={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:In.white,default:In.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},jn={text:{primary:In.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:In.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Zn(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Sn(e.main,i):"dark"===t&&(e.dark=xn(e.main,o)))}function Fn(e){var t=e.mode,n=void 0===t?"light":t,r=e.contrastThreshold,i=void 0===r?3:r,o=e.tonalOffset,a=void 0===o?.2:o,u=(0,Ue.Z)(e,Mn),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Pn[200],light:Pn[50],dark:Pn[400]}:{main:Pn[700],light:Pn[400],dark:Pn[800]}}(n),l=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Tn[200],light:Tn[50],dark:Tn[400]}:{main:Tn[500],light:Tn[300],dark:Tn[700]}}(n),d=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:On[500],light:On[300],dark:On[700]}:{main:On[700],light:On[400],dark:On[800]}}(n),f=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Ln[400],light:Ln[300],dark:Ln[700]}:{main:Ln[700],light:Ln[500],dark:Ln[900]}}(n),h=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Bn[400],light:Bn[300],dark:Bn[700]}:{main:Bn[800],light:Bn[500],dark:Bn[900]}}(n),p=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Nn[400],light:Nn[300],dark:Nn[700]}:{main:"#ed6c02",light:Nn[500],dark:Nn[900]}}(n);function g(e){var t=function(e,t){var n=En(e),r=En(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,jn.text.primary)>=i?jn.text.primary:Rn.text.primary;return t}var v=function(e){var t=e.color,n=e.name,r=e.mainShade,i=void 0===r?500:r,o=e.lightShade,u=void 0===o?300:o,c=e.darkShade,l=void 0===c?700:c;if(!(t=(0,s.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error(it(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error(it(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return Zn(t,"light",u,a),Zn(t,"dark",l,a),t.contrastText||(t.contrastText=g(t.main)),t},m={dark:jn,light:Rn};return nt((0,s.Z)({common:(0,s.Z)({},In),mode:n,primary:v({color:c,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:f,name:"info"}),success:v({color:h,name:"success"}),grey:Dn,contrastThreshold:i,getContrastText:g,augmentColor:v,tonalOffset:a},m[n]),u)}var Qn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var zn={textTransform:"uppercase"},Hn='"Roboto", "Helvetica", "Arial", sans-serif';function Vn(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Hn:r,o=n.fontSize,a=void 0===o?14:o,u=n.fontWeightLight,c=void 0===u?300:u,l=n.fontWeightRegular,d=void 0===l?400:l,f=n.fontWeightMedium,h=void 0===f?500:f,p=n.fontWeightBold,g=void 0===p?700:p,v=n.htmlFontSize,m=void 0===v?16:v,y=n.allVariants,A=n.pxToRem,b=(0,Ue.Z)(n,Qn);var w=a/14,C=A||function(e){return"".concat(e/m*w,"rem")},k=function(e,t,n,r,o){return(0,s.Z)({fontFamily:i,fontWeight:e,fontSize:C(t),lineHeight:n},i===Hn?{letterSpacing:"".concat((a=r/t,Math.round(1e5*a)/1e5),"em")}:{},o,y);var a},E={h1:k(c,96,1.167,-1.5),h2:k(c,60,1.2,-.5),h3:k(d,48,1.167,0),h4:k(d,34,1.235,.25),h5:k(d,24,1.334,0),h6:k(h,20,1.6,.15),subtitle1:k(d,16,1.75,.15),subtitle2:k(h,14,1.57,.1),body1:k(d,16,1.5,.15),body2:k(d,14,1.43,.15),button:k(h,14,1.75,.4,zn),caption:k(d,12,1.66,.4),overline:k(d,12,2.66,1,zn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nt((0,s.Z)({htmlFontSize:m,pxToRem:C,fontFamily:i,fontSize:a,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:h,fontWeightBold:g},E),b,{clone:!1})}function Un(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Wn=["none",Un(0,2,1,-1,0,1,1,0,0,1,3,0),Un(0,3,1,-2,0,2,2,0,0,1,5,0),Un(0,3,3,-2,0,3,4,0,0,1,8,0),Un(0,2,4,-1,0,4,5,0,0,1,10,0),Un(0,3,5,-1,0,5,8,0,0,1,14,0),Un(0,3,5,-1,0,6,10,0,0,1,18,0),Un(0,4,5,-2,0,7,10,1,0,2,16,1),Un(0,5,5,-3,0,8,10,1,0,3,14,2),Un(0,5,6,-3,0,9,12,1,0,3,16,2),Un(0,6,6,-3,0,10,14,1,0,4,18,3),Un(0,6,7,-4,0,11,15,1,0,4,20,3),Un(0,7,8,-4,0,12,17,2,0,5,22,4),Un(0,7,8,-4,0,13,19,2,0,5,24,4),Un(0,7,9,-4,0,14,21,2,0,5,26,4),Un(0,8,9,-5,0,15,22,2,0,6,28,5),Un(0,8,10,-5,0,16,24,2,0,6,30,5),Un(0,8,11,-5,0,17,26,2,0,6,32,5),Un(0,9,11,-5,0,18,28,2,0,7,34,6),Un(0,9,12,-6,0,19,29,2,0,7,36,6),Un(0,10,13,-6,0,20,31,3,0,8,38,7),Un(0,10,13,-6,0,21,33,3,0,8,40,7),Un(0,10,14,-6,0,22,35,3,0,8,42,7),Un(0,11,14,-7,0,23,36,3,0,9,44,8),Un(0,11,15,-7,0,24,38,3,0,9,46,8)],Gn=["duration","easing","delay"],qn={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Kn={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xn(e){return"".concat(Math.round(e),"ms")}function Yn(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function Jn(e){var t=(0,s.Z)({},qn,e.easing),n=(0,s.Z)({},Kn,e.duration);return(0,s.Z)({getAutoHeightDuration:Yn,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.duration,o=void 0===i?n.standard:i,a=r.easing,s=void 0===a?t.easeInOut:a,u=r.delay,c=void 0===u?0:u;(0,Ue.Z)(r,Gn);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof o?o:Xn(o)," ").concat(s," ").concat("string"===typeof c?c:Xn(c))})).join(",")}},e,{easing:t,duration:n})}var $n={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},er=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,i=void 0===r?{}:r,o=e.transitions,a=void 0===o?{}:o,u=e.typography,c=void 0===u?{}:u,l=(0,Ue.Z)(e,er);if(e.vars)throw new Error(it(18));var d=Fn(i),f=cn(e),h=nt(f,{mixins:bn(f.breakpoints,n),palette:d,shadows:Wn.slice(),typography:Vn(d,c),transitions:Jn(a),zIndex:(0,s.Z)({},$n)});h=nt(h,l);for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,r=void 0===n?mn:n,i=e.rootShouldForwardProp,o=void 0===i?vn:i,a=e.slotShouldForwardProp,u=void 0===a?vn:a,c=function(e){return sn((0,s.Z)({},e,{theme:yn((0,s.Z)({},e,{defaultTheme:r,themeId:t}))}))};return c.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var i,a,l=n.name,d=n.slot,f=n.skipVariantsResolver,h=n.skipSx,p=n.overridesResolver,g=void 0===p?(i=(a=d)?a.charAt(0).toLowerCase()+a.slice(1):a)?function(e,t){return t[i]}:null:p,v=(0,Ue.Z)(n,hn),m=void 0!==f?f:d&&"Root"!==d&&"root"!==d||!1,y=h||!1;var A=vn;"Root"===d||"root"===d?A=o:d?A=u:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);var b=tn(e,(0,s.Z)({shouldForwardProp:A,label:undefined},v)),w=function(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a0){var p=new Array(h).fill("");(f=[].concat((0,He.Z)(n),(0,He.Z)(p))).raw=[].concat((0,He.Z)(n.raw),(0,He.Z)(p))}var v=b.apply(void 0,[f].concat((0,He.Z)(d)));return e.muiName&&(v.muiName=e.muiName),v};return b.withConfig&&(w.withConfig=b.withConfig),w}}({themeId:ir,defaultTheme:rr,rootShouldForwardProp:or}),ur=sr;function cr(e,t){var n=(0,s.Z)({},t);return Object.keys(e).forEach((function(r){if(r.toString().match(/^(components|slots)$/))n[r]=(0,s.Z)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){var i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=(0,s.Z)({},o),Object.keys(i).forEach((function(e){n[r][e]=cr(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}var lr=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=o.useContext(De);return n&&(e=n,0!==Object.keys(e).length)?n:t},dr=cn();var fr=function(){return lr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:dr)};function hr(e){var t=e.props,n=e.name,r=e.defaultTheme,i=e.themeId,o=fr(r);i&&(o=o[i]||o);var a=function(e){var t=e.theme,n=e.name,r=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?cr(t.components[n].defaultProps,r):r}({theme:o,name:n,props:t});return a}function pr(e){return hr({props:e.props,name:e.name,defaultTheme:rr,themeId:ir})}function gr(){var e=fr(rr);return e[ir]||e}var vr=o.createContext(),mr=function(e){return e},yr=function(){var e=mr;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=mr}}}(),Ar={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function br(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r=Ar[t];return r?"".concat(n,"-").concat(r):"".concat(yr.generate(e),"-").concat(t)}function wr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r={};return t.forEach((function(t){r[t]=br(e,t,n)})),r}function Cr(e){return br("MuiGrid",e)}var kr=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Er=wr("MuiGrid",["root","container","item","zeroMinWidth"].concat((0,He.Z)([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),(0,He.Z)(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),(0,He.Z)(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),(0,He.Z)(kr.map((function(e){return"grid-xs-".concat(e)}))),(0,He.Z)(kr.map((function(e){return"grid-sm-".concat(e)}))),(0,He.Z)(kr.map((function(e){return"grid-md-".concat(e)}))),(0,He.Z)(kr.map((function(e){return"grid-lg-".concat(e)}))),(0,He.Z)(kr.map((function(e){return"grid-xl-".concat(e)}))))),_r=Er,xr=n(46417),Sr=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Ir(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function Dr(e){var t=e.breakpoints,n=e.values,r="";Object.keys(n).forEach((function(e){""===r&&0!==n[e]&&(r=e)}));var i=Object.keys(t).sort((function(e,n){return t[e]-t[n]}));return i.slice(0,i.indexOf(r))}var Tr=ur("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.container,i=n.direction,o=n.item,a=n.spacing,s=n.wrap,u=n.zeroMinWidth,c=n.breakpoints,l=[];r&&(l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n["spacing-xs-".concat(String(e))]];var r=[];return t.forEach((function(t){var i=e[t];Number(i)>0&&r.push(n["spacing-".concat(t,"-").concat(String(i))])})),r}(a,c,t));var d=[];return c.forEach((function(e){var r=n[e];r&&d.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,o&&t.item,u&&t.zeroMinWidth].concat((0,He.Z)(l),["row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==s&&t["wrap-xs-".concat(String(s))]],d)}})((function(e){var t=e.ownerState;return(0,s.Z)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var t=e.theme;return Xe({theme:t},$e({values:e.ownerState.direction,breakpoints:t.breakpoints.values}),(function(e){var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(_r.item)]={maxWidth:"none"}),t}))}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,i=n.rowSpacing,o={};if(r&&0!==i){var a,s=$e({values:i,breakpoints:t.breakpoints.values});"object"===typeof s&&(a=Dr({breakpoints:t.breakpoints.values,values:s})),o=Xe({theme:t},s,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?(0,Ve.Z)({marginTop:"-".concat(Ir(i))},"& > .".concat(_r.item),{paddingTop:Ir(i)}):null!=(r=a)&&r.includes(n)?{}:(0,Ve.Z)({marginTop:0},"& > .".concat(_r.item),{paddingTop:0})}))}return o}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,i=n.columnSpacing,o={};if(r&&0!==i){var a,s=$e({values:i,breakpoints:t.breakpoints.values});"object"===typeof s&&(a=Dr({breakpoints:t.breakpoints.values,values:s})),o=Xe({theme:t},s,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?(0,Ve.Z)({width:"calc(100% + ".concat(Ir(i),")"),marginLeft:"-".concat(Ir(i))},"& > .".concat(_r.item),{paddingLeft:Ir(i)}):null!=(r=a)&&r.includes(n)?{}:(0,Ve.Z)({width:"100%",marginLeft:0},"& > .".concat(_r.item),{paddingLeft:0})}))}return o}),(function(e){var t,n=e.theme,r=e.ownerState;return n.breakpoints.keys.reduce((function(e,i){var o={};if(r[i]&&(t=r[i]),!t)return e;if(!0===t)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var a=$e({values:r.columns,breakpoints:n.breakpoints.values}),u="object"===typeof a?a[i]:a;if(void 0===u||null===u)return e;var c="".concat(Math.round(t/u*1e8)/1e6,"%"),l={};if(r.container&&r.item&&0!==r.columnSpacing){var d=n.spacing(r.columnSpacing);if("0px"!==d){var f="calc(".concat(c," + ").concat(Ir(d),")");l={flexBasis:f,maxWidth:f}}}o=(0,s.Z)({flexBasis:c,flexGrow:0,maxWidth:c},l)}return 0===n.breakpoints.values[i]?Object.assign(e,o):e[n.breakpoints.up(i)]=o,e}),{})}));var Or=function(e){var t=e.classes,n=e.container,r=e.direction,i=e.item,o=e.spacing,a=e.wrap,s=e.zeroMinWidth,u=e.breakpoints,c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return["spacing-xs-".concat(String(e))];var n=[];return t.forEach((function(t){var r=e[t];if(Number(r)>0){var i="spacing-".concat(t,"-").concat(String(r));n.push(i)}})),n}(o,u));var l=[];return u.forEach((function(t){var n=e[t];n&&l.push("grid-".concat(t,"-").concat(String(n)))})),$t({root:["root",n&&"container",i&&"item",s&&"zeroMinWidth"].concat((0,He.Z)(c),["row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a))],l)},Cr,t)},Nr=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiGrid"}),r=gr().breakpoints,i=Jt(n),a=i.className,u=i.columns,c=i.columnSpacing,l=i.component,d=void 0===l?"div":l,f=i.container,h=void 0!==f&&f,p=i.direction,g=void 0===p?"row":p,v=i.item,m=void 0!==v&&v,y=i.rowSpacing,A=i.spacing,b=void 0===A?0:A,w=i.wrap,C=void 0===w?"wrap":w,k=i.zeroMinWidth,E=void 0!==k&&k,_=(0,Ue.Z)(i,Sr),x=y||b,S=c||b,I=o.useContext(vr),D=h?u||12:I,T={},O=(0,s.Z)({},_);r.keys.forEach((function(e){null!=_[e]&&(T[e]=_[e],delete O[e])}));var N=(0,s.Z)({},i,{columns:D,container:h,direction:g,item:m,rowSpacing:x,columnSpacing:S,wrap:C,zeroMinWidth:E,spacing:b},T,{breakpoints:r.keys}),P=Or(N);return(0,xr.jsx)(vr.Provider,{value:D,children:(0,xr.jsx)(Tr,(0,s.Z)({ownerState:N,className:Ge(P.root,a),as:d,ref:t},O))})})),Pr=Nr,Lr=n(4625),Br=(n(67861),Ie((function(e,t){var n=e.styles,r=ke([n],void 0,o.useContext(De)),i=o.useRef();return xe((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}}),[t]),xe((function(){var e=i.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Le(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null})));function Mr(){for(var e=arguments.length,t=new Array(e),n=0;n-1};var Gr=function(e,t){var n=this.__data__,r=zr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function qr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var c=o.get(e),l=o.get(t);if(c&&l)return c==t&&l==e;var d=-1,f=!0,h=2&n?new to:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},Mo={};Mo["[object Float32Array]"]=Mo["[object Float64Array]"]=Mo["[object Int8Array]"]=Mo["[object Int16Array]"]=Mo["[object Int32Array]"]=Mo["[object Uint8Array]"]=Mo["[object Uint8ClampedArray]"]=Mo["[object Uint16Array]"]=Mo["[object Uint32Array]"]=!0,Mo["[object Arguments]"]=Mo["[object Array]"]=Mo["[object ArrayBuffer]"]=Mo["[object Boolean]"]=Mo["[object DataView]"]=Mo["[object Date]"]=Mo["[object Error]"]=Mo["[object Function]"]=Mo["[object Map]"]=Mo["[object Number]"]=Mo["[object Object]"]=Mo["[object RegExp]"]=Mo["[object Set]"]=Mo["[object String]"]=Mo["[object WeakMap]"]=!1;var Ro=function(e){return wo(e)&&Bo(e.length)&&!!Mo[fi(e)]};var jo=function(e){return function(t){return e(t)}},Zo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Fo=Zo&&"object"==typeof module&&module&&!module.nodeType&&module,Qo=Fo&&Fo.exports===Zo&&ei.process,zo=function(){try{var e=Fo&&Fo.require&&Fo.require("util").types;return e||Qo&&Qo.binding&&Qo.binding("util")}catch(rp){}}(),Ho=zo&&zo.isTypedArray,Vo=Ho?jo(Ho):Ro,Uo=Object.prototype.hasOwnProperty;var Wo=function(e,t){var n=ho(e),r=!n&&So(e),i=!n&&!r&&No(e),o=!n&&!r&&!i&&Vo(e),a=n||r||i||o,s=a?bo(e.length,String):[],u=s.length;for(var c in e)!t&&!Uo.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Lo(c,u))||s.push(c);return s},Go=Object.prototype;var qo=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Go)};var Ko=function(e,t){return function(n){return e(t(n))}},Xo=Ko(Object.keys,Object),Yo=Object.prototype.hasOwnProperty;var Jo=function(e){if(!qo(e))return Xo(e);var t=[];for(var n in Object(e))Yo.call(e,n)&&"constructor"!=n&&t.push(n);return t};var $o=function(e){return null!=e&&Bo(e.length)&&!pi(e)};var ea=function(e){return $o(e)?Wo(e):Jo(e)};var ta=function(e){return po(e,ea,Ao)},na=Object.prototype.hasOwnProperty;var ra=function(e,t,n,r,i,o){var a=1&n,s=ta(e),u=s.length;if(u!=ta(t).length&&!a)return!1;for(var c=u;c--;){var l=s[c];if(!(a?l in t:na.call(t,l)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++c-1};var bs=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200){var c=t?null:ks(e);if(c)return so(c);a=!1,i=ro,u=new to}else u=t?[]:s;e:for(;++r0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},lu=cu(su);var du=function(e,t){return lu(ou(e,t,Ja),e+"")};var fu=function(e,t,n){if(!hi(n))return!1;var r=typeof t;return!!("number"==r?$o(n)&&Lo(t,n.length):"string"==r&&t in n)&&Qr(n[t],e)};var hu=function(e){return du((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&fu(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r9007199254740991)return n;do{t%2&&(n+=e),(t=gu(t/2))&&(e+=e)}while(t);return n};var mu=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:mu(e,t,n)},Au=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var bu=function(e){return Au.test(e)},wu=$a("length"),Cu="\\ud800-\\udfff",ku="["+Cu+"]",Eu="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_u="\\ud83c[\\udffb-\\udfff]",xu="[^"+Cu+"]",Su="(?:\\ud83c[\\udde6-\\uddff]){2}",Iu="[\\ud800-\\udbff][\\udc00-\\udfff]",Du="(?:"+Eu+"|"+_u+")"+"?",Tu="[\\ufe0e\\ufe0f]?",Ou=Tu+Du+("(?:\\u200d(?:"+[xu,Su,Iu].join("|")+")"+Tu+Du+")*"),Nu="(?:"+[xu+Eu+"?",Eu,Su,Iu,ku].join("|")+")",Pu=RegExp(_u+"(?="+_u+")|"+Nu+Ou,"g");var Lu=function(e){for(var t=Pu.lastIndex=0;Pu.test(e);)++t;return t};var Bu=function(e){return bu(e)?Lu(e):wu(e)};var Mu=function(e){return e.split("")},Ru="\\ud800-\\udfff",ju="["+Ru+"]",Zu="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Fu="\\ud83c[\\udffb-\\udfff]",Qu="[^"+Ru+"]",zu="(?:\\ud83c[\\udde6-\\uddff]){2}",Hu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vu="(?:"+Zu+"|"+Fu+")"+"?",Uu="[\\ufe0e\\ufe0f]?",Wu=Uu+Vu+("(?:\\u200d(?:"+[Qu,zu,Hu].join("|")+")"+Uu+Vu+")*"),Gu="(?:"+[Qu+Zu+"?",Zu,zu,Hu,ju].join("|")+")",qu=RegExp(Fu+"(?="+Fu+")|"+Gu+Wu,"g");var Ku=function(e){return e.match(qu)||[]};var Xu=function(e){return bu(e)?Ku(e):Mu(e)},Yu=Math.ceil;var Ju=function(e,t){var n=(t=void 0===t?" ":za(t)).length;if(n<2)return n?vu(t,e):t;var r=vu(t,Yu(e/Bu(t)));return bu(t)?yu(Xu(r),0,e).join(""):r.slice(0,e)},$u=/\s/;var ec=function(e){for(var t=e.length;t--&&$u.test(e.charAt(t)););return t},tc=/^\s+/;var nc=function(e){return e?e.slice(0,ec(e)+1).replace(tc,""):e},rc=/^[-+]0x[0-9a-f]+$/i,ic=/^0b[01]+$/i,oc=/^0o[0-7]+$/i,ac=parseInt;var sc=function(e){if("number"==typeof e)return e;if(Oa(e))return NaN;if(hi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=nc(e);var n=ic.test(e);return n||oc.test(e)?ac(e.slice(2),n?2:8):rc.test(e)?NaN:+e},uc=1/0;var cc=function(e){return e?(e=sc(e))===uc||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0};var lc=function(e){var t=cc(e),n=t%1;return t===t?n?t-n:t:0};var dc=function(e,t,n){e=Ha(e);var r=(t=lc(t))?Bu(e):0;return t&&r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=t.pulsate,o=void 0!==r&&r,a=t.center,s=void 0===a?i||t.pulsate:a,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===(null==e?void 0:e.type)&&m.current)m.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(m.current=!0);var l,d,f,h=c?null:b.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(p.width/2),d=Math.round(p.height/2);else{var g=e.touches&&e.touches.length>0?e.touches[0]:e,v=g.clientX,C=g.clientY;l=Math.round(v-p.left),d=Math.round(C-p.top)}if(s)(f=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(f+=1);else{var k=2*Math.max(Math.abs((h?h.clientWidth:0)-l),l)+2,E=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(k,2)+Math.pow(E,2))}null!=e&&e.touches?null===A.current&&(A.current=function(){w({pulsate:o,rippleX:l,rippleY:d,rippleSize:f,cb:n})},y.current=setTimeout((function(){A.current&&(A.current(),A.current=null)}),80)):w({pulsate:o,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[i,w]),k=o.useCallback((function(){C({},{pulsate:!0})}),[C]),E=o.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&A.current)return A.current(),A.current=null,void(y.current=setTimeout((function(){E(e,t)})));A.current=null,p((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:k,start:C,stop:E}}),[k,C,E]),(0,xr.jsx)(ul,(0,s.Z)({className:Ge(rl.root,u.root,c),ref:b},l,{children:(0,xr.jsx)(Gc,{component:null,exit:!0,children:h})}))})),dl=ll;function fl(e){return br("MuiButtonBase",e)}var hl,pl=wr("MuiButtonBase",["root","disabled","focusVisible"]),gl=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],vl=ur("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((hl={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},(0,Ve.Z)(hl,"&.".concat(pl.disabled),{pointerEvents:"none",cursor:"default"}),(0,Ve.Z)(hl,"@media print",{colorAdjust:"exact"}),hl)),ml=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiButtonBase"}),r=n.action,i=n.centerRipple,a=void 0!==i&&i,u=n.children,c=n.className,l=n.component,d=void 0===l?"button":l,f=n.disabled,h=void 0!==f&&f,p=n.disableRipple,g=void 0!==p&&p,v=n.disableTouchRipple,m=void 0!==v&&v,y=n.focusRipple,A=void 0!==y&&y,b=n.LinkComponent,w=void 0===b?"a":b,C=n.onBlur,k=n.onClick,E=n.onContextMenu,_=n.onDragLeave,x=n.onFocus,S=n.onFocusVisible,I=n.onKeyDown,D=n.onKeyUp,T=n.onMouseDown,O=n.onMouseLeave,N=n.onMouseUp,P=n.onTouchEnd,L=n.onTouchMove,B=n.onTouchStart,M=n.tabIndex,R=void 0===M?0:M,j=n.TouchRippleProps,Z=n.touchRippleRef,F=n.type,Q=(0,Ue.Z)(n,gl),z=o.useRef(null),H=o.useRef(null),V=Ec(H,Z),U=Mc(),W=U.isFocusVisibleRef,G=U.onFocus,q=U.onBlur,K=U.ref,X=o.useState(!1),Y=(0,rt.Z)(X,2),J=Y[0],$=Y[1];h&&J&&$(!1),o.useImperativeHandle(r,(function(){return{focusVisible:function(){$(!0),z.current.focus()}}}),[]);var ee=o.useState(!1),te=(0,rt.Z)(ee,2),ne=te[0],re=te[1];o.useEffect((function(){re(!0)}),[]);var ie=ne&&!g&&!h;function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;return Ic((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}o.useEffect((function(){J&&A&&!g&&ne&&H.current.pulsate()}),[g,A,J,ne]);var ae=oe("start",T),se=oe("stop",E),ue=oe("stop",_),ce=oe("stop",N),le=oe("stop",(function(e){J&&e.preventDefault(),O&&O(e)})),de=oe("start",B),fe=oe("stop",P),he=oe("stop",L),pe=oe("stop",(function(e){q(e),!1===W.current&&$(!1),C&&C(e)}),!1),ge=Ic((function(e){z.current||(z.current=e.currentTarget),G(e),!0===W.current&&($(!0),S&&S(e)),x&&x(e)})),ve=function(){var e=z.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ye=Ic((function(e){A&&!me.current&&J&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ve()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&ve()&&"Enter"===e.key&&!h&&(e.preventDefault(),k&&k(e))})),Ae=Ic((function(e){A&&" "===e.key&&H.current&&J&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(function(){H.current.pulsate(e)}))),D&&D(e),k&&e.target===e.currentTarget&&ve()&&" "===e.key&&!e.defaultPrevented&&k(e)})),be=d;"button"===be&&(Q.href||Q.to)&&(be=w);var we={};"button"===be?(we.type=void 0===F?"button":F,we.disabled=h):(Q.href||Q.to||(we.role="button"),h&&(we["aria-disabled"]=h));var Ce=Ec(t,K,z);var ke=(0,s.Z)({},n,{centerRipple:a,component:d,disabled:h,disableRipple:g,disableTouchRipple:m,focusRipple:A,tabIndex:R,focusVisible:J}),Ee=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,i=$t({root:["root",t&&"disabled",n&&"focusVisible"]},fl,e.classes);return n&&r&&(i.root+=" ".concat(r)),i}(ke);return(0,xr.jsxs)(vl,(0,s.Z)({as:be,className:Ge(Ee.root,c),ownerState:ke,onBlur:pe,onClick:k,onContextMenu:se,onFocus:ge,onKeyDown:ye,onKeyUp:Ae,onMouseDown:ae,onMouseLeave:le,onMouseUp:ce,onDragLeave:ue,onTouchEnd:fe,onTouchMove:he,onTouchStart:de,ref:Ce,tabIndex:h?-1:R,type:F},we,Q,{children:[u,ie?(0,xr.jsx)(dl,(0,s.Z)({ref:V,center:a},j)):null]}))})),yl=ml,Al=_c;function bl(e){return br("MuiDivider",e)}var wl=wr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var Cl=wr("MuiListItemIcon",["root","alignItemsFlexStart"]);var kl=wr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function El(e){return br("MuiMenuItem",e)}var _l,xl=wr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Sl=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Il=ur(yl,{shouldForwardProp:function(e){return or(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,s.Z)({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((n.vars||n).palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:(n.vars||n).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},(0,Ve.Z)(t,"&.".concat(xl.selected),(0,Ve.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):_n(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(xl.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):_n(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,Ve.Z)(t,"&.".concat(xl.selected,":hover"),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):_n(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):_n(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,Ve.Z)(t,"&.".concat(xl.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,Ve.Z)(t,"&.".concat(xl.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,Ve.Z)(t,"& + .".concat(wl.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,Ve.Z)(t,"& + .".concat(wl.inset),{marginLeft:52}),(0,Ve.Z)(t,"& .".concat(kl.root),{marginTop:0,marginBottom:0}),(0,Ve.Z)(t,"& .".concat(kl.inset),{paddingLeft:36}),(0,Ve.Z)(t,"& .".concat(Cl.root),{minWidth:36}),t),!r.dense&&(0,Ve.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),r.dense&&(0,s.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,Ve.Z)({},"& .".concat(Cl.root," svg"),{fontSize:"1.25rem"})))})),Dl=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiMenuItem"}),r=n.autoFocus,i=void 0!==r&&r,a=n.component,u=void 0===a?"li":a,c=n.dense,l=void 0!==c&&c,d=n.divider,f=void 0!==d&&d,h=n.disableGutters,p=void 0!==h&&h,g=n.focusVisibleClassName,v=n.role,m=void 0===v?"menuitem":v,y=n.tabIndex,A=n.className,b=(0,Ue.Z)(n,Sl),w=o.useContext(wc),C=o.useMemo((function(){return{dense:l||w.dense||!1,disableGutters:p}}),[w.dense,l,p]),k=o.useRef(null);Al((function(){i&&k.current&&k.current.focus()}),[i]);var E,_=(0,s.Z)({},n,{dense:C.dense,divider:f,disableGutters:p}),x=function(e){var t=e.disabled,n=e.dense,r=e.divider,i=e.disableGutters,o=e.selected,a=e.classes,u=$t({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},El,a);return(0,s.Z)({},a,u)}(n),S=Ec(k,t);return n.disabled||(E=void 0!==y?y:-1),(0,xr.jsx)(wc.Provider,{value:C,children:(0,xr.jsx)(Il,(0,s.Z)({ref:S,role:m,tabIndex:E,component:u,focusVisibleClassName:Ge(x.focusVisible,g),className:Ge(x.root,A)},b,{ownerState:_,classes:x}))})})),Tl=Dl,Ol=["children","classes","className","label","notched"],Nl=ur("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Pl=ur("legend")((function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,s.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var Ll=o.createContext(void 0);function Bl(){return o.useContext(Ll)}function Ml(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}function Rl(e){return br("MuiInputBase",e)}var jl=wr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function Zl(e){return br("MuiOutlinedInput",e)}var Fl=(0,s.Z)({},jl,wr("MuiOutlinedInput",["root","notchedOutline","input"])),Ql=n(1168);function zl(e){return e&&e.ownerDocument||document}function Hl(e){return zl(e).defaultView||window}function Vl(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(g.current+=1,{overflow:r,outerHeightStyle:n}):e},C=o.useCallback((function(){var e=b();ql(e)||A((function(t){return w(t,e)}))}),[b]);_c((function(){var e,t,n=function(){g.current=0,function(){var e=b();ql(e)||Ql.flushSync((function(){A((function(t){return w(t,e)}))}))}()},r=Vl(n),i=f.current,o=Hl(i);return o.addEventListener("resize",r),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(n)).observe(i),function(){r.clear(),cancelAnimationFrame(e),o.removeEventListener("resize",r),t&&t.disconnect()}}),[b]),_c((function(){C()})),o.useEffect((function(){g.current=0}),[c]);return(0,xr.jsxs)(o.Fragment,{children:[(0,xr.jsx)("textarea",(0,s.Z)({value:c,onChange:function(e){g.current=0,d||C(),n&&n(e)},ref:h,rows:a,style:(0,s.Z)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},u)},l)),(0,xr.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,s.Z)({},Gl,u,{paddingTop:0,paddingBottom:0})})]})}));function Xl(e){return"string"===typeof e}var Yl=ot;function Jl(e){var t=e.styles,n=e.defaultTheme,r=void 0===n?{}:n,i="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,xr.jsx)(Br,{styles:i})}var $l=function(e){var t=e.styles,n=e.themeId,r=e.defaultTheme,i=fr(void 0===r?{}:r),o="function"===typeof t?t(n&&i[n]||i):t;return(0,xr.jsx)(Jl,{styles:o})};var ed=function(e){return(0,xr.jsx)($l,(0,s.Z)({},e,{defaultTheme:rr,themeId:ir}))};function td(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function nd(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(td(e.value)&&""!==e.value||t&&td(e.defaultValue)&&""!==e.defaultValue)}var rd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],id=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat(Yl(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},od=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ad=ur("div",{name:"MuiInputBase",slot:"Root",overridesResolver:id})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({},t.typography.body1,(0,Ve.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(jl.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,s.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),sd=ur("input",{name:"MuiInputBase",slot:"Input",overridesResolver:od})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode,o=(0,s.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),a={opacity:"0 !important"},u=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:i?.42:.5};return(0,s.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,Ve.Z)(t,"label[data-shrink=false] + .".concat(jl.formControl," &"),{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus:-ms-input-placeholder":u,"&:focus::-ms-input-placeholder":u}),(0,Ve.Z)(t,"&.".concat(jl.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,Ve.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),ud=(0,xr.jsx)(ed,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),cd=o.forwardRef((function(e,t){var n,r=pr({props:e,name:"MuiInputBase"}),i=r["aria-describedby"],a=r.autoComplete,u=r.autoFocus,c=r.className,l=r.components,d=void 0===l?{}:l,f=r.componentsProps,h=void 0===f?{}:f,p=r.defaultValue,g=r.disabled,v=r.disableInjectingGlobalStyles,m=r.endAdornment,y=r.fullWidth,A=void 0!==y&&y,b=r.id,w=r.inputComponent,C=void 0===w?"input":w,k=r.inputProps,E=void 0===k?{}:k,_=r.inputRef,x=r.maxRows,S=r.minRows,I=r.multiline,D=void 0!==I&&I,T=r.name,O=r.onBlur,N=r.onChange,P=r.onClick,L=r.onFocus,B=r.onKeyDown,M=r.onKeyUp,R=r.placeholder,j=r.readOnly,Z=r.renderSuffix,F=r.rows,Q=r.slotProps,z=void 0===Q?{}:Q,H=r.slots,V=void 0===H?{}:H,U=r.startAdornment,W=r.type,G=void 0===W?"text":W,q=r.value,K=(0,Ue.Z)(r,rd),X=null!=E.value?E.value:q,Y=o.useRef(null!=X).current,J=o.useRef(),$=o.useCallback((function(e){0}),[]),ee=Ec(J,_,E.ref,$),te=o.useState(!1),ne=(0,rt.Z)(te,2),re=ne[0],ie=ne[1],oe=Bl();var ae=Ml({props:r,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=oe?oe.focused:re,o.useEffect((function(){!oe&&g&&re&&(ie(!1),O&&O())}),[oe,g,re,O]);var se=oe&&oe.onFilled,ue=oe&&oe.onEmpty,ce=o.useCallback((function(e){nd(e)?se&&se():ue&&ue()}),[se,ue]);Al((function(){Y&&ce({value:X})}),[X,ce,Y]);o.useEffect((function(){ce(J.current)}),[]);var le=C,de=E;D&&"input"===le&&(de=F?(0,s.Z)({type:void 0,minRows:F,maxRows:F},de):(0,s.Z)({type:void 0,maxRows:x,minRows:S},de),le=Kl);o.useEffect((function(){oe&&oe.setAdornedStart(Boolean(U))}),[oe,U]);var fe=(0,s.Z)({},r,{color:ae.color||"primary",disabled:ae.disabled,endAdornment:m,error:ae.error,focused:ae.focused,formControl:oe,fullWidth:A,hiddenLabel:ae.hiddenLabel,multiline:D,size:ae.size,startAdornment:U,type:G}),he=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.error,o=e.endAdornment,a=e.focused,s=e.formControl,u=e.fullWidth,c=e.hiddenLabel,l=e.multiline,d=e.readOnly,f=e.size,h=e.startAdornment,p=e.type;return $t({root:["root","color".concat(Yl(n)),r&&"disabled",i&&"error",u&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat(Yl(f)),l&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",l&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},Rl,t)}(fe),pe=V.root||d.Root||ad,ge=z.root||h.root||{},ve=V.input||d.Input||sd;return de=(0,s.Z)({},de,null!=(n=z.input)?n:h.input),(0,xr.jsxs)(o.Fragment,{children:[!v&&ud,(0,xr.jsxs)(pe,(0,s.Z)({},ge,!Xl(pe)&&{ownerState:(0,s.Z)({},fe,ge.ownerState)},{ref:t,onClick:function(e){J.current&&e.currentTarget===e.target&&J.current.focus(),P&&P(e)}},K,{className:Ge(he.root,ge.className,c,j&&"MuiInputBase-readOnly"),children:[U,(0,xr.jsx)(Ll.Provider,{value:null,children:(0,xr.jsx)(ve,(0,s.Z)({ownerState:fe,"aria-invalid":ae.error,"aria-describedby":i,autoComplete:a,autoFocus:u,defaultValue:p,disabled:ae.disabled,id:b,onAnimationStart:function(e){ce("mui-auto-fill-cancel"===e.animationName?J.current:{value:"x"})},name:T,placeholder:R,readOnly:j,required:ae.required,rows:F,value:X,onKeyDown:B,onKeyUp:M,type:G},de,!Xl(ve)&&{as:le,ownerState:(0,s.Z)({},fe,de.ownerState)},{ref:ee,className:Ge(he.input,de.className,j&&"MuiInputBase-readOnly"),onBlur:function(e){O&&O(e),E.onBlur&&E.onBlur(e),oe&&oe.onBlur?oe.onBlur(e):ie(!1)},onChange:function(e){if(!Y){var t=e.target||J.current;if(null==t)throw new Error(it(1));ce({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}function kd(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}var Ed=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _d(e){var t,n=e.elementType,r=e.externalSlotProps,i=e.ownerState,o=e.skipResolvingSlotProps,a=void 0!==o&&o,u=(0,Ue.Z)(e,Ed),c=a?{}:function(e,t,n){return"function"===typeof e?e(t,n):e}(r,i),l=function(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,i=e.externalForwardedProps,o=e.className;if(!t){var a=Ge(null==i?void 0:i.className,null==r?void 0:r.className,o,null==n?void 0:n.className),u=(0,s.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),c=(0,s.Z)({},n,i,r);return a.length>0&&(c.className=a),Object.keys(u).length>0&&(c.style=u),{props:c,internalRef:void 0}}var l=Cd((0,s.Z)({},i,r)),d=kd(r),f=kd(i),h=t(l),p=Ge(null==h?void 0:h.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),g=(0,s.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),v=(0,s.Z)({},h,n,f,d);return p.length>0&&(v.className=p),Object.keys(g).length>0&&(v.style=g),{props:v,internalRef:h.ref}}((0,s.Z)({},u,{externalSlotProps:c})),d=l.props,f=kc(l.internalRef,null==c?void 0:c.ref,null==(t=e.additionalProps)?void 0:t.ref);return wd(n,(0,s.Z)({},d,{ref:f}),i)}function xd(e){return br("MuiList",e)}wr("MuiList",["root","padding","dense","subheader"]);var Sd=["children","className","component","dense","disablePadding","subheader"],Id=ur("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,s.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),Dd=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiList"}),r=n.children,i=n.className,a=n.component,u=void 0===a?"ul":a,c=n.dense,l=void 0!==c&&c,d=n.disablePadding,f=void 0!==d&&d,h=n.subheader,p=(0,Ue.Z)(n,Sd),g=o.useMemo((function(){return{dense:l}}),[l]),v=(0,s.Z)({},n,{component:u,dense:l,disablePadding:f}),m=function(e){var t=e.classes;return $t({root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]},xd,t)}(v);return(0,xr.jsx)(wc.Provider,{value:g,children:(0,xr.jsxs)(Id,(0,s.Z)({as:u,className:Ge(m.root,i),ref:t,ownerState:v},p,{children:[h,r]}))})})),Td=Dd;function Od(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Nd=Od,Pd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ld(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bd(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Md(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Rd(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return!1;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Md(s,o)&&!u)return s.focus(),!0;s=i(e,s,n)}return!1}var jd=o.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,i=void 0!==r&&r,a=e.autoFocusItem,u=void 0!==a&&a,c=e.children,l=e.className,d=e.disabledItemsFocusable,f=void 0!==d&&d,h=e.disableListWrap,p=void 0!==h&&h,g=e.onKeyDown,v=e.variant,m=void 0===v?"selectedMenu":v,y=(0,Ue.Z)(e,Pd),A=o.useRef(null),b=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Al((function(){i&&A.current.focus()}),[i]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!A.current.style.width;if(e.clientHeight=c.length&&(C=-1)):C===t&&(C+=1)>=c.length&&(C=-1)}));var k=o.Children.map(c,(function(e,t){if(t===C){var n={};return u&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return(0,xr.jsx)(Td,(0,s.Z)({role:"menu",ref:w,className:l,onKeyDown:function(e){var t=A.current,n=e.key,r=bd(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Rd(t,r,p,f,Ld);else if("ArrowUp"===n)e.preventDefault(),Rd(t,r,p,f,Bd);else if("Home"===n)e.preventDefault(),Rd(t,null,p,f,Ld);else if("End"===n)e.preventDefault(),Rd(t,null,p,f,Bd);else if(1===n.length){var i=b.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&Md(r,i);i.previousKeyMatched&&(s||Rd(t,r,!1,f,Ld,i))?e.preventDefault():i.previousKeyMatched=!1}g&&g(e)},tabIndex:i?0:-1},y,{children:k}))})),Zd=jd,Fd=Vl,Qd=Hl,zd=n(60596),Hd=function(e){return e.scrollTop};function Vd(e,t){var n,r,i=e.timeout,o=e.easing,a=e.style,s=void 0===a?{}:a;return{duration:null!=(n=s.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:s.transitionDelay}}var Ud=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wd(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Gd={entering:{opacity:1,transform:Wd(1)},entered:{opacity:1,transform:"none"}},qd="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kd=o.forwardRef((function(e,t){var n=e.addEndListener,r=e.appear,i=void 0===r||r,a=e.children,u=e.easing,c=e.in,l=e.onEnter,d=e.onEntered,f=e.onEntering,h=e.onExit,p=e.onExited,g=e.onExiting,v=e.style,m=e.timeout,y=void 0===m?"auto":m,A=e.TransitionComponent,b=void 0===A?zd.ZP:A,w=(0,Ue.Z)(e,Ud),C=o.useRef(),k=o.useRef(),E=gr(),_=o.useRef(null),x=Ec(_,a.ref,t),S=function(e){return function(t){if(e){var n=_.current;void 0===t?e(n):e(n,t)}}},I=S(f),D=S((function(e,t){Hd(e);var n,r=Vd({style:v,timeout:y,easing:u},{mode:"enter"}),i=r.duration,o=r.delay,a=r.easing;"auto"===y?(n=E.transitions.getAutoHeightDuration(e.clientHeight),k.current=n):n=i,e.style.transition=[E.transitions.create("opacity",{duration:n,delay:o}),E.transitions.create("transform",{duration:qd?n:.666*n,delay:o,easing:a})].join(","),l&&l(e,t)})),T=S(d),O=S(g),N=S((function(e){var t,n=Vd({style:v,timeout:y,easing:u},{mode:"exit"}),r=n.duration,i=n.delay,o=n.easing;"auto"===y?(t=E.transitions.getAutoHeightDuration(e.clientHeight),k.current=t):t=r,e.style.transition=[E.transitions.create("opacity",{duration:t,delay:i}),E.transitions.create("transform",{duration:qd?t:.666*t,delay:qd?i:i||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=Wd(.75),h&&h(e)})),P=S(p);return o.useEffect((function(){return function(){clearTimeout(C.current)}}),[]),(0,xr.jsx)(b,(0,s.Z)({appear:i,in:c,nodeRef:_,onEnter:D,onEntered:T,onEntering:I,onExit:N,onExited:P,onExiting:O,addEndListener:function(e){"auto"===y&&(C.current=setTimeout(e,k.current||0)),n&&n(_.current,e)},timeout:"auto"===y?null:y},w,{children:function(e,t){return o.cloneElement(a,(0,s.Z)({style:(0,s.Z)({opacity:0,transform:Wd(.75),visibility:"exited"!==e||c?void 0:"hidden"},Gd[e],v,a.props.style),ref:x},t))}}))}));Kd.muiSupportAuto=!0;var Xd=Kd;function Yd(){for(var e=arguments.length,t=new Array(e),n=0;nt.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var i=Od(zl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(tf(r)+i,"px");var o=zl(r).querySelectorAll(".mui-fixed");[].forEach.call(o,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(tf(e)+i,"px")}))}var a;if(r.parentNode instanceof DocumentFragment)a=zl(r).body;else{var s=r.parentElement,u=Hl(r);a="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===u.getComputedStyle(s).overflowY?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var af=function(){function e(){(0,Jd.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,$d.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ef(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);nf(t,e.mount,e.modalRef,r,!0);var i=rf(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=rf(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=of(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=rf(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&ef(e.modalRef,t),nf(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{var o=i.modals[i.modals.length-1];o.modalRef&&ef(o.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var sf=new af;function uf(e){var t=e.container,n=e.disableEscapeKeyDown,r=void 0!==n&&n,i=e.disableScrollLock,a=void 0!==i&&i,u=e.manager,c=void 0===u?sf:u,l=e.closeAfterTransition,d=void 0!==l&&l,f=e.onTransitionEnter,h=e.onTransitionExited,p=e.children,g=e.onClose,v=e.open,m=e.rootRef,y=o.useRef({}),A=o.useRef(null),b=o.useRef(null),w=kc(b,m),C=o.useState(!v),k=(0,rt.Z)(C,2),E=k[0],_=k[1],x=function(e){return!!e&&e.props.hasOwnProperty("in")}(p),S=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(S=!1);var I=function(){return y.current.modalRef=b.current,y.current.mount=A.current,y.current},D=function(){c.mount(I(),{disableScrollLock:a}),b.current&&(b.current.scrollTop=0)},T=Sc((function(){var e=function(e){return"function"===typeof e?e():e}(t)||zl(A.current).body;c.add(I(),e),b.current&&D()})),O=o.useCallback((function(){return c.isTopModal(I())}),[c]),N=Sc((function(e){A.current=e,e&&(v&&O()?D():b.current&&ef(b.current,S))})),P=o.useCallback((function(){c.remove(I(),S)}),[S,c]);o.useEffect((function(){return function(){P()}}),[P]),o.useEffect((function(){v?T():x&&d||P()}),[v,P,x,d,T]);var L=function(e){return function(t){var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&O()&&(r||(t.stopPropagation(),g&&g(t,"escapeKeyDown")))}},B=function(e){return function(t){var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&g&&g(t,"backdropClick")}};return{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Cd(e);delete n.onTransitionEnter,delete n.onTransitionExited;var r=(0,s.Z)({},n,t);return(0,s.Z)({role:"presentation"},r,{onKeyDown:L(r),ref:w})},getBackdropProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Z)({"aria-hidden":!0},e,{onClick:B(e),open:v})},getTransitionProps:function(){return{onEnter:Yd((function(){_(!1),f&&f()}),null==p?void 0:p.props.onEnter),onExited:Yd((function(){_(!0),h&&h(),d&&P()}),null==p?void 0:p.props.onExited)}},rootRef:w,portalRef:N,isTopModal:O,exited:E,hasTransition:x}}var cf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lf(e){var t=[],n=[];return Array.from(e.querySelectorAll(cf)).forEach((function(e,r){var i=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function df(){return!0}function ff(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,s=e.disableRestoreFocus,u=void 0!==s&&s,c=e.getTabbable,l=void 0===c?lf:c,d=e.isEnabled,f=void 0===d?df:d,h=e.open,p=o.useRef(!1),g=o.useRef(null),v=o.useRef(null),m=o.useRef(null),y=o.useRef(null),A=o.useRef(!1),b=o.useRef(null),w=kc(t.ref,b),C=o.useRef(null);o.useEffect((function(){h&&b.current&&(A.current=!r)}),[r,h]),o.useEffect((function(){if(h&&b.current){var e=zl(b.current);return b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),A.current&&b.current.focus()),function(){u||(m.current&&m.current.focus&&(p.current=!0,m.current.focus()),m.current=null)}}}),[h]),o.useEffect((function(){if(h&&b.current){var e=zl(b.current),t=function(t){C.current=t,!a&&f()&&"Tab"===t.key&&e.activeElement===b.current&&t.shiftKey&&(p.current=!0,v.current&&v.current.focus())},n=function(){var t=b.current;if(null!==t)if(e.hasFocus()&&f()&&!p.current){if(!t.contains(e.activeElement)&&(!a||e.activeElement===g.current||e.activeElement===v.current)){if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(A.current){var n=[];if(e.activeElement!==g.current&&e.activeElement!==v.current||(n=l(b.current)),n.length>0){var r,i,o=Boolean((null==(r=C.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=C.current)?void 0:i.key)),s=n[0],u=n[n.length-1];"string"!==typeof s&&"string"!==typeof u&&(o?u.focus():s.focus())}else t.focus()}}}else p.current=!1};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);var r=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return function(){clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}}),[r,a,u,f,h,l]);var k=function(e){null===m.current&&(m.current=e.relatedTarget),A.current=!0};return(0,xr.jsxs)(o.Fragment,{children:[(0,xr.jsx)("div",{tabIndex:h?0:-1,onFocus:k,ref:g,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:w,onFocus:function(e){null===m.current&&(m.current=e.relatedTarget),A.current=!0,y.current=e.target;var n=t.props.onFocus;n&&n(e)}}),(0,xr.jsx)("div",{tabIndex:h?0:-1,onFocus:k,ref:v,"data-testid":"sentinelEnd"})]})}var hf=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,s=o.useState(null),u=(0,rt.Z)(s,2),c=u[0],l=u[1],d=kc(o.isValidElement(n)?n.ref:null,t);if(_c((function(){a||l(function(e){return"function"===typeof e?e():e}(r)||document.body)}),[r,a]),_c((function(){if(c&&!a)return Cc(t,c),function(){Cc(t,null)}}),[t,c,a]),a){if(o.isValidElement(n)){var f={ref:d};return o.cloneElement(n,f)}return(0,xr.jsx)(o.Fragment,{children:n})}return(0,xr.jsx)(o.Fragment,{children:c?Ql.createPortal(n,c):c})}));var pf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],gf={entering:{opacity:1},entered:{opacity:1}},vf=o.forwardRef((function(e,t){var n=gr(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},i=e.addEndListener,a=e.appear,u=void 0===a||a,c=e.children,l=e.easing,d=e.in,f=e.onEnter,h=e.onEntered,p=e.onEntering,g=e.onExit,v=e.onExited,m=e.onExiting,y=e.style,A=e.timeout,b=void 0===A?r:A,w=e.TransitionComponent,C=void 0===w?zd.ZP:w,k=(0,Ue.Z)(e,pf),E=o.useRef(null),_=Ec(E,c.ref,t),x=function(e){return function(t){if(e){var n=E.current;void 0===t?e(n):e(n,t)}}},S=x(p),I=x((function(e,t){Hd(e);var r=Vd({style:y,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),f&&f(e,t)})),D=x(h),T=x(m),O=x((function(e){var t=Vd({style:y,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),N=x(v);return(0,xr.jsx)(C,(0,s.Z)({appear:u,in:d,nodeRef:E,onEnter:I,onEntered:D,onEntering:S,onExit:O,onExited:N,onExiting:T,addEndListener:function(e){i&&i(E.current,e)},timeout:b},k,{children:function(e,t){return o.cloneElement(c,(0,s.Z)({style:(0,s.Z)({opacity:0,visibility:"exited"!==e||d?void 0:"hidden"},gf[e],y,c.props.style),ref:_},t))}}))})),mf=vf;function yf(e){return br("MuiBackdrop",e)}wr("MuiBackdrop",["root","invisible"]);var Af=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bf=ur("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,s.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),wf=o.forwardRef((function(e,t){var n,r,i,o=pr({props:e,name:"MuiBackdrop"}),a=o.children,u=o.className,c=o.component,l=void 0===c?"div":c,d=o.components,f=void 0===d?{}:d,h=o.componentsProps,p=void 0===h?{}:h,g=o.invisible,v=void 0!==g&&g,m=o.open,y=o.slotProps,A=void 0===y?{}:y,b=o.slots,w=void 0===b?{}:b,C=o.TransitionComponent,k=void 0===C?mf:C,E=o.transitionDuration,_=(0,Ue.Z)(o,Af),x=(0,s.Z)({},o,{component:l,invisible:v}),S=function(e){var t=e.classes;return $t({root:["root",e.invisible&&"invisible"]},yf,t)}(x),I=null!=(n=A.root)?n:p.root;return(0,xr.jsx)(k,(0,s.Z)({in:m,timeout:E},_,{children:(0,xr.jsx)(bf,(0,s.Z)({"aria-hidden":!0},I,{as:null!=(r=null!=(i=w.root)?i:f.Root)?r:l,className:Ge(S.root,u,null==I?void 0:I.className),ownerState:(0,s.Z)({},x,null==I?void 0:I.ownerState),classes:S,ref:t,children:a}))}))})),Cf=wf;function kf(e){return br("MuiModal",e)}wr("MuiModal",["root","hidden","backdrop"]);var Ef=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],_f=ur("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),xf=ur(Cf,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),Sf=o.forwardRef((function(e,t){var n,r,i,a,u,c,l=pr({name:"MuiModal",props:e}),d=l.BackdropComponent,f=void 0===d?xf:d,h=l.BackdropProps,p=l.className,g=l.closeAfterTransition,v=void 0!==g&&g,m=l.children,y=l.container,A=l.component,b=l.components,w=void 0===b?{}:b,C=l.componentsProps,k=void 0===C?{}:C,E=l.disableAutoFocus,_=void 0!==E&&E,x=l.disableEnforceFocus,S=void 0!==x&&x,I=l.disableEscapeKeyDown,D=void 0!==I&&I,T=l.disablePortal,O=void 0!==T&&T,N=l.disableRestoreFocus,P=void 0!==N&&N,L=l.disableScrollLock,B=void 0!==L&&L,M=l.hideBackdrop,R=void 0!==M&&M,j=l.keepMounted,Z=void 0!==j&&j,F=l.onBackdropClick,Q=l.open,z=l.slotProps,H=l.slots,V=(0,Ue.Z)(l,Ef),U=(0,s.Z)({},l,{closeAfterTransition:v,disableAutoFocus:_,disableEnforceFocus:S,disableEscapeKeyDown:D,disablePortal:O,disableRestoreFocus:P,disableScrollLock:B,hideBackdrop:R,keepMounted:Z}),W=uf((0,s.Z)({},U,{rootRef:t})),G=W.getRootProps,q=W.getBackdropProps,K=W.getTransitionProps,X=W.portalRef,Y=W.isTopModal,J=W.exited,$=W.hasTransition,ee=(0,s.Z)({},U,{exited:J}),te=function(e){var t=e.open,n=e.exited;return $t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kf,e.classes)}(ee),ne={};if(void 0===m.props.tabIndex&&(ne.tabIndex="-1"),$){var re=K(),ie=re.onEnter,oe=re.onExited;ne.onEnter=ie,ne.onExited=oe}var ae=null!=(n=null!=(r=null==H?void 0:H.root)?r:w.Root)?n:_f,se=null!=(i=null!=(a=null==H?void 0:H.backdrop)?a:w.Backdrop)?i:f,ue=null!=(u=null==z?void 0:z.root)?u:k.root,ce=null!=(c=null==z?void 0:z.backdrop)?c:k.backdrop,le=_d({elementType:ae,externalSlotProps:ue,externalForwardedProps:V,getSlotProps:G,additionalProps:{ref:t,as:A},ownerState:ee,className:Ge(p,null==ue?void 0:ue.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),de=_d({elementType:se,externalSlotProps:ce,additionalProps:h,getSlotProps:function(e){return q((0,s.Z)({},e,{onClick:function(t){F&&F(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:Ge(null==ce?void 0:ce.className,null==h?void 0:h.className,null==te?void 0:te.backdrop),ownerState:ee});return Z||Q||$&&!J?(0,xr.jsx)(hf,{ref:X,container:y,disablePortal:O,children:(0,xr.jsxs)(ae,(0,s.Z)({},le,{children:[!R&&f?(0,xr.jsx)(se,(0,s.Z)({},de)):null,(0,xr.jsx)(ff,{disableEnforceFocus:S,disableAutoFocus:_,disableRestoreFocus:P,isEnabled:Y,open:Q,children:o.cloneElement(m,ne)})]}))}):null})),If=Sf,Df=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function Tf(e){return br("MuiPaper",e)}wr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var Of=["className","component","elevation","square","variant"],Nf=ur("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,s.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,s.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat(_n("#fff",Df(r.elevation)),", ").concat(_n("#fff",Df(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),Pf=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiPaper"}),r=n.className,i=n.component,o=void 0===i?"div":i,a=n.elevation,u=void 0===a?1:a,c=n.square,l=void 0!==c&&c,d=n.variant,f=void 0===d?"elevation":d,h=(0,Ue.Z)(n,Of),p=(0,s.Z)({},n,{component:o,elevation:u,square:l,variant:f}),g=function(e){var t=e.square,n=e.elevation,r=e.variant,i=e.classes;return $t({root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]},Tf,i)}(p);return(0,xr.jsx)(Nf,(0,s.Z)({as:o,ownerState:p,className:Ge(g.root,r),ref:t},h))})),Lf=Pf;function Bf(e){return br("MuiPopover",e)}wr("MuiPopover",["root","paper"]);var Mf=["onEntering"],Rf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],jf=["slotProps"];function Zf(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ff(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Qf(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function zf(e){return"function"===typeof e?e():e}var Hf=ur(If,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Vf=ur(Lf,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Uf=o.forwardRef((function(e,t){var n,r,i,a=pr({props:e,name:"MuiPopover"}),u=a.action,c=a.anchorEl,l=a.anchorOrigin,d=void 0===l?{vertical:"top",horizontal:"left"}:l,f=a.anchorPosition,h=a.anchorReference,p=void 0===h?"anchorEl":h,g=a.children,v=a.className,m=a.container,y=a.elevation,A=void 0===y?8:y,b=a.marginThreshold,w=void 0===b?16:b,C=a.open,k=a.PaperProps,E=void 0===k?{}:k,_=a.slots,x=a.slotProps,S=a.transformOrigin,I=void 0===S?{vertical:"top",horizontal:"left"}:S,D=a.TransitionComponent,T=void 0===D?Xd:D,O=a.transitionDuration,N=void 0===O?"auto":O,P=a.TransitionProps,L=(void 0===P?{}:P).onEntering,B=a.disableScrollLock,M=void 0!==B&&B,R=(0,Ue.Z)(a.TransitionProps,Mf),j=(0,Ue.Z)(a,Rf),Z=null!=(n=null==x?void 0:x.paper)?n:E,F=o.useRef(),Q=Ec(F,Z.ref),z=(0,s.Z)({},a,{anchorOrigin:d,anchorReference:p,elevation:A,marginThreshold:w,externalPaperSlotProps:Z,transformOrigin:I,TransitionComponent:T,transitionDuration:N,TransitionProps:R}),H=function(e){return $t({root:["root"],paper:["paper"]},Bf,e.classes)}(z),V=o.useCallback((function(){if("anchorPosition"===p)return f;var e=zf(c),t=(e&&1===e.nodeType?e:bd(F.current).body).getBoundingClientRect();return{top:t.top+Zf(t,d.vertical),left:t.left+Ff(t,d.horizontal)}}),[c,d.horizontal,d.vertical,f,p]),U=o.useCallback((function(e){return{vertical:Zf(e,I.vertical),horizontal:Ff(e,I.horizontal)}}),[I.horizontal,I.vertical]),W=o.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=U(t);if("none"===p)return{top:null,left:null,transformOrigin:Qf(n)};var r=V(),i=r.top-n.vertical,o=r.left-n.horizontal,a=i+t.height,s=o+t.width,u=Qd(zf(c)),l=u.innerHeight-w,d=u.innerWidth-w;if(null!==w&&il){var h=a-l;i-=h,n.vertical+=h}if(null!==w&&od){var v=s-d;o-=v,n.horizontal+=v}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:Qf(n)}}),[c,p,V,U,w]),G=o.useState(C),q=(0,rt.Z)(G,2),K=q[0],X=q[1],Y=o.useCallback((function(){var e=F.current;if(e){var t=W(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,X(!0)}}),[W]);o.useEffect((function(){return M&&window.addEventListener("scroll",Y),function(){return window.removeEventListener("scroll",Y)}}),[c,M,Y]);o.useEffect((function(){C&&Y()})),o.useImperativeHandle(u,(function(){return C?{updatePosition:function(){Y()}}:null}),[C,Y]),o.useEffect((function(){if(C){var e=Fd((function(){Y()})),t=Qd(c);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[c,C,Y]);var J=N;"auto"!==N||T.muiSupportAuto||(J=void 0);var $=m||(c?bd(zf(c)).body:void 0),ee=null!=(r=null==_?void 0:_.root)?r:Hf,te=null!=(i=null==_?void 0:_.paper)?i:Vf,ne=_d({elementType:te,externalSlotProps:(0,s.Z)({},Z,{style:K?Z.style:(0,s.Z)({},Z.style,{opacity:0})}),additionalProps:{elevation:A,ref:Q},ownerState:z,className:Ge(H.paper,null==Z?void 0:Z.className)}),re=_d({elementType:ee,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:j,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:C},ownerState:z,className:Ge(H.root,v)}),ie=re.slotProps,oe=(0,Ue.Z)(re,jf);return(0,xr.jsx)(ee,(0,s.Z)({},oe,!Xl(ee)&&{slotProps:ie,disableScrollLock:M},{children:(0,xr.jsx)(T,(0,s.Z)({appear:!0,in:C,onEntering:function(e,t){L&&L(e,t),Y()},onExited:function(){X(!1)},timeout:J},R,{children:(0,xr.jsx)(te,(0,s.Z)({},ne,{children:g}))}))}))})),Wf=Uf;function Gf(e){return br("MuiMenu",e)}wr("MuiMenu",["root","paper","list"]);var qf=["onEntering"],Kf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xf={vertical:"top",horizontal:"right"},Yf={vertical:"top",horizontal:"left"},Jf=ur(Wf,{shouldForwardProp:function(e){return or(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),$f=ur(Vf,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eh=ur(Zd,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),th=o.forwardRef((function(e,t){var n,r,i=pr({props:e,name:"MuiMenu"}),a=i.autoFocus,u=void 0===a||a,c=i.children,l=i.className,d=i.disableAutoFocusItem,f=void 0!==d&&d,h=i.MenuListProps,p=void 0===h?{}:h,g=i.onClose,v=i.open,m=i.PaperProps,y=void 0===m?{}:m,A=i.PopoverClasses,b=i.transitionDuration,w=void 0===b?"auto":b,C=i.TransitionProps,k=(void 0===C?{}:C).onEntering,E=i.variant,_=void 0===E?"selectedMenu":E,x=i.slots,S=void 0===x?{}:x,I=i.slotProps,D=void 0===I?{}:I,T=(0,Ue.Z)(i.TransitionProps,qf),O=(0,Ue.Z)(i,Kf),N=gr(),P="rtl"===N.direction,L=(0,s.Z)({},i,{autoFocus:u,disableAutoFocusItem:f,MenuListProps:p,onEntering:k,PaperProps:y,transitionDuration:w,TransitionProps:T,variant:_}),B=function(e){return $t({root:["root"],paper:["paper"],list:["list"]},Gf,e.classes)}(L),M=u&&!f&&v,R=o.useRef(null),j=-1;o.Children.map(c,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===_&&e.props.selected||-1===j)&&(j=t))}));var Z=null!=(n=S.paper)?n:$f,F=null!=(r=D.paper)?r:y,Q=_d({elementType:S.root,externalSlotProps:D.root,ownerState:L,className:[B.root,l]}),z=_d({elementType:Z,externalSlotProps:F,ownerState:L,className:B.paper});return(0,xr.jsx)(Jf,(0,s.Z)({onClose:g,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?Xf:Yf,slots:{paper:Z,root:S.root},slotProps:{root:Q,paper:z},open:v,ref:t,transitionDuration:w,TransitionProps:(0,s.Z)({onEntering:function(e,t){R.current&&R.current.adjustStyleForScrollbar(e,N),k&&k(e,t)}},T),ownerState:L},O,{classes:A,children:(0,xr.jsx)(eh,(0,s.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:R,autoFocus:u&&(-1===j||f),autoFocusItem:M,variant:_},p,{className:Ge(B.list,p.className),children:c}))}))})),nh=th;function rh(e){return br("MuiNativeSelect",e)}var ih=wr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),oh=["className","disabled","error","IconComponent","inputRef","variant"],ah=function(e){var t,n=e.ownerState,r=e.theme;return(0,s.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,s.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,Ve.Z)(t,"&.".concat(ih.disabled),{cursor:"default"}),(0,Ve.Z)(t,"&[multiple]",{height:"auto"}),(0,Ve.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(r.vars||r).palette.background.paper}),(0,Ve.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},sh=ur("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:or,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],n.error&&t.error,(0,Ve.Z)({},"&.".concat(ih.multiple),t.multiple)]}})(ah),uh=function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)((0,Ve.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active},"&.".concat(ih.disabled),{color:(n.vars||n).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},ch=ur("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat(Yl(n.variant))],n.open&&t.iconOpen]}})(uh),lh=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,i=e.error,a=e.IconComponent,u=e.inputRef,c=e.variant,l=void 0===c?"standard":c,d=(0,Ue.Z)(e,oh),f=(0,s.Z)({},e,{disabled:r,variant:l,error:i}),h=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.multiple,o=e.open;return $t({select:["select",n,r&&"disabled",i&&"multiple",e.error&&"error"],icon:["icon","icon".concat(Yl(n)),o&&"iconOpen",r&&"disabled"]},rh,t)}(f);return(0,xr.jsxs)(o.Fragment,{children:[(0,xr.jsx)(sh,(0,s.Z)({ownerState:f,className:Ge(h.select,n),disabled:r,ref:u||t},d)),e.multiple?null:(0,xr.jsx)(ch,{as:a,ownerState:f,className:h.icon})]})})),dh=lh;var fh=function(e){var t=e.controlled,n=e.default,r=(e.name,e.state,o.useRef(void 0!==t).current),i=o.useState(n),a=(0,rt.Z)(i,2),s=a[0],u=a[1];return[r?t:s,o.useCallback((function(e){r||u(e)}),[])]};function hh(e){return br("MuiSelect",e)}var ph,gh=wr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],mh=ur("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,Ve.Z)({},"&.".concat(gh.select),t.select),(0,Ve.Z)({},"&.".concat(gh.select),t[n.variant]),(0,Ve.Z)({},"&.".concat(gh.error),t.error),(0,Ve.Z)({},"&.".concat(gh.multiple),t.multiple)]}})(ah,(0,Ve.Z)({},"&.".concat(gh.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),yh=ur("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat(Yl(n.variant))],n.open&&t.iconOpen]}})(uh),Ah=ur("input",{shouldForwardProp:function(e){return ar(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function bh(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function wh(e){return null==e||"string"===typeof e&&!e.trim()}var Ch=o.forwardRef((function(e,t){var n,r=e["aria-describedby"],i=e["aria-label"],a=e.autoFocus,u=e.autoWidth,c=e.children,l=e.className,d=e.defaultOpen,f=e.defaultValue,h=e.disabled,p=e.displayEmpty,g=e.error,v=void 0!==g&&g,m=e.IconComponent,y=e.inputRef,A=e.labelId,b=e.MenuProps,w=void 0===b?{}:b,C=e.multiple,k=e.name,E=e.onBlur,_=e.onChange,x=e.onClose,S=e.onFocus,I=e.onOpen,D=e.open,T=e.readOnly,O=e.renderValue,N=e.SelectDisplayProps,P=void 0===N?{}:N,L=e.tabIndex,B=e.value,M=e.variant,R=void 0===M?"standard":M,j=(0,Ue.Z)(e,vh),Z=fh({controlled:B,default:f,name:"Select"}),F=(0,rt.Z)(Z,2),Q=F[0],z=F[1],H=fh({controlled:D,default:d,name:"Select"}),V=(0,rt.Z)(H,2),U=V[0],W=V[1],G=o.useRef(null),q=o.useRef(null),K=o.useState(null),X=(0,rt.Z)(K,2),Y=X[0],J=X[1],$=o.useRef(null!=D).current,ee=o.useState(),te=(0,rt.Z)(ee,2),ne=te[0],re=te[1],ie=Ec(t,y),oe=o.useCallback((function(e){q.current=e,e&&J(e)}),[]),ae=null==Y?void 0:Y.parentNode;o.useImperativeHandle(ie,(function(){return{focus:function(){q.current.focus()},node:G.current,value:Q}}),[Q]),o.useEffect((function(){d&&U&&Y&&!$&&(re(u?null:ae.clientWidth),q.current.focus())}),[Y,u]),o.useEffect((function(){a&&q.current.focus()}),[a]),o.useEffect((function(){if(A){var e=bd(q.current).getElementById(A);if(e){var t=function(){getSelection().isCollapsed&&q.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[A]);var se,ue,ce=function(e,t){e?I&&I(t):x&&x(t),$||(re(u?null:ae.clientWidth),W(e))},le=o.Children.toArray(c),de=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(C){n=Array.isArray(Q)?Q.slice():[];var r=Q.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),Q!==n&&(z(n),_)){var i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:k}}),_(o,e)}C||ce(!1,t)}}},fe=null!==Y&&U;delete j["aria-invalid"];var he=[],pe=!1;(nd({value:Q})||p)&&(O?se=O(Q):pe=!0);var ge=le.map((function(e){if(!o.isValidElement(e))return null;var t;if(C){if(!Array.isArray(Q))throw new Error(it(2));t=Q.some((function(t){return bh(t,e.props.value)})),t&&pe&&he.push(e.props.children)}else(t=bh(Q,e.props.value))&&pe&&(ue=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:de(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));pe&&(se=C?0===he.length?null:he.reduce((function(e,t,n){return e.push(t),n=a)&&this.A(e),this.W&&this.setState({N:!1,j:!1}),this.l=Date.now()},t.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},t.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},t.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},t.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},t.prototype.m=function(e){this.L(e.touches[0].clientX)},t.prototype.M=function(e){e.preventDefault(),this.U(e)},t.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({j:!1}))},t.prototype.C=function(){this.u=Date.now()},t.prototype.D=function(){this.setState({j:!0})},t.prototype.O=function(){this.setState({j:!1})},t.prototype.S=function(e){this.H=e},t.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({j:!1})},t.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,n=e.disabled,r=e.className,i=e.offColor,a=e.onColor,s=e.offHandleColor,u=e.onHandleColor,c=e.checkedIcon,l=e.uncheckedIcon,d=e.checkedHandleIcon,f=e.uncheckedHandleIcon,h=e.boxShadow,p=e.activeBoxShadow,g=e.height,v=e.width,m=e.borderRadius,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),A=this.state,b=A.h,w=A.N,C=A.j,k={position:"relative",display:"inline-block",textAlign:"left",opacity:n?.5:1,direction:"ltr",borderRadius:g/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},E={height:g,width:v,margin:Math.max(0,(this.t-g)/2),position:"relative",background:rp(b,this.i,this.o,i,a),borderRadius:"number"==typeof m?m:g/2,cursor:n?"default":"pointer",WebkitTransition:w?null:"background 0.25s",MozTransition:w?null:"background 0.25s",transition:w?null:"background 0.25s"},_={height:g,width:Math.min(1.5*g,v-(this.t+g)/2+1),position:"relative",opacity:(b-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:w?null:"opacity 0.25s",MozTransition:w?null:"opacity 0.25s",transition:w?null:"opacity 0.25s"},x={height:g,width:Math.min(1.5*g,v-(this.t+g)/2+1),position:"absolute",opacity:1-(b-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:w?null:"opacity 0.25s",MozTransition:w?null:"opacity 0.25s",transition:w?null:"opacity 0.25s"},S={height:this.t,width:this.t,background:rp(b,this.i,this.o,s,u),display:"inline-block",cursor:n?"default":"pointer",borderRadius:"number"==typeof m?m-1:"50%",position:"absolute",transform:"translateX("+b+"px)",top:Math.max(0,(g-this.t)/2),outline:0,boxShadow:C?p:h,border:0,WebkitTransition:w?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:w?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:w?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},I={height:this.t,width:this.t,opacity:Math.max(2*(1-(b-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:w?null:"opacity 0.25s",MozTransition:w?null:"opacity 0.25s",transition:w?null:"opacity 0.25s"},D={height:this.t,width:this.t,opacity:Math.max(2*((b-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:w?null:"opacity 0.25s",MozTransition:w?null:"opacity 0.25s",transition:w?null:"opacity 0.25s"};return o.createElement("div",{className:r,style:k},o.createElement("div",{className:"react-switch-bg",style:E,onClick:n?null:this.T,onMouseDown:function(e){return e.preventDefault()}},c&&o.createElement("div",{style:_},c),l&&o.createElement("div",{style:x},l)),o.createElement("div",{className:"react-switch-handle",style:S,onClick:function(e){return e.preventDefault()},onMouseDown:n?null:this.p,onTouchStart:n?null:this.k,onTouchMove:n?null:this.m,onTouchEnd:n?null:this.M,onTouchCancel:n?null:this.O},f&&o.createElement("div",{style:I},f),d&&o.createElement("div",{style:D},d)),o.createElement("input",$h({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:n,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},y,{ref:this.S,onFocus:this.D,onBlur:this.O,onKeyUp:this.C,onChange:this.$})))},t}(o.Component);ip.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:ep,checkedIcon:tp,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56};var op=n(1413),ap=n(45987),sp=["count","wrapper","className","containerClassName","containerTestId","circle","style"],up=["children"],cp=o.createContext({}),lp=!0;function dp(e){for(var t,n,r,i=e.count,a=void 0===i?1:i,s=e.wrapper,u=e.className,c=e.containerClassName,l=e.containerTestId,d=e.circle,f=void 0!==d&&d,h=e.style,p=(0,ap.Z)(e,sp),g=o.useContext(cp),v=(0,op.Z)({},p),m=0,y=Object.entries(p);ma&&S===x-1){var D=null!==(n=I.width)&&void 0!==n?n:"100%",T=a%1,O="number"===typeof D?D*T:"calc(".concat(D," * ").concat(T,")");I=(0,op.Z)((0,op.Z)({},I),{},{width:O})}var N=o.createElement("span",{className:k,style:I,key:S},"\u200c");E?_.push(N):_.push(o.createElement(o.Fragment,{key:S},N,o.createElement("br",null)))}return o.createElement("span",{className:c,"data-testid":l,"aria-live":"polite","aria-busy":null!==(r=w.enableAnimation)&&void 0!==r?r:lp},s?_.map((function(e,t){return o.createElement(s,{key:t},e)})):_)}function fp(e){var t=e.children,n=(0,ap.Z)(e,up);return o.createElement(cp.Provider,{value:n},t)}var hp=ri?ri.isConcatSpreadable:void 0;var pp=function(e){return ho(e)||So(e)||!!(hp&&e&&e[hp])};var gp=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=pp),o||(o=[]);++a0&&r(u)?n>1?e(u,n-1,r,i,o):fo(o,u):i||(o[o.length]=u)}return o};var vp=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var mp=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=Oa(e),a=void 0!==t,s=null===t,u=t===t,c=Oa(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index};var Ap=function(e,t,n){t=t.length?Zr(t,(function(e){return ho(e)?function(t){return Wa(t,1===e.length?e[0]:e)}:e})):[Ja];var r=-1;t=Zr(t,jo(ns));var i=as(e,(function(e,n,i){return{criteria:Zr(t,(function(t){return t(e)})),index:++r,value:e}}));return vp(i,(function(e,t){return yp(e,t,n)}))},bp=du((function(e,t){if(null==e)return[];var n=t.length;return n>1&&fu(e,t[0],t[1])?t=[]:n>2&&fu(t[0],t[1],t[2])&&(t=[t[0]]),Ap(e,gp(t,1),[])})),wp=n(54097);var Cp=o.createContext(null);function kp(){return o.useContext(Cp)}var Ep="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var _p=function(e){var t=e.children,n=e.theme,r=kp(),i=o.useMemo((function(){var e=null===r?n:function(e,t){return"function"===typeof t?t(e):(0,s.Z)({},e,t)}(r,n);return null!=e&&(e[Ep]=null!==r),e}),[n,r]);return(0,xr.jsx)(Cp.Provider,{value:i,children:t})},xp={};function Sp(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo((function(){var i=e&&t[e]||t;if("function"===typeof n){var o=n(i),a=e?(0,s.Z)({},t,(0,Ve.Z)({},e,o)):o;return r?function(){return a}:a}return e?(0,s.Z)({},t,(0,Ve.Z)({},e,n)):(0,s.Z)({},t,n)}),[e,t,n,r])}var Ip=function(e){var t=e.children,n=e.theme,r=e.themeId,i=lr(xp),o=kp()||xp,a=Sp(r,i,n),s=Sp(r,o,n,!0);return(0,xr.jsx)(_p,{theme:s,children:(0,xr.jsx)(De.Provider,{value:a,children:t})})},Dp=["theme"];function Tp(e){var t=e.theme,n=(0,Ue.Z)(e,Dp),r=t[ir];return(0,xr.jsx)(Ip,(0,s.Z)({},n,{themeId:r?ir:void 0,theme:r||t}))}function Op(e){return br("MuiButton",e)}var Np=wr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Pp=o.createContext({});var Lp=o.createContext(void 0),Bp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Mp=function(e){return(0,s.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},Rp=ur(yl,{shouldForwardProp:function(e){return or(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat(Yl(n.color))],t["size".concat(Yl(n.size))],t["".concat(n.variant,"Size").concat(Yl(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,r,i=e.theme,o=e.ownerState,a="light"===i.palette.mode?i.palette.grey[300]:i.palette.grey[800],u="light"===i.palette.mode?i.palette.grey.A100:i.palette.grey[700];return(0,s.Z)({},i.typography.button,(t={minWidth:64,padding:"6px 16px",borderRadius:(i.vars||i).shape.borderRadius,transition:i.transitions.create(["background-color","box-shadow","border-color","color"],{duration:i.transitions.duration.short}),"&:hover":(0,s.Z)({textDecoration:"none",backgroundColor:i.vars?"rgba(".concat(i.vars.palette.text.primaryChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):_n(i.palette.text.primary,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===o.variant&&"inherit"!==o.color&&{backgroundColor:i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):_n(i.palette[o.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===o.variant&&"inherit"!==o.color&&{border:"1px solid ".concat((i.vars||i).palette[o.color].main),backgroundColor:i.vars?"rgba(".concat(i.vars.palette[o.color].mainChannel," / ").concat(i.vars.palette.action.hoverOpacity,")"):_n(i.palette[o.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===o.variant&&{backgroundColor:i.vars?i.vars.palette.Button.inheritContainedHoverBg:u,boxShadow:(i.vars||i).shadows[4],"@media (hover: none)":{boxShadow:(i.vars||i).shadows[2],backgroundColor:(i.vars||i).palette.grey[300]}},"contained"===o.variant&&"inherit"!==o.color&&{backgroundColor:(i.vars||i).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(i.vars||i).palette[o.color].main}}),"&:active":(0,s.Z)({},"contained"===o.variant&&{boxShadow:(i.vars||i).shadows[8]})},(0,Ve.Z)(t,"&.".concat(Np.focusVisible),(0,s.Z)({},"contained"===o.variant&&{boxShadow:(i.vars||i).shadows[6]})),(0,Ve.Z)(t,"&.".concat(Np.disabled),(0,s.Z)({color:(i.vars||i).palette.action.disabled},"outlined"===o.variant&&{border:"1px solid ".concat((i.vars||i).palette.action.disabledBackground)},"contained"===o.variant&&{color:(i.vars||i).palette.action.disabled,boxShadow:(i.vars||i).shadows[0],backgroundColor:(i.vars||i).palette.action.disabledBackground})),t),"text"===o.variant&&{padding:"6px 8px"},"text"===o.variant&&"inherit"!==o.color&&{color:(i.vars||i).palette[o.color].main},"outlined"===o.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===o.variant&&"inherit"!==o.color&&{color:(i.vars||i).palette[o.color].main,border:i.vars?"1px solid rgba(".concat(i.vars.palette[o.color].mainChannel," / 0.5)"):"1px solid ".concat(_n(i.palette[o.color].main,.5))},"contained"===o.variant&&{color:i.vars?i.vars.palette.text.primary:null==(n=(r=i.palette).getContrastText)?void 0:n.call(r,i.palette.grey[300]),backgroundColor:i.vars?i.vars.palette.Button.inheritContainedBg:a,boxShadow:(i.vars||i).shadows[2]},"contained"===o.variant&&"inherit"!==o.color&&{color:(i.vars||i).palette[o.color].contrastText,backgroundColor:(i.vars||i).palette[o.color].main},"inherit"===o.color&&{color:"inherit",borderColor:"currentColor"},"small"===o.size&&"text"===o.variant&&{padding:"4px 5px",fontSize:i.typography.pxToRem(13)},"large"===o.size&&"text"===o.variant&&{padding:"8px 11px",fontSize:i.typography.pxToRem(15)},"small"===o.size&&"outlined"===o.variant&&{padding:"3px 9px",fontSize:i.typography.pxToRem(13)},"large"===o.size&&"outlined"===o.variant&&{padding:"7px 21px",fontSize:i.typography.pxToRem(15)},"small"===o.size&&"contained"===o.variant&&{padding:"4px 10px",fontSize:i.typography.pxToRem(13)},"large"===o.size&&"contained"===o.variant&&{padding:"8px 22px",fontSize:i.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})}),(function(e){var t;return e.ownerState.disableElevation&&(t={boxShadow:"none","&:hover":{boxShadow:"none"}},(0,Ve.Z)(t,"&.".concat(Np.focusVisible),{boxShadow:"none"}),(0,Ve.Z)(t,"&:active",{boxShadow:"none"}),(0,Ve.Z)(t,"&.".concat(Np.disabled),{boxShadow:"none"}),t)})),jp=ur("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat(Yl(n.size))]]}})((function(e){var t=e.ownerState;return(0,s.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Mp(t))})),Zp=ur("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat(Yl(n.size))]]}})((function(e){var t=e.ownerState;return(0,s.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Mp(t))})),Fp=o.forwardRef((function(e,t){var n=o.useContext(Pp),r=o.useContext(Lp),i=pr({props:cr(n,e),name:"MuiButton"}),a=i.children,u=i.color,c=void 0===u?"primary":u,l=i.component,d=void 0===l?"button":l,f=i.className,h=i.disabled,p=void 0!==h&&h,g=i.disableElevation,v=void 0!==g&&g,m=i.disableFocusRipple,y=void 0!==m&&m,A=i.endIcon,b=i.focusVisibleClassName,w=i.fullWidth,C=void 0!==w&&w,k=i.size,E=void 0===k?"medium":k,_=i.startIcon,x=i.type,S=i.variant,I=void 0===S?"text":S,D=(0,Ue.Z)(i,Bp),T=(0,s.Z)({},i,{color:c,component:d,disabled:p,disableElevation:v,disableFocusRipple:y,fullWidth:C,size:E,type:x,variant:I}),O=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,i=e.size,o=e.variant,a=e.classes,u=$t({root:["root",o,"".concat(o).concat(Yl(t)),"size".concat(Yl(i)),"".concat(o,"Size").concat(Yl(i)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat(Yl(i))],endIcon:["endIcon","iconSize".concat(Yl(i))]},Op,a);return(0,s.Z)({},a,u)}(T),N=_&&(0,xr.jsx)(jp,{className:O.startIcon,ownerState:T,children:_}),P=A&&(0,xr.jsx)(Zp,{className:O.endIcon,ownerState:T,children:A}),L=r||"";return(0,xr.jsxs)(Rp,(0,s.Z)({ownerState:T,className:Ge(n.className,O.root,f,L),component:d,disabled:p,focusRipple:!y,focusVisibleClassName:Ge(O.focusVisible,b),ref:t,type:x},D,{classes:O,children:[N,a,P]}))})),Qp=Fp;var zp=function(e,t){return gp(ss(e,t),1)};function Hp(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,r=e.defaultClassName,i=void 0===r?"MuiBox-root":r,a=e.generateClassName,u=tn("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(sn);return o.forwardRef((function(e,r){var o=fr(n),c=Jt(e),l=c.className,d=c.component,f=void 0===d?"div":d,h=(0,Ue.Z)(c,Up);return(0,xr.jsx)(u,(0,s.Z)({as:f,ref:r,className:Vp(l,a?a(i):i),theme:t&&o[t]||o},h))}))}({themeId:ir,defaultTheme:Wp,defaultClassName:"MuiBox-root",generateClassName:yr.generate}),qp=Gp;function Kp(e){return br("MuiTab",e)}var Xp=wr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Yp=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Jp=ur(yl,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat(Yl(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((function(e){var t,n,r,i=e.theme,o=e.ownerState;return(0,s.Z)({},i.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},o.label&&{flexDirection:"top"===o.iconPosition||"bottom"===o.iconPosition?"column":"row"},{lineHeight:1.25},o.icon&&o.label&&(0,Ve.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(Xp.iconWrapper),(0,s.Z)({},"top"===o.iconPosition&&{marginBottom:6},"bottom"===o.iconPosition&&{marginTop:6},"start"===o.iconPosition&&{marginRight:i.spacing(1)},"end"===o.iconPosition&&{marginLeft:i.spacing(1)})),"inherit"===o.textColor&&(t={color:"inherit",opacity:.6},(0,Ve.Z)(t,"&.".concat(Xp.selected),{opacity:1}),(0,Ve.Z)(t,"&.".concat(Xp.disabled),{opacity:(i.vars||i).palette.action.disabledOpacity}),t),"primary"===o.textColor&&(n={color:(i.vars||i).palette.text.secondary},(0,Ve.Z)(n,"&.".concat(Xp.selected),{color:(i.vars||i).palette.primary.main}),(0,Ve.Z)(n,"&.".concat(Xp.disabled),{color:(i.vars||i).palette.text.disabled}),n),"secondary"===o.textColor&&(r={color:(i.vars||i).palette.text.secondary},(0,Ve.Z)(r,"&.".concat(Xp.selected),{color:(i.vars||i).palette.secondary.main}),(0,Ve.Z)(r,"&.".concat(Xp.disabled),{color:(i.vars||i).palette.text.disabled}),r),o.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},o.wrapped&&{fontSize:i.typography.pxToRem(12)})})),$p=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiTab"}),r=n.className,i=n.disabled,a=void 0!==i&&i,u=n.disableFocusRipple,c=void 0!==u&&u,l=n.fullWidth,d=n.icon,f=n.iconPosition,h=void 0===f?"top":f,p=n.indicator,g=n.label,v=n.onChange,m=n.onClick,y=n.onFocus,A=n.selected,b=n.selectionFollowsFocus,w=n.textColor,C=void 0===w?"inherit":w,k=n.value,E=n.wrapped,_=void 0!==E&&E,x=(0,Ue.Z)(n,Yp),S=(0,s.Z)({},n,{disabled:a,disableFocusRipple:c,selected:A,icon:!!d,iconPosition:h,label:!!g,fullWidth:l,textColor:C,wrapped:_}),I=function(e){var t=e.classes,n=e.textColor,r=e.fullWidth,i=e.wrapped,o=e.icon,a=e.label,s=e.selected,u=e.disabled;return $t({root:["root",o&&a&&"labelIcon","textColor".concat(Yl(n)),r&&"fullWidth",i&&"wrapped",s&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]},Kp,t)}(S),D=d&&g&&o.isValidElement(d)?o.cloneElement(d,{className:Ge(I.iconWrapper,d.props.className)}):d;return(0,xr.jsxs)(Jp,(0,s.Z)({focusRipple:!c,className:Ge(I.root,r),ref:t,role:"tab","aria-selected":A,disabled:a,onClick:function(e){!A&&v&&v(e,k),m&&m(e)},onFocus:function(e){b&&!A&&v&&v(e,k),y&&y(e)},ownerState:S,tabIndex:A?0:-1},x,{children:["top"===h||"start"===h?(0,xr.jsxs)(o.Fragment,{children:[D,g]}):(0,xr.jsxs)(o.Fragment,{children:[g,D]}),p]}))})),eg=$p,tg=Object.prototype.hasOwnProperty;var ng,rg=function(e){if(null==e)return!0;if($o(e)&&(ho(e)||"string"==typeof e||"function"==typeof e.splice||No(e)||Vo(e)||So(e)))return!e.length;var t=Aa(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(qo(e))return!Jo(e).length;for(var n in e)if(tg.call(e,n))return!1;return!0};function ig(){if(ng)return ng;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ng="reverse",e.scrollLeft>0?ng="default":(e.scrollLeft=1,0===e.scrollLeft&&(ng="negative")),document.body.removeChild(e),ng}function og(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(ig()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function ag(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var sg=["onChange"],ug={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var cg=Dh((0,xr.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),lg=Dh((0,xr.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function dg(e){return br("MuiTabScrollButton",e)}var fg=wr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hg=["className","slots","slotProps","direction","orientation","disabled"],pg=ur(yl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.orientation&&t[n.orientation]]}})((function(e){var t=e.ownerState;return(0,s.Z)((0,Ve.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(fg.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),gg=o.forwardRef((function(e,t){var n,r,i=pr({props:e,name:"MuiTabScrollButton"}),o=i.className,a=i.slots,u=void 0===a?{}:a,c=i.slotProps,l=void 0===c?{}:c,d=i.direction,f=(0,Ue.Z)(i,hg),h="rtl"===gr().direction,p=(0,s.Z)({isRtl:h},i),g=function(e){var t=e.classes;return $t({root:["root",e.orientation,e.disabled&&"disabled"]},dg,t)}(p),v=null!=(n=u.StartScrollButtonIcon)?n:cg,m=null!=(r=u.EndScrollButtonIcon)?r:lg,y=_d({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),A=_d({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return(0,xr.jsx)(pg,(0,s.Z)({component:"div",className:Ge(g.root,o),ref:t,role:null,ownerState:p,tabIndex:null},f,{children:"left"===d?(0,xr.jsx)(v,(0,s.Z)({},y)):(0,xr.jsx)(m,(0,s.Z)({},A))}))})),vg=gg;function mg(e){return br("MuiTabs",e)}var yg=wr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ag=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],bg=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},wg=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},Cg=function(e,t,n){for(var r=!1,i=n(e,t);i;){if(i===e.firstChild){if(r)return;r=!0}var o=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!o)return void i.focus();i=n(e,i)}},kg=ur("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,Ve.Z)({},"& .".concat(yg.scrollButtons),t.scrollButtons),(0,Ve.Z)({},"& .".concat(yg.scrollButtons),n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,n.vertical&&t.vertical]}})((function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&(0,Ve.Z)({},"& .".concat(yg.scrollButtons),(0,Ve.Z)({},n.breakpoints.down("sm"),{display:"none"})))})),Eg=ur("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var n=e.ownerState;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return(0,s.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),_g=ur("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var n=e.ownerState;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((function(e){var t=e.ownerState;return(0,s.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),xg=ur("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),Sg=ur((function(e){var t=e.onChange,n=(0,Ue.Z)(e,sg),r=o.useRef(),i=o.useRef(null),a=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return Al((function(){var e=Fd((function(){var e=r.current;a(),e!==r.current&&t(r.current)})),n=Qd(i.current);return n.addEventListener("resize",e),function(){e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){a(),t(r.current)}),[t]),(0,xr.jsx)("div",(0,s.Z)({style:ug,ref:i},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ig={},Dg=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiTabs"}),r=gr(),i="rtl"===r.direction,a=n["aria-label"],u=n["aria-labelledby"],c=n.action,l=n.centered,d=void 0!==l&&l,f=n.children,h=n.className,p=n.component,g=void 0===p?"div":p,v=n.allowScrollButtonsMobile,m=void 0!==v&&v,y=n.indicatorColor,A=void 0===y?"primary":y,b=n.onChange,w=n.orientation,C=void 0===w?"horizontal":w,k=n.ScrollButtonComponent,E=void 0===k?vg:k,_=n.scrollButtons,x=void 0===_?"auto":_,S=n.selectionFollowsFocus,I=n.slots,D=void 0===I?{}:I,T=n.slotProps,O=void 0===T?{}:T,N=n.TabIndicatorProps,P=void 0===N?{}:N,L=n.TabScrollButtonProps,B=void 0===L?{}:L,M=n.textColor,R=void 0===M?"primary":M,j=n.value,Z=n.variant,F=void 0===Z?"standard":Z,Q=n.visibleScrollbar,z=void 0!==Q&&Q,H=(0,Ue.Z)(n,Ag),V="scrollable"===F,U="vertical"===C,W=U?"scrollTop":"scrollLeft",G=U?"top":"left",q=U?"bottom":"right",K=U?"clientHeight":"clientWidth",X=U?"height":"width",Y=(0,s.Z)({},n,{component:g,allowScrollButtonsMobile:m,indicatorColor:A,orientation:C,vertical:U,scrollButtons:x,textColor:R,variant:F,visibleScrollbar:z,fixed:!V,hideScrollbar:V&&!z,scrollableX:V&&!U,scrollableY:V&&U,centered:d&&!V,scrollButtonsHideMobile:!m}),J=function(e){var t=e.vertical,n=e.fixed,r=e.hideScrollbar,i=e.scrollableX;return $t({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",e.scrollableY&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",e.centered&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",e.scrollButtonsHideMobile&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},mg,e.classes)}(Y),$=_d({elementType:D.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:Y}),ee=_d({elementType:D.EndScrollButtonIcon,externalSlotProps:O.endScrollButtonIcon,ownerState:Y});var te=o.useState(!1),ne=(0,rt.Z)(te,2),re=ne[0],ie=ne[1],oe=o.useState(Ig),ae=(0,rt.Z)(oe,2),se=ae[0],ue=ae[1],ce=o.useState(!1),le=(0,rt.Z)(ce,2),de=le[0],fe=le[1],he=o.useState(!1),pe=(0,rt.Z)(he,2),ge=pe[0],ve=pe[1],me=o.useState(!1),ye=(0,rt.Z)(me,2),Ae=ye[0],be=ye[1],we=o.useState({overflow:"hidden",scrollbarWidth:0}),Ce=(0,rt.Z)(we,2),ke=Ce[0],Ee=Ce[1],_e=new Map,xe=o.useRef(null),Se=o.useRef(null),Ie=function(){var e,t,n=xe.current;if(n){var i=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:og(n,r.direction),scrollWidth:n.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}if(n&&!1!==j){var o=Se.current.children;if(o.length>0){var a=o[_e.get(j)];0,t=a?a.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},De=Ic((function(){var e,t,n=Ie(),r=n.tabsMeta,o=n.tabMeta,a=0;if(U)t="top",o&&r&&(a=o.top-r.top+r.scrollTop);else if(t=i?"right":"left",o&&r){var s=i?r.scrollLeftNormalized+r.clientWidth-r.scrollWidth:r.scrollLeft;a=(i?-1:1)*(o[t]-r[t]+s)}var u=(e={},(0,Ve.Z)(e,t,a),(0,Ve.Z)(e,X,o?o[X]:0),e);if(isNaN(se[t])||isNaN(se[X]))ue(u);else{var c=Math.abs(se[t]-u[t]),l=Math.abs(se[X]-u[X]);(c>=1||l>=1)&&ue(u)}})),Te=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).animation;void 0===t||t?function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=r.ease,a=void 0===o?ag:o,s=r.duration,u=void 0===s?300:s,c=null,l=t[e],d=!1,f=function(){d=!0};l===n?i(new Error("Element already at target position")):requestAnimationFrame((function r(o){if(d)i(new Error("Animation cancelled"));else{null===c&&(c=o);var s=Math.min(1,(o-c)/u);t[e]=a(s)*(n-l)+l,s>=1?requestAnimationFrame((function(){i(null)})):requestAnimationFrame(r)}}))}(W,xe.current,e,{duration:r.transitions.duration.standard}):xe.current[W]=e},Oe=function(e){var t=xe.current[W];U?t+=e:(t+=e*(i?-1:1),t*=i&&"reverse"===ig()?-1:1),Te(t)},Ne=function(){for(var e=xe.current[K],t=0,n=Array.from(Se.current.children),r=0;re){0===r&&(t=e);break}t+=i[K]}return t},Pe=function(){Oe(-1*Ne())},Le=function(){Oe(Ne())},Be=o.useCallback((function(e){Ee({overflow:null,scrollbarWidth:e})}),[]),Me=Ic((function(e){var t=Ie(),n=t.tabsMeta,r=t.tabMeta;if(r&&n)if(r[G]n[q]){var o=n[W]+(r[q]-n[q]);Te(o,{animation:e})}})),Re=Ic((function(){V&&!1!==x&&be(!Ae)}));o.useEffect((function(){var e,t,n=Fd((function(){xe.current&&De()})),r=Qd(xe.current);return r.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(n),Array.from(Se.current.children).forEach((function(t){e.observe(t)}))),"undefined"!==typeof MutationObserver&&(t=new MutationObserver((function(t){t.forEach((function(t){t.removedNodes.forEach((function(t){var n;null==(n=e)||n.unobserve(t)})),t.addedNodes.forEach((function(t){var n;null==(n=e)||n.observe(t)}))})),n(),Re()}))).observe(Se.current,{childList:!0}),function(){var i,o;n.clear(),r.removeEventListener("resize",n),null==(i=t)||i.disconnect(),null==(o=e)||o.disconnect()}}),[De,Re]),o.useEffect((function(){var e=Array.from(Se.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&V&&!1!==x){var n=e[0],r=e[t-1],i={root:xe.current,threshold:.99},o=new IntersectionObserver((function(e){fe(!e[0].isIntersecting)}),i);o.observe(n);var a=new IntersectionObserver((function(e){ve(!e[0].isIntersecting)}),i);return a.observe(r),function(){o.disconnect(),a.disconnect()}}}),[V,x,Ae,null==f?void 0:f.length]),o.useEffect((function(){ie(!0)}),[]),o.useEffect((function(){De()})),o.useEffect((function(){Me(Ig!==se)}),[Me,se]),o.useImperativeHandle(c,(function(){return{updateIndicator:De,updateScrollButtons:Re}}),[De,Re]);var je=(0,xr.jsx)(xg,(0,s.Z)({},P,{className:Ge(J.indicator,P.className),ownerState:Y,style:(0,s.Z)({},se,P.style)})),Ze=0,Fe=o.Children.map(f,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?Ze:e.props.value;_e.set(t,Ze);var n=t===j;return Ze+=1,o.cloneElement(e,(0,s.Z)({fullWidth:"fullWidth"===F,indicator:n&&!re&&je,selected:n,selectionFollowsFocus:S,onChange:b,textColor:R,value:t},1!==Ze||!1!==j||e.props.tabIndex?{}:{tabIndex:0}))})),Qe=function(){var e={};e.scrollbarSizeListener=V?(0,xr.jsx)(Sg,{onChange:Be,className:Ge(J.scrollableX,J.hideScrollbar)}):null;var t=V&&("auto"===x&&(de||ge)||!0===x);return e.scrollButtonStart=t?(0,xr.jsx)(E,(0,s.Z)({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:C,direction:i?"right":"left",onClick:Pe,disabled:!de},B,{className:Ge(J.scrollButtons,B.className)})):null,e.scrollButtonEnd=t?(0,xr.jsx)(E,(0,s.Z)({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:C,direction:i?"left":"right",onClick:Le,disabled:!ge},B,{className:Ge(J.scrollButtons,B.className)})):null,e}();return(0,xr.jsxs)(kg,(0,s.Z)({className:Ge(J.root,h),ownerState:Y,ref:t,as:g},H,{children:[Qe.scrollButtonStart,Qe.scrollbarSizeListener,(0,xr.jsxs)(Eg,{className:J.scroller,ownerState:Y,style:(0,Ve.Z)({overflow:ke.overflow},U?"margin".concat(i?"Left":"Right"):"marginBottom",z?void 0:-ke.scrollbarWidth),ref:xe,children:[(0,xr.jsx)(_g,{"aria-label":a,"aria-labelledby":u,"aria-orientation":"vertical"===C?"vertical":null,className:J.flexContainer,ownerState:Y,onKeyDown:function(e){var t=Se.current,n=bd(t).activeElement;if("tab"===n.getAttribute("role")){var r="horizontal"===C?"ArrowLeft":"ArrowUp",o="horizontal"===C?"ArrowRight":"ArrowDown";switch("horizontal"===C&&i&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),Cg(t,n,wg);break;case o:e.preventDefault(),Cg(t,n,bg);break;case"Home":e.preventDefault(),Cg(t,null,bg);break;case"End":e.preventDefault(),Cg(t,null,wg)}}},ref:Se,role:"tablist",children:Fe}),re&&je]}),Qe.scrollButtonEnd]}))})),Tg=Dg,Og=n(75192),Ng=n.n(Og);function Pg(){return Pg=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Bg=(0,o.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,i=e.size,a=void 0===i?24:i,s=Lg(e,["color","size"]);return o.createElement("svg",Pg({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),o.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),o.createElement("polyline",{points:"19 12 12 19 5 12"}))}));Bg.propTypes={color:Ng().string,size:Ng().oneOfType([Ng().string,Ng().number])},Bg.displayName="ArrowDown";var Mg=Bg;function Rg(){return Rg=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Zg=(0,o.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,i=e.size,a=void 0===i?24:i,s=jg(e,["color","size"]);return o.createElement("svg",Rg({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),o.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),o.createElement("polyline",{points:"15 3 21 3 21 9"}),o.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))}));Zg.propTypes={color:Ng().string,size:Ng().oneOfType([Ng().string,Ng().number])},Zg.displayName="ExternalLink";var Fg=Zg;function Qg(e){return br("MuiTypography",e)}wr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var zg=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Hg=ur("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat(Yl(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),Vg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ug={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wg=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiTypography"}),r=function(e){return Ug[e]||e}(n.color),i=Jt((0,s.Z)({},n,{color:r})),o=i.align,a=void 0===o?"inherit":o,u=i.className,c=i.component,l=i.gutterBottom,d=void 0!==l&&l,f=i.noWrap,h=void 0!==f&&f,p=i.paragraph,g=void 0!==p&&p,v=i.variant,m=void 0===v?"body1":v,y=i.variantMapping,A=void 0===y?Vg:y,b=(0,Ue.Z)(i,zg),w=(0,s.Z)({},i,{align:a,color:r,className:u,component:c,gutterBottom:d,noWrap:h,paragraph:g,variant:m,variantMapping:A}),C=c||(g?"p":A[m]||Vg[m])||"span",k=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,i=e.paragraph,o=e.variant,a=e.classes;return $t({root:["root",o,"inherit"!==e.align&&"align".concat(Yl(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},Qg,a)}(w);return(0,xr.jsx)(Hg,(0,s.Z)({as:C,ref:t,ownerState:w,className:Ge(k.root,u)},b))})),Gg=Wg;function qg(e){return br("MuiLink",e)}var Kg=wr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Xg={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Yg=function(e){var t=e.theme,n=e.ownerState,r=function(e){return Xg[e]||e}(n.color),i=at(t,"palette.".concat(r),!1)||n.color,o=at(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):_n(i,.4)},Jg=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$g=ur(Gg,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["underline".concat(Yl(n.underline))],"button"===n.component&&t.button]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,s.Z)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:Yg({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&(0,Ve.Z)({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(Kg.focusVisible),{outline:"auto"}))})),ev=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiLink"}),r=n.className,i=n.color,a=void 0===i?"primary":i,u=n.component,c=void 0===u?"a":u,l=n.onBlur,d=n.onFocus,f=n.TypographyClasses,h=n.underline,p=void 0===h?"always":h,g=n.variant,v=void 0===g?"inherit":g,m=n.sx,y=(0,Ue.Z)(n,Jg),A=Mc(),b=A.isFocusVisibleRef,w=A.onBlur,C=A.onFocus,k=A.ref,E=o.useState(!1),_=(0,rt.Z)(E,2),x=_[0],S=_[1],I=Ec(t,k),D=(0,s.Z)({},n,{color:a,component:c,focusVisible:x,underline:p,variant:v}),T=function(e){var t=e.classes,n=e.component,r=e.focusVisible,i=e.underline;return $t({root:["root","underline".concat(Yl(i)),"button"===n&&"button",r&&"focusVisible"]},qg,t)}(D);return(0,xr.jsx)($g,(0,s.Z)({color:a,className:Ge(T.root,r),classes:f,component:c,onBlur:function(e){w(e),!1===b.current&&S(!1),l&&l(e)},onFocus:function(e){C(e),!0===b.current&&S(!0),d&&d(e)},ref:I,ownerState:D,variant:v,sx:[].concat((0,He.Z)(Object.keys(Xg).includes(a)?[]:[{color:a}]),(0,He.Z)(Array.isArray(m)?m:[m]))},y))})),tv=ev;function nv(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rv(e){return e instanceof nv(e).Element||e instanceof Element}function iv(e){return e instanceof nv(e).HTMLElement||e instanceof HTMLElement}function ov(e){return"undefined"!==typeof ShadowRoot&&(e instanceof nv(e).ShadowRoot||e instanceof ShadowRoot)}var av=Math.max,sv=Math.min,uv=Math.round;function cv(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function lv(){return!/^((?!chrome|android).)*safari/i.test(cv())}function dv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&iv(e)&&(i=e.offsetWidth>0&&uv(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uv(r.height)/e.offsetHeight||1);var a=(rv(e)?nv(e):window).visualViewport,s=!lv()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,l=r.width/i,d=r.height/o;return{width:l,height:d,top:c,right:u+l,bottom:c+d,left:u,x:u,y:c}}function fv(e){var t=nv(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function hv(e){return e?(e.nodeName||"").toLowerCase():null}function pv(e){return((rv(e)?e.ownerDocument:e.document)||window.document).documentElement}function gv(e){return dv(pv(e)).left+fv(e).scrollLeft}function vv(e){return nv(e).getComputedStyle(e)}function mv(e){var t=vv(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function yv(e,t,n){void 0===n&&(n=!1);var r=iv(t),i=iv(t)&&function(e){var t=e.getBoundingClientRect(),n=uv(t.width)/e.offsetWidth||1,r=uv(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=pv(t),a=dv(e,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==hv(t)||mv(o))&&(s=function(e){return e!==nv(e)&&iv(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:fv(e);var t}(t)),iv(t)?((u=dv(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=gv(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function Av(e){var t=dv(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 bv(e){return"html"===hv(e)?e:e.assignedSlot||e.parentNode||(ov(e)?e.host:null)||pv(e)}function wv(e){return["html","body","#document"].indexOf(hv(e))>=0?e.ownerDocument.body:iv(e)&&mv(e)?e:wv(bv(e))}function Cv(e,t){var n;void 0===t&&(t=[]);var r=wv(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=nv(r),a=i?[o].concat(o.visualViewport||[],mv(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Cv(bv(a)))}function kv(e){return["table","td","th"].indexOf(hv(e))>=0}function Ev(e){return iv(e)&&"fixed"!==vv(e).position?e.offsetParent:null}function _v(e){for(var t=nv(e),n=Ev(e);n&&kv(n)&&"static"===vv(n).position;)n=Ev(n);return n&&("html"===hv(n)||"body"===hv(n)&&"static"===vv(n).position)?t:n||function(e){var t=/firefox/i.test(cv());if(/Trident/i.test(cv())&&iv(e)&&"fixed"===vv(e).position)return null;var n=bv(e);for(ov(n)&&(n=n.host);iv(n)&&["html","body"].indexOf(hv(n))<0;){var r=vv(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var xv="top",Sv="bottom",Iv="right",Dv="left",Tv="auto",Ov=[xv,Sv,Iv,Dv],Nv="start",Pv="end",Lv="clippingParents",Bv="viewport",Mv="popper",Rv="reference",jv=Ov.reduce((function(e,t){return e.concat([t+"-"+Nv,t+"-"+Pv])}),[]),Zv=[].concat(Ov,[Tv]).reduce((function(e,t){return e.concat([t,t+"-"+Nv,t+"-"+Pv])}),[]),Fv=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qv(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function zv(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Hv={placement:"bottom",modifiers:[],strategy:"absolute"};function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Xv(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Gv(i):null,a=i?qv(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case xv:t={x:s,y:n.y-r.height};break;case Sv:t={x:s,y:n.y+n.height};break;case Iv:t={x:n.x+n.width,y:u};break;case Dv:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?Kv(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case Nv:t[c]=t[c]-(n[l]/2-r[l]/2);break;case Pv:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var Yv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jv(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,g=void 0===p?0:p,v="function"===typeof l?l({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),A=Dv,b=xv,w=window;if(c){var C=_v(n),k="clientHeight",E="clientWidth";if(C===nv(n)&&"static"!==vv(C=pv(n)).position&&"absolute"===s&&(k="scrollHeight",E="scrollWidth"),i===xv||(i===Dv||i===Iv)&&o===Pv)b=Sv,g-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[k])-r.height,g*=u?1:-1;if(i===Dv||(i===xv||i===Sv)&&o===Pv)A=Iv,h-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[E])-r.width,h*=u?1:-1}var _,x=Object.assign({position:s},c&&Yv),S=!0===l?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:uv(n*i)/i||0,y:uv(r*i)/i||0}}({x:h,y:g},nv(n)):{x:h,y:g};return h=S.x,g=S.y,u?Object.assign({},x,((_={})[b]=y?"0":"",_[A]=m?"0":"",_.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",_)):Object.assign({},x,((t={})[b]=y?g+"px":"",t[A]=m?h+"px":"",t.transform="",t))}var $v={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];iv(i)&&hv(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});iv(r)&&hv(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var em={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=Zv.reduce((function(e,n){return e[n]=function(e,t,n){var r=Gv(e),i=[Dv,xv].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Dv,Iv].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},tm={left:"right",right:"left",bottom:"top",top:"bottom"};function nm(e){return e.replace(/left|right|bottom|top/g,(function(e){return tm[e]}))}var rm={start:"end",end:"start"};function im(e){return e.replace(/start|end/g,(function(e){return rm[e]}))}function om(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ov(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function am(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sm(e,t,n){return t===Bv?am(function(e,t){var n=nv(e),r=pv(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var c=lv();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+gv(e),y:u}}(e,n)):rv(t)?function(e,t){var n=dv(e,!1,"fixed"===t);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}(t,n):am(function(e){var t,n=pv(e),r=fv(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=av(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=av(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+gv(e),u=-r.scrollTop;return"rtl"===vv(i||n).direction&&(s+=av(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(pv(e)))}function um(e,t,n,r){var i="clippingParents"===t?function(e){var t=Cv(bv(e)),n=["absolute","fixed"].indexOf(vv(e).position)>=0&&iv(e)?_v(e):e;return rv(n)?t.filter((function(e){return rv(e)&&om(e,n)&&"body"!==hv(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=sm(e,n,r);return t.top=av(i.top,t.top),t.right=sv(i.right,t.right),t.bottom=sv(i.bottom,t.bottom),t.left=av(i.left,t.left),t}),sm(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 cm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lm(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function dm(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,u=void 0===s?Lv:s,c=n.rootBoundary,l=void 0===c?Bv:c,d=n.elementContext,f=void 0===d?Mv:d,h=n.altBoundary,p=void 0!==h&&h,g=n.padding,v=void 0===g?0:g,m=cm("number"!==typeof v?v:lm(v,Ov)),y=f===Mv?Rv:Mv,A=e.rects.popper,b=e.elements[p?y:f],w=um(rv(b)?b:b.contextElement||pv(e.elements.popper),u,l,a),C=dv(e.elements.reference),k=Xv({reference:C,element:A,strategy:"absolute",placement:i}),E=am(Object.assign({},A,k)),_=f===Mv?E:C,x={top:w.top-_.top+m.top,bottom:_.bottom-w.bottom+m.bottom,left:w.left-_.left+m.left,right:_.right-w.right+m.right},S=e.modifiersData.offset;if(f===Mv&&S){var I=S[i];Object.keys(x).forEach((function(e){var t=[Iv,Sv].indexOf(e)>=0?1:-1,n=[xv,Sv].indexOf(e)>=0?"y":"x";x[e]+=I[n]*t}))}return x}var fm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,v=t.options.placement,m=Gv(v),y=u||(m===v||!p?[nm(v)]:function(e){if(Gv(e)===Tv)return[];var t=nm(e);return[im(e),t,im(t)]}(v)),A=[v].concat(y).reduce((function(e,n){return e.concat(Gv(n)===Tv?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?Zv:u,l=qv(r),d=l?s?jv:jv.filter((function(e){return qv(e)===l})):Ov,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,n){return t[n]=dm(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Gv(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),b=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,E=A[0],_=0;_=0,T=D?"width":"height",O=dm(t,{placement:x,boundary:l,rootBoundary:d,altBoundary:f,padding:c}),N=D?I?Iv:Dv:I?Sv:xv;b[T]>w[T]&&(N=nm(N));var P=nm(N),L=[];if(o&&L.push(O[S]<=0),s&&L.push(O[N]<=0,O[P]<=0),L.every((function(e){return e}))){E=x,k=!1;break}C.set(x,L)}if(k)for(var B=function(e){var t=A.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},M=p?3:1;M>0;M--){if("break"===B(M))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function hm(e,t,n){return av(e,sv(t,n))}var pm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,g=void 0===p?0:p,v=dm(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),m=Gv(t.placement),y=qv(t.placement),A=!y,b=Kv(m),w="x"===b?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,_="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,x="number"===typeof _?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(C){if(o){var D,T="y"===b?xv:Dv,O="y"===b?Sv:Iv,N="y"===b?"height":"width",P=C[b],L=P+v[T],B=P-v[O],M=h?-E[N]/2:0,R=y===Nv?k[N]:E[N],j=y===Nv?-E[N]:-k[N],Z=t.elements.arrow,F=h&&Z?Av(Z):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=Q[T],H=Q[O],V=hm(0,k[N],F[N]),U=A?k[N]/2-M-V-z-x.mainAxis:R-V-z-x.mainAxis,W=A?-k[N]/2+M+V+H+x.mainAxis:j+V+H+x.mainAxis,G=t.elements.arrow&&_v(t.elements.arrow),q=G?"y"===b?G.clientTop||0:G.clientLeft||0:0,K=null!=(D=null==S?void 0:S[b])?D:0,X=P+W-K,Y=hm(h?sv(L,P+U-K-q):L,P,h?av(B,X):B);C[b]=Y,I[b]=Y-P}if(s){var J,$="x"===b?xv:Dv,ee="x"===b?Sv:Iv,te=C[w],ne="y"===w?"height":"width",re=te+v[$],ie=te-v[ee],oe=-1!==[xv,Dv].indexOf(m),ae=null!=(J=null==S?void 0:S[w])?J:0,se=oe?re:te-k[ne]-E[ne]-ae+x.altAxis,ue=oe?te+k[ne]+E[ne]-ae-x.altAxis:ie,ce=h&&oe?function(e,t,n){var r=hm(e,t,n);return r>n?n:r}(se,te,ue):hm(h?se:re,te,h?ue:ie);C[w]=ce,I[w]=ce-te}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var gm={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Gv(n.placement),u=Kv(s),c=[Dv,Iv].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(e,t){return cm("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lm(e,Ov))}(i.padding,n),d=Av(o),f="y"===u?xv:Dv,h="y"===u?Sv:Iv,p=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],v=_v(o),m=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,y=p/2-g/2,A=l[f],b=m-d[c]-l[h],w=m/2-d[c]/2+y,C=hm(A,w,b),k=u;n.modifiersData[r]=((t={})[k]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&om(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vm(e,t,n){return void 0===n&&(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 mm(e){return[xv,Iv,Sv,Dv].some((function(t){return e[t]>=0}))}var ym=Uv({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=nv(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Wv)})),s&&u.addEventListener("resize",n.update,Wv),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Wv)})),s&&u.removeEventListener("resize",n.update,Wv)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Xv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:Gv(t.placement),variation:qv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Jv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},$v,em,fm,pm,gm,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=dm(t,{elementContext:"reference"}),s=dm(t,{altBoundary:!0}),u=vm(a,r),c=vm(s,i,o),l=mm(u),d=mm(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]});function Am(e){return br("MuiPopper",e)}wr("MuiPopper",["root"]);var bm={disableDefaultClasses:!1},wm=o.createContext(bm);var Cm=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],km=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Em(e){return"function"===typeof e?e():e}function _m(e){return void 0!==e.nodeType}var xm=function(){return $t({root:["root"]},function(e){var t=o.useContext(wm).disableDefaultClasses;return function(n){return t?"":e(n)}}(Am))},Sm={},Im=o.forwardRef((function(e,t){var n,r=e.anchorEl,i=e.children,a=e.direction,u=e.disablePortal,c=e.modifiers,l=e.open,d=e.placement,f=e.popperOptions,h=e.popperRef,p=e.slotProps,g=void 0===p?{}:p,v=e.slots,m=void 0===v?{}:v,y=e.TransitionProps,A=(0,Ue.Z)(e,Cm),b=o.useRef(null),w=kc(b,t),C=o.useRef(null),k=kc(C,h),E=o.useRef(k);_c((function(){E.current=k}),[k]),o.useImperativeHandle(h,(function(){return C.current}),[]);var _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,a),x=o.useState(_),S=(0,rt.Z)(x,2),I=S[0],D=S[1],T=o.useState(Em(r)),O=(0,rt.Z)(T,2),N=O[0],P=O[1];o.useEffect((function(){C.current&&C.current.forceUpdate()})),o.useEffect((function(){r&&P(Em(r))}),[r]),_c((function(){if(N&&l){var e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;D(t.placement)}}];null!=c&&(e=e.concat(c)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));var t=ym(N,b.current,(0,s.Z)({placement:_},f,{modifiers:e}));return E.current(t),function(){t.destroy(),E.current(null)}}}),[N,u,c,l,f,_]);var L={placement:I};null!==y&&(L.TransitionProps=y);var B=xm(),M=null!=(n=m.root)?n:"div",R=_d({elementType:M,externalSlotProps:g.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:B.root});return(0,xr.jsx)(M,(0,s.Z)({},R,{children:"function"===typeof i?i(L):i}))})),Dm=o.forwardRef((function(e,t){var n,r=e.anchorEl,i=e.children,a=e.container,u=e.direction,c=void 0===u?"ltr":u,l=e.disablePortal,d=void 0!==l&&l,f=e.keepMounted,h=void 0!==f&&f,p=e.modifiers,g=e.open,v=e.placement,m=void 0===v?"bottom":v,y=e.popperOptions,A=void 0===y?Sm:y,b=e.popperRef,w=e.style,C=e.transition,k=void 0!==C&&C,E=e.slotProps,_=void 0===E?{}:E,x=e.slots,S=void 0===x?{}:x,I=(0,Ue.Z)(e,km),D=o.useState(!0),T=(0,rt.Z)(D,2),O=T[0],N=T[1];if(!h&&!g&&(!k||O))return null;if(a)n=a;else if(r){var P=Em(r);n=P&&_m(P)?zl(P).body:zl(null).body}var L=g||!h||k&&!O?void 0:"none",B=k?{in:g,onEnter:function(){N(!1)},onExited:function(){N(!0)}}:void 0;return(0,xr.jsx)(hf,{disablePortal:d,container:n,children:(0,xr.jsx)(Im,(0,s.Z)({anchorEl:r,direction:c,disablePortal:d,modifiers:p,ref:t,open:k?!O:g,placement:m,popperOptions:A,popperRef:b,slotProps:_,slots:S},I,{style:(0,s.Z)({position:"fixed",top:0,left:0,display:L},w),TransitionProps:B,children:i}))})})),Tm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Om=ur(Dm,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Nm=o.forwardRef((function(e,t){var n,r=lr(),i=pr({props:e,name:"MuiPopper"}),o=i.anchorEl,a=i.component,u=i.components,c=i.componentsProps,l=i.container,d=i.disablePortal,f=i.keepMounted,h=i.modifiers,p=i.open,g=i.placement,v=i.popperOptions,m=i.popperRef,y=i.transition,A=i.slots,b=i.slotProps,w=(0,Ue.Z)(i,Tm),C=null!=(n=null==A?void 0:A.root)?n:null==u?void 0:u.Root,k=(0,s.Z)({anchorEl:o,container:l,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:g,popperOptions:v,popperRef:m,transition:y},w);return(0,xr.jsx)(Om,(0,s.Z)({as:a,direction:null==r?void 0:r.direction,slots:{root:C},slotProps:null!=b?b:c},k,{ref:t}))})),Pm=Nm,Lm=Ad;function Bm(e){return br("MuiTooltip",e)}var Mm=wr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Rm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var jm=ur(Pm,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,i=e.open;return(0,s.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},r.arrow&&(t={},(0,Ve.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(Mm.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,Ve.Z)(t,'&[data-popper-placement*="top"] .'.concat(Mm.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,Ve.Z)(t,'&[data-popper-placement*="right"] .'.concat(Mm.arrow),(0,s.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,Ve.Z)(t,'&[data-popper-placement*="left"] .'.concat(Mm.arrow),(0,s.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),Zm=ur("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat(Yl(n.placement.split("-")[0]))]]}})((function(e){var t,n,r=e.theme,i=e.ownerState;return(0,s.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:_n(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},i.arrow&&{position:"relative",margin:0},i.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(t={},(0,Ve.Z)(t,".".concat(Mm.popper,'[data-popper-placement*="left"] &'),(0,s.Z)({transformOrigin:"right center"},i.isRtl?(0,s.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}):(0,s.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}))),(0,Ve.Z)(t,".".concat(Mm.popper,'[data-popper-placement*="right"] &'),(0,s.Z)({transformOrigin:"left center"},i.isRtl?(0,s.Z)({marginRight:"14px"},i.touch&&{marginRight:"24px"}):(0,s.Z)({marginLeft:"14px"},i.touch&&{marginLeft:"24px"}))),(0,Ve.Z)(t,".".concat(Mm.popper,'[data-popper-placement*="top"] &'),(0,s.Z)({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"})),(0,Ve.Z)(t,".".concat(Mm.popper,'[data-popper-placement*="bottom"] &'),(0,s.Z)({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})),t))})),Fm=ur("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:_n(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),Qm=!1,zm=null,Hm={x:0,y:0};function Vm(e,t){return function(n){t&&t(n),e(n)}}var Um=o.forwardRef((function(e,t){var n,r,i,a,u,c,l,d,f,h,p,g,v,m,y,A,b,w,C,k=pr({props:e,name:"MuiTooltip"}),E=k.arrow,_=void 0!==E&&E,x=k.children,S=k.components,I=void 0===S?{}:S,D=k.componentsProps,T=void 0===D?{}:D,O=k.describeChild,N=void 0!==O&&O,P=k.disableFocusListener,L=void 0!==P&&P,B=k.disableHoverListener,M=void 0!==B&&B,R=k.disableInteractive,j=void 0!==R&&R,Z=k.disableTouchListener,F=void 0!==Z&&Z,Q=k.enterDelay,z=void 0===Q?100:Q,H=k.enterNextDelay,V=void 0===H?0:H,U=k.enterTouchDelay,W=void 0===U?700:U,G=k.followCursor,q=void 0!==G&&G,K=k.id,X=k.leaveDelay,Y=void 0===X?0:X,J=k.leaveTouchDelay,$=void 0===J?1500:J,ee=k.onClose,te=k.onOpen,ne=k.open,re=k.placement,ie=void 0===re?"bottom":re,oe=k.PopperComponent,ae=k.PopperProps,se=void 0===ae?{}:ae,ue=k.slotProps,ce=void 0===ue?{}:ue,le=k.slots,de=void 0===le?{}:le,fe=k.title,he=k.TransitionComponent,pe=void 0===he?Xd:he,ge=k.TransitionProps,ve=(0,Ue.Z)(k,Rm),me=o.isValidElement(x)?x:(0,xr.jsx)("span",{children:x}),ye=gr(),Ae="rtl"===ye.direction,be=o.useState(),we=(0,rt.Z)(be,2),Ce=we[0],ke=we[1],Ee=o.useState(null),_e=(0,rt.Z)(Ee,2),xe=_e[0],Se=_e[1],Ie=o.useRef(!1),De=j||q,Te=o.useRef(),Oe=o.useRef(),Ne=o.useRef(),Pe=o.useRef(),Le=fh({controlled:ne,default:!1,name:"Tooltip",state:"open"}),Be=(0,rt.Z)(Le,2),Me=Be[0],Re=Be[1],je=Me,Ze=Lm(K),Fe=o.useRef(),Qe=o.useCallback((function(){void 0!==Fe.current&&(document.body.style.WebkitUserSelect=Fe.current,Fe.current=void 0),clearTimeout(Pe.current)}),[]);o.useEffect((function(){return function(){clearTimeout(Te.current),clearTimeout(Oe.current),clearTimeout(Ne.current),Qe()}}),[Qe]);var ze=function(e){clearTimeout(zm),Qm=!0,Re(!0),te&&!je&&te(e)},He=Ic((function(e){clearTimeout(zm),zm=setTimeout((function(){Qm=!1}),800+Y),Re(!1),ee&&je&&ee(e),clearTimeout(Te.current),Te.current=setTimeout((function(){Ie.current=!1}),ye.transitions.duration.shortest)})),Ve=function(e){Ie.current&&"touchstart"!==e.type||(Ce&&Ce.removeAttribute("title"),clearTimeout(Oe.current),clearTimeout(Ne.current),z||Qm&&V?Oe.current=setTimeout((function(){ze(e)}),Qm?V:z):ze(e))},We=function(e){clearTimeout(Oe.current),clearTimeout(Ne.current),Ne.current=setTimeout((function(){He(e)}),Y)},qe=Mc(),Ke=qe.isFocusVisibleRef,Xe=qe.onBlur,Ye=qe.onFocus,Je=qe.ref,$e=o.useState(!1),et=(0,rt.Z)($e,2)[1],tt=function(e){Xe(e),!1===Ke.current&&(et(!1),We(e))},nt=function(e){Ce||ke(e.currentTarget),Ye(e),!0===Ke.current&&(et(!0),Ve(e))},it=function(e){Ie.current=!0;var t=me.props;t.onTouchStart&&t.onTouchStart(e)},ot=Ve,at=We;o.useEffect((function(){if(je)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||He(e)}}),[He,je]);var st=Ec(me.ref,Je,ke,t);fe||0===fe||(je=!1);var ut=o.useRef(),ct={},lt="string"===typeof fe;N?(ct.title=je||!lt||M?null:fe,ct["aria-describedby"]=je?Ze:null):(ct["aria-label"]=lt?fe:null,ct["aria-labelledby"]=je&&!lt?Ze:null);var dt=(0,s.Z)({},ct,ve,me.props,{className:Ge(ve.className,me.props.className),onTouchStart:it,ref:st},q?{onMouseMove:function(e){var t=me.props;t.onMouseMove&&t.onMouseMove(e),Hm={x:e.clientX,y:e.clientY},ut.current&&ut.current.update()}}:{});var ft={};F||(dt.onTouchStart=function(e){it(e),clearTimeout(Ne.current),clearTimeout(Te.current),Qe(),Fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.current=setTimeout((function(){document.body.style.WebkitUserSelect=Fe.current,Ve(e)}),W)},dt.onTouchEnd=function(e){me.props.onTouchEnd&&me.props.onTouchEnd(e),Qe(),clearTimeout(Ne.current),Ne.current=setTimeout((function(){He(e)}),$)}),M||(dt.onMouseOver=Vm(ot,dt.onMouseOver),dt.onMouseLeave=Vm(at,dt.onMouseLeave),De||(ft.onMouseOver=ot,ft.onMouseLeave=at)),L||(dt.onFocus=Vm(nt,dt.onFocus),dt.onBlur=Vm(tt,dt.onBlur),De||(ft.onFocus=nt,ft.onBlur=tt));var ht=o.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(xe),options:{element:xe,padding:4}}];return null!=(e=se.popperOptions)&&e.modifiers&&(t=t.concat(se.popperOptions.modifiers)),(0,s.Z)({},se.popperOptions,{modifiers:t})}),[xe,se]),pt=(0,s.Z)({},k,{isRtl:Ae,arrow:_,disableInteractive:De,placement:ie,PopperComponentProp:oe,touch:Ie.current}),gt=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,i=e.touch,o=e.placement;return $t({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch","tooltipPlacement".concat(Yl(o.split("-")[0]))],arrow:["arrow"]},Bm,t)}(pt),vt=null!=(n=null!=(r=de.popper)?r:I.Popper)?n:jm,mt=null!=(i=null!=(a=null!=(u=de.transition)?u:I.Transition)?a:pe)?i:Xd,yt=null!=(c=null!=(l=de.tooltip)?l:I.Tooltip)?c:Zm,At=null!=(d=null!=(f=de.arrow)?f:I.Arrow)?d:Fm,bt=wd(vt,(0,s.Z)({},se,null!=(h=ce.popper)?h:T.popper,{className:Ge(gt.popper,null==se?void 0:se.className,null==(p=null!=(g=ce.popper)?g:T.popper)?void 0:p.className)}),pt),wt=wd(mt,(0,s.Z)({},ge,null!=(v=ce.transition)?v:T.transition),pt),Ct=wd(yt,(0,s.Z)({},null!=(m=ce.tooltip)?m:T.tooltip,{className:Ge(gt.tooltip,null==(y=null!=(A=ce.tooltip)?A:T.tooltip)?void 0:y.className)}),pt),kt=wd(At,(0,s.Z)({},null!=(b=ce.arrow)?b:T.arrow,{className:Ge(gt.arrow,null==(w=null!=(C=ce.arrow)?C:T.arrow)?void 0:w.className)}),pt);return(0,xr.jsxs)(o.Fragment,{children:[o.cloneElement(me,dt),(0,xr.jsx)(vt,(0,s.Z)({as:null!=oe?oe:Pm,placement:ie,anchorEl:q?{getBoundingClientRect:function(){return{top:Hm.y,left:Hm.x,right:Hm.x,bottom:Hm.y,width:0,height:0}}}:Ce,popperRef:ut,open:!!Ce&&je,id:Ze,transition:!0},ft,bt,{popperOptions:ht,children:function(e){var t=e.TransitionProps;return(0,xr.jsx)(mt,(0,s.Z)({timeout:ye.transitions.duration.shorter},t,wt,{children:(0,xr.jsxs)(yt,(0,s.Z)({},Ct,{children:[fe,_?(0,xr.jsx)(At,(0,s.Z)({},kt,{ref:Se})):null]}))}))}}))]})})),Wm=Um;function Gm(e){return br("MuiLinearProgress",e)}wr("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var qm,Km,Xm,Ym,Jm,$m,ey,ty,ny,ry,iy,oy,ay=["className","color","value","valueBuffer","variant"],sy=Rr(ey||(ey=qm||(qm=(0,Rc.Z)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),uy=Rr(ty||(ty=Km||(Km=(0,Rc.Z)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),cy=Rr(ny||(ny=Xm||(Xm=(0,Rc.Z)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),ly=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?Sn(e.palette[t].main,.62):xn(e.palette[t].main,.5)},dy=ur("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat(Yl(n.color))],t[n.variant]]}})((function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:ly(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),fy=ur("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var n=e.ownerState;return[t.dashed,t["dashedColor".concat(Yl(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme,r=ly(n,t.color);return(0,s.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),Mr(ry||(ry=Ym||(Ym=(0,Rc.Z)(["\n animation: "," 3s infinite linear;\n "]))),cy)),hy=ur("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat(Yl(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&Mr(iy||(iy=Jm||(Jm=(0,Rc.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),sy)})),py=ur("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat(Yl(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:ly(n,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&Mr(oy||(oy=$m||($m=(0,Rc.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),uy)})),gy=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiLinearProgress"}),r=n.className,i=n.color,o=void 0===i?"primary":i,a=n.value,u=n.valueBuffer,c=n.variant,l=void 0===c?"indeterminate":c,d=(0,Ue.Z)(n,ay),f=(0,s.Z)({},n,{color:o,variant:l}),h=function(e){var t=e.classes,n=e.variant,r=e.color;return $t({root:["root","color".concat(Yl(r)),n],dashed:["dashed","dashedColor".concat(Yl(r))],bar1:["bar","barColor".concat(Yl(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat(Yl(r)),"buffer"===n&&"color".concat(Yl(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]},Gm,t)}(f),p=gr(),g={},v={bar1:{},bar2:{}};if("determinate"===l||"buffer"===l)if(void 0!==a){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;var m=a-100;"rtl"===p.direction&&(m=-m),v.bar1.transform="translateX(".concat(m,"%)")}else 0;if("buffer"===l)if(void 0!==u){var y=(u||0)-100;"rtl"===p.direction&&(y=-y),v.bar2.transform="translateX(".concat(y,"%)")}else 0;return(0,xr.jsxs)(dy,(0,s.Z)({className:Ge(h.root,r),ownerState:f,role:"progressbar"},g,{ref:t},d,{children:["buffer"===l?(0,xr.jsx)(fy,{className:h.dashed,ownerState:f}):null,(0,xr.jsx)(hy,{className:h.bar1,ownerState:f,style:v.bar1}),"determinate"===l?null:(0,xr.jsx)(py,{className:h.bar2,ownerState:f,style:v.bar2})]}))})),vy=gy,my=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],yy=ur("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):_n(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.ownerState;return(0,s.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})}),(function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider)}})}),(function(e){var t=e.ownerState;return(0,s.Z)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),Ay=ur("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var n=e.ownerState;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),by=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiDivider"}),r=n.absolute,i=void 0!==r&&r,o=n.children,a=n.className,u=n.component,c=void 0===u?o?"div":"hr":u,l=n.flexItem,d=void 0!==l&&l,f=n.light,h=void 0!==f&&f,p=n.orientation,g=void 0===p?"horizontal":p,v=n.role,m=void 0===v?"hr"!==c?"separator":void 0:v,y=n.textAlign,A=void 0===y?"center":y,b=n.variant,w=void 0===b?"fullWidth":b,C=(0,Ue.Z)(n,my),k=(0,s.Z)({},n,{absolute:i,component:c,flexItem:d,light:h,orientation:g,role:m,textAlign:A,variant:w}),E=function(e){var t=e.absolute,n=e.children,r=e.classes,i=e.flexItem,o=e.light,a=e.orientation,s=e.textAlign;return $t({root:["root",t&&"absolute",e.variant,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},bl,r)}(k);return(0,xr.jsx)(yy,(0,s.Z)({as:c,className:Ge(E.root,a),role:m,ref:t,ownerState:k},C,{children:o?(0,xr.jsx)(Ay,{className:E.wrapper,ownerState:k,children:o}):null}))}));by.muiSkipListHighlight=!0;var wy=by,Cy=(n(15712),n(24973),"https://js.stripe.com/v3"),ky=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Ey="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",_y=null,xy=function(e){return null!==_y||(_y=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(Ey),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Cy,'"]')),t=0;t element.");return r.appendChild(n),n}(e)),r.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),r.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(i){return void n(i)}else t(null)}))),_y},Sy=Promise.resolve().then((function(){return xy(null)})),Iy=!1;Sy.catch((function(e){Iy||console.warn(e)}));n(1921);var Dy=wr("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var Ty=wr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);ur(yl,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat(Yl(n.color))],n.edge&&t["edge".concat(Yl(n.edge))],t["size".concat(Yl(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):_n(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t,n=e.theme,r=e.ownerState,i=null==(t=(n.vars||n).palette)?void 0:t[r.color];return(0,s.Z)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,s.Z)({color:null==i?void 0:i.main},!r.disableRipple&&{"&:hover":(0,s.Z)({},i&&{backgroundColor:n.vars?"rgba(".concat(i.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):_n(i.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:n.typography.pxToRem(28)},(0,Ve.Z)({},"&.".concat(Ty.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),Dh((0,xr.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Dh((0,xr.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Dh((0,xr.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Dh((0,xr.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Dh((0,xr.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ur(Lf,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat(Yl(n.color||n.severity))]]}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?xn:Sn,i="light"===t.palette.mode?Sn:xn,o=n.color||n.severity;return(0,s.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===n.variant&&(0,Ve.Z)({color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:i(t.palette[o].light,.9)},"& .".concat(Dy.icon),t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}),o&&"outlined"===n.variant&&(0,Ve.Z)({color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:r(t.palette[o].light,.6),border:"1px solid ".concat((t.vars||t).palette[o].light)},"& .".concat(Dy.icon),t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}),o&&"filled"===n.variant&&(0,s.Z)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(o,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(o,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[o].dark:t.palette[o].main,color:t.palette.getContrastText(t.palette[o].main)}))})),ur("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ur("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),ur("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Dh((0,xr.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var Oy=wr("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);ur("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.color,i=n.iconColor,o=n.clickable,a=n.onDelete,s=n.size,u=n.variant;return[(0,Ve.Z)({},"& .".concat(Oy.avatar),t.avatar),(0,Ve.Z)({},"& .".concat(Oy.avatar),t["avatar".concat(Yl(s))]),(0,Ve.Z)({},"& .".concat(Oy.avatar),t["avatarColor".concat(Yl(r))]),(0,Ve.Z)({},"& .".concat(Oy.icon),t.icon),(0,Ve.Z)({},"& .".concat(Oy.icon),t["icon".concat(Yl(s))]),(0,Ve.Z)({},"& .".concat(Oy.icon),t["iconColor".concat(Yl(i))]),(0,Ve.Z)({},"& .".concat(Oy.deleteIcon),t.deleteIcon),(0,Ve.Z)({},"& .".concat(Oy.deleteIcon),t["deleteIcon".concat(Yl(s))]),(0,Ve.Z)({},"& .".concat(Oy.deleteIcon),t["deleteIconColor".concat(Yl(r))]),(0,Ve.Z)({},"& .".concat(Oy.deleteIcon),t["deleteIcon".concat(Yl(u),"Color").concat(Yl(r))]),t.root,t["size".concat(Yl(s))],t["color".concat(Yl(r))],o&&t.clickable,o&&"default"!==r&&t["clickableColor".concat(Yl(r),")")],a&&t.deletable,a&&"default"!==r&&t["deletableColor".concat(Yl(r))],t[u],t["".concat(u).concat(Yl(r))]]}})((function(e){var t,n=e.theme,r=e.ownerState,i="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,s.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,Ve.Z)(t,"&.".concat(Oy.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,Ve.Z)(t,"& .".concat(Oy.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:i,fontSize:n.typography.pxToRem(12)}),(0,Ve.Z)(t,"& .".concat(Oy.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,Ve.Z)(t,"& .".concat(Oy.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,Ve.Z)(t,"& .".concat(Oy.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,Ve.Z)(t,"& .".concat(Oy.icon),(0,s.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,s.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:i},"default"!==r.color&&{color:"inherit"}))),(0,Ve.Z)(t,"& .".concat(Oy.deleteIcon),(0,s.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):_n(n.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):_n(n.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:n.vars?"rgba(".concat(n.vars.palette[r.color].contrastTextChannel," / 0.7)"):_n(n.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[r.color].contrastText}})),t),"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(n.vars||n).palette[r.color].main,color:(n.vars||n).palette[r.color].contrastText},r.onDelete&&(0,Ve.Z)({},"&.".concat(Oy.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):_n(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&(0,Ve.Z)({},"&.".concat(Oy.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,s.Z)({},r.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):_n(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,Ve.Z)(t,"&.".concat(Oy.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):_n(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,Ve.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),r.clickable&&"default"!==r.color&&(0,Ve.Z)({},"&:hover, &.".concat(Oy.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n,r=e.theme,i=e.ownerState;return(0,s.Z)({},"outlined"===i.variant&&(t={backgroundColor:"transparent",border:r.vars?"1px solid ".concat(r.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[700])},(0,Ve.Z)(t,"&.".concat(Oy.clickable,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,Ve.Z)(t,"&.".concat(Oy.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,Ve.Z)(t,"& .".concat(Oy.avatar),{marginLeft:4}),(0,Ve.Z)(t,"& .".concat(Oy.avatarSmall),{marginLeft:2}),(0,Ve.Z)(t,"& .".concat(Oy.icon),{marginLeft:4}),(0,Ve.Z)(t,"& .".concat(Oy.iconSmall),{marginLeft:2}),(0,Ve.Z)(t,"& .".concat(Oy.deleteIcon),{marginRight:5}),(0,Ve.Z)(t,"& .".concat(Oy.deleteIconSmall),{marginRight:3}),t),"outlined"===i.variant&&"default"!==i.color&&(n={color:(r.vars||r).palette[i.color].main,border:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):_n(r.palette[i.color].main,.7))},(0,Ve.Z)(n,"&.".concat(Oy.clickable,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):_n(r.palette[i.color].main,r.palette.action.hoverOpacity)}),(0,Ve.Z)(n,"&.".concat(Oy.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.focusOpacity,")"):_n(r.palette[i.color].main,r.palette.action.focusOpacity)}),(0,Ve.Z)(n,"& .".concat(Oy.deleteIcon),{color:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):_n(r.palette[i.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[i.color].main}}),n))})),ur("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat(Yl(n))]]}})((function(e){var t=e.ownerState;return(0,s.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));var Ny;function Py(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ly(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Py(o,r,i,a,s,"next",e)}function s(e){Py(o,r,i,a,s,"throw",e)}a(void 0)}))}}function By(){return By=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Ry(e,t){return t||(t=e.slice(0)),e.raw=t,e}function jy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fy(){return Fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&t?e+"-"+t+r:e&&e>1?"Minimum "+e+r:"":"Up to "+t+r}var Hy=["children","span","style","fontWeight","variant","color","overrideColor","bold"];function Vy(e,t){switch(t){case"white":return"white";case"primary.main":return e.stigg.palette.primary;case"primary.main.light":return e.stigg.palette.primaryLight;case"warning":return e.stigg.palette.warning;case"error":return e.stigg.palette.error;default:return e.stigg.palette.text[t]}}var Uy=Fe(Lr.Text,{target:"ewjez2x0"})("margin:0;",(function(e){return e.$span&&"display: inline"}),";");function Wy(e){return"bold"===e?Lr.FontWeight.Bold:Lr.FontWeight.Normal}function Gy(e,t){var n=e.stigg.typography;switch(t){case"h1":return Wy(n.h1.fontWeight);case"h3":return Wy(n.h2.fontWeight);case"h6":return Wy(n.h3.fontWeight);case"body1":return Wy(n.body.fontWeight);case"caption":return Wy(n.caption.fontWeight);default:return Lr.FontWeight.Normal}}var qy=(0,o.forwardRef)((function(e,t){var n=e.children,r=e.span,i=e.style,a=e.fontWeight,s=e.variant,u=void 0===s?"body1":s,c=e.color,l=void 0===c?"primary":c,d=e.overrideColor,f=e.bold,h=My(e,Hy),p=Te(),g=function(e){switch(e){case"h1":return 1;case"h3":return 2;case"h6":default:return 3;case"body1":return 4;case"caption":return 5}}(u),v="typography-level-"+g,m=e.className?e.className+" "+v:v;return o.createElement(Uy,Object.assign({ref:t},h,{className:m,style:i,level:g,color:d||Vy(p,l),fontWeight:null!=a?a:f?Lr.FontWeight.Bold:Gy(p,u),$span:r}),n)})),Ky=["displayNameOverride"];var Xy=Fe(qy,{target:"e1mddeqb2"})({name:"ti75j2",styles:"margin:0"}),Yy=Fe("div",{target:"e1mddeqb1"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),Jy=Fe(Qy,{target:"e1mddeqb0"})("margin-right:16px;flex-shrink:0;*{fill:",(function(e){return e.theme.stigg.palette.text.disabled}),";}");function $y(e){var t=e.hasUnlimitedUsage,n=e.feature,i=e.resetPeriod,o=e.usageLimit,a=e.minUnitQuantity,s=e.maxUnitQuantity,u=e.isCustom,c=a||s,l=i&&o?""+function(e){if(!e)return"";switch(e){case r.EntitlementResetPeriod.Day:return"per day";case r.EntitlementResetPeriod.Hour:return"per hour";case r.EntitlementResetPeriod.Week:return"per week";case r.EntitlementResetPeriod.Month:return"per month"}}(i):"";if(t)return"Unlimited "+(null==n?void 0:n.unitsPlural);if(u)return"Custom "+(null==n?void 0:n.unitsPlural);if(o){var d=1===o?null==n?void 0:n.units:null==n?void 0:n.unitsPlural;return function(e){return e.toLocaleString("en-US",{maximumFractionDigits:0})}(o)+" "+d+" "+l}return c?zy(a,s,null==n?void 0:n.unitsPlural):null==n?void 0:n.displayName}function eA(e){var t=e.displayNameOverride,n=$y(My(e,Ky));return o.createElement(Yy,{className:"stigg-entitlement-row-container"},o.createElement(Jy,{className:"stigg-entitlement-row-icon"}),o.createElement(Xy,{className:"stigg-entitlement-name",variant:"h6",color:"secondary"},t||n))}var tA,nA=Fe("div",{target:"e1yz7zcg0"})({name:"budh8k",styles:"display:flex;flex-direction:column;gap:16px"});function rA(e){var t,n=e.plan,i=e.billingPeriod,a=e.paywallLocale,s=null==(t=n.pricePoints)?void 0:t.filter((function(e){return e.billingPeriod===i})),u=null==s?void 0:s.map((function(e){var t;return(null==e?void 0:e.minUnitQuantity)&&(null==e?void 0:e.minUnitQuantity)>1||(null==e?void 0:e.maxUnitQuantity)?o.createElement(eA,{key:"priceUnitEntitlement-"+(null==e||null==(t=e.feature)?void 0:t.displayName),feature:null==e?void 0:e.feature,minUnitQuantity:null==e?void 0:e.minUnitQuantity,maxUnitQuantity:null==e?void 0:e.maxUnitQuantity}):null}));return o.createElement(nA,{className:"stigg-plan-entitlements-container"},o.createElement(qy,{className:"stigg-plan-entitlements-title",color:"secondary",variant:"h6",bold:!0},function(e,t){if(t.entitlementsTitle)return t.entitlementsTitle(e);var n=e.displayName+" includes";return e.basePlan&&(n="Everything in "+e.basePlan.displayName+", plus:"),n}(n,a)),u,n.entitlements.filter((function(e){return!(e.hiddenFromWidgets||[]).includes(r.WidgetType.Paywall)})).map((function(e){var t;return o.createElement(eA,{key:null==(t=e.feature)?void 0:t.id,displayNameOverride:e.displayNameOverride,feature:e.feature,resetPeriod:e.resetPeriod,hasUnlimitedUsage:e.hasUnlimitedUsage,usageLimit:e.usageLimit,isCustom:e.isCustom})})))}!function(e){e.START_TRIAL="START_TRIAL",e.UPGRADE_TRIAL_TO_PAID="UPGRADE_TRIAL_TO_PAID",e.REQUEST_CUSTOM_PLAN_ACCESS="REQUEST_CUSTOM_PLAN_ACCESS",e.CHANGE_BILLING_PERIOD="CHANGE_BILLING_PERIOD",e.CHANGE_UNIT_QUANTITY="CHANGE_UNIT_QUANTITY",e.UPGRADE_PLAN="UPGRADE_PLAN",e.DOWNGRADE_PLAN="DOWNGRADE_PLAN",e.CANCEL_SCHEDULED_UPDATES="CANCEL_SCHEDULED_UPDATES"}(tA||(tA={}));var iA,oA,aA=function(e){return{left:"flex-start",center:"center",right:"flex-end"}[e]},sA=function(e){var t,n,r,i=gc()((null==e||null==(t=e.palette)?void 0:t.primary)||"#327EEE"),o=gc()((null==e||null==(n=e.palette)||null==(r=n.text)?void 0:r.primary)||"#001E6C"),a=gc()("#4CAF50"),s=gc()("#f44336"),u={palette:{primary:i.hex(),primaryDark:i.darken(.3).hex(),primaryLight:i.alpha(.5).toString(),backgroundPaper:"#FFFFFF",backgroundHighlight:"#F5F6F9",backgroundSection:i.alpha(.1).toString(),backgroundButton:i.alpha(.08).toString(),outlinedBorder:"#C4CBDD",outlinedRestingBorder:i.alpha(.5).toString(),outlinedHoverBackground:i.lightness(95).hex(),switchBorder:i.lighten(.1).hex(),switchFill:i.lighten(.5).hex(),switchHandle:i.hex(),warning:"#ed6c02",error:s.hex(),errorDark:s.darken(.3).hex(),success:a.hex(),successDark:a.darken(.3).hex(),white:"#FFFFFF",text:{primary:o.hex(),secondary:o.alpha(.75).toString(),disabled:o.alpha(.5).toString()}},layout:{planMinWidth:"330px",planMaxWidth:"330px",planMargin:"20px",planPadding:"40px",ctaAlignment:"left",headerAlignment:"left",descriptionAlignment:"left",descriptionMinHeight:"80px",switchBottomSpacing:"40px"},shadows:{light:"0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12)",popover:"0px 4px 5px -2px rgba(0, 30, 108, 0.2), 0px 7px 10px 1px rgba(0, 30, 108, 0.14), 0px 2px 16px 1px rgba(0, 30, 108, 0.12)"},border:{radius:"10px"},typography:{fontFamily:"custom-font, DM Sans, sans-serif",h1:{fontSize:"32px",fontWeight:"bold"},h2:{fontSize:"24px",fontWeight:"normal"},h3:{fontSize:"16px",fontWeight:"normal"},body:{fontSize:"14px",fontWeight:"normal"},caption:{fontSize:"12px",fontWeight:"normal"}},customCss:""};return hu(u,e)},uA=function(e){return mc().utc(e).format("MMMM Do, yyyy")};function cA(e){var t=e.scheduledUpdate,n=e.subscriptionPrices,i=e.billingPeriodRange,a=e.options,s=void 0===a?{}:a;if(!t)return{};var u=s.withDate,c=s.postfix,l=void 0===c?"":c;switch(t.subscriptionScheduleType){case r.SubscriptionScheduleType.Downgrade:var d,f=u;yc(f)&&null!=i&&i.end&&(f=!mc()(t.scheduledExecutionTime).isSame(null==i?void 0:i.end,"day"));return{line1:o.createElement(o.Fragment,null,"Your subscription will be downgraded to the ",o.createElement("b",null,null==(d=t.targetPackage)?void 0:d.displayName," plan")," ",f?o.createElement(o.Fragment,null,"on ",uA(t.scheduledExecutionTime)):l,"."),line2:"Until then you still have access to your current plan."};case r.SubscriptionScheduleType.BillingPeriod:var h,p=t.scheduleVariables;return{line1:o.createElement(o.Fragment,null,"Your billing cycle will change to ",o.createElement("b",null,null==(h=p.billingPeriod)?void 0:h.toLocaleLowerCase())," ",u?o.createElement(o.Fragment,null,"on ",uA(t.scheduledExecutionTime)):l,".")};case r.SubscriptionScheduleType.UnitAmount:var g=t.scheduleVariables,v=jr(ss(n,"feature")).find((function(e){return e.id===g.featureId}))||{},m=v.featureUnits,y=v.featureUnitsPlural,A=1===g.newUnitAmount?m:y;return{line1:o.createElement(o.Fragment,null,"Your subscription will be updated to ",o.createElement("b",null,g.newUnitAmount)," ",A," ",u?o.createElement(o.Fragment,null,"on ",uA(t.scheduledExecutionTime)):l,"."),line2:"Until then you still have access to your current "+m+" count."};default:return{}}}function lA(e){return e.feature&&(1!=e.feature.unitQuantity?e.feature.unitsPlural:e.feature.units)||""}function dA(e,t){if(e){var n=[].concat(e);n.sort((function(e,t){return e.upTo-t.upTo}));for(var r,i=Zy(n);!(r=i()).done;){var o=r.value;if(t<=o.upTo)return o}return n[n.length-1]}}function fA(e,t,n,i){return e.tiersMode===r.TiersMode.Volume?(n===r.BillingPeriod.Annually&&i?t.unitPrice.amount/12:t.unitPrice.amount)*t.upTo:0}function hA(e,t,n,i){var o=e.pricePoints.filter((function(e){return e.billingPeriod===t&&e.isTieredPrice}));if(1==o.length){var a,s=o[0],u=s.feature.featureId,c=s.tiers[0];if(i[u])c=(null==(a=s.tiers)?void 0:a.find((function(e){return e.upTo===i[u].upTo})))||c;else if(n){var l=n.prices.find((function(e){var t;return e.pricingModel==r.BillingModel.PerUnit&&e.tiersMode&&(null==(t=e.feature)?void 0:t.featureId)===u}));l&&(c=dA(s.tiers,l.feature.unitQuantity||1))}var d={};return d[u]=c,d}return{}}!function(e){e[e.Lower=-1]="Lower",e[e.Equal=0]="Equal",e[e.Higher=1]="Higher"}(iA||(iA={}));var pA,gA=Fe(hc(),{target:"e199qof96"})({name:"1a2afmv",styles:"margin-left:10px"}),vA=Fe("button",{target:"e199qof95"})("cursor:",(function(e){return e.$disabled?"default":"pointer"}),";padding:8px 12px;background-color:",(function(e){return e.theme.stigg.palette.backgroundButton}),";border:",(function(e){return"1px solid "+e.theme.stigg.palette.outlinedRestingBorder}),";border-radius:10px;display:flex;align-items:center;justify-content:center;min-height:42px;min-width:120px;",(function(e){return e.$disabled&&Mr(oA||(oA=Ry(["\n opacity: 0.5;\n "])))})," &:hover{background-color:",(function(e){var t=e.theme;return e.$disabled?t.stigg.palette.backgroundButton:t.stigg.palette.outlinedHoverBackground}),";}"),mA=Fe(qy,{target:"e199qof94"})({name:"h05omw",styles:"margin:0;font-size:15px"}),yA=Fe(qy,{target:"e199qof93"})({name:"1cnls12",styles:"min-height:87px"}),AA=Fe("button",{target:"e199qof92"})("background:none;border:none;padding:0;color:",(function(e){return e.theme.stigg.palette.text.secondary}),";text-decoration:underline;cursor:pointer;"),bA=Fe(qy,{target:"e199qof91"})({name:"1etgg0o",styles:"margin-top:8px;margin-bottom:17px;min-height:20px"}),wA=Fe("div",{target:"e199qof90"})("display:flex;flex-direction:column;margin-top:4px;align-self:",(function(e){var t=e.theme;return aA(t.stigg.layout.ctaAlignment)}),";width:100%;");function CA(e){var t=e.isNextPlan,n=e.customer,i=e.plan,a=e.billingPeriod,s=e.isCustomerOnTrial,u=e.onPlanSelected,c=e.paywallLocale,l=e.withTrialLeftRow,d=e.currentSubscription,f=e.selectedTierByFeature,h=Te(),p=(0,o.useState)(!1),g=p[0],v=p[1],m=c.planCTAButton,y=m.currentPlan,A=m.custom,b=m.downgrade,w=m.startTrial,C=m.upgrade,k=m.startNew,E=m.switchToBillingPeriod,_=m.cancelScheduledUpdate,x=pi(b)?b(i):b,S=pi(C)?C(i):C,I={title:n?i.isLowerThanCurrentPlan?x:S:k,disabled:!1,intentionType:i.isLowerThanCurrentPlan?tA.DOWNGRADE_PLAN:s?tA.UPGRADE_TRIAL_TO_PAID:tA.UPGRADE_PLAN},D=i.pricingType===r.PricingType.Custom,T=cA({scheduledUpdate:i.scheduledUpdate,options:{withDate:!0}}).line1;if(!i.isTriable||i.isCurrentCustomerPlan||s)if(i.isCurrentCustomerPlan&&!s){if(a===i.currentCustomerPlanBillingPeriod||i.pricingType&&[r.PricingType.Free,r.PricingType.Custom].includes(i.pricingType)){var O=function(e,t){if(!t||!e)return iA.Equal;var n=t.prices.find((function(e){return e.pricingModel==r.BillingModel.PerUnit&&e.tiersMode}));if(!n)return iA.Equal;var i=n.feature,o=i.featureId,a=i.unitQuantity;if(!a)return iA.Equal;var s=e[o];return s?s.upToa?iA.Higher:iA.Equal:iA.Equal}(f,d);switch(O){case iA.Lower:I.intentionType=tA.CHANGE_UNIT_QUANTITY,I.title=x;break;case iA.Higher:I.intentionType=tA.CHANGE_UNIT_QUANTITY,I.title=S;break;default:I.title=y,I.disabled=!0}}else I.title=E(a),I.intentionType=tA.CHANGE_BILLING_PERIOD}else D&&(I.title=A,I.intentionType=tA.REQUEST_CUSTOM_PLAN_ACCESS);else I.title=w(i),I.intentionType=tA.START_TRIAL;t&&i.scheduledUpdate&&(I.disabled=!1,I.title=_,I.intentionType=tA.CANCEL_SCHEDULED_UPDATES);var N=g||I.disabled;return o.createElement(o.Fragment,null,o.createElement(wA,{className:"stigg-paywall-plan-button-layout"},t&&T?o.createElement(yA,{color:"secondary",variant:"body1",className:"stigg-paywall-schedule-update-text"},T," ",o.createElement(AA,{color:"secondary",onClick:function(){v(!0),Promise.resolve(u(I.intentionType)).finally((function(){return v(!1)}))}},I.title)):o.createElement(o.Fragment,null,o.createElement(vA,{className:"stigg-paywall-plan-button","data-testid":"paywall-card-cta-"+i.displayName,disabled:N,$disabled:N,onClick:function(){v(!0),Promise.resolve(u(I.intentionType)).finally((function(){return v(!1)}))}},o.createElement(mA,{className:"stigg-paywall-plan-button-text",variant:"h6",color:"primary.main"},I.title),g&&o.createElement(gA,{color:h.stigg.palette.text.disabled,loading:!0,size:16})),l?o.createElement(bA,{className:"stigg-trial-days-left-text",variant:"h6",color:"secondary"},i.isCurrentCustomerPlan&&i.trialDaysLeft&&o.createElement(o.Fragment,null,o.createElement("b",null,i.trialDaysLeft," days")," left on your free trial")):o.createElement("div",{style:{height:"20px"}}))))}function kA(){return kA=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&!(null==k||!k.additionalChargesMayApply),_=!b||u.pricingType===r.PricingType.Custom,x=null;w?x=o.createElement(VA,{text:"Next plan"}):l&&m.highlightChip&&(x=o.createElement(ZA,{className:"stigg-highlight-badge"},o.createElement(FA,{className:"stigg-highlight-badge-text",color:"white",bold:!0},m.highlightChip)));var S=o.useState(hA(u,c,d,{})),I=S[0],D=S[1];(0,o.useEffect)((function(){D(hA(u,c,d,I))}),[c,d,u,I]);return o.createElement(BA,{className:ze()("stigg-plan-offering-container",{"stigg-current-plan":u.isCurrentCustomerPlan}),$isHighlighted:l,$isCurrentPlan:u.isCurrentCustomerPlan},x,o.createElement(QA,{className:"stigg-header-wrapper"},o.createElement(MA,{className:"stigg-plan-header",variant:"h3"},u.displayName),f&&o.createElement(jA,{className:"stigg-plan-description",variant:"h6",color:"secondary"},u.description),o.createElement(LA,{showStartingAt:E,withUnitPriceRow:n,withStartingAtRow:A,withTiersRow:i,selectedTierByFeature:I,setSelectedTierByFeature:D,plan:u,billingPeriod:c,paywallLocale:m,locale:y,hasAnnuallyPrice:p,hasMonthlyPrice:h}),_?o.createElement(CA,{isNextPlan:w,customer:s,plan:u,currentSubscription:d,billingPeriod:c,isCustomerOnTrial:g,onPlanSelected:function(e){var t=Object.keys(I).map((function(e){return{featureId:e,quantity:I[e].upTo}}));return v(e,t)},paywallLocale:m,withTrialLeftRow:a,selectedTierByFeature:I}):o.createElement("div",{style:{height:"66px"}}),o.createElement(RA,{className:"stigg-plan-header-divider"})),o.createElement(rA,{plan:u,billingPeriod:c,paywallLocale:m}))}var WA,GA=Fe("div",{target:"esqa6i42"})("height:40px;padding:0 20px;margin-bottom:",(function(e){return e.theme.stigg.layout.switchBottomSpacing}),";border-radius:10px;border:",(function(e){return"1px solid "+e.theme.stigg.palette.outlinedBorder}),";background-color:",(function(e){return e.theme.stigg.palette.backgroundPaper}),";display:flex;align-items:center;justify-content:center;"),qA=Fe(qy,{target:"esqa6i41"})({name:"zvmrfm",styles:"margin:0 8px"}),KA=Fe(ip,{target:"esqa6i40"})("& .react-switch-bg{border:",(function(e){return"1px solid "+e.theme.stigg.palette.switchBorder}),";background:",(function(e){return e.theme.stigg.palette.switchFill}),"!important;}& .react-switch-handle{box-shadow:",(function(e){return e.theme.stigg.shadows.light}),";background:",(function(e){return e.theme.stigg.palette.switchHandle}),"!important;top:0.5px!important;}");function XA(e){var t=e.discount,n=e.disabled;return o.createElement(qy,{variant:"h6",color:n?"disabled":"primary",className:"stigg-discount-rate-text"},t,"% off")}function YA(e){var t=e.discountRate,n=e.selectedBillingPeriod,i=e.onBillingPeriodChanged;if(e.availableBillingPeriods.length<=1)return null;var a=n===r.BillingPeriod.Monthly;return o.createElement(GA,{className:"stigg-period-picker-container"},o.createElement(qA,{variant:"h6",className:"stigg-monthly-period-text",color:a?"primary":"disabled"},"Monthly"),o.createElement(KA,{className:"stigg-period-switch",uncheckedIcon:!1,checkedIcon:!1,height:16,width:33,onChange:function(e){return i(e?r.BillingPeriod.Annually:r.BillingPeriod.Monthly)},checked:!a,borderRadius:10,handleDiameter:19}),o.createElement(qA,{variant:"h6",className:"stigg-annual-period-text",color:a?"disabled":"primary"},"Annual"),0!==t&&o.createElement(XA,{discount:t,disabled:a}))}function JA(e,t){var n,r,i,o;if((o=null==(n=e.paywallCalculatedPricePoints)?void 0:n.find((function(e){return e.billingPeriod===t})))||(o=e.pricePoints.find((function(e){return e.billingPeriod===t}))),null==(r=o)||!r.amount){var a=e.pricePoints.find((function(e){return e.isTieredPrice&&e.billingPeriod===t}));if(a)return a.tiers[0].unitPrice.amount}return null==(i=o)?void 0:i.amount}function $A(e){return e.reduce((function(e,t){var n=function(e,t){if(!yc(e)&&!yc(t)){var n=t/12;return Math.round((e-n)/e*100)}return null}(JA(t,r.BillingPeriod.Monthly),JA(t,r.BillingPeriod.Annually));return n&&(e=Math.max(e,n)),e}),0)}function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&!(null==r||!r.additionalChargesMayApply)}))}),[s,A]),k=(0,o.useMemo)((function(){return A.some((function(e){return!!xA(e,s,f,h,m).unit}))}),[s,m,h,f,A]),E=(0,o.useMemo)((function(){return!w&&A.some((function(e){var t=hA(e,s,i,{});return Object.values(t).length>0}))}),[s,i,w,A]),_=A.some((function(e){return e.isCurrentCustomerPlan&&e.trialDaysLeft}));return o.createElement(cb,{className:"stigg-paywall-container"},o.createElement(lb,{className:"stigg-paywall-layout"},o.createElement(YA,{onBillingPeriodChanged:u,selectedBillingPeriod:s,availableBillingPeriods:c,discountRate:g}),o.createElement(ub,{className:"stigg-paywall-plans-layout"},A.map((function(e){return o.createElement(UA,{withUnitPriceRow:k,withTiersRow:E,withTrialLeftRow:_,key:e.id,shouldShowDescriptionSection:v,hasMonthlyPrice:m,hasAnnuallyPrice:y,plan:e,withStartingAtRow:C,currentSubscription:i,billingPeriod:s,isHighlighted:e.id===a,isCustomerOnTrial:l,onPlanSelected:function(t,n){return b(e,t,n)},paywallLocale:f,locale:h,customer:n,isCustomerInCustomPlan:w})}))),o.createElement(ob,{source:"paywall",align:"end",style:{marginTop:16},showWatermark:p.isWidgetWatermarkEnabled})))};var fb=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(O){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=c;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",g={};function v(){}function m(){}function y(){}var A={};u(A,o,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(D([])));w&&w!==n&&r.call(w,o)&&(A=w);var C=y.prototype=v.prototype=Object.create(A);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function D(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})),hb=function(){function e(){}var t=e.prototype;return t.error=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i component.");return e};function yb(e,t,n){var i,o=e.flatMap((function(e){return e.pricePoints})).map((function(e){return e.billingPeriod})),a=ps(o),s=_s(o);if(n&&s.includes(n))i=n;else if(t){var u=t.find((function(e){return e.status==r.SubscriptionStatus.Active}));u&&u.prices.length>0&&(i=null==u?void 0:u.prices[0].billingPeriod)}return i||(i=(a[r.BillingPeriod.Monthly]||0)>(a[r.BillingPeriod.Annually]||0)?r.BillingPeriod.Monthly:r.BillingPeriod.Annually),{defaultBillingPeriod:i,availableBillingPeriods:s}}r.FontWeight.Bold,r.FontWeight.Normal,r.FontWeight.Normal,r.FontWeight.Normal;function Ab(e,t){if(void 0===t&&(t="px"),e)return""+e+t}function bb(e,t){if(!t)return e;switch(t){case r.FontWeight.Normal:return"normal";case r.FontWeight.Bold:return"bold";default:return"normal"}}function wb(e,t){var n,r,i,o,a,s,u,c,l,d,f,h,p,g,v;return{fontFamilyUrl:(null==e?void 0:e.fontFamily)||void 0,h1:{fontSize:Ab((null==e||null==(n=e.h1)?void 0:n.fontSize)||(null==t||null==(r=t.h1)?void 0:r.fontSize)),fontWeight:bb("bold",(null==e||null==(i=e.h1)?void 0:i.fontWeight)||(null==t||null==(o=t.h1)?void 0:o.fontWeight))},h2:{fontSize:Ab((null==e||null==(a=e.h2)?void 0:a.fontSize)||(null==t||null==(s=t.h2)?void 0:s.fontSize)),fontWeight:bb("normal",null==t||null==(u=t.h2)?void 0:u.fontWeight)},h3:{fontSize:Ab((null==e||null==(c=e.h3)?void 0:c.fontSize)||(null==t||null==(l=t.h3)?void 0:l.fontSize)),fontWeight:bb("normal",(null==e||null==(d=e.h3)?void 0:d.fontWeight)||(null==t||null==(f=t.h3)?void 0:f.fontWeight))},body:{fontSize:Ab((null==e||null==(h=e.body)?void 0:h.fontSize)||(null==t||null==(p=t.body)?void 0:p.fontSize)),fontWeight:bb("normal",(null==e||null==(g=e.body)?void 0:g.fontWeight)||(null==t||null==(v=t.body)?void 0:v.fontWeight))}}}function Cb(e){if(e)switch(e){case r.Alignment.Left:return"left";case r.Alignment.Center:return"center";case r.Alignment.Right:return"right";default:return}}function kb(e){var t,n,i,o,a=!0,s=(null==e?void 0:e.find((function(e){return e.status===r.SubscriptionStatus.InTrial})))||null,u=null==(t=s)?void 0:t.plan,c=null!=(n=s)&&n.trialEndDate?(i=s.trialEndDate,mc().utc(i).diff(mc().utc(),"days",!1)+1):void 0;u||(a=!1,s=(null==e?void 0:e.find((function(e){return e.status===r.SubscriptionStatus.Active})))||null,u=null==(o=s)?void 0:o.plan);return{currentSubscription:s,currentPlan:u,isCustomerOnTrial:a,trialDaysLeft:c}}function Eb(e,t){var n,i=e||{},o=i.plans,a=i.currency,s=i.configuration,u=i.customer,c=i.activeSubscriptions,l=i.paywallCalculatedPricePoints,d=kb(c),f=d.currentSubscription,h=d.currentPlan,p=d.isCustomerOnTrial,g=d.trialDaysLeft,v=(null==f?void 0:f.scheduledUpdates)||[],m=null==f||null==(n=f.price)?void 0:n.billingPeriod,y=v.find((function(e){return e.subscriptionScheduleType===r.SubscriptionScheduleType.Downgrade})),A=v.find((function(e){return e.subscriptionScheduleType===r.SubscriptionScheduleType.BillingPeriod})),b=bp(o,(function(e){return e.order})).map((function(e){var t,n=null==u||null==(t=u.eligibleForTrial)?void 0:t.find((function(t){return t.productId===e.product.id})),r=e.id===(null==h?void 0:h.id);return By({},e,{paywallCalculatedPricePoints:null==l?void 0:l.filter((function(t){return t.planId===e.id})),isTriable:!yc(e.defaultTrialConfig)&&(!n||n.eligible),isCurrentCustomerPlan:r,currentCustomerPlanBillingPeriod:m,isUpcomingPlan:!1,trialDaysLeft:g,isNextPlan:function(t){var n,i=null==y?void 0:y.scheduleVariables,o=null==A?void 0:A.scheduleVariables,a=e.pricePoints.some((function(e){return e.billingPeriod===t}));return y?(null==(n=y.targetPackage)?void 0:n.refId)===e.id&&(!a||i.billingPeriod===t):!(!A||!r)&&o.billingPeriod===t},paywallCurrency:a,scheduledUpdate:y||A})}));if(o&&h){var w,C=h&&(null==o||null==(w=o.find((function(e){return e.id===(null==h?void 0:h.id)})))?void 0:w.order);yc(C)||(b=b.map((function(e){return By({},e,{isLowerThanCurrentPlan:C>e.order})})),t&&(b=b.filter((function(e){return e.order>=C}))))}var k=s?function(e){var t=e.palette,n=e.layout,r=e.customCss,i=e.typography;return{customCss:r||void 0,palette:{primary:(null==t?void 0:t.primary)||void 0,backgroundPaper:(null==t?void 0:t.backgroundColor)||void 0,outlinedBorder:(null==t?void 0:t.borderColor)||void 0,backgroundHighlight:(null==t?void 0:t.currentPlanBackground)||void 0,text:{primary:(null==t?void 0:t.textColor)||void 0}},typography:wb(i),layout:{ctaAlignment:Cb(null==n?void 0:n.alignment),headerAlignment:Cb(null==n?void 0:n.alignment),descriptionAlignment:Cb(null==n?void 0:n.alignment),planMaxWidth:Ab(null==n?void 0:n.planWidth),planMinWidth:Ab(null==n?void 0:n.planWidth),planMargin:Ab(null==n?void 0:n.planMargin),planPadding:Ab(null==n?void 0:n.planPadding)}}}(s):void 0;return{currentPlan:h,currentSubscription:f,isCustomerOnTrial:p,plans:b,paywallConfiguration:k}}var _b,xb=Fe("div",{target:"e1f7khji6"})({name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"}),Sb=Fe(Qy,{target:"e1f7khji5"})({name:"o7nnmj",styles:"margin-right:16px"}),Ib=Fe("div",{target:"e1f7khji4"})("display:flex;flex-direction:column;align-items:flex-start;gap:20px;border-radius:10px;padding:",(function(e){return e.theme.stigg.layout.planPadding}),";background-color:",(function(e){return e.theme.stigg.palette.backgroundPaper}),";min-width:",(function(e){return e.theme.stigg.layout.planMinWidth}),";max-width:",(function(e){return e.theme.stigg.layout.planMaxWidth}),";min-height:450px;border:",(function(e){return"1px solid "+e.theme.stigg.palette.outlinedBorder}),";"),Db=Fe("div",{target:"e1f7khji3"})("display:flex;gap:",(function(e){return e.theme.stigg.layout.planMargin}),";flex-wrap:wrap;justify-content:center;"),Tb=Fe("div",{target:"e1f7khji2"})({name:"k8xojc",styles:"display:flex;align-items:center;margin-bottom:12px"}),Ob=Fe("div",{target:"e1f7khji1"})({name:"xdvdnl",styles:"margin-top:auto"}),Nb=Fe("div",{target:"e1f7khji0"})("width:150px;margin-bottom:",(function(e){return e.theme.stigg.layout.switchBottomSpacing}),";padding:12px 12px;border-radius:10px;background-color:white;border:",(function(e){return"1px solid "+e.theme.stigg.palette.outlinedBorder}),";");function Pb(){return o.createElement(Ib,null,o.createElement(dp,{width:120,borderRadius:4}),o.createElement(dp,{circle:!0,width:40,height:40}),o.createElement(dp,{style:{marginBottom:33},width:120,borderRadius:4}),o.createElement(Tb,null,o.createElement(Sb,null),o.createElement(dp,{width:120,borderRadius:4})),o.createElement(Tb,null,o.createElement(Sb,null),o.createElement(dp,{width:120,borderRadius:4})),o.createElement(Tb,null,o.createElement(Sb,null),o.createElement(dp,{width:120,borderRadius:4})),o.createElement(Ob,null,o.createElement(dp,{height:50,borderRadius:4})))}function Lb(){return o.createElement(xb,{className:"stigg-skeleton-loader-container"},o.createElement(Nb,{className:"stigg-skeleton-loader-billing-period"},o.createElement(dp,{borderRadius:4})),o.createElement(Db,{className:"stigg-skeleton-loader-plans-container"},o.createElement(Pb,null),o.createElement(Pb,null),o.createElement(Pb,null)))}var Bb,Mb=function(e){var t=e.externalFontUrl;return o.createElement(Br,{styles:Mr(_b||(_b=Ry(["\n ","\n\n /* latin-ext */\n @font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/dmsans/v11/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format('woff2');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,\n U+A720-A7FF;\n }\n /* latin */\n @font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/dmsans/v11/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,\n U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n /* latin-ext */\n @font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/dmsans/v11/rP2Cp2ywxg089UriAWCrCBamC3YU-CnE6Q.woff2) format('woff2');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,\n U+A720-A7FF;\n }\n /* latin */\n @font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/dmsans/v11/rP2Cp2ywxg089UriAWCrCBimC3YU-Ck.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,\n U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n /* latin-ext */\n @font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/dmsans/v11/rP2Cp2ywxg089UriASitCBamC3YU-CnE6Q.woff2) format('woff2');\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F,\n U+A720-A7FF;\n }\n /* latin */\n @font-face {\n font-family: 'DM Sans';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(https://fonts.gstatic.com/s/dmsans/v11/rP2Cp2ywxg089UriASitCBimC3YU-Ck.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,\n U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n "])),t&&"\n @font-face {\n font-family: 'custom-font';\n font-style: normal;\n font-weight: normal;\n src: local('custom-font'), url("+t+") format('woff');\n }\n ")})},Rb=Fe("div",{target:"emcdfp60"})((function(e){var t=e.customCss;return t&&Mr(Bb||(Bb=Ry(["\n ","\n "])),t)}),";");function jb(e){var t=mb().theme,n=hu(e,t);return sA(n)}function Zb(e){var t=e.typography,n=Number(t.body.fontSize.replace("px",""))/14;return{pxToRem:function(e){return e/16*n+"rem"},bodyFontFamily:t.fontFamily,headingFontFamily:t.fontFamily,fontSizes:[t.h1.fontSize,t.h2.fontSize,t.h3.fontSize,t.body.fontSize,"12px","10px"]}}var Fb=function(e){var t,n=e.children,r=jb(e.componentTheme),i=function(e){return{primary:{main:e.palette.primary}}}(r),a=nr({palette:i,stigg:r});return o.createElement(Tp,{theme:(t={},t[ir]=a,t)},o.createElement(Ne,{theme:{stigg:r}},o.createElement(Rb,{customCss:r.customCss},o.createElement(Mb,{externalFontUrl:r.typography.fontFamilyUrl}),o.createElement(wp.ThemeProvider,{theme:{typography:Zb(r)}},n))))};var Qb=o.createContext(null);Qb.displayName="CustomerPortalContext";var zb=function(){var e=(0,o.useContext)(Qb);if(!e)throw new Error("Could not find Customer portal context; You need to wrap your customer portal components in an component.");return e};function Hb(e){var t=e.children,n=e.textOverrides,r=e.theme,i=e.resourceId,a=e.productId,s=mb().customerPortalUpdatedAt,u=function(e){var t=e.resourceId,n=e.productId,r=mb(),i=r.stigg,a=r.customerPortalUpdatedAt,s=(0,o.useState)(!1),u=s[0],c=s[1],l=(0,o.useState)(),d=l[0],f=l[1];return(0,o.useEffect)((function(){var e=function(){var e=Ly(fb.mark((function e(){var r;return fb.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.isCustomerLoaded){e.next=15;break}return e.prev=1,c(!0),e.next=5,i.getCustomerPortal({resourceId:t,productId:n});case 5:r=e.sent,f(r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),pb.error("Failed to load customer portal "+(null==e.t0?void 0:e.t0.message),e.t0);case 12:return e.prev=12,c(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}();e()}),[i,i.isCustomerLoaded,a,t]),{customerPortal:d,isLoading:u}}({resourceId:i,productId:a}),c=u.customerPortal,l=u.isLoading,d=null!=c&&c.configuration?function(e){var t=e.palette,n=e.typography;return{palette:{primary:(null==t?void 0:t.primary)||void 0,backgroundPaper:(null==t?void 0:t.paywallBackgroundColor)||void 0,outlinedBorder:(null==t?void 0:t.borderColor)||void 0,backgroundHighlight:(null==t?void 0:t.currentPlanBackground)||void 0,text:{primary:(null==t?void 0:t.textColor)||void 0}},typography:wb(n)}}(c.configuration):void 0,f=function(e,t,n){var r,i,o,a;return{sectionTitleColor:(null==t?void 0:t.sectionTitleColor)||e.palette.text.secondary,planNameColor:(null==t?void 0:t.planNameColor)||e.palette.text.primary,backgroundColor:(null==t?void 0:t.backgroundColor)||(null==n||null==(r=n.palette)?void 0:r.backgroundColor)||"white",borderColor:(null==t?void 0:t.borderColor)||(null==n||null==(i=n.palette)?void 0:i.borderColor)||"rgba(0, 30, 108, 0.15)",listItemBackgroundColor:(null==t?void 0:t.backgroundColor)||(null==n||null==(o=n.palette)?void 0:o.backgroundColor)||"white",tabMaxHeight:(null==t?void 0:t.tabMaxHeight)||"380px",iconsColor:(null==t?void 0:t.iconsColor)||(null==n||null==(a=n.palette)?void 0:a.iconsColor)||void 0,iconsBackgroundColor:null==t?void 0:t.iconsBackgroundColor}}(jb(d),r,null==c?void 0:c.configuration),h=hu({manageSubscription:"Manage",usageTabTitle:"Usage",addonsTabTitle:"Add-ons",promotionsTabTitle:"Promotions",promotionsSubtitle:"You were granted access to additional functionality at no additional cost.",contactSupportTitle:"Have questions about your subscription?",contactSupportLink:"Contact support",editBilling:"Edit billing details",invoicesTitle:"Invoices",viewInvoiceHistory:"View invoice history",editPaymentDetails:"Edit",paywallSectionTitle:"Plans",cancelScheduledUpdatesButtonTitle:"Cancel"},n);return o.createElement(Fb,{componentTheme:d},o.createElement(Qb.Provider,{key:null==s?void 0:s.toString(),value:{customerPortal:c,isLoading:l,textOverrides:h,theme:f,resourceId:i}},t))}var Vb,Ub=function(e){var t,n=e.productId,i=e.resourceId,a=e.highlightedPlanId,s=e.showOnlyEligiblePlans,u=e.textOverrides,c=e.onPlanSelected,l=e.preferredBillingPeriod,d=e.onBillingPeriodChange,f=e.billingCountryCode,h=(t=Qb,!!(0,o.useContext)(t)),p=!1;if(h){var g=zb();p=g.isLoading,i=g.resourceId}var v=function(e){var t=e.productId,n=e.resourceId,i=e.showOnlyEligiblePlans,a=e.billingCountryCode,s=e.preferredBillingPeriod,u=mb(),c=u.stigg,l=u.locale,d=(0,o.useState)(r.BillingPeriod.Annually),f=d[0],h=d[1],p=(0,o.useState)([]),g=p[0],v=p[1],m=(0,o.useState)(null),y=m[0],A=m[1],b=(0,o.useState)(!0),w=b[0],C=b[1];(0,o.useEffect)((function(){var e=function(){var e=Ly(fb.mark((function e(){var r,i,o,u;return fb.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,C(!0),e.next=4,c.waitForInitialization();case 4:return e.next=6,c.getPaywall({productId:t,resourceId:n,billingCountryCode:a});case 6:r=e.sent,i=yb(r.plans,r.activeSubscriptions,s),o=i.availableBillingPeriods,u=i.defaultBillingPeriod,A(r),v(o),h(u),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),pb.error("Failed to load paywall "+(null==e.t0?void 0:e.t0.message),e.t0);case 16:return e.prev=16,C(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,13,16,19]])})));return function(){return e.apply(this,arguments)}}();e()}),[c,t,c.isCustomerLoaded,a,n]);var k=Eb(y,i);return By({customer:(null==y?void 0:y.customer)||null,isLoading:w,selectedBillingPeriod:f,setSelectedBillingPeriod:h,availableBillingPeriods:g,locale:l,configuration:k.paywallConfiguration},k)}({productId:n,resourceId:i,showOnlyEligiblePlans:s,billingCountryCode:f,preferredBillingPeriod:l}),m=v.plans,y=v.customer,A=v.currentSubscription,b=v.isCustomerOnTrial,w=v.isLoading,C=v.selectedBillingPeriod,k=v.setSelectedBillingPeriod,E=v.availableBillingPeriods,_=v.locale,x=v.configuration,S=hu({highlightChip:"Recommended",planCTAButton:{upgrade:"Upgrade",downgrade:"Downgrade",startTrial:function(e){var t;return"Start "+(null==(t=e.defaultTrialConfig)?void 0:t.duration)+" day trial"},custom:"Contact us",currentPlan:"Current plan",startNew:"Get started",switchToBillingPeriod:function(e){return e===r.BillingPeriod.Monthly?"Switch to monthly billing":"Switch to annual billing"},cancelScheduledUpdate:"Cancel"},price:{startingAtCaption:"Starts at",pricePeriod:function(e){return e===r.BillingPeriod.Monthly?"/ month":"/ year"},free:function(e){return{price:(null==e?void 0:e.symbol)+"0"}},custom:"Custom",priceNotSet:"Price not set"}},u),I=!m||w||p?o.createElement(Lb,null):o.createElement(db,{plans:m,customer:y,currentSubscription:A,selectedBillingPeriod:C,onBillingPeriodChanged:function(e){k(e),d&&d(e)},availableBillingPeriods:E,highlightedPlanId:a,isCustomerOnTrial:b,onPlanSelected:c,paywallLocale:S,locale:_});return h?I:o.createElement(Fb,{componentTheme:x},I)},Wb=Fe(Qp,{target:"emvioms0"})("border-radius:10px;padding:8px 16px;text-transform:none;&,&:hover{border-color:",(function(e){return e.theme.stigg.palette.outlinedRestingBorder}),";}");function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&e.quantity+" X ",e.displayName,n===t.length-1?"":", ")})))}var ew=Fe("div",{target:"e1g6q2f50"})("display:flex;justify-content:space-between;align-items:center;gap:64px;border-bottom:",(function(e){return"1px solid "+e.$borderColor}),";padding:16px 0;&>*:first-child{max-width:60%;}");function tw(){var e=zb(),t=e.customerPortal,n=e.textOverrides,r=e.theme,i=null==t?void 0:t.promotionalEntitlements;return o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement(qy,{color:"secondary"},n.promotionsSubtitle),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement(ew,{$borderColor:r.borderColor},o.createElement(qy,{variant:"body1",bold:!0},"Feature"),o.createElement(qy,{variant:"body1",bold:!0},"Expiration date")),null==i?void 0:i.map((function(e){return o.createElement(ew,{$borderColor:r.borderColor},o.createElement(qy,{variant:"body1"},function(e){var t,n=e.displayName,r=e.usageLimit;return e.hasUnlimitedUsage?"Unlimited "+n:r?n+" x "+(null==(t=e.usageLimit)?void 0:t.toLocaleString()):n}(e)),o.createElement(qy,{variant:"body1",color:"disabled"},e.endDate?mc().utc(e.endDate).format("MMM Do, YYYY"):"None"))}))))}var nw,rw,iw=Fe(Tg,{target:"exlfw3j3"})({name:"jlwfj4",styles:".MuiTabs-indicator{background-color:#001e6c;}"}),ow=Fe("div",{target:"exlfw3j2"})({name:"1dqkbz0",styles:"width:100%;flex:1;margin-top:16px"}),aw=Fe(qp,{target:"exlfw3j1"})("margin-top:16px;max-height:",(function(e){return e.$maxHeight}),";overflow-y:auto;"),sw=function(e,t){switch(e){case"primary":return t.stigg.palette.text.primary;case"secondary":return t.stigg.palette.text.secondary;default:return e}};function uw(){return uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&!a("addons"),u=t.promotionalEntitlements.length>0&&!a("promotionalEntitlements"),c=(0,o.useState)(s?1:2),l=c[0],d=c[1];return s||u?o.createElement(ow,null,o.createElement(qp,{sx:{borderBottom:1,borderColor:"divider"}},o.createElement(iw,{value:l,onChange:function(e,t){d(t)}},s?o.createElement(eg,{sx:{textTransform:"none"},value:1,label:o.createElement(wC,{isSelected:1===l,label:r.addonsTabTitle,icon:"Addons"})}):null,u?o.createElement(eg,{sx:{textTransform:"none"},value:2,label:o.createElement(wC,{isSelected:2===l,label:r.promotionsTabTitle,icon:"Promotions"})}):null)),o.createElement(bC,{value:l,index:1,maxHeight:i.tabMaxHeight},o.createElement($b,null)),o.createElement(bC,{value:l,index:2,maxHeight:i.tabMaxHeight},o.createElement(tw,null))):null}var kC=Fe("div",{target:"ejq3grd1"})({name:"1eoy87d",styles:"display:flex;justify-content:space-between"}),EC=Fe("div",{target:"ejq3grd0"})({name:"43cxha",styles:"display:flex;flex-direction:column;gap:32px"});function _C(){return o.createElement(kC,{className:"stigg-subscription-overview-skeleton-layout"},o.createElement(EC,null,o.createElement(dp,{width:120}),o.createElement(dp,{width:120})),o.createElement(dp,{width:295,height:193}))}function xC(e){var t=e.scheduleUpdate.targetPackage;return o.createElement(Pr,{container:!0,alignItems:"center"},o.createElement(Pr,null,o.createElement(Mg,{color:"#D94052",height:20,className:"stigg-scheduled-updates-arrow-down"})),o.createElement(Pr,{item:!0},o.createElement(qy,{className:"stigg-scheduled-updates-description",variant:"body1"},"Downgrade to the ",o.createElement("b",null,null==t?void 0:t.displayName)," plan")))}function SC(e){var t=e.scheduleUpdate.scheduleVariables.billingPeriod,n=t===r.BillingPeriod.Monthly?"annually":"monthly",i=t===r.BillingPeriod.Monthly?"monthly":"annually";return o.createElement(Pr,{container:!0,alignItems:"center"},o.createElement(Pr,null,o.createElement(Mg,{color:"#D94052",height:20,className:"stigg-scheduled-updates-arrow-down"})),o.createElement(Pr,{item:!0},o.createElement(qy,{className:"stigg-scheduled-updates-description",variant:"body1"},"Change from an ",n," to a ",o.createElement("b",null,i)," billing cycle")))}function IC(e){var t=e.subscription,n=e.scheduleUpdate.scheduleVariables,r=n.newUnitAmount,i=n.featureId,a=jr(ss(t.prices,"feature")).find((function(e){return e.id===i}));if(!a)return null;var s=a.featureUnits,u=a.featureUnitsPlural,c=1===r?s:u;return o.createElement(Pr,{container:!0,alignItems:"flex-start",flexWrap:"nowrap"},o.createElement(Pr,null,o.createElement(Mg,{color:"#D94052",height:20,className:"stigg-scheduled-updates-arrow-down"})),o.createElement(Pr,{item:!0},o.createElement(qy,{className:"stigg-scheduled-updates-description",variant:"body1"},"Reduce the ",o.createElement("b",null,s)," quantity to ",r," ",c)))}function DC(e){var t=e.scheduleUpdate,n=e.subscription;switch(t.subscriptionScheduleType){case r.SubscriptionScheduleType.Downgrade:return o.createElement(xC,{scheduleUpdate:t});case r.SubscriptionScheduleType.BillingPeriod:return o.createElement(SC,{scheduleUpdate:t});case r.SubscriptionScheduleType.UnitAmount:return o.createElement(IC,{scheduleUpdate:t,subscription:n});default:return null}}var TC=Fe(qp,{target:"eju957a2"})("border-bottom:",(function(e){return"1px solid "+e.$borderColor}),";border-top-left-radius:10px;border-top-right-radius:10px;margin:-64px -64px 64px -64px;padding:24px 32px;"),OC=Fe(hc(),{target:"eju957a1"})({name:"158icaa",styles:"margin-left:4px"}),NC=Fe(Pw,{target:"eju957a0"})("color:",(function(e){return e.theme.stigg.palette.primary}),";path{fill:",(function(e){return e.theme.stigg.palette.primary}),";}");function PC(e){var t=e.subscription,n=t.scheduledUpdates;return o.createElement(o.Fragment,null,o.createElement(Pr,{container:!0,alignItems:"center",justifyContent:"space-between",gap:1},o.createElement(Pr,null,o.createElement(qy,{className:"stigg-scheduled-updates-description",variant:"body1"},"The following updates will take effect in the next billing cycle:"))),o.createElement(Pr,null,(n||[]).map((function(e){return o.createElement(DC,{key:e.subscriptionScheduleType,scheduleUpdate:e,subscription:t})}))))}function LC(e){var t=e.subscription,n=cA({scheduledUpdate:(t.scheduledUpdates||[])[0],subscriptionPrices:t.prices,billingPeriodRange:t.billingPeriodRange,options:{postfix:"at the end of the current billing period"}}),r=n.line1,i=n.line2;return o.createElement(o.Fragment,null,o.createElement(Pr,{container:!0,alignItems:"center",justifyContent:"space-between",gap:1},o.createElement(Pr,null,o.createElement(qy,{className:"stigg-scheduled-updates-title",variant:"body1",color:"primary"},r))),i&&o.createElement(Pr,null,o.createElement(qy,{className:"stigg-scheduled-updates-subtitle",variant:"body1",color:"secondary"},i)))}function BC(e){var t=e.subscription,n=e.onCancelScheduledUpdates,r=e.theme,i=e.cancelScheduledUpdatesButtonTitle,a=Te(),s=(0,o.useState)(!1),u=s[0],c=s[1],l=t.scheduledUpdates;if(!l||0===l.length)return null;var d=1===l.length;return o.createElement(TC,{$borderColor:r.borderColor,className:"stigg-scheduled-updates-alert-container"},o.createElement(Pr,{container:!0,alignItems:d?"center":"flex-start",gap:2},o.createElement(Pr,{item:!0,display:"flex"},o.createElement(yC,{icon:"ScheduleBox",svgPathColor:r.iconsColor,svgRectColor:r.iconsBackgroundColor})),o.createElement(Pr,{item:!0,flex:1},d?o.createElement(LC,{subscription:t}):o.createElement(PC,{subscription:t})),!!n&&o.createElement(Pr,{item:!0},o.createElement(Wb,{variant:"outlined",onClick:function(){c(!0),Promise.resolve(n(t)).finally((function(){return c(!1)}))}},u?o.createElement(OC,{loading:!0,size:16,color:a.stigg.palette.text.disabled}):o.createElement(NC,{style:{display:"flex",marginRight:4},className:"stigg-scheduled-updates-cancel-update-button-icon"}),o.createElement(qy,{variant:"body1",color:"primary.main",className:"stigg-scheduled-updates-cancel-update-button"},i)))))}var MC=Fe("div",{target:"e1kw2z1l0"})("width:100%;display:flex;flex-direction:column;border-radius:10px;background-color:",(function(e){return e.$backgroundColor}),";border:",(function(e){return"1px solid "+e.$borderColor}),";padding:64px;");function RC(e){var t=e.billingPeriod,n=e.rangeEnd,i=e.amount,a=e.currency;return o.createElement(o.Fragment,null,o.createElement(qy,{variant:"h6"},"Next estimated bill"),o.createElement(qy,{variant:"h1"},_A({amount:i,currency:a,maximumFractionDigits:2})),o.createElement(qy,{variant:"body1",color:"secondary"},"Billed ",t===r.BillingPeriod.Monthly?"monthly":"annually"," on"," ",o.createElement(qy,{variant:"body1",span:!0,color:"primary"},mc().utc(n).format("MMM Do, YYYY"))),o.createElement(qy,{variant:"body1",color:"secondary"},"* Additional tax rates may apply"))}function jC(e){var t=e.description;return o.createElement(o.Fragment,null,o.createElement(qy,{variant:"h6",color:"secondary"},"No upcoming bill"),o.createElement(qy,{variant:"body1",color:"secondary"},t))}var ZC=Fe("div",{target:"e1ftdtst1"})({name:"1nocm2b",styles:"display:flex;flex-direction:column;align-items:left;gap:8px"}),FC=Fe(Qp,{target:"e1ftdtst0"})({name:"1l28f5r",styles:"width:fit-content;&.MuiButton-root{padding:0;&:hover{background:none;}}"});function QC(e){var t=e.onContactSupport,n=e.label,r=e.linkLabel,i=o.createElement(qy,{color:t?"primary.main":"secondary"},r);return o.createElement(ZC,{className:"stigg-contact-support-layout"},o.createElement(qy,{className:"stigg-contact-support-label",color:"secondary"},n),t?o.createElement(FC,{className:"stigg-contact-support-button",style:{textTransform:"none"},variant:"text",onClick:t},i):i)}var zC,HC,VC=Fe("div",{target:"e1u4onrr0"})("max-height:278px;display:flex;flex-direction:column;border-radius:10px;background-color:",(function(e){return e.theme.stigg.palette.backgroundSection}),";border:",(function(e){return"1px solid "+e.$borderColor}),";padding:32px;gap:16px;");function UC(e){var t,n,i,a,s=e.subscription,u=e.theme,c=e.textOverrides,l=e.onContactSupport,d=s.pricingType,f=null==(t=null==(n=s.prices)?void 0:n.every((function(e){return e.billingModel!==r.BillingModel.UsageBased})))||t,h=null==(i=s.scheduledUpdates)?void 0:i.find((function(e){var t=e.subscriptionScheduleType,n=e.targetPackage;return t===r.SubscriptionScheduleType.Downgrade&&(null==n?void 0:n.pricingType)===r.PricingType.Free}));if(d===r.PricingType.Free)a=o.createElement(jC,{description:"You're on a free plan, so you don\u2019t have any upcoming charges"});else if(d===r.PricingType.Paid)if(h&&f)a=o.createElement(jC,{description:"Your plan will be downgraded to a free plan, so you don\u2019t have any upcoming charges"});else if(s.status===r.SubscriptionStatus.InTrial)a=o.createElement(jC,{description:"You\u2019re on a free trial of the "+s.planName+" plan, so you don\u2019t have any upcoming charges"});else{var p,g,v,m,y=null==(p=s.prices)||null==(g=p[0])?void 0:g.billingPeriod,A=null==(v=s.billingPeriodRange)?void 0:v.end,b=null==(m=s.totalPrice)?void 0:m.total;y&&A&&b&&(a=o.createElement(RC,{billingPeriod:y,rangeEnd:A,amount:b.amount,currency:b.currency}))}else d===r.PricingType.Custom&&(a=o.createElement(QC,{onContactSupport:l,label:c.contactSupportTitle,linkLabel:c.contactSupportLink}));return o.createElement(VC,{className:"stigg-subscription-total-price-layout",$borderColor:u.borderColor},a)}function WC(){return WC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function s(e,t){if(null==e)return{};var n,r,i=a(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){return c(e)||l(e,t)||d(e,t)||h()}function c(e){if(Array.isArray(e))return e}function l(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}function d(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:S;if(null===e||k(e))return e;throw new Error(t)},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S;if(C(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return I(e,t)}))};var n=I(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},T=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"2.3.1"}),e.registerAppInfo({name:"react-stripe-js",version:"2.3.1",url:"https://stripe.com/docs/stripe-js/react"}))},O=["on","session"],N=t.createContext(null);N.displayName="CustomCheckoutSdkContext";var P=function(e,t){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},L=t.createContext(null);L.displayName="CustomCheckoutContext";var B=function(e,t){if(!e)return null;e.on,e.session;var n=s(e,O);return r(r({},n),t||e.session())},M="Invalid prop `stripe` supplied to `CustomCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",R=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo((function(){return D(n,M)}),[n]),a=u(t.useState(null),2),s=a[0],c=a[1],l=u(t.useState((function(){return{stripe:"sync"===o.tag?o.stripe:null,customCheckoutSdk:null}})),2),d=l[0],f=l[1],h=function(e,t){f((function(n){return n.stripe&&n.customCheckoutSdk?n:{stripe:e,customCheckoutSdk:t}}))},p=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==o.tag||d.stripe?"sync"===o.tag&&o.stripe&&!p.current&&(p.current=!0,o.stripe.initCustomCheckout(r).then((function(e){e&&(h(o.stripe,e),e.on("change",c))}))):o.stripePromise.then((function(t){t&&e&&!p.current&&(p.current=!0,t.initCustomCheckout(r).then((function(e){e&&(h(t,e),e.on("change",c))})))})),function(){e=!1}}),[o,d,r,c]);var g=b(n);t.useEffect((function(){null!==g&&g!==n&&console.warn("Unsupported prop change on CustomCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[g,n]);var v=b(r);t.useEffect((function(){var e,t;if(d.customCheckoutSdk){!r.clientSecret||w(v)||_(r.clientSecret,v.clientSecret)||console.warn("Unsupported prop change: options.client_secret is not a mutable property.");var n=null===v||void 0===v||null===(e=v.elementsOptions)||void 0===e?void 0:e.appearance,i=null===r||void 0===r||null===(t=r.elementsOptions)||void 0===t?void 0:t.appearance;i&&!_(i,n)&&d.customCheckoutSdk.changeAppearance(i)}}),[r,v,d.customCheckoutSdk]),t.useEffect((function(){T(d.stripe)}),[d.stripe]);var m=t.useMemo((function(){return B(d.customCheckoutSdk,s)}),[d.customCheckoutSdk,s]);return d.customCheckoutSdk?t.createElement(N.Provider,{value:d},t.createElement(L.Provider,{value:m},i)):null};R.propTypes={stripe:A.any,options:A.shape({clientSecret:A.string.isRequired,elementsOptions:A.object}).isRequired};var j=function(e){var n=t.useContext(N);return P(n,e)},Z=function(e){var n=t.useContext(N),r=t.useContext(Q);if(n&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both and providers."));return n?P(n,e):z(r,e)},F=function(){j("calls useCustomCheckout()");var e=t.useContext(L);if(!e)throw new Error("Could not find CustomCheckout Context; You need to wrap the part of your app that calls useCustomCheckout() in an provider.");return e},Q=t.createContext(null);Q.displayName="ElementsContext";var z=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},H=t.createContext(null);H.displayName="CartElementContext";var V=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},U=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo((function(){return D(n)}),[n]),a=u(t.useState(null),2),s=a[0],c=a[1],l=u(t.useState(null),2),d=l[0],f=l[1],h=u(t.useState((function(){return{stripe:"sync"===o.tag?o.stripe:null,elements:"sync"===o.tag?o.stripe.elements(r):null}})),2),p=h[0],g=h[1];t.useEffect((function(){var e=!0,t=function(e){g((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==o.tag||p.stripe?"sync"!==o.tag||p.stripe||t(o.stripe):o.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[o,p,r]);var v=b(n);t.useEffect((function(){null!==v&&v!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[v,n]);var m=b(r);return t.useEffect((function(){if(p.elements){var e=x(r,m,["clientSecret","fonts"]);e&&p.elements.update(e)}}),[r,m,p.elements]),t.useEffect((function(){T(p.stripe)}),[p.stripe]),t.createElement(Q.Provider,{value:p},t.createElement(H.Provider,{value:{cart:s,setCart:c,cartState:d,setCartState:f}},i))};U.propTypes={stripe:A.any,options:A.object};var W=function(e){var n=t.useContext(Q);return z(n,e)},G={cart:null,cartState:null,setCart:function(){},setCartState:function(){}},q=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.useContext(H);return n?G:V(r,e)},K=function(){return W("calls useElements()").elements},X=function(){return Z("calls useStripe()").stripe},Y=function(){return q("calls useCartElement()").cart},J=function(){return q("calls useCartElementState()").cartState},$=function(e){return(0,e.children)(W("mounts "))};$.propTypes={children:A.func.isRequired};var ee=function(e,n,r){var i=!!r,o=t.useRef(r);t.useEffect((function(){o.current=r}),[r]),t.useEffect((function(){if(!i||!e)return function(){};var t=function(){o.current&&o.current.apply(o,arguments)};return e.on(n,t),function(){e.off(n,t)}}),[i,n,e,o])},te=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},ne=function(e,n){var r="".concat(te(e),"Element"),i=n?function(e){var n=Z("mounts <".concat(r,">"));q("mounts <".concat(r,">"),"customCheckoutSdk"in n);var i=e.id,o=e.className;return t.createElement("div",{id:i,className:o})}:function(n){var i,o=n.id,a=n.className,s=n.options,c=void 0===s?{}:s,l=n.onBlur,d=n.onFocus,f=n.onReady,h=n.onChange,p=n.onEscape,g=n.onClick,v=n.onLoadError,m=n.onLoaderStart,y=n.onNetworksChange,A=n.onCheckout,w=n.onLineItemClick,C=n.onConfirm,k=n.onCancel,E=n.onShippingAddressChange,_=n.onShippingRateChange,S=Z("mounts <".concat(r,">")),I="elements"in S?S.elements:null,D="customCheckoutSdk"in S?S.customCheckoutSdk:null,T=u(t.useState(null),2),O=T[0],N=T[1],P=t.useRef(null),L=t.useRef(null),B=q("mounts <".concat(r,">"),"customCheckoutSdk"in S),M=B.setCart,R=B.setCartState;ee(O,"blur",l),ee(O,"focus",d),ee(O,"escape",p),ee(O,"click",g),ee(O,"loaderror",v),ee(O,"loaderstart",m),ee(O,"networkschange",y),ee(O,"lineitemclick",w),ee(O,"confirm",C),ee(O,"cancel",k),ee(O,"shippingaddresschange",E),ee(O,"shippingratechange",_),"cart"===e?i=function(e){R(e),f&&f(e)}:f&&(i="expressCheckout"===e?f:function(){f(O)}),ee(O,"ready",i),ee(O,"change","cart"===e?function(e){R(e),h&&h(e)}:h),ee(O,"checkout","cart"===e?function(e){R(e),A&&A(e)}:A),t.useLayoutEffect((function(){if(null===P.current&&null!==L.current&&(I||D)){var t=null;D?t=D.createElement(e,c):I&&(t=I.create(e,c)),"cart"===e&&M&&M(t),P.current=t,N(t),t&&t.mount(L.current)}}),[I,D,c,M]);var j=b(c);return t.useEffect((function(){if(P.current){var e=x(c,j,["paymentRequest"]);e&&P.current.update(e)}}),[c,j]),t.useLayoutEffect((function(){return function(){if(P.current&&"function"===typeof P.current.destroy)try{P.current.destroy(),P.current=null}catch(e){}}}),[]),t.createElement("div",{id:o,className:a,ref:L})};return i.propTypes={id:A.string,className:A.string,onChange:A.func,onBlur:A.func,onFocus:A.func,onReady:A.func,onEscape:A.func,onClick:A.func,onLoadError:A.func,onLoaderStart:A.func,onNetworksChange:A.func,onCheckout:A.func,onLineItemClick:A.func,onConfirm:A.func,onCancel:A.func,onShippingAddressChange:A.func,onShippingRateChange:A.func,options:A.object},i.displayName=r,i.__elementType=e,i},re="undefined"===typeof window,ie=t.createContext(null);ie.displayName="EmbeddedCheckoutProviderContext";var oe=function(){var e=t.useContext(ie);if(!e)throw new Error(" must be used within ");return e},ae="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",se=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo((function(){return D(n,ae)}),[n]),a=t.useRef(null),s=t.useRef(null),c=u(t.useState({embeddedCheckout:null}),2),l=c[0],d=c[1];t.useEffect((function(){if(!s.current&&!a.current){var e=function(e){s.current||a.current||(s.current=e,a.current=s.current.initEmbeddedCheckout(r).then((function(e){d({embeddedCheckout:e})})))};"async"===o.tag&&!s.current&&r.clientSecret?o.stripePromise.then((function(t){t&&e(t)})):"sync"===o.tag&&!s.current&&r.clientSecret&&e(o.stripe)}}),[o,r,l,s]),t.useEffect((function(){return function(){l.embeddedCheckout?(a.current=null,l.embeddedCheckout.destroy()):a.current&&a.current.then((function(){a.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()}))}}),[l.embeddedCheckout]),t.useEffect((function(){T(s)}),[s]);var f=b(n);t.useEffect((function(){null!==f&&f!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[f,n]);var h=b(r);return t.useEffect((function(){null!=h&&(null!=r?(null!=h.clientSecret&&r.clientSecret!==h.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=h.onComplete&&r.onComplete!==h.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[h,r]),t.createElement(ie.Provider,{value:l},i)},ue=function(e){var n=e.id,r=e.className,i=oe().embeddedCheckout,o=t.useRef(!1),a=t.useRef(null);return t.useLayoutEffect((function(){return!o.current&&i&&null!==a.current&&(i.mount(a.current),o.current=!0),function(){if(o.current&&i)try{i.unmount(),o.current=!1}catch(e){}}}),[i]),t.createElement("div",{ref:a,id:n,className:r})},ce=function(e){var n=e.id,r=e.className;return oe(),t.createElement("div",{id:n,className:r})},le=re?ce:ue,de=ne("auBankAccount",re),fe=ne("card",re),he=ne("cardNumber",re),pe=ne("cardExpiry",re),ge=ne("cardCvc",re),ve=ne("fpxBank",re),me=ne("iban",re),ye=ne("idealBank",re),Ae=ne("p24Bank",re),be=ne("epsBank",re),we=ne("payment",re),Ce=ne("expressCheckout",re),ke=ne("paymentRequestButton",re),Ee=ne("linkAuthentication",re),_e=ne("address",re),xe=ne("shippingAddress",re),Se=ne("cart",re),Ie=ne("paymentMethodMessaging",re),De=ne("affirmMessage",re),Te=ne("afterpayClearpayMessage",re);e.AddressElement=_e,e.AffirmMessageElement=De,e.AfterpayClearpayMessageElement=Te,e.AuBankAccountElement=de,e.CardCvcElement=ge,e.CardElement=fe,e.CardExpiryElement=pe,e.CardNumberElement=he,e.CartElement=Se,e.CustomCheckoutProvider=R,e.Elements=U,e.ElementsConsumer=$,e.EmbeddedCheckout=le,e.EmbeddedCheckoutProvider=se,e.EpsBankElement=be,e.ExpressCheckoutElement=Ce,e.FpxBankElement=ve,e.IbanElement=me,e.IdealBankElement=ye,e.LinkAuthenticationElement=Ee,e.P24BankElement=Ae,e.PaymentElement=we,e.PaymentMethodMessagingElement=Ie,e.PaymentRequestButtonElement=ke,e.ShippingAddressElement=xe,e.useCartElement=Y,e.useCartElementState=J,e.useCustomCheckout=F,e.useElements=K,e.useStripe=X,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(47313))},85303:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function m(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case l:case c:case d:case g:case p:case u:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference")},29317:function(e,t,n){"use strict";n(85303)},1921:function(e,t,n){"use strict";var r=f(n(14646)),i=f(n(83534)),o=f(n(50420)),a=f(n(17996)),s=f(n(56583)),u=f(n(74401)),c=f(n(47313)),l=f(n(75192)),d=f(n(79041));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(){var e,n,r,a;(0,o.default)(this,t);for(var u=arguments.length,c=Array(u),l=0;l0&&void 0!==arguments[0]?arguments[0]:{};return i(this,n),t.call(this,r(r({},e),{},{schemaId:"id"}))}return o(n,[{key:"_addVocabularies",value:function(){var e=this;a(s(n.prototype),"_addVocabularies",this).call(this),d.default.forEach((function(t){return e.addVocabulary(t)})),this.opts.discriminator&&this.addKeyword(f.default)}},{key:"_addDefaultMetaSchema",value:function(){if(a(s(n.prototype),"_addDefaultMetaSchema",this).call(this),this.opts.meta){var e=this.opts.$data?this.$dataMetaSchema(h,p):h;this.addMetaSchema(e,g,!1),this.refs["http://json-schema.org/schema"]=g}}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=a(s(n.prototype),"defaultMeta",this).call(this)||(this.getSchema(g)?g:void 0)}}]),n}(l.default);e.exports=t=v,Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var m=n(8181);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var y=n(8181);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}})},2711:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["$schema","id","$defs",{keyword:"$comment"},"definitions",n(10824).default];t.default=r},88367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2711),i=n(39788),o=n(77567),a=n(62591),s=[r.default,i.default,o.default(),a.default,["title","description","default"]];t.default=s},39788:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39865),i=n(3214),o=n(25345),a=n(12073),s=n(83264),u=n(31453),c=n(14360),l=n(66988),d=n(48779),f=n(41400),h=n(82098),p=[r.default,i.default,o.default,a.default,s.default,u.default,c.default,l.default,d.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,h.default];t.default=p},39865:function(e,t,n){"use strict";var r,i,o,a=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0});var s=n(8181),u=n(95925).operators,c={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:u.LTE,fail:u.GT},{okStr:"<",ok:u.LT,fail:u.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:u.GTE,fail:u.LT},{okStr:">",ok:u.GT,fail:u.LTE}]}},l={message:function(e){return s.str(r||(r=a(["must be "," ",""])),f(e).okStr,e.schemaCode)},params:function(e){return s._(i||(i=a(["{comparison: ",", limit: ","}"])),f(e).okStr,e.schemaCode)}},d={keyword:Object.keys(c),type:"number",schemaType:"number",$data:!0,error:l,code:function(e){var t=e.data,n=e.schemaCode;e.fail$data(s._(o||(o=a([""," "," "," || isNaN(",")"])),t,f(e).fail,n,t))}};function f(e){var t,n=e.keyword,r=(null===(t=e.parentSchema)||void 0===t?void 0:t[c[n].exclusive])?1:0;return c[n].ops[r]}t.default=d},3214:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},r={keyword:Object.keys(n),type:"number",schemaType:"boolean",code:function(e){var t=e.keyword,r=e.parentSchema,i=n[t];if(void 0===r[i])throw new Error("".concat(t," can only be used with ").concat(i))}};t.default=r},77831:function(e,t,n){"use strict";var r=n(42122).default,i=n(56690).default,o=n(89728).default,a=n(41588).default,s=n(73808).default,u=n(61655).default,c=n(26389).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var l=n(8181),d=n(25915),f=n(53927),h=n(22677),p=n(72495),g=n(46786),v=n(99398),m="https://json-schema.org/draft/2019-09/schema",y=function(e){u(n,e);var t=c(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,n),t.call(this,r(r({},e),{},{dynamicRef:!0,next:!0,unevaluated:!0}))}return o(n,[{key:"_addVocabularies",value:function(){var e=this;a(s(n.prototype),"_addVocabularies",this).call(this),this.addVocabulary(f.default),d.default.forEach((function(t){return e.addVocabulary(t)})),this.addVocabulary(h.default),this.addVocabulary(p.default),this.opts.discriminator&&this.addKeyword(g.default)}},{key:"_addDefaultMetaSchema",value:function(){a(s(n.prototype),"_addDefaultMetaSchema",this).call(this);var e=this.opts,t=e.$data;e.meta&&(v.default.call(this,t),this.refs["http://json-schema.org/schema"]=m)}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=a(s(n.prototype),"defaultMeta",this).call(this)||(this.getSchema(m)?m:void 0)}}]),n}(l.default);e.exports=t=y,Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var A=n(94862);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return A.KeywordCxt}});var b=n(95925);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return b._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return b.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return b.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return b.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return b.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return b.CodeGen}});var w=n(36191);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return w.default}});var C=n(95854);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return C.default}})},51266:function(e,t,n){"use strict";var r=n(42122).default,i=n(56690).default,o=n(89728).default,a=n(41588).default,s=n(73808).default,u=n(61655).default,c=n(26389).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var l=n(8181),d=n(44074),f=n(46786),h=n(99336),p="https://json-schema.org/draft/2020-12/schema",g=function(e){u(n,e);var t=c(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i(this,n),t.call(this,r(r({},e),{},{dynamicRef:!0,next:!0,unevaluated:!0}))}return o(n,[{key:"_addVocabularies",value:function(){var e=this;a(s(n.prototype),"_addVocabularies",this).call(this),d.default.forEach((function(t){return e.addVocabulary(t)})),this.opts.discriminator&&this.addKeyword(f.default)}},{key:"_addDefaultMetaSchema",value:function(){a(s(n.prototype),"_addDefaultMetaSchema",this).call(this);var e=this.opts,t=e.$data;e.meta&&(h.default.call(this,t),this.refs["http://json-schema.org/schema"]=p)}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=a(s(n.prototype),"defaultMeta",this).call(this)||(this.getSchema(p)?p:void 0)}}]),n}(l.default);e.exports=t=g,Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var v=n(94862);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return v.KeywordCxt}});var m=n(95925);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var y=n(36191);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return y.default}});var A=n(95854);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return A.default}})},52082:function(e,t,n){"use strict";var r,i,o=n(59400).default,a=n(861).default,s=n(38416).default,u=n(61655).default,c=n(26389).default,l=n(89728).default,d=n(56690).default;Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;var f=l((function e(){d(this,e)}));t._CodeOrName=f,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var h=function(e){u(r,e);var n=c(r);function r(e){var i;if(d(this,r),i=n.call(this),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");return i.str=e,i}return l(r,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){return!1}},{key:"names",get:function(){return s({},this.str,1)}}]),r}(f);t.Name=h;var p=function(e){u(n,e);var t=c(n);function n(e){var r;return d(this,n),(r=t.call(this))._items="string"===typeof e?[e]:e,r}return l(n,[{key:"toString",value:function(){return this.str}},{key:"emptyStr",value:function(){if(this._items.length>1)return!1;var e=this._items[0];return""===e||'""'===e}},{key:"str",get:function(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((function(e,t){return"".concat(e).concat(t)}),"")}},{key:"names",get:function(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((function(e,t){return t instanceof h&&(e[t.str]=(e[t.str]||0)+1),e}),{})}}]),n}(f);function g(e){for(var t=[e[0]],n=0,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o"),GTE:new A._Code(">="),LT:new A._Code("<"),LTE:new A._Code("<="),EQ:new A._Code("==="),NEQ:new A._Code("!=="),NOT:new A._Code("!"),OR:new A._Code("||"),AND:new A._Code("&&"),ADD:new A._Code("+")};var k=function(){function e(){m(this,e)}return y(e,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(e,t){return this}}]),e}(),E=function(e){g(n,e);var t=v(n);function n(e,r,i){var o;return m(this,n),(o=t.call(this)).varKind=e,o.name=r,o.rhs=i,o}return y(n,[{key:"render",value:function(e){var t=e.es5,n=e._n,r=t?b.varKinds.var:this.varKind,i=void 0===this.rhs?"":" = ".concat(this.rhs);return"".concat(r," ").concat(this.name).concat(i,";")+n}},{key:"optimizeNames",value:function(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=q(this.rhs,e,t)),this}},{key:"names",get:function(){return this.rhs instanceof A._CodeOrName?this.rhs.names:{}}}]),n}(k),_=function(e){g(n,e);var t=v(n);function n(e,r,i){var o;return m(this,n),(o=t.call(this)).lhs=e,o.rhs=r,o.sideEffects=i,o}return y(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," = ").concat(this.rhs,";")+t}},{key:"optimizeNames",value:function(e,t){if(!(this.lhs instanceof A.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=q(this.rhs,e,t),this}},{key:"names",get:function(){return G(this.lhs instanceof A.Name?{}:p({},this.lhs.names),this.rhs)}}]),n}(k),x=function(e){g(n,e);var t=v(n);function n(e,r,i,o){var a;return m(this,n),(a=t.call(this,e,i,o)).op=r,a}return y(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.lhs," ").concat(this.op,"= ").concat(this.rhs,";")+t}}]),n}(_),S=function(e){g(n,e);var t=v(n);function n(e){var r;return m(this,n),(r=t.call(this)).label=e,r.names={},r}return y(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.label,":")+t}}]),n}(k),I=function(e){g(n,e);var t=v(n);function n(e){var r;return m(this,n),(r=t.call(this)).label=e,r.names={},r}return y(n,[{key:"render",value:function(e){var t=e._n,n=this.label?" ".concat(this.label):"";return"break".concat(n,";")+t}}]),n}(k),D=function(e){g(n,e);var t=v(n);function n(e){var r;return m(this,n),(r=t.call(this)).error=e,r}return y(n,[{key:"render",value:function(e){var t=e._n;return"throw ".concat(this.error,";")+t}},{key:"names",get:function(){return this.error.names}}]),n}(k),T=function(e){g(n,e);var t=v(n);function n(e){var r;return m(this,n),(r=t.call(this)).code=e,r}return y(n,[{key:"render",value:function(e){var t=e._n;return"".concat(this.code,";")+t}},{key:"optimizeNodes",value:function(){return"".concat(this.code)?this:void 0}},{key:"optimizeNames",value:function(e,t){return this.code=q(this.code,e,t),this}},{key:"names",get:function(){return this.code instanceof A._CodeOrName?this.code.names:{}}}]),n}(k),O=function(e){g(n,e);var t=v(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return m(this,n),(e=t.call(this)).nodes=r,e}return y(n,[{key:"render",value:function(e){return this.nodes.reduce((function(t,n){return t+n.render(e)}),"")}},{key:"optimizeNodes",value:function(){for(var e=this.nodes,t=e.length;t--;){var n=e[t].optimizeNodes();Array.isArray(n)?e.splice.apply(e,[t,1].concat(h(n))):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}},{key:"optimizeNames",value:function(e,t){for(var n=this.nodes,r=n.length;r--;){var i=n[r];i.optimizeNames(e,t)||(K(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}},{key:"names",get:function(){return this.nodes.reduce((function(e,t){return W(e,t.names)}),{})}}]),n}(k),N=function(e){g(n,e);var t=v(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(e){return"{"+e._n+d(f(n.prototype),"render",this).call(this,e)+"}"+e._n}}]),n}(O),P=function(e){g(n,e);var t=v(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n)}(O),L=function(e){g(n,e);var t=v(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n)}(N);L.kind="else";var B=function(e){g(n,e);var t=v(n);function n(e,r){var i;return m(this,n),(i=t.call(this,r)).condition=e,i}return y(n,[{key:"render",value:function(e){var t="if(".concat(this.condition,")")+d(f(n.prototype),"render",this).call(this,e);return this.else&&(t+="else "+this.else.render(e)),t}},{key:"optimizeNodes",value:function(){d(f(n.prototype),"optimizeNodes",this).call(this);var e=this.condition;if(!0===e)return this.nodes;var t=this.else;if(t){var r=t.optimizeNodes();t=this.else=Array.isArray(r)?new L(r):r}return t?!1===e?t instanceof n?t:t.nodes:this.nodes.length?this:new n(X(e),t instanceof n?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}},{key:"optimizeNames",value:function(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),d(f(n.prototype),"optimizeNames",this).call(this,e,t)||this.else)return this.condition=q(this.condition,e,t),this}},{key:"names",get:function(){var e=d(f(n.prototype),"names",this);return G(e,this.condition),this.else&&W(e,this.else.names),e}}]),n}(N);B.kind="if";var M=function(e){g(n,e);var t=v(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n)}(N);M.kind="for";var R=function(e){g(n,e);var t=v(n);function n(e){var r;return m(this,n),(r=t.call(this)).iteration=e,r}return y(n,[{key:"render",value:function(e){return"for(".concat(this.iteration,")")+d(f(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(d(f(n.prototype),"optimizeNames",this).call(this,e,t))return this.iteration=q(this.iteration,e,t),this}},{key:"names",get:function(){return W(d(f(n.prototype),"names",this),this.iteration.names)}}]),n}(M),j=function(e){g(n,e);var t=v(n);function n(e,r,i,o){var a;return m(this,n),(a=t.call(this)).varKind=e,a.name=r,a.from=i,a.to=o,a}return y(n,[{key:"render",value:function(e){var t=e.es5?b.varKinds.var:this.varKind,r=this.name,i=this.from,o=this.to;return"for(".concat(t," ").concat(r,"=").concat(i,"; ").concat(r,"<").concat(o,"; ").concat(r,"++)")+d(f(n.prototype),"render",this).call(this,e)}},{key:"names",get:function(){var e=G(d(f(n.prototype),"names",this),this.from);return G(e,this.to)}}]),n}(M),Z=function(e){g(n,e);var t=v(n);function n(e,r,i,o){var a;return m(this,n),(a=t.call(this)).loop=e,a.varKind=r,a.name=i,a.iterable=o,a}return y(n,[{key:"render",value:function(e){return"for(".concat(this.varKind," ").concat(this.name," ").concat(this.loop," ").concat(this.iterable,")")+d(f(n.prototype),"render",this).call(this,e)}},{key:"optimizeNames",value:function(e,t){if(d(f(n.prototype),"optimizeNames",this).call(this,e,t))return this.iterable=q(this.iterable,e,t),this}},{key:"names",get:function(){return W(d(f(n.prototype),"names",this),this.iterable.names)}}]),n}(M),F=function(e){g(n,e);var t=v(n);function n(e,r,i){var o;return m(this,n),(o=t.call(this)).name=e,o.args=r,o.async=i,o}return y(n,[{key:"render",value:function(e){var t=this.async?"async ":"";return"".concat(t,"function ").concat(this.name,"(").concat(this.args,")")+d(f(n.prototype),"render",this).call(this,e)}}]),n}(N);F.kind="func";var Q=function(e){g(n,e);var t=v(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(e){return"return "+d(f(n.prototype),"render",this).call(this,e)}}]),n}(O);Q.kind="return";var z=function(e){g(n,e);var t=v(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(e){var t="try"+d(f(n.prototype),"render",this).call(this,e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}},{key:"optimizeNodes",value:function(){var e,t;return d(f(n.prototype),"optimizeNodes",this).call(this),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}},{key:"optimizeNames",value:function(e,t){var r,i;return d(f(n.prototype),"optimizeNames",this).call(this,e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(i=this.finally)||void 0===i||i.optimizeNames(e,t),this}},{key:"names",get:function(){var e=d(f(n.prototype),"names",this);return this.catch&&W(e,this.catch.names),this.finally&&W(e,this.finally.names),e}}]),n}(N),H=function(e){g(n,e);var t=v(n);function n(e){var r;return m(this,n),(r=t.call(this)).error=e,r}return y(n,[{key:"render",value:function(e){return"catch(".concat(this.error,")")+d(f(n.prototype),"render",this).call(this,e)}}]),n}(N);H.kind="catch";var V=function(e){g(n,e);var t=v(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(e){return"finally"+d(f(n.prototype),"render",this).call(this,e)}}]),n}(N);V.kind="finally";var U=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,e),this._values={},this._blockStarts=[],this._constants={},this.opts=p(p({},n),{},{_n:n.lines?"\n":""}),this._extScope=t,this._scope=new b.Scope({parent:t}),this._nodes=[new P]}return y(e,[{key:"toString",value:function(){return this._root.render(this.opts)}},{key:"name",value:function(e){return this._scope.name(e)}},{key:"scopeName",value:function(e){return this._extScope.name(e)}},{key:"scopeValue",value:function(e,t){var n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}},{key:"getScopeValue",value:function(e,t){return this._extScope.getValue(e,t)}},{key:"scopeRefs",value:function(e){return this._extScope.scopeRefs(e,this._values)}},{key:"scopeCode",value:function(){return this._extScope.scopeCode(this._values)}},{key:"_def",value:function(e,t,n,r){var i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new E(e,i,n)),i}},{key:"const",value:function(e,t,n){return this._def(b.varKinds.const,e,t,n)}},{key:"let",value:function(e,t,n){return this._def(b.varKinds.let,e,t,n)}},{key:"var",value:function(e,t,n){return this._def(b.varKinds.var,e,t,n)}},{key:"assign",value:function(e,t,n){return this._leafNode(new _(e,t,n))}},{key:"add",value:function(e,n){return this._leafNode(new x(e,t.operators.ADD,n))}},{key:"code",value:function(e){return"function"==typeof e?e():e!==A.nil&&this._leafNode(new T(e)),this}},{key:"object",value:function(){for(var e=["{"],t=arguments.length,n=new Array(t),r=0;r1&&e.push(","),e.push(s),(s!==u||this.opts.es5)&&(e.push(":"),(0,A.addCodeArg)(e,u))}return e.push("}"),new A._Code(e)}},{key:"if",value:function(e,t,n){if(this._blockNode(new B(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}},{key:"elseIf",value:function(e){return this._elseNode(new B(e))}},{key:"else",value:function(){return this._elseNode(new L)}},{key:"endIf",value:function(){return this._endBlockNode(B,L)}},{key:"_for",value:function(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}},{key:"for",value:function(e,t){return this._for(new R(e),t)}},{key:"forRange",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.es5?b.varKinds.var:b.varKinds.let,o=this._scope.toName(e);return this._for(new j(i,o,t,n),(function(){return r(o)}))}},{key:"forOf",value:function(e,t,n){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b.varKinds.const,s=this._scope.toName(e);if(this.opts.es5){var u=t instanceof A.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,A._)(r||(r=c(["",".length"])),u),(function(e){o.var(s,(0,A._)(i||(i=c(["","[","]"])),u,e)),n(s)}))}return this._for(new Z("of",a,s,t),(function(){return n(s)}))}},{key:"forIn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.es5?b.varKinds.var:b.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,A._)(o||(o=c(["Object.keys(",")"])),t),n);var i=this._scope.toName(e);return this._for(new Z("in",r,i,t),(function(){return n(i)}))}},{key:"endFor",value:function(){return this._endBlockNode(M)}},{key:"label",value:function(e){return this._leafNode(new S(e))}},{key:"break",value:function(e){return this._leafNode(new I(e))}},{key:"return",value:function(e){var t=new Q;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Q)}},{key:"try",value:function(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');var r=new z;if(this._blockNode(r),this.code(e),t){var i=this.name("e");this._currNode=r.catch=new H(i),t(i)}return n&&(this._currNode=r.finally=new V,this.code(n)),this._endBlockNode(H,V)}},{key:"throw",value:function(e){return this._leafNode(new D(e))}},{key:"block",value:function(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}},{key:"endBlock",value:function(e){var t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");var n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error("CodeGen: wrong number of nodes: ".concat(n," vs ").concat(e," expected"));return this._nodes.length=t,this}},{key:"func",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.nil,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return this._blockNode(new F(e,t,n)),r&&this.code(r).endFunc(),this}},{key:"endFunc",value:function(){return this._endBlockNode(F)}},{key:"optimize",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}},{key:"_leafNode",value:function(e){return this._currNode.nodes.push(e),this}},{key:"_blockNode",value:function(e){this._currNode.nodes.push(e),this._nodes.push(e)}},{key:"_endBlockNode",value:function(e,t){var n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error('CodeGen: not in block "'.concat(t?"".concat(e.kind,"/").concat(t.kind):e.kind,'"'))}},{key:"_elseNode",value:function(e){var t=this._currNode;if(!(t instanceof B))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}},{key:"_root",get:function(){return this._nodes[0]}},{key:"_currNode",get:function(){var e=this._nodes;return e[e.length-1]},set:function(e){var t=this._nodes;t[t.length-1]=e}}]),e}();function W(e,t){for(var n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function G(e,t){return t instanceof A._CodeOrName?W(e,t.names):e}function q(e,t,n){return e instanceof A.Name?i(e):(r=e)instanceof A._Code&&r._items.some((function(e){return e instanceof A.Name&&1===t[e.str]&&void 0!==n[e.str]}))?new A._Code(e._items.reduce((function(e,t){return t instanceof A.Name&&(t=i(t)),t instanceof A._Code?e.push.apply(e,h(t._items)):e.push(t),e}),[])):e;var r;function i(e){var r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function K(e,t){for(var n in t)e[n]=(e[n]||0)-(t[n]||0)}function X(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,A._)(a||(a=c(["!",""])),ee(e))}t.CodeGen=U,t.not=X;var Y=$(t.operators.AND);t.and=function(){for(var e=arguments.length,t=new Array(e),n=0;n