=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)+c;return{name:u,styles:i,next:we}},_e=!!a.useInsertionEffect&&a.useInsertionEffect,xe=_e||function(e){return e()},Ee=_e||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 Te=o.createContext({});var De=function(){return o.useContext(Te)},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(Te);return e.theme!==t&&(t=Oe(t)(e.theme)),o.createElement(Te.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)}},Me=c.Z,je=function(e){return"theme"!==e},Re=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?Me:je},Be=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),xe((function(){return Le(t,n,r)})),null},Fe=function e(t,n){var r,i,a=t.__emotion_real===t,c=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var u=Be(t,n,a),l=u||Re(c),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,v=1;v0&&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 ct=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,Ue.Z)({},r,n)}))};return a.propTypes={},a.filterProps=[t],a};var ut=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"],vt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],gt=[].concat(pt,vt);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 bt(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 At(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]=bt(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 At(e,t,r,n)})).reduce(ut,{})}function kt(e){return wt(e,pt)}function Ct(e){return wt(e,vt)}function _t(e){return wt(e,gt)}kt.propTypes={},kt.filterProps=pt,Ct.propTypes={},Ct.filterProps=vt,_t.propTypes={},_t.filterProps=gt;var xt=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,Ue.Z)({},t.key,t.val))}),{})};var on={borderRadius:4};var an=function(){function e(e,t,n,r){var i,o=(i={},(0,Ue.Z)(i,e,t),(0,Ue.Z)(i,"theme",n),i),a=r[e];if(!a)return(0,Ue.Z)({},e,t);var s=a.cssProperty,c=void 0===s?e:s,u=a.themeKey,l=a.transform,d=a.style;if(null==t)return null;if("typography"===u&&"inherit"===t)return(0,Ue.Z)({},e,t);var f=at(n,u)||{};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===c?n:(0,Ue.Z)({},c,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 c=null!=(r=s.unstable_sxConfig)?r:Kt;function u(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,u=(i=r[n],o=s,"function"===typeof i?i(o):i);if(null!==u&&void 0!==u)if("object"===typeof u)if(c[n])a=ut(a,e(n,u,s,c));else{var l=Xe({theme:s},u,(function(e){return(0,Ue.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,c=void 0===a?{}:a,u=(0,We.Z)(e,cn),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,c=(0,We.Z)(e,nn),u=rn(n),l=Object.keys(u);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:u,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),v=1;v1&&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 kn(e){if(e.type)return e;if("#"===e.charAt(0))return kn(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 Cn(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 _n(e){var t="hsl"===(e=kn(e)).type||"hsla"===e.type?kn(function(e){var t=(e=kn(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",c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),Cn({type:s,values:c})}(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 xn(e,t){return e=kn(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,Cn(e)}function En(e,t){if(e=kn(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 Cn(e)}function Sn(e,t){if(e=kn(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 Cn(e)}var In={black:"#000",white:"#fff"},Tn={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"},Dn={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"},Mn={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"},jn=["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}},Bn={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=En(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,c=(0,We.Z)(e,jn),u=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:Dn[200],light:Dn[50],dark:Dn[400]}:{main:Dn[500],light:Dn[300],dark:Dn[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:Mn[400],light:Mn[300],dark:Mn[700]}:{main:Mn[800],light:Mn[500],dark:Mn[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 v(e){var t=function(e,t){var n=_n(e),r=_n(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Bn.text.primary)>=i?Bn.text.primary:Rn.text.primary;return t}var g=function(e){var t=e.color,n=e.name,r=e.mainShade,i=void 0===r?500:r,o=e.lightShade,c=void 0===o?300:o,u=e.darkShade,l=void 0===u?700:u;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",c,a),Zn(t,"dark",l,a),t.contrastText||(t.contrastText=v(t.main)),t},m={dark:Bn,light:Rn};return nt((0,s.Z)({common:(0,s.Z)({},In),mode:n,primary:g({color:u,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:d,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:f,name:"info"}),success:g({color:h,name:"success"}),grey:Tn,contrastThreshold:i,getContrastText:v,augmentColor:g,tonalOffset:a},m[n]),c)}var zn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var Vn={textTransform:"uppercase"},Hn='"Roboto", "Helvetica", "Arial", sans-serif';function Un(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,c=n.fontWeightLight,u=void 0===c?300:c,l=n.fontWeightRegular,d=void 0===l?400:l,f=n.fontWeightMedium,h=void 0===f?500:f,p=n.fontWeightBold,v=void 0===p?700:p,g=n.htmlFontSize,m=void 0===g?16:g,y=n.allVariants,b=n.pxToRem,A=(0,We.Z)(n,zn);var w=a/14,k=b||function(e){return"".concat(e/m*w,"rem")},C=function(e,t,n,r,o){return(0,s.Z)({fontFamily:i,fontWeight:e,fontSize:k(t),lineHeight:n},i===Hn?{letterSpacing:"".concat((a=r/t,Math.round(1e5*a)/1e5),"em")}:{},o,y);var a},_={h1:C(u,96,1.167,-1.5),h2:C(u,60,1.2,-.5),h3:C(d,48,1.167,0),h4:C(d,34,1.235,.25),h5:C(d,24,1.334,0),h6:C(h,20,1.6,.15),subtitle1:C(d,16,1.75,.15),subtitle2:C(h,14,1.57,.1),body1:C(d,16,1.5,.15),body2:C(d,14,1.43,.15),button:C(h,14,1.75,.4,Vn),caption:C(d,12,1.66,.4),overline:C(d,12,2.66,1,Vn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nt((0,s.Z)({htmlFontSize:m,pxToRem:k,fontFamily:i,fontSize:a,fontWeightLight:u,fontWeightRegular:d,fontWeightMedium:h,fontWeightBold:v},_),A,{clone:!1})}function Wn(){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 Qn=["none",Wn(0,2,1,-1,0,1,1,0,0,1,3,0),Wn(0,3,1,-2,0,2,2,0,0,1,5,0),Wn(0,3,3,-2,0,3,4,0,0,1,8,0),Wn(0,2,4,-1,0,4,5,0,0,1,10,0),Wn(0,3,5,-1,0,5,8,0,0,1,14,0),Wn(0,3,5,-1,0,6,10,0,0,1,18,0),Wn(0,4,5,-2,0,7,10,1,0,2,16,1),Wn(0,5,5,-3,0,8,10,1,0,3,14,2),Wn(0,5,6,-3,0,9,12,1,0,3,16,2),Wn(0,6,6,-3,0,10,14,1,0,4,18,3),Wn(0,6,7,-4,0,11,15,1,0,4,20,3),Wn(0,7,8,-4,0,12,17,2,0,5,22,4),Wn(0,7,8,-4,0,13,19,2,0,5,24,4),Wn(0,7,9,-4,0,14,21,2,0,5,26,4),Wn(0,8,9,-5,0,15,22,2,0,6,28,5),Wn(0,8,10,-5,0,16,24,2,0,6,30,5),Wn(0,8,11,-5,0,17,26,2,0,6,32,5),Wn(0,9,11,-5,0,18,28,2,0,7,34,6),Wn(0,9,12,-6,0,19,29,2,0,7,36,6),Wn(0,10,13,-6,0,20,31,3,0,8,38,7),Wn(0,10,13,-6,0,21,33,3,0,8,40,7),Wn(0,10,14,-6,0,22,35,3,0,8,42,7),Wn(0,11,14,-7,0,23,36,3,0,9,44,8),Wn(0,11,15,-7,0,24,38,3,0,9,46,8)],qn=["duration","easing","delay"],Gn={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)({},Gn,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,c=r.delay,u=void 0===c?0:c;(0,We.Z)(r,qn);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof o?o:Xn(o)," ").concat(s," ").concat("string"===typeof u?u:Xn(u))})).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,c=e.typography,u=void 0===c?{}:c,l=(0,We.Z)(e,er);if(e.vars)throw new Error(it(18));var d=Fn(i),f=un(e),h=nt(f,{mixins:An(f.breakpoints,n),palette:d,shadows:Qn.slice(),typography:Un(d,u),transitions:Jn(a),zIndex:(0,s.Z)({},$n)});h=nt(h,l);for(var p=arguments.length,v=new Array(p>1?p-1:0),g=1;g0&&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?gn:i,a=e.slotShouldForwardProp,c=void 0===a?gn:a,u=function(e){return sn((0,s.Z)({},e,{theme:yn((0,s.Z)({},e,{defaultTheme:r,themeId:t}))}))};return u.__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,v=void 0===p?(i=(a=d)?a.charAt(0).toLowerCase()+a.slice(1):a)?function(e,t){return t[i]}:null:p,g=(0,We.Z)(n,hn),m=void 0!==f?f:d&&"Root"!==d&&"root"!==d||!1,y=h||!1;var b=gn;"Root"===d||"root"===d?b=o:d?b=c:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);var A=tn(e,(0,s.Z)({shouldForwardProp:b,label:undefined},g)),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 g=A.apply(void 0,[f].concat((0,He.Z)(d)));return e.muiName&&(g.muiName=e.muiName),g};return A.withConfig&&(w.withConfig=A.withConfig),w}}({themeId:ir,defaultTheme:rr,rootShouldForwardProp:or}),cr=sr;function ur(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]=ur(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(Te);return n&&(e=n,0!==Object.keys(e).length)?n:t},dr=un();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?ur(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 vr(){var e=fr(rr);return e[ir]||e}var gr=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}}}(),br={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 Ar(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r=br[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]=Ar(e,t,n)})),r}function kr(e){return Ar("MuiGrid",e)}var Cr=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],_r=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)(Cr.map((function(e){return"grid-xs-".concat(e)}))),(0,He.Z)(Cr.map((function(e){return"grid-sm-".concat(e)}))),(0,He.Z)(Cr.map((function(e){return"grid-md-".concat(e)}))),(0,He.Z)(Cr.map((function(e){return"grid-lg-".concat(e)}))),(0,He.Z)(Cr.map((function(e){return"grid-xl-".concat(e)}))))),xr=_r,Er=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 Tr(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 Dr=cr("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,c=n.zeroMinWidth,u=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,u,t));var d=[];return u.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,c&&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(xr.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=Tr({breakpoints:t.breakpoints.values,values:s})),o=Xe({theme:t},s,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?(0,Ue.Z)({marginTop:"-".concat(Ir(i))},"& > .".concat(xr.item),{paddingTop:Ir(i)}):null!=(r=a)&&r.includes(n)?{}:(0,Ue.Z)({marginTop:0},"& > .".concat(xr.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=Tr({breakpoints:t.breakpoints.values,values:s})),o=Xe({theme:t},s,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?(0,Ue.Z)({width:"calc(100% + ".concat(Ir(i),")"),marginLeft:"-".concat(Ir(i))},"& > .".concat(xr.item),{paddingLeft:Ir(i)}):null!=(r=a)&&r.includes(n)?{}:(0,Ue.Z)({width:"100%",marginLeft:0},"& > .".concat(xr.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}),c="object"===typeof a?a[i]:a;if(void 0===c||null===c)return e;var u="".concat(Math.round(t/c*1e8)/1e6,"%"),l={};if(r.container&&r.item&&0!==r.columnSpacing){var d=n.spacing(r.columnSpacing);if("0px"!==d){var f="calc(".concat(u," + ").concat(Ir(d),")");l={flexBasis:f,maxWidth:f}}}o=(0,s.Z)({flexBasis:u,flexGrow:0,maxWidth:u},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,c=e.breakpoints,u=[];n&&(u=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,c));var l=[];return c.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)(u),["row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a))],l)},kr,t)},Nr=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiGrid"}),r=vr().breakpoints,i=Jt(n),a=i.className,c=i.columns,u=i.columnSpacing,l=i.component,d=void 0===l?"div":l,f=i.container,h=void 0!==f&&f,p=i.direction,v=void 0===p?"row":p,g=i.item,m=void 0!==g&&g,y=i.rowSpacing,b=i.spacing,A=void 0===b?0:b,w=i.wrap,k=void 0===w?"wrap":w,C=i.zeroMinWidth,_=void 0!==C&&C,x=(0,We.Z)(i,Sr),E=y||A,S=u||A,I=o.useContext(gr),T=h?c||12:I,D={},O=(0,s.Z)({},x);r.keys.forEach((function(e){null!=x[e]&&(D[e]=x[e],delete O[e])}));var N=(0,s.Z)({},i,{columns:T,container:h,direction:v,item:m,rowSpacing:E,columnSpacing:S,wrap:k,zeroMinWidth:_,spacing:A},D,{breakpoints:r.keys}),P=Or(N);return(0,Er.jsx)(gr.Provider,{value:T,children:(0,Er.jsx)(Dr,(0,s.Z)({ownerState:N,className:qe(P.root,a),as:d,ref:t},O))})})),Pr=Nr,Lr=n(4625),Mr=(n(67861),Ie((function(e,t){var n=e.styles,r=Ce([n],void 0,o.useContext(Te)),i=o.useRef();return Ee((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]),Ee((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 jr(){for(var e=arguments.length,t=new Array(e),n=0;n-1};var qr=function(e,t){var n=this.__data__,r=Vr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Gr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ts))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==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},jo={};jo["[object Float32Array]"]=jo["[object Float64Array]"]=jo["[object Int8Array]"]=jo["[object Int16Array]"]=jo["[object Int32Array]"]=jo["[object Uint8Array]"]=jo["[object Uint8ClampedArray]"]=jo["[object Uint16Array]"]=jo["[object Uint32Array]"]=!0,jo["[object Arguments]"]=jo["[object Array]"]=jo["[object ArrayBuffer]"]=jo["[object Boolean]"]=jo["[object DataView]"]=jo["[object Date]"]=jo["[object Error]"]=jo["[object Function]"]=jo["[object Map]"]=jo["[object Number]"]=jo["[object Object]"]=jo["[object RegExp]"]=jo["[object Set]"]=jo["[object String]"]=jo["[object WeakMap]"]=!1;var Ro=function(e){return wo(e)&&Mo(e.length)&&!!jo[fi(e)]};var Bo=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,zo=Fo&&Fo.exports===Zo&&ei.process,Vo=function(){try{var e=Fo&&Fo.require&&Fo.require("util").types;return e||zo&&zo.binding&&zo.binding("util")}catch(rp){}}(),Ho=Vo&&Vo.isTypedArray,Uo=Ho?Bo(Ho):Ro,Wo=Object.prototype.hasOwnProperty;var Qo=function(e,t){var n=ho(e),r=!n&&So(e),i=!n&&!r&&No(e),o=!n&&!r&&!i&&Uo(e),a=n||r||i||o,s=a?Ao(e.length,String):[],c=s.length;for(var u in e)!t&&!Wo.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Lo(u,c))||s.push(u);return s},qo=Object.prototype;var Go=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qo)};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(!Go(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&&Mo(e.length)&&!pi(e)};var ea=function(e){return $o(e)?Qo(e):Jo(e)};var ta=function(e){return po(e,ea,bo)},na=Object.prototype.hasOwnProperty;var ra=function(e,t,n,r,i,o){var a=1&n,s=ta(e),c=s.length;if(c!=ta(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];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;++u-1};var As=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200){var u=t?null:Cs(e);if(u)return so(u);a=!1,i=ro,c=new to}else c=t?[]:s;e:for(;++r0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},lc=uc(sc);var dc=function(e,t){return lc(oc(e,t,Ja),e+"")};var fc=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)&&zr(n[t],e)};var hc=function(e){return dc((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&&fc(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=vc(t/2))&&(e+=e)}while(t);return n};var mc=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:mc(e,t,n)},bc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Ac=function(e){return bc.test(e)},wc=$a("length"),kc="\\ud800-\\udfff",Cc="["+kc+"]",_c="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",xc="\\ud83c[\\udffb-\\udfff]",Ec="[^"+kc+"]",Sc="(?:\\ud83c[\\udde6-\\uddff]){2}",Ic="[\\ud800-\\udbff][\\udc00-\\udfff]",Tc="(?:"+_c+"|"+xc+")"+"?",Dc="[\\ufe0e\\ufe0f]?",Oc=Dc+Tc+("(?:\\u200d(?:"+[Ec,Sc,Ic].join("|")+")"+Dc+Tc+")*"),Nc="(?:"+[Ec+_c+"?",_c,Sc,Ic,Cc].join("|")+")",Pc=RegExp(xc+"(?="+xc+")|"+Nc+Oc,"g");var Lc=function(e){for(var t=Pc.lastIndex=0;Pc.test(e);)++t;return t};var Mc=function(e){return Ac(e)?Lc(e):wc(e)};var jc=function(e){return e.split("")},Rc="\\ud800-\\udfff",Bc="["+Rc+"]",Zc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Fc="\\ud83c[\\udffb-\\udfff]",zc="[^"+Rc+"]",Vc="(?:\\ud83c[\\udde6-\\uddff]){2}",Hc="[\\ud800-\\udbff][\\udc00-\\udfff]",Uc="(?:"+Zc+"|"+Fc+")"+"?",Wc="[\\ufe0e\\ufe0f]?",Qc=Wc+Uc+("(?:\\u200d(?:"+[zc,Vc,Hc].join("|")+")"+Wc+Uc+")*"),qc="(?:"+[zc+Zc+"?",Zc,Vc,Hc,Bc].join("|")+")",Gc=RegExp(Fc+"(?="+Fc+")|"+qc+Qc,"g");var Kc=function(e){return e.match(Gc)||[]};var Xc=function(e){return Ac(e)?Kc(e):jc(e)},Yc=Math.ceil;var Jc=function(e,t){var n=(t=void 0===t?" ":Va(t)).length;if(n<2)return n?gc(t,e):t;var r=gc(t,Yc(e/Mc(t)));return Ac(t)?yc(Xc(r),0,e).join(""):r.slice(0,e)},$c=/\s/;var eu=function(e){for(var t=e.length;t--&&$c.test(e.charAt(t)););return t},tu=/^\s+/;var nu=function(e){return e?e.slice(0,eu(e)+1).replace(tu,""):e},ru=/^[-+]0x[0-9a-f]+$/i,iu=/^0b[01]+$/i,ou=/^0o[0-7]+$/i,au=parseInt;var su=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=nu(e);var n=iu.test(e);return n||ou.test(e)?au(e.slice(2),n?2:8):ru.test(e)?NaN:+e},cu=1/0;var uu=function(e){return e?(e=su(e))===cu||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0};var lu=function(e){var t=uu(e),n=t%1;return t===t?n?t-n:t:0};var du=function(e,t,n){e=Ha(e);var r=(t=lu(t))?Mc(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,c=t.fakeElement,u=void 0!==c&&c;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=u?null:A.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 v=e.touches&&e.touches.length>0?e.touches[0]:e,g=v.clientX,k=v.clientY;l=Math.round(g-p.left),d=Math.round(k-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 C=2*Math.max(Math.abs((h?h.clientWidth:0)-l),l)+2,_=2*Math.max(Math.abs((h?h.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(C,2)+Math.pow(_,2))}null!=e&&e.touches?null===b.current&&(b.current=function(){w({pulsate:o,rippleX:l,rippleY:d,rippleSize:f,cb:n})},y.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):w({pulsate:o,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[i,w]),C=o.useCallback((function(){k({},{pulsate:!0})}),[k]),_=o.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&b.current)return b.current(),b.current=null,void(y.current=setTimeout((function(){_(e,t)})));b.current=null,p((function(e){return e.length>0?e.slice(1):e})),g.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:C,start:k,stop:_}}),[C,k,_]),(0,Er.jsx)(cl,(0,s.Z)({className:qe(rl.root,c.root,u),ref:A},l,{children:(0,Er.jsx)(qu,{component:null,exit:!0,children:h})}))})),dl=ll;function fl(e){return Ar("MuiButtonBase",e)}var hl,pl=wr("MuiButtonBase",["root","disabled","focusVisible"]),vl=["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"],gl=cr("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,Ue.Z)(hl,"&.".concat(pl.disabled),{pointerEvents:"none",cursor:"default"}),(0,Ue.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,c=n.children,u=n.className,l=n.component,d=void 0===l?"button":l,f=n.disabled,h=void 0!==f&&f,p=n.disableRipple,v=void 0!==p&&p,g=n.disableTouchRipple,m=void 0!==g&&g,y=n.focusRipple,b=void 0!==y&&y,A=n.LinkComponent,w=void 0===A?"a":A,k=n.onBlur,C=n.onClick,_=n.onContextMenu,x=n.onDragLeave,E=n.onFocus,S=n.onFocusVisible,I=n.onKeyDown,T=n.onKeyUp,D=n.onMouseDown,O=n.onMouseLeave,N=n.onMouseUp,P=n.onTouchEnd,L=n.onTouchMove,M=n.onTouchStart,j=n.tabIndex,R=void 0===j?0:j,B=n.TouchRippleProps,Z=n.touchRippleRef,F=n.type,z=(0,We.Z)(n,vl),V=o.useRef(null),H=o.useRef(null),U=_u(H,Z),W=ju(),Q=W.isFocusVisibleRef,q=W.onFocus,G=W.onBlur,K=W.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),V.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&&!v&&!h;function oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;return Iu((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}o.useEffect((function(){J&&b&&!v&&ne&&H.current.pulsate()}),[v,b,J,ne]);var ae=oe("start",D),se=oe("stop",_),ce=oe("stop",x),ue=oe("stop",N),le=oe("stop",(function(e){J&&e.preventDefault(),O&&O(e)})),de=oe("start",M),fe=oe("stop",P),he=oe("stop",L),pe=oe("stop",(function(e){G(e),!1===Q.current&&$(!1),k&&k(e)}),!1),ve=Iu((function(e){V.current||(V.current=e.currentTarget),q(e),!0===Q.current&&($(!0),S&&S(e)),E&&E(e)})),ge=function(){var e=V.current;return d&&"button"!==d&&!("A"===e.tagName&&e.href)},me=o.useRef(!1),ye=Iu((function(e){b&&!me.current&&J&&H.current&&" "===e.key&&(me.current=!0,H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ge()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&ge()&&"Enter"===e.key&&!h&&(e.preventDefault(),C&&C(e))})),be=Iu((function(e){b&&" "===e.key&&H.current&&J&&!e.defaultPrevented&&(me.current=!1,H.current.stop(e,(function(){H.current.pulsate(e)}))),T&&T(e),C&&e.target===e.currentTarget&&ge()&&" "===e.key&&!e.defaultPrevented&&C(e)})),Ae=d;"button"===Ae&&(z.href||z.to)&&(Ae=w);var we={};"button"===Ae?(we.type=void 0===F?"button":F,we.disabled=h):(z.href||z.to||(we.role="button"),h&&(we["aria-disabled"]=h));var ke=_u(t,K,V);var Ce=(0,s.Z)({},n,{centerRipple:a,component:d,disabled:h,disableRipple:v,disableTouchRipple:m,focusRipple:b,tabIndex:R,focusVisible:J}),_e=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}(Ce);return(0,Er.jsxs)(gl,(0,s.Z)({as:Ae,className:qe(_e.root,u),ownerState:Ce,onBlur:pe,onClick:C,onContextMenu:se,onFocus:ve,onKeyDown:ye,onKeyUp:be,onMouseDown:ae,onMouseLeave:le,onMouseUp:ue,onDragLeave:ce,onTouchEnd:fe,onTouchMove:he,onTouchStart:de,ref:ke,tabIndex:h?-1:R,type:F},we,z,{children:[c,ie?(0,Er.jsx)(dl,(0,s.Z)({ref:U,center:a},B)):null]}))})),yl=ml,bl=xu;function Al(e){return Ar("MuiDivider",e)}var wl=wr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var kl=wr("MuiListItemIcon",["root","alignItemsFlexStart"]);var Cl=wr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function _l(e){return Ar("MuiMenuItem",e)}var xl,El=wr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Sl=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Il=cr(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,Ue.Z)(t,"&.".concat(El.selected),(0,Ue.Z)({backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / ").concat(n.vars.palette.action.selectedOpacity,")"):xn(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(El.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.primary.mainChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):xn(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),(0,Ue.Z)(t,"&.".concat(El.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,"))"):xn(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,")"):xn(n.palette.primary.main,n.palette.action.selectedOpacity)}}),(0,Ue.Z)(t,"&.".concat(El.focusVisible),{backgroundColor:(n.vars||n).palette.action.focus}),(0,Ue.Z)(t,"&.".concat(El.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),(0,Ue.Z)(t,"& + .".concat(wl.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),(0,Ue.Z)(t,"& + .".concat(wl.inset),{marginLeft:52}),(0,Ue.Z)(t,"& .".concat(Cl.root),{marginTop:0,marginBottom:0}),(0,Ue.Z)(t,"& .".concat(Cl.inset),{paddingLeft:36}),(0,Ue.Z)(t,"& .".concat(kl.root),{minWidth:36}),t),!r.dense&&(0,Ue.Z)({},n.breakpoints.up("sm"),{minHeight:"auto"}),r.dense&&(0,s.Z)({minHeight:32,paddingTop:4,paddingBottom:4},n.typography.body2,(0,Ue.Z)({},"& .".concat(kl.root," svg"),{fontSize:"1.25rem"})))})),Tl=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiMenuItem"}),r=n.autoFocus,i=void 0!==r&&r,a=n.component,c=void 0===a?"li":a,u=n.dense,l=void 0!==u&&u,d=n.divider,f=void 0!==d&&d,h=n.disableGutters,p=void 0!==h&&h,v=n.focusVisibleClassName,g=n.role,m=void 0===g?"menuitem":g,y=n.tabIndex,b=n.className,A=(0,We.Z)(n,Sl),w=o.useContext(wu),k=o.useMemo((function(){return{dense:l||w.dense||!1,disableGutters:p}}),[w.dense,l,p]),C=o.useRef(null);bl((function(){i&&C.current&&C.current.focus()}),[i]);var _,x=(0,s.Z)({},n,{dense:k.dense,divider:f,disableGutters:p}),E=function(e){var t=e.disabled,n=e.dense,r=e.divider,i=e.disableGutters,o=e.selected,a=e.classes,c=$t({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},_l,a);return(0,s.Z)({},a,c)}(n),S=_u(C,t);return n.disabled||(_=void 0!==y?y:-1),(0,Er.jsx)(wu.Provider,{value:k,children:(0,Er.jsx)(Il,(0,s.Z)({ref:S,role:m,tabIndex:_,component:c,focusVisibleClassName:qe(E.focusVisible,v),className:qe(E.root,b)},A,{ownerState:x,classes:E}))})})),Dl=Tl,Ol=["children","classes","className","label","notched"],Nl=cr("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=cr("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 Ml(){return o.useContext(Ll)}function jl(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 Ar("MuiInputBase",e)}var Bl=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 Ar("MuiOutlinedInput",e)}var Fl=(0,s.Z)({},Bl,wr("MuiOutlinedInput",["root","notchedOutline","input"])),zl=n(1168);function Vl(e){return e&&e.ownerDocument||document}function Hl(e){return Vl(e).defaultView||window}function Ul(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)?(v.current+=1,{overflow:r,outerHeightStyle:n}):e},k=o.useCallback((function(){var e=A();Gl(e)||b((function(t){return w(t,e)}))}),[A]);xu((function(){var e,t,n=function(){v.current=0,function(){var e=A();Gl(e)||zl.flushSync((function(){b((function(t){return w(t,e)}))}))}()},r=Ul(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()}}),[A]),xu((function(){k()})),o.useEffect((function(){v.current=0}),[u]);return(0,Er.jsxs)(o.Fragment,{children:[(0,Er.jsx)("textarea",(0,s.Z)({value:u,onChange:function(e){v.current=0,d||k(),n&&n(e)},ref:h,rows:a,style:(0,s.Z)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":void 0},c)},l)),(0,Er.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,s.Z)({},ql,c,{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,Er.jsx)(Mr,{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,Er.jsx)(Jl,{styles:o})};var ed=function(e){return(0,Er.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=cr("div",{name:"MuiInputBase",slot:"Root",overridesResolver:id})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({},t.typography.body1,(0,Ue.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(Bl.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=cr("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"},c=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,Ue.Z)(t,"label[data-shrink=false] + .".concat(Bl.formControl," &"),{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c}),(0,Ue.Z)(t,"&.".concat(Bl.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,Ue.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"})})),cd=(0,Er.jsx)(ed,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ud=o.forwardRef((function(e,t){var n,r=pr({props:e,name:"MuiInputBase"}),i=r["aria-describedby"],a=r.autoComplete,c=r.autoFocus,u=r.className,l=r.components,d=void 0===l?{}:l,f=r.componentsProps,h=void 0===f?{}:f,p=r.defaultValue,v=r.disabled,g=r.disableInjectingGlobalStyles,m=r.endAdornment,y=r.fullWidth,b=void 0!==y&&y,A=r.id,w=r.inputComponent,k=void 0===w?"input":w,C=r.inputProps,_=void 0===C?{}:C,x=r.inputRef,E=r.maxRows,S=r.minRows,I=r.multiline,T=void 0!==I&&I,D=r.name,O=r.onBlur,N=r.onChange,P=r.onClick,L=r.onFocus,M=r.onKeyDown,j=r.onKeyUp,R=r.placeholder,B=r.readOnly,Z=r.renderSuffix,F=r.rows,z=r.slotProps,V=void 0===z?{}:z,H=r.slots,U=void 0===H?{}:H,W=r.startAdornment,Q=r.type,q=void 0===Q?"text":Q,G=r.value,K=(0,We.Z)(r,rd),X=null!=_.value?_.value:G,Y=o.useRef(null!=X).current,J=o.useRef(),$=o.useCallback((function(e){0}),[]),ee=_u(J,x,_.ref,$),te=o.useState(!1),ne=(0,rt.Z)(te,2),re=ne[0],ie=ne[1],oe=Ml();var ae=jl({props:r,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=oe?oe.focused:re,o.useEffect((function(){!oe&&v&&re&&(ie(!1),O&&O())}),[oe,v,re,O]);var se=oe&&oe.onFilled,ce=oe&&oe.onEmpty,ue=o.useCallback((function(e){nd(e)?se&&se():ce&&ce()}),[se,ce]);bl((function(){Y&&ue({value:X})}),[X,ue,Y]);o.useEffect((function(){ue(J.current)}),[]);var le=k,de=_;T&&"input"===le&&(de=F?(0,s.Z)({type:void 0,minRows:F,maxRows:F},de):(0,s.Z)({type:void 0,maxRows:E,minRows:S},de),le=Kl);o.useEffect((function(){oe&&oe.setAdornedStart(Boolean(W))}),[oe,W]);var fe=(0,s.Z)({},r,{color:ae.color||"primary",disabled:ae.disabled,endAdornment:m,error:ae.error,focused:ae.focused,formControl:oe,fullWidth:b,hiddenLabel:ae.hiddenLabel,multiline:T,size:ae.size,startAdornment:W,type:q}),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,c=e.fullWidth,u=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",c&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat(Yl(f)),l&&"multiline",h&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===p&&"inputTypeSearch",l&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},Rl,t)}(fe),pe=U.root||d.Root||ad,ve=V.root||h.root||{},ge=U.input||d.Input||sd;return de=(0,s.Z)({},de,null!=(n=V.input)?n:h.input),(0,Er.jsxs)(o.Fragment,{children:[!g&&cd,(0,Er.jsxs)(pe,(0,s.Z)({},ve,!Xl(pe)&&{ownerState:(0,s.Z)({},fe,ve.ownerState)},{ref:t,onClick:function(e){J.current&&e.currentTarget===e.target&&J.current.focus(),P&&P(e)}},K,{className:qe(he.root,ve.className,u,B&&"MuiInputBase-readOnly"),children:[W,(0,Er.jsx)(Ll.Provider,{value:null,children:(0,Er.jsx)(ge,(0,s.Z)({ownerState:fe,"aria-invalid":ae.error,"aria-describedby":i,autoComplete:a,autoFocus:c,defaultValue:p,disabled:ae.disabled,id:A,onAnimationStart:function(e){ue("mui-auto-fill-cancel"===e.animationName?J.current:{value:"x"})},name:D,placeholder:R,readOnly:B,required:ae.required,rows:F,value:X,onKeyDown:M,onKeyUp:j,type:q},de,!Xl(ge)&&{as:le,ownerState:(0,s.Z)({},fe,de.ownerState)},{ref:ee,className:qe(he.input,de.className,B&&"MuiInputBase-readOnly"),onBlur:function(e){O&&O(e),_.onBlur&&_.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));ue({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 Cd(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 _d=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xd(e){var t,n=e.elementType,r=e.externalSlotProps,i=e.ownerState,o=e.skipResolvingSlotProps,a=void 0!==o&&o,c=(0,We.Z)(e,_d),u=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=qe(null==i?void 0:i.className,null==r?void 0:r.className,o,null==n?void 0:n.className),c=(0,s.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),u=(0,s.Z)({},n,i,r);return a.length>0&&(u.className=a),Object.keys(c).length>0&&(u.style=c),{props:u,internalRef:void 0}}var l=kd((0,s.Z)({},i,r)),d=Cd(r),f=Cd(i),h=t(l),p=qe(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),v=(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),g=(0,s.Z)({},h,n,f,d);return p.length>0&&(g.className=p),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:h.ref}}((0,s.Z)({},c,{externalSlotProps:u})),d=l.props,f=Cu(l.internalRef,null==u?void 0:u.ref,null==(t=e.additionalProps)?void 0:t.ref);return wd(n,(0,s.Z)({},d,{ref:f}),i)}function Ed(e){return Ar("MuiList",e)}wr("MuiList",["root","padding","dense","subheader"]);var Sd=["children","className","component","dense","disablePadding","subheader"],Id=cr("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})})),Td=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiList"}),r=n.children,i=n.className,a=n.component,c=void 0===a?"ul":a,u=n.dense,l=void 0!==u&&u,d=n.disablePadding,f=void 0!==d&&d,h=n.subheader,p=(0,We.Z)(n,Sd),v=o.useMemo((function(){return{dense:l}}),[l]),g=(0,s.Z)({},n,{component:c,dense:l,disablePadding:f}),m=function(e){var t=e.classes;return $t({root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]},Ed,t)}(g);return(0,Er.jsx)(wu.Provider,{value:v,children:(0,Er.jsxs)(Id,(0,s.Z)({as:c,className:qe(m.root,i),ref:t,ownerState:g},p,{children:[h,r]}))})})),Dd=Td;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 Md(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jd(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 c=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&jd(s,o)&&!c)return s.focus(),!0;s=i(e,s,n)}return!1}var Bd=o.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,i=void 0!==r&&r,a=e.autoFocusItem,c=void 0!==a&&a,u=e.children,l=e.className,d=e.disabledItemsFocusable,f=void 0!==d&&d,h=e.disableListWrap,p=void 0!==h&&h,v=e.onKeyDown,g=e.variant,m=void 0===g?"selectedMenu":g,y=(0,We.Z)(e,Pd),b=o.useRef(null),A=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});bl((function(){i&&b.current.focus()}),[i]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight=u.length&&(k=-1)):k===t&&(k+=1)>=u.length&&(k=-1)}));var C=o.Children.map(u,(function(e,t){if(t===k){var n={};return c&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return(0,Er.jsx)(Dd,(0,s.Z)({role:"menu",ref:w,className:l,onKeyDown:function(e){var t=b.current,n=e.key,r=Ad(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Rd(t,r,p,f,Ld);else if("ArrowUp"===n)e.preventDefault(),Rd(t,r,p,f,Md);else if("Home"===n)e.preventDefault(),Rd(t,null,p,f,Ld);else if("End"===n)e.preventDefault(),Rd(t,null,p,f,Md);else if(1===n.length){var i=A.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&&jd(r,i);i.previousKeyMatched&&(s||Rd(t,r,!1,f,Ld,i))?e.preventDefault():i.previousKeyMatched=!1}v&&v(e)},tabIndex:i?0:-1},y,{children:C}))})),Zd=Bd,Fd=Ul,zd=Hl,Vd=n(60596),Hd=function(e){return e.scrollTop};function Ud(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 Wd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Qd(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var qd={entering:{opacity:1,transform:Qd(1)},entered:{opacity:1,transform:"none"}},Gd="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,c=e.easing,u=e.in,l=e.onEnter,d=e.onEntered,f=e.onEntering,h=e.onExit,p=e.onExited,v=e.onExiting,g=e.style,m=e.timeout,y=void 0===m?"auto":m,b=e.TransitionComponent,A=void 0===b?Vd.ZP:b,w=(0,We.Z)(e,Wd),k=o.useRef(),C=o.useRef(),_=vr(),x=o.useRef(null),E=_u(x,a.ref,t),S=function(e){return function(t){if(e){var n=x.current;void 0===t?e(n):e(n,t)}}},I=S(f),T=S((function(e,t){Hd(e);var n,r=Ud({style:g,timeout:y,easing:c},{mode:"enter"}),i=r.duration,o=r.delay,a=r.easing;"auto"===y?(n=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=n):n=i,e.style.transition=[_.transitions.create("opacity",{duration:n,delay:o}),_.transitions.create("transform",{duration:Gd?n:.666*n,delay:o,easing:a})].join(","),l&&l(e,t)})),D=S(d),O=S(v),N=S((function(e){var t,n=Ud({style:g,timeout:y,easing:c},{mode:"exit"}),r=n.duration,i=n.delay,o=n.easing;"auto"===y?(t=_.transitions.getAutoHeightDuration(e.clientHeight),C.current=t):t=r,e.style.transition=[_.transitions.create("opacity",{duration:t,delay:i}),_.transitions.create("transform",{duration:Gd?t:.666*t,delay:Gd?i:i||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=Qd(.75),h&&h(e)})),P=S(p);return o.useEffect((function(){return function(){clearTimeout(k.current)}}),[]),(0,Er.jsx)(A,(0,s.Z)({appear:i,in:u,nodeRef:x,onEnter:T,onEntered:D,onEntering:I,onExit:N,onExited:P,onExiting:O,addEndListener:function(e){"auto"===y&&(k.current=setTimeout(e,C.current||0)),n&&n(x.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:Qd(.75),visibility:"exited"!==e||u?void 0:"hidden"},qd[e],g,a.props.style),ref:E},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(Vl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(tf(r)+i,"px");var o=Vl(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=Vl(r).body;else{var s=r.parentElement,c=Hl(r);a="HTML"===(null==s?void 0:s.nodeName)&&"scroll"===c.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 cf(e){var t=e.container,n=e.disableEscapeKeyDown,r=void 0!==n&&n,i=e.disableScrollLock,a=void 0!==i&&i,c=e.manager,u=void 0===c?sf:c,l=e.closeAfterTransition,d=void 0!==l&&l,f=e.onTransitionEnter,h=e.onTransitionExited,p=e.children,v=e.onClose,g=e.open,m=e.rootRef,y=o.useRef({}),b=o.useRef(null),A=o.useRef(null),w=Cu(A,m),k=o.useState(!g),C=(0,rt.Z)(k,2),_=C[0],x=C[1],E=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=A.current,y.current.mount=b.current,y.current},T=function(){u.mount(I(),{disableScrollLock:a}),A.current&&(A.current.scrollTop=0)},D=Su((function(){var e=function(e){return"function"===typeof e?e():e}(t)||Vl(b.current).body;u.add(I(),e),A.current&&T()})),O=o.useCallback((function(){return u.isTopModal(I())}),[u]),N=Su((function(e){b.current=e,e&&(g&&O()?T():A.current&&ef(A.current,S))})),P=o.useCallback((function(){u.remove(I(),S)}),[S,u]);o.useEffect((function(){return function(){P()}}),[P]),o.useEffect((function(){g?D():E&&d||P()}),[g,P,E,d,D]);var L=function(e){return function(t){var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&O()&&(r||(t.stopPropagation(),v&&v(t,"escapeKeyDown")))}},M=function(e){return function(t){var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&v&&v(t,"backdropClick")}};return{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=kd(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:M(e),open:g})},getTransitionProps:function(){return{onEnter:Yd((function(){x(!1),f&&f()}),null==p?void 0:p.props.onEnter),onExited:Yd((function(){x(!0),h&&h(),d&&P()}),null==p?void 0:p.props.onExited)}},rootRef:w,portalRef:N,isTopModal:O,exited:_,hasTransition:E}}var uf=["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(uf)).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,c=void 0!==s&&s,u=e.getTabbable,l=void 0===u?lf:u,d=e.isEnabled,f=void 0===d?df:d,h=e.open,p=o.useRef(!1),v=o.useRef(null),g=o.useRef(null),m=o.useRef(null),y=o.useRef(null),b=o.useRef(!1),A=o.useRef(null),w=Cu(t.ref,A),k=o.useRef(null);o.useEffect((function(){h&&A.current&&(b.current=!r)}),[r,h]),o.useEffect((function(){if(h&&A.current){var e=Vl(A.current);return A.current.contains(e.activeElement)||(A.current.hasAttribute("tabIndex")||A.current.setAttribute("tabIndex","-1"),b.current&&A.current.focus()),function(){c||(m.current&&m.current.focus&&(p.current=!0,m.current.focus()),m.current=null)}}}),[h]),o.useEffect((function(){if(h&&A.current){var e=Vl(A.current),t=function(t){k.current=t,!a&&f()&&"Tab"===t.key&&e.activeElement===A.current&&t.shiftKey&&(p.current=!0,g.current&&g.current.focus())},n=function(){var t=A.current;if(null!==t)if(e.hasFocus()&&f()&&!p.current){if(!t.contains(e.activeElement)&&(!a||e.activeElement===v.current||e.activeElement===g.current)){if(e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(b.current){var n=[];if(e.activeElement!==v.current&&e.activeElement!==g.current||(n=l(A.current)),n.length>0){var r,i,o=Boolean((null==(r=k.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=k.current)?void 0:i.key)),s=n[0],c=n[n.length-1];"string"!==typeof s&&"string"!==typeof c&&(o?c.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,c,f,h,l]);var C=function(e){null===m.current&&(m.current=e.relatedTarget),b.current=!0};return(0,Er.jsxs)(o.Fragment,{children:[(0,Er.jsx)("div",{tabIndex:h?0:-1,onFocus:C,ref:v,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:w,onFocus:function(e){null===m.current&&(m.current=e.relatedTarget),b.current=!0,y.current=e.target;var n=t.props.onFocus;n&&n(e)}}),(0,Er.jsx)("div",{tabIndex:h?0:-1,onFocus:C,ref:g,"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),c=(0,rt.Z)(s,2),u=c[0],l=c[1],d=Cu(o.isValidElement(n)?n.ref:null,t);if(xu((function(){a||l(function(e){return"function"===typeof e?e():e}(r)||document.body)}),[r,a]),xu((function(){if(u&&!a)return ku(t,u),function(){ku(t,null)}}),[t,u,a]),a){if(o.isValidElement(n)){var f={ref:d};return o.cloneElement(n,f)}return(0,Er.jsx)(o.Fragment,{children:n})}return(0,Er.jsx)(o.Fragment,{children:u?zl.createPortal(n,u):u})}));var pf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],vf={entering:{opacity:1},entered:{opacity:1}},gf=o.forwardRef((function(e,t){var n=vr(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},i=e.addEndListener,a=e.appear,c=void 0===a||a,u=e.children,l=e.easing,d=e.in,f=e.onEnter,h=e.onEntered,p=e.onEntering,v=e.onExit,g=e.onExited,m=e.onExiting,y=e.style,b=e.timeout,A=void 0===b?r:b,w=e.TransitionComponent,k=void 0===w?Vd.ZP:w,C=(0,We.Z)(e,pf),_=o.useRef(null),x=_u(_,u.ref,t),E=function(e){return function(t){if(e){var n=_.current;void 0===t?e(n):e(n,t)}}},S=E(p),I=E((function(e,t){Hd(e);var r=Ud({style:y,timeout:A,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),f&&f(e,t)})),T=E(h),D=E(m),O=E((function(e){var t=Ud({style:y,timeout:A,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),v&&v(e)})),N=E(g);return(0,Er.jsx)(k,(0,s.Z)({appear:c,in:d,nodeRef:_,onEnter:I,onEntered:T,onEntering:S,onExit:O,onExited:N,onExiting:D,addEndListener:function(e){i&&i(_.current,e)},timeout:A},C,{children:function(e,t){return o.cloneElement(u,(0,s.Z)({style:(0,s.Z)({opacity:0,visibility:"exited"!==e||d?void 0:"hidden"},vf[e],y,u.props.style),ref:x},t))}}))})),mf=gf;function yf(e){return Ar("MuiBackdrop",e)}wr("MuiBackdrop",["root","invisible"]);var bf=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Af=cr("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,c=o.className,u=o.component,l=void 0===u?"div":u,d=o.components,f=void 0===d?{}:d,h=o.componentsProps,p=void 0===h?{}:h,v=o.invisible,g=void 0!==v&&v,m=o.open,y=o.slotProps,b=void 0===y?{}:y,A=o.slots,w=void 0===A?{}:A,k=o.TransitionComponent,C=void 0===k?mf:k,_=o.transitionDuration,x=(0,We.Z)(o,bf),E=(0,s.Z)({},o,{component:l,invisible:g}),S=function(e){var t=e.classes;return $t({root:["root",e.invisible&&"invisible"]},yf,t)}(E),I=null!=(n=b.root)?n:p.root;return(0,Er.jsx)(C,(0,s.Z)({in:m,timeout:_},x,{children:(0,Er.jsx)(Af,(0,s.Z)({"aria-hidden":!0},I,{as:null!=(r=null!=(i=w.root)?i:f.Root)?r:l,className:qe(S.root,c,null==I?void 0:I.className),ownerState:(0,s.Z)({},E,null==I?void 0:I.ownerState),classes:S,ref:t,children:a}))}))})),kf=wf;function Cf(e){return Ar("MuiModal",e)}wr("MuiModal",["root","hidden","backdrop"]);var _f=["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"],xf=cr("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"})})),Ef=cr(kf,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),Sf=o.forwardRef((function(e,t){var n,r,i,a,c,u,l=pr({name:"MuiModal",props:e}),d=l.BackdropComponent,f=void 0===d?Ef:d,h=l.BackdropProps,p=l.className,v=l.closeAfterTransition,g=void 0!==v&&v,m=l.children,y=l.container,b=l.component,A=l.components,w=void 0===A?{}:A,k=l.componentsProps,C=void 0===k?{}:k,_=l.disableAutoFocus,x=void 0!==_&&_,E=l.disableEnforceFocus,S=void 0!==E&&E,I=l.disableEscapeKeyDown,T=void 0!==I&&I,D=l.disablePortal,O=void 0!==D&&D,N=l.disableRestoreFocus,P=void 0!==N&&N,L=l.disableScrollLock,M=void 0!==L&&L,j=l.hideBackdrop,R=void 0!==j&&j,B=l.keepMounted,Z=void 0!==B&&B,F=l.onBackdropClick,z=l.open,V=l.slotProps,H=l.slots,U=(0,We.Z)(l,_f),W=(0,s.Z)({},l,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:T,disablePortal:O,disableRestoreFocus:P,disableScrollLock:M,hideBackdrop:R,keepMounted:Z}),Q=cf((0,s.Z)({},W,{rootRef:t})),q=Q.getRootProps,G=Q.getBackdropProps,K=Q.getTransitionProps,X=Q.portalRef,Y=Q.isTopModal,J=Q.exited,$=Q.hasTransition,ee=(0,s.Z)({},W,{exited:J}),te=function(e){var t=e.open,n=e.exited;return $t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cf,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:xf,se=null!=(i=null!=(a=null==H?void 0:H.backdrop)?a:w.Backdrop)?i:f,ce=null!=(c=null==V?void 0:V.root)?c:C.root,ue=null!=(u=null==V?void 0:V.backdrop)?u:C.backdrop,le=xd({elementType:ae,externalSlotProps:ce,externalForwardedProps:U,getSlotProps:q,additionalProps:{ref:t,as:b},ownerState:ee,className:qe(p,null==ce?void 0:ce.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),de=xd({elementType:se,externalSlotProps:ue,additionalProps:h,getSlotProps:function(e){return G((0,s.Z)({},e,{onClick:function(t){F&&F(t),null!=e&&e.onClick&&e.onClick(t)}}))},className:qe(null==ue?void 0:ue.className,null==h?void 0:h.className,null==te?void 0:te.backdrop),ownerState:ee});return Z||z||$&&!J?(0,Er.jsx)(hf,{ref:X,container:y,disablePortal:O,children:(0,Er.jsxs)(ae,(0,s.Z)({},le,{children:[!R&&f?(0,Er.jsx)(se,(0,s.Z)({},de)):null,(0,Er.jsx)(ff,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:P,isEnabled:Y,open:z,children:o.cloneElement(m,ne)})]}))}):null})),If=Sf,Tf=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function Df(e){return Ar("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=cr("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(xn("#fff",Tf(r.elevation)),", ").concat(xn("#fff",Tf(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,c=void 0===a?1:a,u=n.square,l=void 0!==u&&u,d=n.variant,f=void 0===d?"elevation":d,h=(0,We.Z)(n,Of),p=(0,s.Z)({},n,{component:o,elevation:c,square:l,variant:f}),v=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)]},Df,i)}(p);return(0,Er.jsx)(Nf,(0,s.Z)({as:o,ownerState:p,className:qe(v.root,r),ref:t},h))})),Lf=Pf;function Mf(e){return Ar("MuiPopover",e)}wr("MuiPopover",["root","paper"]);var jf=["onEntering"],Rf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Bf=["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 zf(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function Vf(e){return"function"===typeof e?e():e}var Hf=cr(If,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Uf=cr(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}),Wf=o.forwardRef((function(e,t){var n,r,i,a=pr({props:e,name:"MuiPopover"}),c=a.action,u=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,v=a.children,g=a.className,m=a.container,y=a.elevation,b=void 0===y?8:y,A=a.marginThreshold,w=void 0===A?16:A,k=a.open,C=a.PaperProps,_=void 0===C?{}:C,x=a.slots,E=a.slotProps,S=a.transformOrigin,I=void 0===S?{vertical:"top",horizontal:"left"}:S,T=a.TransitionComponent,D=void 0===T?Xd:T,O=a.transitionDuration,N=void 0===O?"auto":O,P=a.TransitionProps,L=(void 0===P?{}:P).onEntering,M=a.disableScrollLock,j=void 0!==M&&M,R=(0,We.Z)(a.TransitionProps,jf),B=(0,We.Z)(a,Rf),Z=null!=(n=null==E?void 0:E.paper)?n:_,F=o.useRef(),z=_u(F,Z.ref),V=(0,s.Z)({},a,{anchorOrigin:d,anchorReference:p,elevation:b,marginThreshold:w,externalPaperSlotProps:Z,transformOrigin:I,TransitionComponent:D,transitionDuration:N,TransitionProps:R}),H=function(e){return $t({root:["root"],paper:["paper"]},Mf,e.classes)}(V),U=o.useCallback((function(){if("anchorPosition"===p)return f;var e=Vf(u),t=(e&&1===e.nodeType?e:Ad(F.current).body).getBoundingClientRect();return{top:t.top+Zf(t,d.vertical),left:t.left+Ff(t,d.horizontal)}}),[u,d.horizontal,d.vertical,f,p]),W=o.useCallback((function(e){return{vertical:Zf(e,I.vertical),horizontal:Ff(e,I.horizontal)}}),[I.horizontal,I.vertical]),Q=o.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=W(t);if("none"===p)return{top:null,left:null,transformOrigin:zf(n)};var r=U(),i=r.top-n.vertical,o=r.left-n.horizontal,a=i+t.height,s=o+t.width,c=zd(Vf(u)),l=c.innerHeight-w,d=c.innerWidth-w;if(null!==w&&il){var h=a-l;i-=h,n.vertical+=h}if(null!==w&&od){var g=s-d;o-=g,n.horizontal+=g}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:zf(n)}}),[u,p,U,W,w]),q=o.useState(k),G=(0,rt.Z)(q,2),K=G[0],X=G[1],Y=o.useCallback((function(){var e=F.current;if(e){var t=Q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,X(!0)}}),[Q]);o.useEffect((function(){return j&&window.addEventListener("scroll",Y),function(){return window.removeEventListener("scroll",Y)}}),[u,j,Y]);o.useEffect((function(){k&&Y()})),o.useImperativeHandle(c,(function(){return k?{updatePosition:function(){Y()}}:null}),[k,Y]),o.useEffect((function(){if(k){var e=Fd((function(){Y()})),t=zd(u);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[u,k,Y]);var J=N;"auto"!==N||D.muiSupportAuto||(J=void 0);var $=m||(u?Ad(Vf(u)).body:void 0),ee=null!=(r=null==x?void 0:x.root)?r:Hf,te=null!=(i=null==x?void 0:x.paper)?i:Uf,ne=xd({elementType:te,externalSlotProps:(0,s.Z)({},Z,{style:K?Z.style:(0,s.Z)({},Z.style,{opacity:0})}),additionalProps:{elevation:b,ref:z},ownerState:V,className:qe(H.paper,null==Z?void 0:Z.className)}),re=xd({elementType:ee,externalSlotProps:(null==E?void 0:E.root)||{},externalForwardedProps:B,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:k},ownerState:V,className:qe(H.root,g)}),ie=re.slotProps,oe=(0,We.Z)(re,Bf);return(0,Er.jsx)(ee,(0,s.Z)({},oe,!Xl(ee)&&{slotProps:ie,disableScrollLock:j},{children:(0,Er.jsx)(D,(0,s.Z)({appear:!0,in:k,onEntering:function(e,t){L&&L(e,t),Y()},onExited:function(){X(!1)},timeout:J},R,{children:(0,Er.jsx)(te,(0,s.Z)({},ne,{children:v}))}))}))})),Qf=Wf;function qf(e){return Ar("MuiMenu",e)}wr("MuiMenu",["root","paper","list"]);var Gf=["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=cr(Qf,{shouldForwardProp:function(e){return or(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),$f=cr(Uf,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eh=cr(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,c=void 0===a||a,u=i.children,l=i.className,d=i.disableAutoFocusItem,f=void 0!==d&&d,h=i.MenuListProps,p=void 0===h?{}:h,v=i.onClose,g=i.open,m=i.PaperProps,y=void 0===m?{}:m,b=i.PopoverClasses,A=i.transitionDuration,w=void 0===A?"auto":A,k=i.TransitionProps,C=(void 0===k?{}:k).onEntering,_=i.variant,x=void 0===_?"selectedMenu":_,E=i.slots,S=void 0===E?{}:E,I=i.slotProps,T=void 0===I?{}:I,D=(0,We.Z)(i.TransitionProps,Gf),O=(0,We.Z)(i,Kf),N=vr(),P="rtl"===N.direction,L=(0,s.Z)({},i,{autoFocus:c,disableAutoFocusItem:f,MenuListProps:p,onEntering:C,PaperProps:y,transitionDuration:w,TransitionProps:D,variant:x}),M=function(e){return $t({root:["root"],paper:["paper"],list:["list"]},qf,e.classes)}(L),j=c&&!f&&g,R=o.useRef(null),B=-1;o.Children.map(u,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===x&&e.props.selected||-1===B)&&(B=t))}));var Z=null!=(n=S.paper)?n:$f,F=null!=(r=T.paper)?r:y,z=xd({elementType:S.root,externalSlotProps:T.root,ownerState:L,className:[M.root,l]}),V=xd({elementType:Z,externalSlotProps:F,ownerState:L,className:M.paper});return(0,Er.jsx)(Jf,(0,s.Z)({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?Xf:Yf,slots:{paper:Z,root:S.root},slotProps:{root:z,paper:V},open:g,ref:t,transitionDuration:w,TransitionProps:(0,s.Z)({onEntering:function(e,t){R.current&&R.current.adjustStyleForScrollbar(e,N),C&&C(e,t)}},D),ownerState:L},O,{classes:b,children:(0,Er.jsx)(eh,(0,s.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:R,autoFocus:c&&(-1===B||f),autoFocusItem:j,variant:x},p,{className:qe(M.list,p.className),children:u}))}))})),nh=th;function rh(e){return Ar("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,Ue.Z)(t,"&.".concat(ih.disabled),{cursor:"default"}),(0,Ue.Z)(t,"&[multiple]",{height:"auto"}),(0,Ue.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(r.vars||r).palette.background.paper}),(0,Ue.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=cr("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,Ue.Z)({},"&.".concat(ih.multiple),t.multiple)]}})(ah),ch=function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)((0,Ue.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})},uh=cr("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]}})(ch),lh=o.forwardRef((function(e,t){var n=e.className,r=e.disabled,i=e.error,a=e.IconComponent,c=e.inputRef,u=e.variant,l=void 0===u?"standard":u,d=(0,We.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,Er.jsxs)(o.Fragment,{children:[(0,Er.jsx)(sh,(0,s.Z)({ownerState:f,className:qe(h.select,n),disabled:r,ref:c||t},d)),e.multiple?null:(0,Er.jsx)(uh,{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],c=a[1];return[r?t:s,o.useCallback((function(e){r||c(e)}),[])]};function hh(e){return Ar("MuiSelect",e)}var ph,vh=wr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),gh=["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=cr("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,Ue.Z)({},"&.".concat(vh.select),t.select),(0,Ue.Z)({},"&.".concat(vh.select),t[n.variant]),(0,Ue.Z)({},"&.".concat(vh.error),t.error),(0,Ue.Z)({},"&.".concat(vh.multiple),t.multiple)]}})(ah,(0,Ue.Z)({},"&.".concat(vh.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),yh=cr("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]}})(ch),bh=cr("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 Ah(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 kh=o.forwardRef((function(e,t){var n,r=e["aria-describedby"],i=e["aria-label"],a=e.autoFocus,c=e.autoWidth,u=e.children,l=e.className,d=e.defaultOpen,f=e.defaultValue,h=e.disabled,p=e.displayEmpty,v=e.error,g=void 0!==v&&v,m=e.IconComponent,y=e.inputRef,b=e.labelId,A=e.MenuProps,w=void 0===A?{}:A,k=e.multiple,C=e.name,_=e.onBlur,x=e.onChange,E=e.onClose,S=e.onFocus,I=e.onOpen,T=e.open,D=e.readOnly,O=e.renderValue,N=e.SelectDisplayProps,P=void 0===N?{}:N,L=e.tabIndex,M=e.value,j=e.variant,R=void 0===j?"standard":j,B=(0,We.Z)(e,gh),Z=fh({controlled:M,default:f,name:"Select"}),F=(0,rt.Z)(Z,2),z=F[0],V=F[1],H=fh({controlled:T,default:d,name:"Select"}),U=(0,rt.Z)(H,2),W=U[0],Q=U[1],q=o.useRef(null),G=o.useRef(null),K=o.useState(null),X=(0,rt.Z)(K,2),Y=X[0],J=X[1],$=o.useRef(null!=T).current,ee=o.useState(),te=(0,rt.Z)(ee,2),ne=te[0],re=te[1],ie=_u(t,y),oe=o.useCallback((function(e){G.current=e,e&&J(e)}),[]),ae=null==Y?void 0:Y.parentNode;o.useImperativeHandle(ie,(function(){return{focus:function(){G.current.focus()},node:q.current,value:z}}),[z]),o.useEffect((function(){d&&W&&Y&&!$&&(re(c?null:ae.clientWidth),G.current.focus())}),[Y,c]),o.useEffect((function(){a&&G.current.focus()}),[a]),o.useEffect((function(){if(b){var e=Ad(G.current).getElementById(b);if(e){var t=function(){getSelection().isCollapsed&&G.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[b]);var se,ce,ue=function(e,t){e?I&&I(t):E&&E(t),$||(re(c?null:ae.clientWidth),Q(e))},le=o.Children.toArray(u),de=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(k){n=Array.isArray(z)?z.slice():[];var r=z.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),z!==n&&(V(n),x)){var i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:C}}),x(o,e)}k||ue(!1,t)}}},fe=null!==Y&&W;delete B["aria-invalid"];var he=[],pe=!1;(nd({value:z})||p)&&(O?se=O(z):pe=!0);var ve=le.map((function(e){if(!o.isValidElement(e))return null;var t;if(k){if(!Array.isArray(z))throw new Error(it(2));t=z.some((function(t){return Ah(t,e.props.value)})),t&&pe&&he.push(e.props.children)}else(t=Ah(z,e.props.value))&&pe&&(ce=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=k?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,c=e.onHandleColor,u=e.checkedIcon,l=e.uncheckedIcon,d=e.checkedHandleIcon,f=e.uncheckedHandleIcon,h=e.boxShadow,p=e.activeBoxShadow,v=e.height,g=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"]),b=this.state,A=b.h,w=b.N,k=b.j,C={position:"relative",display:"inline-block",textAlign:"left",opacity:n?.5:1,direction:"ltr",borderRadius:v/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"},_={height:v,width:g,margin:Math.max(0,(this.t-v)/2),position:"relative",background:rp(A,this.i,this.o,i,a),borderRadius:"number"==typeof m?m:v/2,cursor:n?"default":"pointer",WebkitTransition:w?null:"background 0.25s",MozTransition:w?null:"background 0.25s",transition:w?null:"background 0.25s"},x={height:v,width:Math.min(1.5*v,g-(this.t+v)/2+1),position:"relative",opacity:(A-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"},E={height:v,width:Math.min(1.5*v,g-(this.t+v)/2+1),position:"absolute",opacity:1-(A-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(A,this.i,this.o,s,c),display:"inline-block",cursor:n?"default":"pointer",borderRadius:"number"==typeof m?m-1:"50%",position:"absolute",transform:"translateX("+A+"px)",top:Math.max(0,(v-this.t)/2),outline:0,boxShadow:k?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-(A-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"},T={height:this.t,width:this.t,opacity:Math.max(2*((A-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:C},o.createElement("div",{className:"react-switch-bg",style:_,onClick:n?null:this.T,onMouseDown:function(e){return e.preventDefault()}},u&&o.createElement("div",{style:x},u),l&&o.createElement("div",{style:E},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:T},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"],cp=["children"],up=o.createContext({}),lp=!0;function dp(e){for(var t,n,r,i=e.count,a=void 0===i?1:i,s=e.wrapper,c=e.className,u=e.containerClassName,l=e.containerTestId,d=e.circle,f=void 0!==d&&d,h=e.style,p=(0,ap.Z)(e,sp),v=o.useContext(up),g=(0,op.Z)({},p),m=0,y=Object.entries(p);ma&&S===E-1){var T=null!==(n=I.width)&&void 0!==n?n:"100%",D=a%1,O="number"===typeof T?T*D:"calc(".concat(T," * ").concat(D,")");I=(0,op.Z)((0,op.Z)({},I),{},{width:O})}var N=o.createElement("span",{className:C,style:I,key:S},"\u200c");_?x.push(N):x.push(o.createElement(o.Fragment,{key:S},N,o.createElement("br",null)))}return o.createElement("span",{className:u,"data-testid":l,"aria-live":"polite","aria-busy":null!==(r=w.enableAnimation)&&void 0!==r?r:lp},s?x.map((function(e,t){return o.createElement(s,{key:t},e)})):x)}function fp(e){var t=e.children,n=(0,ap.Z)(e,cp);return o.createElement(up.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 vp=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=pp),o||(o=[]);++a0&&r(c)?n>1?e(c,n-1,r,i,o):fo(o,c):i||(o[o.length]=c)}return o};var gp=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,c=t===t,u=Oa(t);if(!s&&!u&&!o&&e>t||o&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!u&&e=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index};var bp=function(e,t,n){t=t.length?Zr(t,(function(e){return ho(e)?function(t){return Qa(t,1===e.length?e[0]:e)}:e})):[Ja];var r=-1;t=Zr(t,Bo(ns));var i=as(e,(function(e,n,i){return{criteria:Zr(t,(function(t){return t(e)})),index:++r,value:e}}));return gp(i,(function(e,t){return yp(e,t,n)}))},Ap=dc((function(e,t){if(null==e)return[];var n=t.length;return n>1&&fc(e,t[0],t[1])?t=[]:n>2&&fc(t[0],t[1],t[2])&&(t=[t[0]]),bp(e,vp(t,1),[])})),wp=n(54097);var kp=o.createContext(null);function Cp(){return o.useContext(kp)}var _p="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var xp=function(e){var t=e.children,n=e.theme,r=Cp(),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[_p]=null!==r),e}),[n,r]);return(0,Er.jsx)(kp.Provider,{value:i,children:t})},Ep={};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,Ue.Z)({},e,o)):o;return r?function(){return a}:a}return e?(0,s.Z)({},t,(0,Ue.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(Ep),o=Cp()||Ep,a=Sp(r,i,n),s=Sp(r,o,n,!0);return(0,Er.jsx)(xp,{theme:s,children:(0,Er.jsx)(Te.Provider,{value:a,children:t})})},Tp=["theme"];function Dp(e){var t=e.theme,n=(0,We.Z)(e,Tp),r=t[ir];return(0,Er.jsx)(Ip,(0,s.Z)({},n,{themeId:r?ir:void 0,theme:r||t}))}function Op(e){return Ar("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),Mp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jp=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=cr(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],c="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,")"):xn(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,")"):xn(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,")"):xn(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:c,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,Ue.Z)(t,"&.".concat(Np.focusVisible),(0,s.Z)({},"contained"===o.variant&&{boxShadow:(i.vars||i).shadows[6]})),(0,Ue.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(xn(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,Ue.Z)(t,"&.".concat(Np.focusVisible),{boxShadow:"none"}),(0,Ue.Z)(t,"&:active",{boxShadow:"none"}),(0,Ue.Z)(t,"&.".concat(Np.disabled),{boxShadow:"none"}),t)})),Bp=cr("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},jp(t))})),Zp=cr("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},jp(t))})),Fp=o.forwardRef((function(e,t){var n=o.useContext(Pp),r=o.useContext(Lp),i=pr({props:ur(n,e),name:"MuiButton"}),a=i.children,c=i.color,u=void 0===c?"primary":c,l=i.component,d=void 0===l?"button":l,f=i.className,h=i.disabled,p=void 0!==h&&h,v=i.disableElevation,g=void 0!==v&&v,m=i.disableFocusRipple,y=void 0!==m&&m,b=i.endIcon,A=i.focusVisibleClassName,w=i.fullWidth,k=void 0!==w&&w,C=i.size,_=void 0===C?"medium":C,x=i.startIcon,E=i.type,S=i.variant,I=void 0===S?"text":S,T=(0,We.Z)(i,Mp),D=(0,s.Z)({},i,{color:u,component:d,disabled:p,disableElevation:g,disableFocusRipple:y,fullWidth:k,size:_,type:E,variant:I}),O=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,i=e.size,o=e.variant,a=e.classes,c=$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,c)}(D),N=x&&(0,Er.jsx)(Bp,{className:O.startIcon,ownerState:D,children:x}),P=b&&(0,Er.jsx)(Zp,{className:O.endIcon,ownerState:D,children:b}),L=r||"";return(0,Er.jsxs)(Rp,(0,s.Z)({ownerState:D,className:qe(n.className,O.root,f,L),component:d,disabled:p,focusRipple:!y,focusVisibleClassName:qe(O.focusVisible,A),ref:t,type:E},T,{classes:O,children:[N,a,P]}))})),zp=Fp;var Vp=function(e,t){return vp(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,c=tn("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(sn);return o.forwardRef((function(e,r){var o=fr(n),u=Jt(e),l=u.className,d=u.component,f=void 0===d?"div":d,h=(0,We.Z)(u,Wp);return(0,Er.jsx)(c,(0,s.Z)({as:f,ref:r,className:Up(l,a?a(i):i),theme:t&&o[t]||o},h))}))}({themeId:ir,defaultTheme:Qp,defaultClassName:"MuiBox-root",generateClassName:yr.generate}),Gp=qp;function Kp(e){return Ar("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=cr(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,Ue.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,Ue.Z)(t,"&.".concat(Xp.selected),{opacity:1}),(0,Ue.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,Ue.Z)(n,"&.".concat(Xp.selected),{color:(i.vars||i).palette.primary.main}),(0,Ue.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,Ue.Z)(r,"&.".concat(Xp.selected),{color:(i.vars||i).palette.secondary.main}),(0,Ue.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,c=n.disableFocusRipple,u=void 0!==c&&c,l=n.fullWidth,d=n.icon,f=n.iconPosition,h=void 0===f?"top":f,p=n.indicator,v=n.label,g=n.onChange,m=n.onClick,y=n.onFocus,b=n.selected,A=n.selectionFollowsFocus,w=n.textColor,k=void 0===w?"inherit":w,C=n.value,_=n.wrapped,x=void 0!==_&&_,E=(0,We.Z)(n,Yp),S=(0,s.Z)({},n,{disabled:a,disableFocusRipple:u,selected:b,icon:!!d,iconPosition:h,label:!!v,fullWidth:l,textColor:k,wrapped:x}),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,c=e.disabled;return $t({root:["root",o&&a&&"labelIcon","textColor".concat(Yl(n)),r&&"fullWidth",i&&"wrapped",s&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]},Kp,t)}(S),T=d&&v&&o.isValidElement(d)?o.cloneElement(d,{className:qe(I.iconWrapper,d.props.className)}):d;return(0,Er.jsxs)(Jp,(0,s.Z)({focusRipple:!u,className:qe(I.root,r),ref:t,role:"tab","aria-selected":b,disabled:a,onClick:function(e){!b&&g&&g(e,C),m&&m(e)},onFocus:function(e){A&&!b&&g&&g(e,C),y&&y(e)},ownerState:S,tabIndex:b?0:-1},E,{children:["top"===h||"start"===h?(0,Er.jsxs)(o.Fragment,{children:[T,v]}):(0,Er.jsxs)(o.Fragment,{children:[v,T]}),p]}))})),ev=$p,tv=Object.prototype.hasOwnProperty;var nv,rv=function(e){if(null==e)return!0;if($o(e)&&(ho(e)||"string"==typeof e||"function"==typeof e.splice||No(e)||Uo(e)||So(e)))return!e.length;var t=ba(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Go(e))return!Jo(e).length;for(var n in e)if(tv.call(e,n))return!1;return!0};function iv(){if(nv)return nv;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),nv="reverse",e.scrollLeft>0?nv="default":(e.scrollLeft=1,0===e.scrollLeft&&(nv="negative")),document.body.removeChild(e),nv}function ov(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(iv()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function av(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var sv=["onChange"],cv={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var uv=Th((0,Er.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),lv=Th((0,Er.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function dv(e){return Ar("MuiTabScrollButton",e)}var fv=wr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hv=["className","slots","slotProps","direction","orientation","disabled"],pv=cr(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,Ue.Z)({width:40,flexShrink:0,opacity:.8},"&.".concat(fv.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),vv=o.forwardRef((function(e,t){var n,r,i=pr({props:e,name:"MuiTabScrollButton"}),o=i.className,a=i.slots,c=void 0===a?{}:a,u=i.slotProps,l=void 0===u?{}:u,d=i.direction,f=(0,We.Z)(i,hv),h="rtl"===vr().direction,p=(0,s.Z)({isRtl:h},i),v=function(e){var t=e.classes;return $t({root:["root",e.orientation,e.disabled&&"disabled"]},dv,t)}(p),g=null!=(n=c.StartScrollButtonIcon)?n:uv,m=null!=(r=c.EndScrollButtonIcon)?r:lv,y=xd({elementType:g,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),b=xd({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return(0,Er.jsx)(pv,(0,s.Z)({component:"div",className:qe(v.root,o),ref:t,role:null,ownerState:p,tabIndex:null},f,{children:"left"===d?(0,Er.jsx)(g,(0,s.Z)({},y)):(0,Er.jsx)(m,(0,s.Z)({},b))}))})),gv=vv;function mv(e){return Ar("MuiTabs",e)}var yv=wr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bv=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Av=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},wv=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},kv=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)}},Cv=cr("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,Ue.Z)({},"& .".concat(yv.scrollButtons),t.scrollButtons),(0,Ue.Z)({},"& .".concat(yv.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,Ue.Z)({},"& .".concat(yv.scrollButtons),(0,Ue.Z)({},n.breakpoints.down("sm"),{display:"none"})))})),_v=cr("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"})})),xv=cr("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"})})),Ev=cr("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})})),Sv=cr((function(e){var t=e.onChange,n=(0,We.Z)(e,sv),r=o.useRef(),i=o.useRef(null),a=function(){r.current=i.current.offsetHeight-i.current.clientHeight};return bl((function(){var e=Fd((function(){var e=r.current;a(),e!==r.current&&t(r.current)})),n=zd(i.current);return n.addEventListener("resize",e),function(){e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){a(),t(r.current)}),[t]),(0,Er.jsx)("div",(0,s.Z)({style:cv,ref:i},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Iv={},Tv=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiTabs"}),r=vr(),i="rtl"===r.direction,a=n["aria-label"],c=n["aria-labelledby"],u=n.action,l=n.centered,d=void 0!==l&&l,f=n.children,h=n.className,p=n.component,v=void 0===p?"div":p,g=n.allowScrollButtonsMobile,m=void 0!==g&&g,y=n.indicatorColor,b=void 0===y?"primary":y,A=n.onChange,w=n.orientation,k=void 0===w?"horizontal":w,C=n.ScrollButtonComponent,_=void 0===C?gv:C,x=n.scrollButtons,E=void 0===x?"auto":x,S=n.selectionFollowsFocus,I=n.slots,T=void 0===I?{}:I,D=n.slotProps,O=void 0===D?{}:D,N=n.TabIndicatorProps,P=void 0===N?{}:N,L=n.TabScrollButtonProps,M=void 0===L?{}:L,j=n.textColor,R=void 0===j?"primary":j,B=n.value,Z=n.variant,F=void 0===Z?"standard":Z,z=n.visibleScrollbar,V=void 0!==z&&z,H=(0,We.Z)(n,bv),U="scrollable"===F,W="vertical"===k,Q=W?"scrollTop":"scrollLeft",q=W?"top":"left",G=W?"bottom":"right",K=W?"clientHeight":"clientWidth",X=W?"height":"width",Y=(0,s.Z)({},n,{component:v,allowScrollButtonsMobile:m,indicatorColor:b,orientation:k,vertical:W,scrollButtons:E,textColor:R,variant:F,visibleScrollbar:V,fixed:!U,hideScrollbar:U&&!V,scrollableX:U&&!W,scrollableY:U&&W,centered:d&&!U,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"]},mv,e.classes)}(Y),$=xd({elementType:T.StartScrollButtonIcon,externalSlotProps:O.startScrollButtonIcon,ownerState:Y}),ee=xd({elementType:T.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(Iv),ae=(0,rt.Z)(oe,2),se=ae[0],ce=ae[1],ue=o.useState(!1),le=(0,rt.Z)(ue,2),de=le[0],fe=le[1],he=o.useState(!1),pe=(0,rt.Z)(he,2),ve=pe[0],ge=pe[1],me=o.useState(!1),ye=(0,rt.Z)(me,2),be=ye[0],Ae=ye[1],we=o.useState({overflow:"hidden",scrollbarWidth:0}),ke=(0,rt.Z)(we,2),Ce=ke[0],_e=ke[1],xe=new Map,Ee=o.useRef(null),Se=o.useRef(null),Ie=function(){var e,t,n=Ee.current;if(n){var i=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:ov(n,r.direction),scrollWidth:n.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}if(n&&!1!==B){var o=Se.current.children;if(o.length>0){var a=o[xe.get(B)];0,t=a?a.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Te=Iu((function(){var e,t,n=Ie(),r=n.tabsMeta,o=n.tabMeta,a=0;if(W)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 c=(e={},(0,Ue.Z)(e,t,a),(0,Ue.Z)(e,X,o?o[X]:0),e);if(isNaN(se[t])||isNaN(se[X]))ce(c);else{var u=Math.abs(se[t]-c[t]),l=Math.abs(se[X]-c[X]);(u>=1||l>=1)&&ce(c)}})),De=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?av:o,s=r.duration,c=void 0===s?300:s,u=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===u&&(u=o);var s=Math.min(1,(o-u)/c);t[e]=a(s)*(n-l)+l,s>=1?requestAnimationFrame((function(){i(null)})):requestAnimationFrame(r)}}))}(Q,Ee.current,e,{duration:r.transitions.duration.standard}):Ee.current[Q]=e},Oe=function(e){var t=Ee.current[Q];W?t+=e:(t+=e*(i?-1:1),t*=i&&"reverse"===iv()?-1:1),De(t)},Ne=function(){for(var e=Ee.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())},Me=o.useCallback((function(e){_e({overflow:null,scrollbarWidth:e})}),[]),je=Iu((function(e){var t=Ie(),n=t.tabsMeta,r=t.tabMeta;if(r&&n)if(r[q]n[G]){var o=n[Q]+(r[G]-n[G]);De(o,{animation:e})}})),Re=Iu((function(){U&&!1!==E&&Ae(!be)}));o.useEffect((function(){var e,t,n=Fd((function(){Ee.current&&Te()})),r=zd(Ee.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()}}),[Te,Re]),o.useEffect((function(){var e=Array.from(Se.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&U&&!1!==E){var n=e[0],r=e[t-1],i={root:Ee.current,threshold:.99},o=new IntersectionObserver((function(e){fe(!e[0].isIntersecting)}),i);o.observe(n);var a=new IntersectionObserver((function(e){ge(!e[0].isIntersecting)}),i);return a.observe(r),function(){o.disconnect(),a.disconnect()}}}),[U,E,be,null==f?void 0:f.length]),o.useEffect((function(){ie(!0)}),[]),o.useEffect((function(){Te()})),o.useEffect((function(){je(Iv!==se)}),[je,se]),o.useImperativeHandle(u,(function(){return{updateIndicator:Te,updateScrollButtons:Re}}),[Te,Re]);var Be=(0,Er.jsx)(Ev,(0,s.Z)({},P,{className:qe(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;xe.set(t,Ze);var n=t===B;return Ze+=1,o.cloneElement(e,(0,s.Z)({fullWidth:"fullWidth"===F,indicator:n&&!re&&Be,selected:n,selectionFollowsFocus:S,onChange:A,textColor:R,value:t},1!==Ze||!1!==B||e.props.tabIndex?{}:{tabIndex:0}))})),ze=function(){var e={};e.scrollbarSizeListener=U?(0,Er.jsx)(Sv,{onChange:Me,className:qe(J.scrollableX,J.hideScrollbar)}):null;var t=U&&("auto"===E&&(de||ve)||!0===E);return e.scrollButtonStart=t?(0,Er.jsx)(_,(0,s.Z)({slots:{StartScrollButtonIcon:T.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:$},orientation:k,direction:i?"right":"left",onClick:Pe,disabled:!de},M,{className:qe(J.scrollButtons,M.className)})):null,e.scrollButtonEnd=t?(0,Er.jsx)(_,(0,s.Z)({slots:{EndScrollButtonIcon:T.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:k,direction:i?"left":"right",onClick:Le,disabled:!ve},M,{className:qe(J.scrollButtons,M.className)})):null,e}();return(0,Er.jsxs)(Cv,(0,s.Z)({className:qe(J.root,h),ownerState:Y,ref:t,as:v},H,{children:[ze.scrollButtonStart,ze.scrollbarSizeListener,(0,Er.jsxs)(_v,{className:J.scroller,ownerState:Y,style:(0,Ue.Z)({overflow:Ce.overflow},W?"margin".concat(i?"Left":"Right"):"marginBottom",V?void 0:-Ce.scrollbarWidth),ref:Ee,children:[(0,Er.jsx)(xv,{"aria-label":a,"aria-labelledby":c,"aria-orientation":"vertical"===k?"vertical":null,className:J.flexContainer,ownerState:Y,onKeyDown:function(e){var t=Se.current,n=Ad(t).activeElement;if("tab"===n.getAttribute("role")){var r="horizontal"===k?"ArrowLeft":"ArrowUp",o="horizontal"===k?"ArrowRight":"ArrowDown";switch("horizontal"===k&&i&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),kv(t,n,wv);break;case o:e.preventDefault(),kv(t,n,Av);break;case"Home":e.preventDefault(),kv(t,null,Av);break;case"End":e.preventDefault(),kv(t,null,wv)}}},ref:Se,role:"tablist",children:Fe}),re&&Be]}),ze.scrollButtonEnd]}))})),Dv=Tv,Ov=n(75192),Nv=n.n(Ov);function Pv(){return Pv=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 Mv=(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=Lv(e,["color","size"]);return o.createElement("svg",Pv({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"}))}));Mv.propTypes={color:Nv().string,size:Nv().oneOfType([Nv().string,Nv().number])},Mv.displayName="ArrowDown";var jv=Mv;function Rv(){return Rv=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 Zv=(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=Bv(e,["color","size"]);return o.createElement("svg",Rv({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"}))}));Zv.propTypes={color:Nv().string,size:Nv().oneOfType([Nv().string,Nv().number])},Zv.displayName="ExternalLink";var Fv=Zv;function zv(e){return Ar("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 Vv=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Hv=cr("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})})),Uv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wv={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Qv=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiTypography"}),r=function(e){return Wv[e]||e}(n.color),i=Jt((0,s.Z)({},n,{color:r})),o=i.align,a=void 0===o?"inherit":o,c=i.className,u=i.component,l=i.gutterBottom,d=void 0!==l&&l,f=i.noWrap,h=void 0!==f&&f,p=i.paragraph,v=void 0!==p&&p,g=i.variant,m=void 0===g?"body1":g,y=i.variantMapping,b=void 0===y?Uv:y,A=(0,We.Z)(i,Vv),w=(0,s.Z)({},i,{align:a,color:r,className:c,component:u,gutterBottom:d,noWrap:h,paragraph:v,variant:m,variantMapping:b}),k=u||(v?"p":b[m]||Uv[m])||"span",C=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"]},zv,a)}(w);return(0,Er.jsx)(Hv,(0,s.Z)({as:k,ref:t,ownerState:w,className:qe(C.root,c)},A))})),qv=Qv;function Gv(e){return Ar("MuiLink",e)}var Kv=wr("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Xv={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Yv=function(e){var t=e.theme,n=e.ownerState,r=function(e){return Xv[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)"):xn(i,.4)},Jv=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],$v=cr(qv,{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:Yv({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&(0,Ue.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(Kv.focusVisible),{outline:"auto"}))})),eg=o.forwardRef((function(e,t){var n=pr({props:e,name:"MuiLink"}),r=n.className,i=n.color,a=void 0===i?"primary":i,c=n.component,u=void 0===c?"a":c,l=n.onBlur,d=n.onFocus,f=n.TypographyClasses,h=n.underline,p=void 0===h?"always":h,v=n.variant,g=void 0===v?"inherit":v,m=n.sx,y=(0,We.Z)(n,Jv),b=ju(),A=b.isFocusVisibleRef,w=b.onBlur,k=b.onFocus,C=b.ref,_=o.useState(!1),x=(0,rt.Z)(_,2),E=x[0],S=x[1],I=_u(t,C),T=(0,s.Z)({},n,{color:a,component:u,focusVisible:E,underline:p,variant:g}),D=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"]},Gv,t)}(T);return(0,Er.jsx)($v,(0,s.Z)({color:a,className:qe(D.root,r),classes:f,component:u,onBlur:function(e){w(e),!1===A.current&&S(!1),l&&l(e)},onFocus:function(e){k(e),!0===A.current&&S(!0),d&&d(e)},ref:I,ownerState:T,variant:g,sx:[].concat((0,He.Z)(Object.keys(Xv).includes(a)?[]:[{color:a}]),(0,He.Z)(Array.isArray(m)?m:[m]))},y))})),tg=eg;function ng(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rg(e){return e instanceof ng(e).Element||e instanceof Element}function ig(e){return e instanceof ng(e).HTMLElement||e instanceof HTMLElement}function og(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ng(e).ShadowRoot||e instanceof ShadowRoot)}var ag=Math.max,sg=Math.min,cg=Math.round;function ug(){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 lg(){return!/^((?!chrome|android).)*safari/i.test(ug())}function dg(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ig(e)&&(i=e.offsetWidth>0&&cg(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&cg(r.height)/e.offsetHeight||1);var a=(rg(e)?ng(e):window).visualViewport,s=!lg()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,l=r.width/i,d=r.height/o;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function fg(e){var t=ng(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function hg(e){return e?(e.nodeName||"").toLowerCase():null}function pg(e){return((rg(e)?e.ownerDocument:e.document)||window.document).documentElement}function vg(e){return dg(pg(e)).left+fg(e).scrollLeft}function gg(e){return ng(e).getComputedStyle(e)}function mg(e){var t=gg(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function yg(e,t,n){void 0===n&&(n=!1);var r=ig(t),i=ig(t)&&function(e){var t=e.getBoundingClientRect(),n=cg(t.width)/e.offsetWidth||1,r=cg(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=pg(t),a=dg(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==hg(t)||mg(o))&&(s=function(e){return e!==ng(e)&&ig(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:fg(e);var t}(t)),ig(t)?((c=dg(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=vg(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function bg(e){var t=dg(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 Ag(e){return"html"===hg(e)?e:e.assignedSlot||e.parentNode||(og(e)?e.host:null)||pg(e)}function wg(e){return["html","body","#document"].indexOf(hg(e))>=0?e.ownerDocument.body:ig(e)&&mg(e)?e:wg(Ag(e))}function kg(e,t){var n;void 0===t&&(t=[]);var r=wg(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=ng(r),a=i?[o].concat(o.visualViewport||[],mg(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(kg(Ag(a)))}function Cg(e){return["table","td","th"].indexOf(hg(e))>=0}function _g(e){return ig(e)&&"fixed"!==gg(e).position?e.offsetParent:null}function xg(e){for(var t=ng(e),n=_g(e);n&&Cg(n)&&"static"===gg(n).position;)n=_g(n);return n&&("html"===hg(n)||"body"===hg(n)&&"static"===gg(n).position)?t:n||function(e){var t=/firefox/i.test(ug());if(/Trident/i.test(ug())&&ig(e)&&"fixed"===gg(e).position)return null;var n=Ag(e);for(og(n)&&(n=n.host);ig(n)&&["html","body"].indexOf(hg(n))<0;){var r=gg(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 Eg="top",Sg="bottom",Ig="right",Tg="left",Dg="auto",Og=[Eg,Sg,Ig,Tg],Ng="start",Pg="end",Lg="clippingParents",Mg="viewport",jg="popper",Rg="reference",Bg=Og.reduce((function(e,t){return e.concat([t+"-"+Ng,t+"-"+Pg])}),[]),Zg=[].concat(Og,[Dg]).reduce((function(e,t){return e.concat([t,t+"-"+Ng,t+"-"+Pg])}),[]),Fg=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zg(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 Vg(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Hg={placement:"bottom",modifiers:[],strategy:"absolute"};function Ug(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Xg(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?qg(i):null,a=i?Gg(i):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(o){case Eg:t={x:s,y:n.y-r.height};break;case Sg:t={x:s,y:n.y+n.height};break;case Ig:t={x:n.x+n.width,y:c};break;case Tg:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=o?Kg(o):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case Ng:t[u]=t[u]-(n[l]/2-r[l]/2);break;case Pg:t[u]=t[u]+(n[l]/2-r[l]/2)}}return t}var Yg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,v=void 0===p?0:p,g="function"===typeof l?l({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Tg,A=Eg,w=window;if(u){var k=xg(n),C="clientHeight",_="clientWidth";if(k===ng(n)&&"static"!==gg(k=pg(n)).position&&"absolute"===s&&(C="scrollHeight",_="scrollWidth"),i===Eg||(i===Tg||i===Ig)&&o===Pg)A=Sg,v-=(d&&k===w&&w.visualViewport?w.visualViewport.height:k[C])-r.height,v*=c?1:-1;if(i===Tg||(i===Eg||i===Sg)&&o===Pg)b=Ig,h-=(d&&k===w&&w.visualViewport?w.visualViewport.width:k[_])-r.width,h*=c?1:-1}var x,E=Object.assign({position:s},u&&Yg),S=!0===l?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:cg(n*i)/i||0,y:cg(r*i)/i||0}}({x:h,y:v},ng(n)):{x:h,y:v};return h=S.x,v=S.y,c?Object.assign({},E,((x={})[A]=y?"0":"",x[b]=m?"0":"",x.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",x)):Object.assign({},E,((t={})[A]=y?v+"px":"",t[b]=m?h+"px":"",t.transform="",t))}var $g={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];ig(i)&&hg(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}),{});ig(r)&&hg(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=Zg.reduce((function(e,n){return e[n]=function(e,t,n){var r=qg(e),i=[Tg,Eg].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,[Tg,Ig].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],c=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),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&&og(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===Mg?am(function(e,t){var n=ng(e),r=pg(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=lg();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+vg(e),y:c}}(e,n)):rg(t)?function(e,t){var n=dg(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=pg(e),r=fg(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=ag(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ag(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+vg(e),c=-r.scrollTop;return"rtl"===gg(i||n).direction&&(s+=ag(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(pg(e)))}function cm(e,t,n,r){var i="clippingParents"===t?function(e){var t=kg(Ag(e)),n=["absolute","fixed"].indexOf(gg(e).position)>=0&&ig(e)?xg(e):e;return rg(n)?t.filter((function(e){return rg(e)&&om(e,n)&&"body"!==hg(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=ag(i.top,t.top),t.right=sg(i.right,t.right),t.bottom=sg(i.bottom,t.bottom),t.left=ag(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 um(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,c=void 0===s?Lg:s,u=n.rootBoundary,l=void 0===u?Mg:u,d=n.elementContext,f=void 0===d?jg:d,h=n.altBoundary,p=void 0!==h&&h,v=n.padding,g=void 0===v?0:v,m=um("number"!==typeof g?g:lm(g,Og)),y=f===jg?Rg:jg,b=e.rects.popper,A=e.elements[p?y:f],w=cm(rg(A)?A:A.contextElement||pg(e.elements.popper),c,l,a),k=dg(e.elements.reference),C=Xg({reference:k,element:b,strategy:"absolute",placement:i}),_=am(Object.assign({},b,C)),x=f===jg?_:k,E={top:w.top-x.top+m.top,bottom:x.bottom-w.bottom+m.bottom,left:w.left-x.left+m.left,right:x.right-w.right+m.right},S=e.modifiersData.offset;if(f===jg&&S){var I=S[i];Object.keys(E).forEach((function(e){var t=[Ig,Sg].indexOf(e)>=0?1:-1,n=[Eg,Sg].indexOf(e)>=0?"y":"x";E[e]+=I[n]*t}))}return E}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,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,g=t.options.placement,m=qg(g),y=c||(m===g||!p?[nm(g)]:function(e){if(qg(e)===Dg)return[];var t=nm(e);return[im(e),t,im(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(qg(n)===Dg?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,c=n.allowedAutoPlacements,u=void 0===c?Zg:c,l=Gg(r),d=l?s?Bg:Bg.filter((function(e){return Gg(e)===l})):Og,f=d.filter((function(e){return u.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})[qg(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),A=t.rects.reference,w=t.rects.popper,k=new Map,C=!0,_=b[0],x=0;x=0,D=T?"width":"height",O=dm(t,{placement:E,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),N=T?I?Ig:Tg:I?Sg:Eg;A[D]>w[D]&&(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,C=!1;break}k.set(E,L)}if(C)for(var M=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},j=p?3:1;j>0;j--){if("break"===M(j))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function hm(e,t,n){return ag(e,sg(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,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,h=void 0===f||f,p=n.tetherOffset,v=void 0===p?0:p,g=dm(t,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),m=qg(t.placement),y=Gg(t.placement),b=!y,A=Kg(m),w="x"===A?"y":"x",k=t.modifiersData.popperOffsets,C=t.rects.reference,_=t.rects.popper,x="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E="number"===typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(o){var T,D="y"===A?Eg:Tg,O="y"===A?Sg:Ig,N="y"===A?"height":"width",P=k[A],L=P+g[D],M=P-g[O],j=h?-_[N]/2:0,R=y===Ng?C[N]:_[N],B=y===Ng?-_[N]:-C[N],Z=t.elements.arrow,F=h&&Z?bg(Z):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=z[D],H=z[O],U=hm(0,C[N],F[N]),W=b?C[N]/2-j-U-V-E.mainAxis:R-U-V-E.mainAxis,Q=b?-C[N]/2+j+U+H+E.mainAxis:B+U+H+E.mainAxis,q=t.elements.arrow&&xg(t.elements.arrow),G=q?"y"===A?q.clientTop||0:q.clientLeft||0:0,K=null!=(T=null==S?void 0:S[A])?T:0,X=P+Q-K,Y=hm(h?sg(L,P+W-K-G):L,P,h?ag(M,X):M);k[A]=Y,I[A]=Y-P}if(s){var J,$="x"===A?Eg:Tg,ee="x"===A?Sg:Ig,te=k[w],ne="y"===w?"height":"width",re=te+g[$],ie=te-g[ee],oe=-1!==[Eg,Tg].indexOf(m),ae=null!=(J=null==S?void 0:S[w])?J:0,se=oe?re:te-C[ne]-_[ne]-ae+E.altAxis,ce=oe?te+C[ne]+_[ne]-ae-E.altAxis:ie,ue=h&&oe?function(e,t,n){var r=hm(e,t,n);return r>n?n:r}(se,te,ce):hm(h?se:re,te,h?ce:ie);k[w]=ue,I[w]=ue-te}t.modifiersData[r]=I}},requiresIfExists:["offset"]};var vm={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=qg(n.placement),c=Kg(s),u=[Tg,Ig].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(e,t){return um("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lm(e,Og))}(i.padding,n),d=bg(o),f="y"===c?Eg:Tg,h="y"===c?Sg:Ig,p=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],v=a[c]-n.rects.reference[c],g=xg(o),m=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,y=p/2-v/2,b=l[f],A=m-d[u]-l[h],w=m/2-d[u]/2+y,k=hm(b,w,A),C=c;n.modifiersData[r]=((t={})[C]=k,t.centerOffset=k-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 gm(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[Eg,Ig,Sg,Tg].some((function(t){return e[t]>=0}))}var ym=Wg({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,c=ng(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,Qg)})),s&&c.addEventListener("resize",n.update,Qg),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Qg)})),s&&c.removeEventListener("resize",n.update,Qg)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Xg({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,c=void 0===s||s,u={placement:qg(t.placement),variation:Gg(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,Jg(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Jg(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},$g,em,fm,pm,vm,{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}),c=gm(a,r),u=gm(s,i,o),l=mm(c),d=mm(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]});function bm(e){return Ar("MuiPopper",e)}wr("MuiPopper",["root"]);var Am={disableDefaultClasses:!1},wm=o.createContext(Am);var km=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Cm=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function _m(e){return"function"===typeof e?e():e}function xm(e){return void 0!==e.nodeType}var Em=function(){return $t({root:["root"]},function(e){var t=o.useContext(wm).disableDefaultClasses;return function(n){return t?"":e(n)}}(bm))},Sm={},Im=o.forwardRef((function(e,t){var n,r=e.anchorEl,i=e.children,a=e.direction,c=e.disablePortal,u=e.modifiers,l=e.open,d=e.placement,f=e.popperOptions,h=e.popperRef,p=e.slotProps,v=void 0===p?{}:p,g=e.slots,m=void 0===g?{}:g,y=e.TransitionProps,b=(0,We.Z)(e,km),A=o.useRef(null),w=Cu(A,t),k=o.useRef(null),C=Cu(k,h),_=o.useRef(C);xu((function(){_.current=C}),[C]),o.useImperativeHandle(h,(function(){return k.current}),[]);var x=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),E=o.useState(x),S=(0,rt.Z)(E,2),I=S[0],T=S[1],D=o.useState(_m(r)),O=(0,rt.Z)(D,2),N=O[0],P=O[1];o.useEffect((function(){k.current&&k.current.forceUpdate()})),o.useEffect((function(){r&&P(_m(r))}),[r]),xu((function(){if(N&&l){var e=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;T(t.placement)}}];null!=u&&(e=e.concat(u)),f&&null!=f.modifiers&&(e=e.concat(f.modifiers));var t=ym(N,A.current,(0,s.Z)({placement:x},f,{modifiers:e}));return _.current(t),function(){t.destroy(),_.current(null)}}}),[N,c,u,l,f,x]);var L={placement:I};null!==y&&(L.TransitionProps=y);var M=Em(),j=null!=(n=m.root)?n:"div",R=xd({elementType:j,externalSlotProps:v.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:M.root});return(0,Er.jsx)(j,(0,s.Z)({},R,{children:"function"===typeof i?i(L):i}))})),Tm=o.forwardRef((function(e,t){var n,r=e.anchorEl,i=e.children,a=e.container,c=e.direction,u=void 0===c?"ltr":c,l=e.disablePortal,d=void 0!==l&&l,f=e.keepMounted,h=void 0!==f&&f,p=e.modifiers,v=e.open,g=e.placement,m=void 0===g?"bottom":g,y=e.popperOptions,b=void 0===y?Sm:y,A=e.popperRef,w=e.style,k=e.transition,C=void 0!==k&&k,_=e.slotProps,x=void 0===_?{}:_,E=e.slots,S=void 0===E?{}:E,I=(0,We.Z)(e,Cm),T=o.useState(!0),D=(0,rt.Z)(T,2),O=D[0],N=D[1];if(!h&&!v&&(!C||O))return null;if(a)n=a;else if(r){var P=_m(r);n=P&&xm(P)?Vl(P).body:Vl(null).body}var L=v||!h||C&&!O?void 0:"none",M=C?{in:v,onEnter:function(){N(!1)},onExited:function(){N(!0)}}:void 0;return(0,Er.jsx)(hf,{disablePortal:d,container:n,children:(0,Er.jsx)(Im,(0,s.Z)({anchorEl:r,direction:u,disablePortal:d,modifiers:p,ref:t,open:C?!O:v,placement:m,popperOptions:b,popperRef:A,slotProps:x,slots:S},I,{style:(0,s.Z)({position:"fixed",top:0,left:0,display:L},w),TransitionProps:M,children:i}))})})),Dm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Om=cr(Tm,{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,c=i.components,u=i.componentsProps,l=i.container,d=i.disablePortal,f=i.keepMounted,h=i.modifiers,p=i.open,v=i.placement,g=i.popperOptions,m=i.popperRef,y=i.transition,b=i.slots,A=i.slotProps,w=(0,We.Z)(i,Dm),k=null!=(n=null==b?void 0:b.root)?n:null==c?void 0:c.Root,C=(0,s.Z)({anchorEl:o,container:l,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:v,popperOptions:g,popperRef:m,transition:y},w);return(0,Er.jsx)(Om,(0,s.Z)({as:a,direction:null==r?void 0:r.direction,slots:{root:k},slotProps:null!=A?A:u},C,{ref:t}))})),Pm=Nm,Lm=bd;function Mm(e){return Ar("MuiTooltip",e)}var jm=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 Bm=cr(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,Ue.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(jm.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,Ue.Z)(t,'&[data-popper-placement*="top"] .'.concat(jm.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,Ue.Z)(t,'&[data-popper-placement*="right"] .'.concat(jm.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,Ue.Z)(t,'&[data-popper-placement*="left"] .'.concat(jm.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=cr("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:xn(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,Ue.Z)(t,".".concat(jm.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,Ue.Z)(t,".".concat(jm.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,Ue.Z)(t,".".concat(jm.popper,'[data-popper-placement*="top"] &'),(0,s.Z)({transformOrigin:"center bottom",marginBottom:"14px"},i.touch&&{marginBottom:"24px"})),(0,Ue.Z)(t,".".concat(jm.popper,'[data-popper-placement*="bottom"] &'),(0,s.Z)({transformOrigin:"center top",marginTop:"14px"},i.touch&&{marginTop:"24px"})),t))})),Fm=cr("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:xn(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),zm=!1,Vm=null,Hm={x:0,y:0};function Um(e,t){return function(n){t&&t(n),e(n)}}var Wm=o.forwardRef((function(e,t){var n,r,i,a,c,u,l,d,f,h,p,v,g,m,y,b,A,w,k,C=pr({props:e,name:"MuiTooltip"}),_=C.arrow,x=void 0!==_&&_,E=C.children,S=C.components,I=void 0===S?{}:S,T=C.componentsProps,D=void 0===T?{}:T,O=C.describeChild,N=void 0!==O&&O,P=C.disableFocusListener,L=void 0!==P&&P,M=C.disableHoverListener,j=void 0!==M&&M,R=C.disableInteractive,B=void 0!==R&&R,Z=C.disableTouchListener,F=void 0!==Z&&Z,z=C.enterDelay,V=void 0===z?100:z,H=C.enterNextDelay,U=void 0===H?0:H,W=C.enterTouchDelay,Q=void 0===W?700:W,q=C.followCursor,G=void 0!==q&&q,K=C.id,X=C.leaveDelay,Y=void 0===X?0:X,J=C.leaveTouchDelay,$=void 0===J?1500:J,ee=C.onClose,te=C.onOpen,ne=C.open,re=C.placement,ie=void 0===re?"bottom":re,oe=C.PopperComponent,ae=C.PopperProps,se=void 0===ae?{}:ae,ce=C.slotProps,ue=void 0===ce?{}:ce,le=C.slots,de=void 0===le?{}:le,fe=C.title,he=C.TransitionComponent,pe=void 0===he?Xd:he,ve=C.TransitionProps,ge=(0,We.Z)(C,Rm),me=o.isValidElement(E)?E:(0,Er.jsx)("span",{children:E}),ye=vr(),be="rtl"===ye.direction,Ae=o.useState(),we=(0,rt.Z)(Ae,2),ke=we[0],Ce=we[1],_e=o.useState(null),xe=(0,rt.Z)(_e,2),Ee=xe[0],Se=xe[1],Ie=o.useRef(!1),Te=B||G,De=o.useRef(),Oe=o.useRef(),Ne=o.useRef(),Pe=o.useRef(),Le=fh({controlled:ne,default:!1,name:"Tooltip",state:"open"}),Me=(0,rt.Z)(Le,2),je=Me[0],Re=Me[1],Be=je,Ze=Lm(K),Fe=o.useRef(),ze=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(De.current),clearTimeout(Oe.current),clearTimeout(Ne.current),ze()}}),[ze]);var Ve=function(e){clearTimeout(Vm),zm=!0,Re(!0),te&&!Be&&te(e)},He=Iu((function(e){clearTimeout(Vm),Vm=setTimeout((function(){zm=!1}),800+Y),Re(!1),ee&&Be&&ee(e),clearTimeout(De.current),De.current=setTimeout((function(){Ie.current=!1}),ye.transitions.duration.shortest)})),Ue=function(e){Ie.current&&"touchstart"!==e.type||(ke&&ke.removeAttribute("title"),clearTimeout(Oe.current),clearTimeout(Ne.current),V||zm&&U?Oe.current=setTimeout((function(){Ve(e)}),zm?U:V):Ve(e))},Qe=function(e){clearTimeout(Oe.current),clearTimeout(Ne.current),Ne.current=setTimeout((function(){He(e)}),Y)},Ge=ju(),Ke=Ge.isFocusVisibleRef,Xe=Ge.onBlur,Ye=Ge.onFocus,Je=Ge.ref,$e=o.useState(!1),et=(0,rt.Z)($e,2)[1],tt=function(e){Xe(e),!1===Ke.current&&(et(!1),Qe(e))},nt=function(e){ke||Ce(e.currentTarget),Ye(e),!0===Ke.current&&(et(!0),Ue(e))},it=function(e){Ie.current=!0;var t=me.props;t.onTouchStart&&t.onTouchStart(e)},ot=Ue,at=Qe;o.useEffect((function(){if(Be)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||He(e)}}),[He,Be]);var st=_u(me.ref,Je,Ce,t);fe||0===fe||(Be=!1);var ct=o.useRef(),ut={},lt="string"===typeof fe;N?(ut.title=Be||!lt||j?null:fe,ut["aria-describedby"]=Be?Ze:null):(ut["aria-label"]=lt?fe:null,ut["aria-labelledby"]=Be&&!lt?Ze:null);var dt=(0,s.Z)({},ut,ge,me.props,{className:qe(ge.className,me.props.className),onTouchStart:it,ref:st},G?{onMouseMove:function(e){var t=me.props;t.onMouseMove&&t.onMouseMove(e),Hm={x:e.clientX,y:e.clientY},ct.current&&ct.current.update()}}:{});var ft={};F||(dt.onTouchStart=function(e){it(e),clearTimeout(Ne.current),clearTimeout(De.current),ze(),Fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Pe.current=setTimeout((function(){document.body.style.WebkitUserSelect=Fe.current,Ue(e)}),Q)},dt.onTouchEnd=function(e){me.props.onTouchEnd&&me.props.onTouchEnd(e),ze(),clearTimeout(Ne.current),Ne.current=setTimeout((function(){He(e)}),$)}),j||(dt.onMouseOver=Um(ot,dt.onMouseOver),dt.onMouseLeave=Um(at,dt.onMouseLeave),Te||(ft.onMouseOver=ot,ft.onMouseLeave=at)),L||(dt.onFocus=Um(nt,dt.onFocus),dt.onBlur=Um(tt,dt.onBlur),Te||(ft.onFocus=nt,ft.onBlur=tt));var ht=o.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Ee),options:{element:Ee,padding:4}}];return null!=(e=se.popperOptions)&&e.modifiers&&(t=t.concat(se.popperOptions.modifiers)),(0,s.Z)({},se.popperOptions,{modifiers:t})}),[Ee,se]),pt=(0,s.Z)({},C,{isRtl:be,arrow:x,disableInteractive:Te,placement:ie,PopperComponentProp:oe,touch:Ie.current}),vt=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"]},Mm,t)}(pt),gt=null!=(n=null!=(r=de.popper)?r:I.Popper)?n:Bm,mt=null!=(i=null!=(a=null!=(c=de.transition)?c:I.Transition)?a:pe)?i:Xd,yt=null!=(u=null!=(l=de.tooltip)?l:I.Tooltip)?u:Zm,bt=null!=(d=null!=(f=de.arrow)?f:I.Arrow)?d:Fm,At=wd(gt,(0,s.Z)({},se,null!=(h=ue.popper)?h:D.popper,{className:qe(vt.popper,null==se?void 0:se.className,null==(p=null!=(v=ue.popper)?v:D.popper)?void 0:p.className)}),pt),wt=wd(mt,(0,s.Z)({},ve,null!=(g=ue.transition)?g:D.transition),pt),kt=wd(yt,(0,s.Z)({},null!=(m=ue.tooltip)?m:D.tooltip,{className:qe(vt.tooltip,null==(y=null!=(b=ue.tooltip)?b:D.tooltip)?void 0:y.className)}),pt),Ct=wd(bt,(0,s.Z)({},null!=(A=ue.arrow)?A:D.arrow,{className:qe(vt.arrow,null==(w=null!=(k=ue.arrow)?k:D.arrow)?void 0:w.className)}),pt);return(0,Er.jsxs)(o.Fragment,{children:[o.cloneElement(me,dt),(0,Er.jsx)(gt,(0,s.Z)({as:null!=oe?oe:Pm,placement:ie,anchorEl:G?{getBoundingClientRect:function(){return{top:Hm.y,left:Hm.x,right:Hm.x,bottom:Hm.y,width:0,height:0}}}:ke,popperRef:ct,open:!!ke&&Be,id:Ze,transition:!0},ft,At,{popperOptions:ht,children:function(e){var t=e.TransitionProps;return(0,Er.jsx)(mt,(0,s.Z)({timeout:ye.transitions.duration.shorter},t,wt,{children:(0,Er.jsxs)(yt,(0,s.Z)({},kt,{children:[fe,x?(0,Er.jsx)(bt,(0,s.Z)({},Ct,{ref:Se})):null]}))}))}}))]})})),Qm=Wm;function qm(e){return Ar("MuiLinearProgress",e)}wr("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);var Gm,Km,Xm,Ym,Jm,$m,ey,ty,ny,ry,iy,oy,ay=["className","color","value","valueBuffer","variant"],sy=Rr(ey||(ey=Gm||(Gm=(0,Ru.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"])))),cy=Rr(ty||(ty=Km||(Km=(0,Ru.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"])))),uy=Rr(ny||(ny=Xm||(Xm=(0,Ru.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):En(e.palette[t].main,.5)},dy=cr("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=cr("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"})}),jr(ry||(ry=Ym||(Ym=(0,Ru.Z)(["\n animation: "," 3s infinite linear;\n "]))),uy)),hy=cr("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)&&jr(iy||(iy=Jm||(Jm=(0,Ru.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),sy)})),py=cr("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)&&jr(oy||(oy=$m||($m=(0,Ru.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),cy)})),vy=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,c=n.valueBuffer,u=n.variant,l=void 0===u?"indeterminate":u,d=(0,We.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"]},qm,t)}(f),p=vr(),v={},g={bar1:{},bar2:{}};if("determinate"===l||"buffer"===l)if(void 0!==a){v["aria-valuenow"]=Math.round(a),v["aria-valuemin"]=0,v["aria-valuemax"]=100;var m=a-100;"rtl"===p.direction&&(m=-m),g.bar1.transform="translateX(".concat(m,"%)")}else 0;if("buffer"===l)if(void 0!==c){var y=(c||0)-100;"rtl"===p.direction&&(y=-y),g.bar2.transform="translateX(".concat(y,"%)")}else 0;return(0,Er.jsxs)(dy,(0,s.Z)({className:qe(h.root,r),ownerState:f,role:"progressbar"},v,{ref:t},d,{children:["buffer"===l?(0,Er.jsx)(fy,{className:h.dashed,ownerState:f}):null,(0,Er.jsx)(hy,{className:h.bar1,ownerState:f,style:g.bar1}),"determinate"===l?null:(0,Er.jsx)(py,{className:h.bar2,ownerState:f,style:g.bar2})]}))})),gy=vy,my=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],yy=cr("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)"):xn(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%"}})})),by=cr("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)")})})),Ay=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,c=n.component,u=void 0===c?o?"div":"hr":c,l=n.flexItem,d=void 0!==l&&l,f=n.light,h=void 0!==f&&f,p=n.orientation,v=void 0===p?"horizontal":p,g=n.role,m=void 0===g?"hr"!==u?"separator":void 0:g,y=n.textAlign,b=void 0===y?"center":y,A=n.variant,w=void 0===A?"fullWidth":A,k=(0,We.Z)(n,my),C=(0,s.Z)({},n,{absolute:i,component:u,flexItem:d,light:h,orientation:v,role:m,textAlign:b,variant:w}),_=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"]},Al,r)}(C);return(0,Er.jsx)(yy,(0,s.Z)({as:u,className:qe(_.root,a),role:m,ref:t,ownerState:C},k,{children:o?(0,Er.jsx)(by,{className:_.wrapper,ownerState:C,children:o}):null}))}));Ay.muiSkipListHighlight=!0;var wy=Ay,ky=(n(15712),n(24973),"https://js.stripe.com/v3"),Cy=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,_y="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",xy=null,Ey=function(e){return null!==xy||(xy=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(_y),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(ky,'"]')),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)}))),xy},Sy=Promise.resolve().then((function(){return Ey(null)})),Iy=!1;Sy.catch((function(e){Iy||console.warn(e)}));n(1921);var Ty=wr("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var Dy=wr("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);cr(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,")"):xn(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,")"):xn(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,Ue.Z)({},"&.".concat(Dy.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),Th((0,Er.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"),Th((0,Er.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Th((0,Er.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"),Th((0,Er.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"),Th((0,Er.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"),cr(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?En:Sn,i="light"===t.palette.mode?Sn:En,o=n.color||n.severity;return(0,s.Z)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===n.variant&&(0,Ue.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(Ty.icon),t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}),o&&"outlined"===n.variant&&(0,Ue.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(Ty.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)}))})),cr("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),cr("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),cr("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}),Th((0,Er.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"]);cr("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,c=n.variant;return[(0,Ue.Z)({},"& .".concat(Oy.avatar),t.avatar),(0,Ue.Z)({},"& .".concat(Oy.avatar),t["avatar".concat(Yl(s))]),(0,Ue.Z)({},"& .".concat(Oy.avatar),t["avatarColor".concat(Yl(r))]),(0,Ue.Z)({},"& .".concat(Oy.icon),t.icon),(0,Ue.Z)({},"& .".concat(Oy.icon),t["icon".concat(Yl(s))]),(0,Ue.Z)({},"& .".concat(Oy.icon),t["iconColor".concat(Yl(i))]),(0,Ue.Z)({},"& .".concat(Oy.deleteIcon),t.deleteIcon),(0,Ue.Z)({},"& .".concat(Oy.deleteIcon),t["deleteIcon".concat(Yl(s))]),(0,Ue.Z)({},"& .".concat(Oy.deleteIcon),t["deleteIconColor".concat(Yl(r))]),(0,Ue.Z)({},"& .".concat(Oy.deleteIcon),t["deleteIcon".concat(Yl(c),"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[c],t["".concat(c).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,Ue.Z)(t,"&.".concat(Oy.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,Ue.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,Ue.Z)(t,"& .".concat(Oy.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,Ue.Z)(t,"& .".concat(Oy.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,Ue.Z)(t,"& .".concat(Oy.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,Ue.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,Ue.Z)(t,"& .".concat(Oy.deleteIcon),(0,s.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):xn(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)"):xn(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)"):xn(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,Ue.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,"))"):xn(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&(0,Ue.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,"))"):xn(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,Ue.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,"))"):xn(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,Ue.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),r.clickable&&"default"!==r.color&&(0,Ue.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,Ue.Z)(t,"&.".concat(Oy.clickable,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,Ue.Z)(t,"&.".concat(Oy.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,Ue.Z)(t,"& .".concat(Oy.avatar),{marginLeft:4}),(0,Ue.Z)(t,"& .".concat(Oy.avatarSmall),{marginLeft:2}),(0,Ue.Z)(t,"& .".concat(Oy.icon),{marginLeft:4}),(0,Ue.Z)(t,"& .".concat(Oy.iconSmall),{marginLeft:2}),(0,Ue.Z)(t,"& .".concat(Oy.deleteIcon),{marginRight:5}),(0,Ue.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)"):xn(r.palette[i.color].main,.7))},(0,Ue.Z)(n,"&.".concat(Oy.clickable,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):xn(r.palette[i.color].main,r.palette.action.hoverOpacity)}),(0,Ue.Z)(n,"&.".concat(Oy.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / ").concat(r.vars.palette.action.focusOpacity,")"):xn(r.palette[i.color].main,r.palette.action.focusOpacity)}),(0,Ue.Z)(n,"& .".concat(Oy.deleteIcon),{color:r.vars?"rgba(".concat(r.vars.palette[i.color].mainChannel," / 0.7)"):xn(r.palette[i.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[i.color].main}}),n))})),cr("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),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).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 My(){return My=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 By(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 Uy(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 Wy=Fe(Lr.Text,{target:"ewjez2x0"})("margin:0;",(function(e){return e.$span&&"display: inline"}),";");function Qy(e){return"bold"===e?Lr.FontWeight.Bold:Lr.FontWeight.Normal}function qy(e,t){var n=e.stigg.typography;switch(t){case"h1":return Qy(n.h1.fontWeight);case"h3":return Qy(n.h2.fontWeight);case"h6":return Qy(n.h3.fontWeight);case"body1":return Qy(n.body.fontWeight);case"caption":return Qy(n.caption.fontWeight);default:return Lr.FontWeight.Normal}}var Gy=(0,o.forwardRef)((function(e,t){var n=e.children,r=e.span,i=e.style,a=e.fontWeight,s=e.variant,c=void 0===s?"body1":s,u=e.color,l=void 0===u?"primary":u,d=e.overrideColor,f=e.bold,h=jy(e,Hy),p=De(),v=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}}(c),g="typography-level-"+v,m=e.className?e.className+" "+g:g;return o.createElement(Wy,Object.assign({ref:t},h,{className:m,style:i,level:v,color:d||Uy(p,l),fontWeight:null!=a?a:f?Lr.FontWeight.Bold:qy(p,c),$span:r}),n)})),Ky=["displayNameOverride"];var Xy=Fe(Gy,{target:"e1mddeqb2"})({name:"ti75j2",styles:"margin:0"}),Yy=Fe("div",{target:"e1mddeqb1"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),Jy=Fe(zy,{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,c=e.isCustom,u=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(c)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 u?Vy(a,s,null==n?void 0:n.unitsPlural):null==n?void 0:n.displayName}function eb(e){var t=e.displayNameOverride,n=$y(jy(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 tb,nb=Fe("div",{target:"e1yz7zcg0"})({name:"budh8k",styles:"display:flex;flex-direction:column;gap:16px"});function rb(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})),c=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(eb,{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(nb,{className:"stigg-plan-entitlements-container"},o.createElement(Gy,{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)),c,n.entitlements.filter((function(e){return!(e.hiddenFromWidgets||[]).includes(r.WidgetType.Paywall)})).map((function(e){var t;return o.createElement(eb,{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"}(tb||(tb={}));var ib,ob,ab=function(e){return{left:"flex-start",center:"center",right:"flex-end"}[e]},sb=function(e){var t,n,r,i=vu()((null==e||null==(t=e.palette)?void 0:t.primary)||"#327EEE"),o=vu()((null==e||null==(n=e.palette)||null==(r=n.text)?void 0:r.primary)||"#001E6C"),a=vu()("#4CAF50"),s=vu()("#f44336"),c={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 hc(c,e)},cb=function(e){return mu().utc(e).format("MMMM Do, yyyy")};function ub(e){var t=e.scheduledUpdate,n=e.subscriptionPrices,i=e.billingPeriodRange,a=e.options,s=void 0===a?{}:a;if(!t)return{};var c=s.withDate,u=s.postfix,l=void 0===u?"":u;switch(t.subscriptionScheduleType){case r.SubscriptionScheduleType.Downgrade:var d,f=c;yu(f)&&null!=i&&i.end&&(f=!mu()(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 ",cb(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())," ",c?o.createElement(o.Fragment,null,"on ",cb(t.scheduledExecutionTime)):l,".")};case r.SubscriptionScheduleType.UnitAmount:var v=t.scheduleVariables,g=Br(ss(n,"feature")).find((function(e){return e.id===v.featureId}))||{},m=g.featureUnits,y=g.featureUnitsPlural,b=1===v.newUnitAmount?m:y;return{line1:o.createElement(o.Fragment,null,"Your subscription will be updated to ",o.createElement("b",null,v.newUnitAmount)," ",b," ",c?o.createElement(o.Fragment,null,"on ",cb(t.scheduledExecutionTime)):l,"."),line2:"Until then you still have access to your current "+m+" count."};default:return{}}}function lb(e){return e.feature&&(1!=e.feature.unitQuantity?e.feature.unitsPlural:e.feature.units)||""}function db(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 fb(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 hb(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],c=s.feature.featureId,u=s.tiers[0];if(i[c])u=(null==(a=s.tiers)?void 0:a.find((function(e){return e.upTo===i[c].upTo})))||u;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)===c}));l&&(u=db(s.tiers,l.feature.unitQuantity||1))}var d={};return d[c]=u,d}return{}}!function(e){e[e.Lower=-1]="Lower",e[e.Equal=0]="Equal",e[e.Higher=1]="Higher"}(ib||(ib={}));var pb,vb=Fe(hu(),{target:"e199qof96"})({name:"1a2afmv",styles:"margin-left:10px"}),gb=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&&jr(ob||(ob=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}),";}"),mb=Fe(Gy,{target:"e199qof94"})({name:"h05omw",styles:"margin:0;font-size:15px"}),yb=Fe(Gy,{target:"e199qof93"})({name:"1cnls12",styles:"min-height:87px"}),bb=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;"),Ab=Fe(Gy,{target:"e199qof91"})({name:"1etgg0o",styles:"margin-top:8px;margin-bottom:17px;min-height:20px"}),wb=Fe("div",{target:"e199qof90"})("display:flex;flex-direction:column;margin-top:4px;align-self:",(function(e){var t=e.theme;return ab(t.stigg.layout.ctaAlignment)}),";width:100%;");function kb(e){var t=e.isNextPlan,n=e.customer,i=e.plan,a=e.billingPeriod,s=e.isCustomerOnTrial,c=e.onPlanSelected,u=e.paywallLocale,l=e.withTrialLeftRow,d=e.currentSubscription,f=e.selectedTierByFeature,h=De(),p=(0,o.useState)(!1),v=p[0],g=p[1],m=u.planCTAButton,y=m.currentPlan,b=m.custom,A=m.downgrade,w=m.startTrial,k=m.upgrade,C=m.startNew,_=m.switchToBillingPeriod,x=m.cancelScheduledUpdate,E=pi(A)?A(i):A,S=pi(k)?k(i):k,I={title:n?i.isLowerThanCurrentPlan?E:S:C,disabled:!1,intentionType:i.isLowerThanCurrentPlan?tb.DOWNGRADE_PLAN:s?tb.UPGRADE_TRIAL_TO_PAID:tb.UPGRADE_PLAN},T=i.pricingType===r.PricingType.Custom,D=ub({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 ib.Equal;var n=t.prices.find((function(e){return e.pricingModel==r.BillingModel.PerUnit&&e.tiersMode}));if(!n)return ib.Equal;var i=n.feature,o=i.featureId,a=i.unitQuantity;if(!a)return ib.Equal;var s=e[o];return s?s.upToa?ib.Higher:ib.Equal:ib.Equal}(f,d);switch(O){case ib.Lower:I.intentionType=tb.CHANGE_UNIT_QUANTITY,I.title=E;break;case ib.Higher:I.intentionType=tb.CHANGE_UNIT_QUANTITY,I.title=S;break;default:I.title=y,I.disabled=!0}}else I.title=_(a),I.intentionType=tb.CHANGE_BILLING_PERIOD}else T&&(I.title=b,I.intentionType=tb.REQUEST_CUSTOM_PLAN_ACCESS);else I.title=w(i),I.intentionType=tb.START_TRIAL;t&&i.scheduledUpdate&&(I.disabled=!1,I.title=x,I.intentionType=tb.CANCEL_SCHEDULED_UPDATES);var N=v||I.disabled;return o.createElement(o.Fragment,null,o.createElement(wb,{className:"stigg-paywall-plan-button-layout"},t&&D?o.createElement(yb,{color:"secondary",variant:"body1",className:"stigg-paywall-schedule-update-text"},D," ",o.createElement(bb,{color:"secondary",onClick:function(){g(!0),Promise.resolve(c(I.intentionType)).finally((function(){return g(!1)}))}},I.title)):o.createElement(o.Fragment,null,o.createElement(gb,{className:"stigg-paywall-plan-button","data-testid":"paywall-card-cta-"+i.displayName,disabled:N,$disabled:N,onClick:function(){g(!0),Promise.resolve(c(I.intentionType)).finally((function(){return g(!1)}))}},o.createElement(mb,{className:"stigg-paywall-plan-button-text",variant:"h6",color:"primary.main"},I.title),v&&o.createElement(vb,{color:h.stigg.palette.text.disabled,loading:!0,size:16})),l?o.createElement(Ab,{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 Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&!(null==C||!C.additionalChargesMayApply),x=!A||c.pricingType===r.PricingType.Custom,E=null;w?E=o.createElement(Ub,{text:"Next plan"}):l&&m.highlightChip&&(E=o.createElement(Zb,{className:"stigg-highlight-badge"},o.createElement(Fb,{className:"stigg-highlight-badge-text",color:"white",bold:!0},m.highlightChip)));var S=o.useState(hb(c,u,d,{})),I=S[0],T=S[1];(0,o.useEffect)((function(){T(hb(c,u,d,I))}),[u,d,c,I]);return o.createElement(Mb,{className:Ve()("stigg-plan-offering-container",{"stigg-current-plan":c.isCurrentCustomerPlan}),$isHighlighted:l,$isCurrentPlan:c.isCurrentCustomerPlan},E,o.createElement(zb,{className:"stigg-header-wrapper"},o.createElement(jb,{className:"stigg-plan-header",variant:"h3"},c.displayName),f&&o.createElement(Bb,{className:"stigg-plan-description",variant:"h6",color:"secondary"},c.description),o.createElement(Lb,{showStartingAt:_,withUnitPriceRow:n,withStartingAtRow:b,withTiersRow:i,selectedTierByFeature:I,setSelectedTierByFeature:T,plan:c,billingPeriod:u,paywallLocale:m,locale:y,hasAnnuallyPrice:p,hasMonthlyPrice:h}),x?o.createElement(kb,{isNextPlan:w,customer:s,plan:c,currentSubscription:d,billingPeriod:u,isCustomerOnTrial:v,onPlanSelected:function(e){var t=Object.keys(I).map((function(e){return{featureId:e,quantity:I[e].upTo}}));return g(e,t)},paywallLocale:m,withTrialLeftRow:a,selectedTierByFeature:I}):o.createElement("div",{style:{height:"66px"}}),o.createElement(Rb,{className:"stigg-plan-header-divider"})),o.createElement(rb,{plan:c,billingPeriod:u,paywallLocale:m}))}var Qb,qb=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;"),Gb=Fe(Gy,{target:"esqa6i41"})({name:"zvmrfm",styles:"margin:0 8px"}),Kb=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 Xb(e){var t=e.discount,n=e.disabled;return o.createElement(Gy,{variant:"h6",color:n?"disabled":"primary",className:"stigg-discount-rate-text"},t,"% off")}function Yb(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(qb,{className:"stigg-period-picker-container"},o.createElement(Gb,{variant:"h6",className:"stigg-monthly-period-text",color:a?"primary":"disabled"},"Monthly"),o.createElement(Kb,{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(Gb,{variant:"h6",className:"stigg-annual-period-text",color:a?"disabled":"primary"},"Annual"),0!==t&&o.createElement(Xb,{discount:t,disabled:a}))}function Jb(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 $b(e){return e.reduce((function(e,t){var n=function(e,t){if(!yu(e)&&!yu(t)){var n=t/12;return Math.round((e-n)/e*100)}return null}(Jb(t,r.BillingPeriod.Monthly),Jb(t,r.BillingPeriod.Annually));return n&&(e=Math.max(e,n)),e}),0)}function eA(){return eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&!(null==r||!r.additionalChargesMayApply)}))}),[s,b]),C=(0,o.useMemo)((function(){return b.some((function(e){return!!Eb(e,s,f,h,m).unit}))}),[s,m,h,f,b]),_=(0,o.useMemo)((function(){return!w&&b.some((function(e){var t=hb(e,s,i,{});return Object.values(t).length>0}))}),[s,i,w,b]),x=b.some((function(e){return e.isCurrentCustomerPlan&&e.trialDaysLeft}));return o.createElement(uA,{className:"stigg-paywall-container"},o.createElement(lA,{className:"stigg-paywall-layout"},o.createElement(Yb,{onBillingPeriodChanged:c,selectedBillingPeriod:s,availableBillingPeriods:u,discountRate:v}),o.createElement(cA,{className:"stigg-paywall-plans-layout"},b.map((function(e){return o.createElement(Wb,{withUnitPriceRow:C,withTiersRow:_,withTrialLeftRow:x,key:e.id,shouldShowDescriptionSection:g,hasMonthlyPrice:m,hasAnnuallyPrice:y,plan:e,withStartingAtRow:k,currentSubscription:i,billingPeriod:s,isHighlighted:e.id===a,isCustomerOnTrial:l,onPlanSelected:function(t,n){return A(e,t,n)},paywallLocale:f,locale:h,customer:n,isCustomerInCustomPlan:w})}))),o.createElement(oA,{source:"paywall",align:"end",style:{marginTop:16},showWatermark:p.isWidgetWatermarkEnabled})))};var fA=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 c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(O){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,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 D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===v)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 c=l(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.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=u;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",v={};function g(){}function m(){}function y(){}var b={};c(b,o,(function(){return this}));var A=Object.getPrototypeOf,w=A&&A(A(T([])));w&&w!==n&&r.call(w,o)&&(b=w);var k=y.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.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){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.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 x(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,x(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;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,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function E(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(E,this),this.reset(!0)}function T(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 c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){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),v}},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:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})),hA=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 yA(e,t,n){var i,o=e.flatMap((function(e){return e.pricePoints})).map((function(e){return e.billingPeriod})),a=ps(o),s=xs(o);if(n&&s.includes(n))i=n;else if(t){var c=t.find((function(e){return e.status==r.SubscriptionStatus.Active}));c&&c.prices.length>0&&(i=null==c?void 0:c.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 bA(e,t){if(void 0===t&&(t="px"),e)return""+e+t}function AA(e,t){if(!t)return e;switch(t){case r.FontWeight.Normal:return"normal";case r.FontWeight.Bold:return"bold";default:return"normal"}}function wA(e,t){var n,r,i,o,a,s,c,u,l,d,f,h,p,v,g;return{fontFamilyUrl:(null==e?void 0:e.fontFamily)||void 0,h1:{fontSize:bA((null==e||null==(n=e.h1)?void 0:n.fontSize)||(null==t||null==(r=t.h1)?void 0:r.fontSize)),fontWeight:AA("bold",(null==e||null==(i=e.h1)?void 0:i.fontWeight)||(null==t||null==(o=t.h1)?void 0:o.fontWeight))},h2:{fontSize:bA((null==e||null==(a=e.h2)?void 0:a.fontSize)||(null==t||null==(s=t.h2)?void 0:s.fontSize)),fontWeight:AA("normal",null==t||null==(c=t.h2)?void 0:c.fontWeight)},h3:{fontSize:bA((null==e||null==(u=e.h3)?void 0:u.fontSize)||(null==t||null==(l=t.h3)?void 0:l.fontSize)),fontWeight:AA("normal",(null==e||null==(d=e.h3)?void 0:d.fontWeight)||(null==t||null==(f=t.h3)?void 0:f.fontWeight))},body:{fontSize:bA((null==e||null==(h=e.body)?void 0:h.fontSize)||(null==t||null==(p=t.body)?void 0:p.fontSize)),fontWeight:AA("normal",(null==e||null==(v=e.body)?void 0:v.fontWeight)||(null==t||null==(g=t.body)?void 0:g.fontWeight))}}}function kA(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 CA(e){var t,n,i,o,a=!0,s=(null==e?void 0:e.find((function(e){return e.status===r.SubscriptionStatus.InTrial})))||null,c=null==(t=s)?void 0:t.plan,u=null!=(n=s)&&n.trialEndDate?(i=s.trialEndDate,mu().utc(i).diff(mu().utc(),"days",!1)+1):void 0;c||(a=!1,s=(null==e?void 0:e.find((function(e){return e.status===r.SubscriptionStatus.Active})))||null,c=null==(o=s)?void 0:o.plan);return{currentSubscription:s,currentPlan:c,isCustomerOnTrial:a,trialDaysLeft:u}}function _A(e,t){var n,i=e||{},o=i.plans,a=i.currency,s=i.configuration,c=i.customer,u=i.activeSubscriptions,l=i.paywallCalculatedPricePoints,d=CA(u),f=d.currentSubscription,h=d.currentPlan,p=d.isCustomerOnTrial,v=d.trialDaysLeft,g=(null==f?void 0:f.scheduledUpdates)||[],m=null==f||null==(n=f.price)?void 0:n.billingPeriod,y=g.find((function(e){return e.subscriptionScheduleType===r.SubscriptionScheduleType.Downgrade})),b=g.find((function(e){return e.subscriptionScheduleType===r.SubscriptionScheduleType.BillingPeriod})),A=Ap(o,(function(e){return e.order})).map((function(e){var t,n=null==c||null==(t=c.eligibleForTrial)?void 0:t.find((function(t){return t.productId===e.product.id})),r=e.id===(null==h?void 0:h.id);return My({},e,{paywallCalculatedPricePoints:null==l?void 0:l.filter((function(t){return t.planId===e.id})),isTriable:!yu(e.defaultTrialConfig)&&(!n||n.eligible),isCurrentCustomerPlan:r,currentCustomerPlanBillingPeriod:m,isUpcomingPlan:!1,trialDaysLeft:v,isNextPlan:function(t){var n,i=null==y?void 0:y.scheduleVariables,o=null==b?void 0:b.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):!(!b||!r)&&o.billingPeriod===t},paywallCurrency:a,scheduledUpdate:y||b})}));if(o&&h){var w,k=h&&(null==o||null==(w=o.find((function(e){return e.id===(null==h?void 0:h.id)})))?void 0:w.order);yu(k)||(A=A.map((function(e){return My({},e,{isLowerThanCurrentPlan:k>e.order})})),t&&(A=A.filter((function(e){return e.order>=k}))))}var C=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:wA(i),layout:{ctaAlignment:kA(null==n?void 0:n.alignment),headerAlignment:kA(null==n?void 0:n.alignment),descriptionAlignment:kA(null==n?void 0:n.alignment),planMaxWidth:bA(null==n?void 0:n.planWidth),planMinWidth:bA(null==n?void 0:n.planWidth),planMargin:bA(null==n?void 0:n.planMargin),planPadding:bA(null==n?void 0:n.planPadding)}}}(s):void 0;return{currentPlan:h,currentSubscription:f,isCustomerOnTrial:p,plans:A,paywallConfiguration:C}}var xA,EA=Fe("div",{target:"e1f7khji6"})({name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"}),SA=Fe(zy,{target:"e1f7khji5"})({name:"o7nnmj",styles:"margin-right:16px"}),IA=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}),";"),TA=Fe("div",{target:"e1f7khji3"})("display:flex;gap:",(function(e){return e.theme.stigg.layout.planMargin}),";flex-wrap:wrap;justify-content:center;"),DA=Fe("div",{target:"e1f7khji2"})({name:"k8xojc",styles:"display:flex;align-items:center;margin-bottom:12px"}),OA=Fe("div",{target:"e1f7khji1"})({name:"xdvdnl",styles:"margin-top:auto"}),NA=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 PA(){return o.createElement(IA,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(DA,null,o.createElement(SA,null),o.createElement(dp,{width:120,borderRadius:4})),o.createElement(DA,null,o.createElement(SA,null),o.createElement(dp,{width:120,borderRadius:4})),o.createElement(DA,null,o.createElement(SA,null),o.createElement(dp,{width:120,borderRadius:4})),o.createElement(OA,null,o.createElement(dp,{height:50,borderRadius:4})))}function LA(){return o.createElement(EA,{className:"stigg-skeleton-loader-container"},o.createElement(NA,{className:"stigg-skeleton-loader-billing-period"},o.createElement(dp,{borderRadius:4})),o.createElement(TA,{className:"stigg-skeleton-loader-plans-container"},o.createElement(PA,null),o.createElement(PA,null),o.createElement(PA,null)))}var MA,jA=function(e){var t=e.externalFontUrl;return o.createElement(Mr,{styles:jr(xA||(xA=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 ")})},RA=Fe("div",{target:"emcdfp60"})((function(e){var t=e.customCss;return t&&jr(MA||(MA=Ry(["\n ","\n "])),t)}),";");function BA(e){var t=mA().theme,n=hc(e,t);return sb(n)}function ZA(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 FA=function(e){var t,n=e.children,r=BA(e.componentTheme),i=function(e){return{primary:{main:e.palette.primary}}}(r),a=nr({palette:i,stigg:r});return o.createElement(Dp,{theme:(t={},t[ir]=a,t)},o.createElement(Ne,{theme:{stigg:r}},o.createElement(RA,{customCss:r.customCss},o.createElement(jA,{externalFontUrl:r.typography.fontFamilyUrl}),o.createElement(wp.ThemeProvider,{theme:{typography:ZA(r)}},n))))};var zA=o.createContext(null);zA.displayName="CustomerPortalContext";var VA=function(){var e=(0,o.useContext)(zA);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 HA(e){var t=e.children,n=e.textOverrides,r=e.theme,i=e.resourceId,a=e.productId,s=mA().customerPortalUpdatedAt,c=function(e){var t=e.resourceId,n=e.productId,r=mA(),i=r.stigg,a=r.customerPortalUpdatedAt,s=(0,o.useState)(!1),c=s[0],u=s[1],l=(0,o.useState)(),d=l[0],f=l[1];return(0,o.useEffect)((function(){var e=function(){var e=Ly(fA.mark((function e(){var r;return fA.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.isCustomerLoaded){e.next=15;break}return e.prev=1,u(!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),pA.error("Failed to load customer portal "+(null==e.t0?void 0:e.t0.message),e.t0);case 12:return e.prev=12,u(!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:c}}({resourceId:i,productId:a}),u=c.customerPortal,l=c.isLoading,d=null!=u&&u.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:wA(n)}}(u.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}}(BA(d),r,null==u?void 0:u.configuration),h=hc({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(FA,{componentTheme:d},o.createElement(zA.Provider,{key:null==s?void 0:s.toString(),value:{customerPortal:u,isLoading:l,textOverrides:h,theme:f,resourceId:i}},t))}var UA,WA=function(e){var t,n=e.productId,i=e.resourceId,a=e.highlightedPlanId,s=e.showOnlyEligiblePlans,c=e.textOverrides,u=e.onPlanSelected,l=e.preferredBillingPeriod,d=e.onBillingPeriodChange,f=e.billingCountryCode,h=(t=zA,!!(0,o.useContext)(t)),p=!1;if(h){var v=VA();p=v.isLoading,i=v.resourceId}var g=function(e){var t=e.productId,n=e.resourceId,i=e.showOnlyEligiblePlans,a=e.billingCountryCode,s=e.preferredBillingPeriod,c=mA(),u=c.stigg,l=c.locale,d=(0,o.useState)(r.BillingPeriod.Annually),f=d[0],h=d[1],p=(0,o.useState)([]),v=p[0],g=p[1],m=(0,o.useState)(null),y=m[0],b=m[1],A=(0,o.useState)(!0),w=A[0],k=A[1];(0,o.useEffect)((function(){var e=function(){var e=Ly(fA.mark((function e(){var r,i,o,c;return fA.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,k(!0),e.next=4,u.waitForInitialization();case 4:return e.next=6,u.getPaywall({productId:t,resourceId:n,billingCountryCode:a});case 6:r=e.sent,i=yA(r.plans,r.activeSubscriptions,s),o=i.availableBillingPeriods,c=i.defaultBillingPeriod,b(r),g(o),h(c),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),pA.error("Failed to load paywall "+(null==e.t0?void 0:e.t0.message),e.t0);case 16:return e.prev=16,k(!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()}),[u,t,u.isCustomerLoaded,a,n]);var C=_A(y,i);return My({customer:(null==y?void 0:y.customer)||null,isLoading:w,selectedBillingPeriod:f,setSelectedBillingPeriod:h,availableBillingPeriods:v,locale:l,configuration:C.paywallConfiguration},C)}({productId:n,resourceId:i,showOnlyEligiblePlans:s,billingCountryCode:f,preferredBillingPeriod:l}),m=g.plans,y=g.customer,b=g.currentSubscription,A=g.isCustomerOnTrial,w=g.isLoading,k=g.selectedBillingPeriod,C=g.setSelectedBillingPeriod,_=g.availableBillingPeriods,x=g.locale,E=g.configuration,S=hc({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"}},c),I=!m||w||p?o.createElement(LA,null):o.createElement(dA,{plans:m,customer:y,currentSubscription:b,selectedBillingPeriod:k,onBillingPeriodChanged:function(e){C(e),d&&d(e)},availableBillingPeriods:_,highlightedPlanId:a,isCustomerOnTrial:A,onPlanSelected:u,paywallLocale:S,locale:x});return h?I:o.createElement(FA,{componentTheme:E},I)},QA=Fe(zp,{target:"emvioms0"})("border-radius:10px;padding:8px 16px;text-transform:none;&,&:hover{border-color:",(function(e){return e.theme.stigg.palette.outlinedRestingBorder}),";}");function qA(){return qA=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=VA(),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(Gy,{color:"secondary"},n.promotionsSubtitle),o.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.createElement(ew,{$borderColor:r.borderColor},o.createElement(Gy,{variant:"body1",bold:!0},"Feature"),o.createElement(Gy,{variant:"body1",bold:!0},"Expiration date")),null==i?void 0:i.map((function(e){return o.createElement(ew,{$borderColor:r.borderColor},o.createElement(Gy,{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(Gy,{variant:"body1",color:"disabled"},e.endDate?mu().utc(e.endDate).format("MMM Do, YYYY"):"None"))}))))}var nw,rw,iw=Fe(Dv,{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(Gp,{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 cw(){return cw=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&!a("addons"),c=t.promotionalEntitlements.length>0&&!a("promotionalEntitlements"),u=(0,o.useState)(s?1:2),l=u[0],d=u[1];return s||c?o.createElement(ow,null,o.createElement(Gp,{sx:{borderBottom:1,borderColor:"divider"}},o.createElement(iw,{value:l,onChange:function(e,t){d(t)}},s?o.createElement(ev,{sx:{textTransform:"none"},value:1,label:o.createElement(wk,{isSelected:1===l,label:r.addonsTabTitle,icon:"Addons"})}):null,c?o.createElement(ev,{sx:{textTransform:"none"},value:2,label:o.createElement(wk,{isSelected:2===l,label:r.promotionsTabTitle,icon:"Promotions"})}):null)),o.createElement(Ak,{value:l,index:1,maxHeight:i.tabMaxHeight},o.createElement($A,null)),o.createElement(Ak,{value:l,index:2,maxHeight:i.tabMaxHeight},o.createElement(tw,null))):null}var Ck=Fe("div",{target:"ejq3grd1"})({name:"1eoy87d",styles:"display:flex;justify-content:space-between"}),_k=Fe("div",{target:"ejq3grd0"})({name:"43cxha",styles:"display:flex;flex-direction:column;gap:32px"});function xk(){return o.createElement(Ck,{className:"stigg-subscription-overview-skeleton-layout"},o.createElement(_k,null,o.createElement(dp,{width:120}),o.createElement(dp,{width:120})),o.createElement(dp,{width:295,height:193}))}function Ek(e){var t=e.scheduleUpdate.targetPackage;return o.createElement(Pr,{container:!0,alignItems:"center"},o.createElement(Pr,null,o.createElement(jv,{color:"#D94052",height:20,className:"stigg-scheduled-updates-arrow-down"})),o.createElement(Pr,{item:!0},o.createElement(Gy,{className:"stigg-scheduled-updates-description",variant:"body1"},"Downgrade to the ",o.createElement("b",null,null==t?void 0:t.displayName)," plan")))}function Sk(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(jv,{color:"#D94052",height:20,className:"stigg-scheduled-updates-arrow-down"})),o.createElement(Pr,{item:!0},o.createElement(Gy,{className:"stigg-scheduled-updates-description",variant:"body1"},"Change from an ",n," to a ",o.createElement("b",null,i)," billing cycle")))}function Ik(e){var t=e.subscription,n=e.scheduleUpdate.scheduleVariables,r=n.newUnitAmount,i=n.featureId,a=Br(ss(t.prices,"feature")).find((function(e){return e.id===i}));if(!a)return null;var s=a.featureUnits,c=a.featureUnitsPlural,u=1===r?s:c;return o.createElement(Pr,{container:!0,alignItems:"flex-start",flexWrap:"nowrap"},o.createElement(Pr,null,o.createElement(jv,{color:"#D94052",height:20,className:"stigg-scheduled-updates-arrow-down"})),o.createElement(Pr,{item:!0},o.createElement(Gy,{className:"stigg-scheduled-updates-description",variant:"body1"},"Reduce the ",o.createElement("b",null,s)," quantity to ",r," ",u)))}function Tk(e){var t=e.scheduleUpdate,n=e.subscription;switch(t.subscriptionScheduleType){case r.SubscriptionScheduleType.Downgrade:return o.createElement(Ek,{scheduleUpdate:t});case r.SubscriptionScheduleType.BillingPeriod:return o.createElement(Sk,{scheduleUpdate:t});case r.SubscriptionScheduleType.UnitAmount:return o.createElement(Ik,{scheduleUpdate:t,subscription:n});default:return null}}var Dk=Fe(Gp,{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;"),Ok=Fe(hu(),{target:"eju957a1"})({name:"158icaa",styles:"margin-left:4px"}),Nk=Fe(Pw,{target:"eju957a0"})("color:",(function(e){return e.theme.stigg.palette.primary}),";path{fill:",(function(e){return e.theme.stigg.palette.primary}),";}");function Pk(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(Gy,{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(Tk,{key:e.subscriptionScheduleType,scheduleUpdate:e,subscription:t})}))))}function Lk(e){var t=e.subscription,n=ub({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(Gy,{className:"stigg-scheduled-updates-title",variant:"body1",color:"primary"},r))),i&&o.createElement(Pr,null,o.createElement(Gy,{className:"stigg-scheduled-updates-subtitle",variant:"body1",color:"secondary"},i)))}function Mk(e){var t=e.subscription,n=e.onCancelScheduledUpdates,r=e.theme,i=e.cancelScheduledUpdatesButtonTitle,a=De(),s=(0,o.useState)(!1),c=s[0],u=s[1],l=t.scheduledUpdates;if(!l||0===l.length)return null;var d=1===l.length;return o.createElement(Dk,{$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(yk,{icon:"ScheduleBox",svgPathColor:r.iconsColor,svgRectColor:r.iconsBackgroundColor})),o.createElement(Pr,{item:!0,flex:1},d?o.createElement(Lk,{subscription:t}):o.createElement(Pk,{subscription:t})),!!n&&o.createElement(Pr,{item:!0},o.createElement(QA,{variant:"outlined",onClick:function(){u(!0),Promise.resolve(n(t)).finally((function(){return u(!1)}))}},c?o.createElement(Ok,{loading:!0,size:16,color:a.stigg.palette.text.disabled}):o.createElement(Nk,{style:{display:"flex",marginRight:4},className:"stigg-scheduled-updates-cancel-update-button-icon"}),o.createElement(Gy,{variant:"body1",color:"primary.main",className:"stigg-scheduled-updates-cancel-update-button"},i)))))}var jk=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 Rk(e){var t=e.billingPeriod,n=e.rangeEnd,i=e.amount,a=e.currency;return o.createElement(o.Fragment,null,o.createElement(Gy,{variant:"h6"},"Next estimated bill"),o.createElement(Gy,{variant:"h1"},xb({amount:i,currency:a,maximumFractionDigits:2})),o.createElement(Gy,{variant:"body1",color:"secondary"},"Billed ",t===r.BillingPeriod.Monthly?"monthly":"annually"," on"," ",o.createElement(Gy,{variant:"body1",span:!0,color:"primary"},mu().utc(n).format("MMM Do, YYYY"))),o.createElement(Gy,{variant:"body1",color:"secondary"},"* Additional tax rates may apply"))}function Bk(e){var t=e.description;return o.createElement(o.Fragment,null,o.createElement(Gy,{variant:"h6",color:"secondary"},"No upcoming bill"),o.createElement(Gy,{variant:"body1",color:"secondary"},t))}var Zk=Fe("div",{target:"e1ftdtst1"})({name:"1nocm2b",styles:"display:flex;flex-direction:column;align-items:left;gap:8px"}),Fk=Fe(zp,{target:"e1ftdtst0"})({name:"1l28f5r",styles:"width:fit-content;&.MuiButton-root{padding:0;&:hover{background:none;}}"});function zk(e){var t=e.onContactSupport,n=e.label,r=e.linkLabel,i=o.createElement(Gy,{color:t?"primary.main":"secondary"},r);return o.createElement(Zk,{className:"stigg-contact-support-layout"},o.createElement(Gy,{className:"stigg-contact-support-label",color:"secondary"},n),t?o.createElement(Fk,{className:"stigg-contact-support-button",style:{textTransform:"none"},variant:"text",onClick:t},i):i)}var Vk,Hk,Uk=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 Wk(e){var t,n,i,a,s=e.subscription,c=e.theme,u=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(Bk,{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(Bk,{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(Bk,{description:"You\u2019re on a free trial of the "+s.planName+" plan, so you don\u2019t have any upcoming charges"});else{var p,v,g,m,y=null==(p=s.prices)||null==(v=p[0])?void 0:v.billingPeriod,b=null==(g=s.billingPeriodRange)?void 0:g.end,A=null==(m=s.totalPrice)?void 0:m.total;y&&b&&A&&(a=o.createElement(Rk,{billingPeriod:y,rangeEnd:b,amount:A.amount,currency:A.currency}))}else d===r.PricingType.Custom&&(a=o.createElement(zk,{onContactSupport:l,label:u.contactSupportTitle,linkLabel:u.contactSupportLink}));return o.createElement(Uk,{className:"stigg-subscription-total-price-layout",$borderColor:c.borderColor},a)}function Qk(){return Qk=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 c(e,t){return u(e)||l(e,t)||d(e,t)||h()}function u(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(c){s=!0,i=c}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||C(e))return e;throw new Error(t)},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S;if(k(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}},D=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 M=function(e,t){if(!e)return null;e.on,e.session;var n=s(e,O);return r(r({},n),t||e.session())},j="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 T(n,j)}),[n]),a=c(t.useState(null),2),s=a[0],u=a[1],l=c(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",u))}))):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",u))})))})),function(){e=!1}}),[o,d,r,u]);var v=A(n);t.useEffect((function(){null!==v&&v!==n&&console.warn("Unsupported prop change on CustomCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[v,n]);var g=A(r);t.useEffect((function(){var e,t;if(d.customCheckoutSdk){!r.clientSecret||w(g)||x(r.clientSecret,g.clientSecret)||console.warn("Unsupported prop change: options.client_secret is not a mutable property.");var n=null===g||void 0===g||null===(e=g.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&&!x(i,n)&&d.customCheckoutSdk.changeAppearance(i)}}),[r,g,d.customCheckoutSdk]),t.useEffect((function(){D(d.stripe)}),[d.stripe]);var m=t.useMemo((function(){return M(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:b.any,options:b.shape({clientSecret:b.string.isRequired,elementsOptions:b.object}).isRequired};var B=function(e){var n=t.useContext(N);return P(n,e)},Z=function(e){var n=t.useContext(N),r=t.useContext(z);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):V(r,e)},F=function(){B("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},z=t.createContext(null);z.displayName="ElementsContext";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},H=t.createContext(null);H.displayName="CartElementContext";var U=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},W=function(e){var n=e.stripe,r=e.options,i=e.children,o=t.useMemo((function(){return T(n)}),[n]),a=c(t.useState(null),2),s=a[0],u=a[1],l=c(t.useState(null),2),d=l[0],f=l[1],h=c(t.useState((function(){return{stripe:"sync"===o.tag?o.stripe:null,elements:"sync"===o.tag?o.stripe.elements(r):null}})),2),p=h[0],v=h[1];t.useEffect((function(){var e=!0,t=function(e){v((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 g=A(n);t.useEffect((function(){null!==g&&g!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[g,n]);var m=A(r);return t.useEffect((function(){if(p.elements){var e=E(r,m,["clientSecret","fonts"]);e&&p.elements.update(e)}}),[r,m,p.elements]),t.useEffect((function(){D(p.stripe)}),[p.stripe]),t.createElement(z.Provider,{value:p},t.createElement(H.Provider,{value:{cart:s,setCart:u,cartState:d,setCartState:f}},i))};W.propTypes={stripe:b.any,options:b.object};var Q=function(e){var n=t.useContext(z);return V(n,e)},q={cart:null,cartState:null,setCart:function(){},setCartState:function(){}},G=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.useContext(H);return n?q:U(r,e)},K=function(){return Q("calls useElements()").elements},X=function(){return Z("calls useStripe()").stripe},Y=function(){return G("calls useCartElement()").cart},J=function(){return G("calls useCartElementState()").cartState},$=function(e){return(0,e.children)(Q("mounts "))};$.propTypes={children:b.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,">"));G("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,u=void 0===s?{}:s,l=n.onBlur,d=n.onFocus,f=n.onReady,h=n.onChange,p=n.onEscape,v=n.onClick,g=n.onLoadError,m=n.onLoaderStart,y=n.onNetworksChange,b=n.onCheckout,w=n.onLineItemClick,k=n.onConfirm,C=n.onCancel,_=n.onShippingAddressChange,x=n.onShippingRateChange,S=Z("mounts <".concat(r,">")),I="elements"in S?S.elements:null,T="customCheckoutSdk"in S?S.customCheckoutSdk:null,D=c(t.useState(null),2),O=D[0],N=D[1],P=t.useRef(null),L=t.useRef(null),M=G("mounts <".concat(r,">"),"customCheckoutSdk"in S),j=M.setCart,R=M.setCartState;ee(O,"blur",l),ee(O,"focus",d),ee(O,"escape",p),ee(O,"click",v),ee(O,"loaderror",g),ee(O,"loaderstart",m),ee(O,"networkschange",y),ee(O,"lineitemclick",w),ee(O,"confirm",k),ee(O,"cancel",C),ee(O,"shippingaddresschange",_),ee(O,"shippingratechange",x),"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),b&&b(e)}:b),t.useLayoutEffect((function(){if(null===P.current&&null!==L.current&&(I||T)){var t=null;T?t=T.createElement(e,u):I&&(t=I.create(e,u)),"cart"===e&&j&&j(t),P.current=t,N(t),t&&t.mount(L.current)}}),[I,T,u,j]);var B=A(u);return t.useEffect((function(){if(P.current){var e=E(u,B,["paymentRequest"]);e&&P.current.update(e)}}),[u,B]),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:b.string,className:b.string,onChange:b.func,onBlur:b.func,onFocus:b.func,onReady:b.func,onEscape:b.func,onClick:b.func,onLoadError:b.func,onLoaderStart:b.func,onNetworksChange:b.func,onCheckout:b.func,onLineItemClick:b.func,onConfirm:b.func,onCancel:b.func,onShippingAddressChange:b.func,onShippingRateChange:b.func,options:b.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 T(n,ae)}),[n]),a=t.useRef(null),s=t.useRef(null),u=c(t.useState({embeddedCheckout:null}),2),l=u[0],d=u[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(){D(s)}),[s]);var f=A(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=A(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)},ce=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})},ue=function(e){var n=e.id,r=e.className;return oe(),t.createElement("div",{id:n,className:r})},le=re?ue:ce,de=ne("auBankAccount",re),fe=ne("card",re),he=ne("cardNumber",re),pe=ne("cardExpiry",re),ve=ne("cardCvc",re),ge=ne("fpxBank",re),me=ne("iban",re),ye=ne("idealBank",re),be=ne("p24Bank",re),Ae=ne("epsBank",re),we=ne("payment",re),ke=ne("expressCheckout",re),Ce=ne("paymentRequestButton",re),_e=ne("linkAuthentication",re),xe=ne("address",re),Ee=ne("shippingAddress",re),Se=ne("cart",re),Ie=ne("paymentMethodMessaging",re),Te=ne("affirmMessage",re),De=ne("afterpayClearpayMessage",re);e.AddressElement=xe,e.AffirmMessageElement=Te,e.AfterpayClearpayMessageElement=De,e.AuBankAccountElement=de,e.CardCvcElement=ve,e.CardElement=fe,e.CardExpiryElement=pe,e.CardNumberElement=he,e.CartElement=Se,e.CustomCheckoutProvider=R,e.Elements=W,e.ElementsConsumer=$,e.EmbeddedCheckout=le,e.EmbeddedCheckoutProvider=se,e.EpsBankElement=Ae,e.ExpressCheckoutElement=ke,e.FpxBankElement=ge,e.IbanElement=me,e.IdealBankElement=ye,e.LinkAuthenticationElement=_e,e.P24BankElement=be,e.PaymentElement=we,e.PaymentMethodMessagingElement=Ie,e.PaymentRequestButtonElement=Ce,e.ShippingAddressElement=Ee,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"),c=Symbol.for("react.provider"),u=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"),v=Symbol.for("react.lazy"),g=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 u:case d:case v:case p:case c: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)),c=f(n(74401)),u=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 c=arguments.length,u=Array(c),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,v,!1),this.refs["http://json-schema.org/schema"]=v}}},{key:"defaultMeta",value:function(){return this.opts.defaultMeta=a(s(n.prototype),"defaultMeta",this).call(this)||(this.getSchema(v)?v:void 0)}}]),n}(l.default);e.exports=t=g,Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;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),c=n(31453),u=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,c.default,u.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),c=n(95925).operators,u={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:c.LTE,fail:c.GT},{okStr:"<",ok:c.LT,fail:c.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:c.GTE,fail:c.LT},{okStr:">",ok:c.GT,fail:c.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(u),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[u[n].exclusive])?1:0;return u[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,c=n(61655).default,u=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),v=n(46786),g=n(99398),m="https://json-schema.org/draft/2019-09/schema",y=function(e){c(n,e);var t=u(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(v.default)}},{key:"_addDefaultMetaSchema",value:function(){a(s(n.prototype),"_addDefaultMetaSchema",this).call(this);var e=this.opts,t=e.$data;e.meta&&(g.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 b=n(94862);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return b.KeywordCxt}});var A=n(95925);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return A._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return A.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return A.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return A.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return A.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return A.CodeGen}});var w=n(36191);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return w.default}});var k=n(95854);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return k.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,c=n(61655).default,u=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",v=function(e){c(n,e);var t=u(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=v,Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var g=n(94862);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return g.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 b=n(95854);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})},52082:function(e,t,n){"use strict";var r,i,o=n(59400).default,a=n(861).default,s=n(38416).default,c=n(61655).default,u=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){c(r,e);var n=u(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){c(n,e);var t=u(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 v(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 b._Code(">="),LT:new b._Code("<"),LTE:new b._Code("<="),EQ:new b._Code("==="),NEQ:new b._Code("!=="),NOT:new b._Code("!"),OR:new b._Code("||"),AND:new b._Code("&&"),ADD:new b._Code("+")};var C=function(){function e(){m(this,e)}return y(e,[{key:"optimizeNodes",value:function(){return this}},{key:"optimizeNames",value:function(e,t){return this}}]),e}(),_=function(e){v(n,e);var t=g(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?A.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=G(this.rhs,e,t)),this}},{key:"names",get:function(){return this.rhs instanceof b._CodeOrName?this.rhs.names:{}}}]),n}(C),x=function(e){v(n,e);var t=g(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 b.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=G(this.rhs,e,t),this}},{key:"names",get:function(){return q(this.lhs instanceof b.Name?{}:p({},this.lhs.names),this.rhs)}}]),n}(C),E=function(e){v(n,e);var t=g(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}(x),S=function(e){v(n,e);var t=g(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}(C),I=function(e){v(n,e);var t=g(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}(C),T=function(e){v(n,e);var t=g(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}(C),D=function(e){v(n,e);var t=g(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=G(this.code,e,t),this}},{key:"names",get:function(){return this.code instanceof b._CodeOrName?this.code.names:{}}}]),n}(C),O=function(e){v(n,e);var t=g(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 Q(e,t.names)}),{})}}]),n}(C),N=function(e){v(n,e);var t=g(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){v(n,e);var t=g(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n)}(O),L=function(e){v(n,e);var t=g(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n)}(N);L.kind="else";var M=function(e){v(n,e);var t=g(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=G(this.condition,e,t),this}},{key:"names",get:function(){var e=d(f(n.prototype),"names",this);return q(e,this.condition),this.else&&Q(e,this.else.names),e}}]),n}(N);M.kind="if";var j=function(e){v(n,e);var t=g(n);function n(){return m(this,n),t.apply(this,arguments)}return y(n)}(N);j.kind="for";var R=function(e){v(n,e);var t=g(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=G(this.iteration,e,t),this}},{key:"names",get:function(){return Q(d(f(n.prototype),"names",this),this.iteration.names)}}]),n}(j),B=function(e){v(n,e);var t=g(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?A.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=q(d(f(n.prototype),"names",this),this.from);return q(e,this.to)}}]),n}(j),Z=function(e){v(n,e);var t=g(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=G(this.iterable,e,t),this}},{key:"names",get:function(){return Q(d(f(n.prototype),"names",this),this.iterable.names)}}]),n}(j),F=function(e){v(n,e);var t=g(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 z=function(e){v(n,e);var t=g(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);z.kind="return";var V=function(e){v(n,e);var t=g(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&&Q(e,this.catch.names),this.finally&&Q(e,this.finally.names),e}}]),n}(N),H=function(e){v(n,e);var t=g(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 U=function(e){v(n,e);var t=g(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);U.kind="finally";var W=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 A.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,i,n)),i}},{key:"const",value:function(e,t,n){return this._def(A.varKinds.const,e,t,n)}},{key:"let",value:function(e,t,n){return this._def(A.varKinds.let,e,t,n)}},{key:"var",value:function(e,t,n){return this._def(A.varKinds.var,e,t,n)}},{key:"assign",value:function(e,t,n){return this._leafNode(new x(e,t,n))}},{key:"add",value:function(e,n){return this._leafNode(new E(e,t.operators.ADD,n))}},{key:"code",value:function(e){return"function"==typeof e?e():e!==b.nil&&this._leafNode(new D(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!==c||this.opts.es5)&&(e.push(":"),(0,b.addCodeArg)(e,c))}return e.push("}"),new b._Code(e)}},{key:"if",value:function(e,t,n){if(this._blockNode(new M(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 M(e))}},{key:"else",value:function(){return this._elseNode(new L)}},{key:"endIf",value:function(){return this._endBlockNode(M,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?A.varKinds.var:A.varKinds.let,o=this._scope.toName(e);return this._for(new B(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]:A.varKinds.const,s=this._scope.toName(e);if(this.opts.es5){var c=t instanceof b.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,b._)(r||(r=u(["",".length"])),c),(function(e){o.var(s,(0,b._)(i||(i=u(["","[","]"])),c,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?A.varKinds.var:A.varKinds.const;if(this.opts.ownProperties)return this.forOf(e,(0,b._)(o||(o=u(["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(j)}},{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 z;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(z)}},{key:"try",value:function(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');var r=new V;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 U,this.code(n)),this._endBlockNode(H,U)}},{key:"throw",value:function(e){return this._leafNode(new T(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]:b.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 M))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 Q(e,t){for(var n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function q(e,t){return t instanceof b._CodeOrName?Q(e,t.names):e}function G(e,t,n){return e instanceof b.Name?i(e):(r=e)instanceof b._Code&&r._items.some((function(e){return e instanceof b.Name&&1===t[e.str]&&void 0!==n[e.str]}))?new b._Code(e._items.reduce((function(e,t){return t instanceof b.Name&&(t=i(t)),t instanceof b._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,b._)(a||(a=u(["!",""])),ee(e))}t.CodeGen=W,t.not=X;var Y=$(t.operators.AND);t.and=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefixes,r=t.parent;d(this,e),this._names={},this._prefixes=n,this._parent=r}return l(e,[{key:"toName",value:function(e){return e instanceof g.Name?e:this.name(e)}},{key:"name",value:function(e){return new g.Name(this._newName(e))}},{key:"_newName",value:function(e){var t=this._names[e]||this._nameGroup(e);return"".concat(e).concat(t.index++)}},{key:"_nameGroup",value:function(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error('CodeGen: prefix "'.concat(e,'" is not allowed in this scope'));return this._names[e]={prefix:e,index:0}}}]),e}();t.Scope=y;var b=function(e){f(n,e);var t=h(n);function n(e,r){var i;return d(this,n),(i=t.call(this,r)).prefix=e,i}return l(n,[{key:"setValue",value:function(e,t){var n=t.property,i=t.itemIndex;this.value=e,this.scopePath=(0,g._)(r||(r=u([".","[","]"])),new g.Name(n),i)}}]),n}(g.Name);t.ValueScopeName=b;var A=(0,g._)(i||(i=u(["\n"],["\\n"]))),w=function(e){f(r,e);var n=h(r);function r(e){var t;return d(this,r),(t=n.call(this,e))._values={},t._scope=e.scope,t.opts=c(c({},e),{},{_n:e.lines?A:g.nil}),t}return l(r,[{key:"get",value:function(){return this._scope}},{key:"name",value:function(e){return new b(e,this._newName(e))}},{key:"value",value:function(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");var r=this.toName(e),i=r.prefix,o=null!==(n=t.key)&&void 0!==n?n:t.ref,a=this._values[i];if(a){var s=a.get(o);if(s)return s}else a=this._values[i]=new Map;a.set(o,r);var c=this._scope[i]||(this._scope[i]=[]),u=c.length;return c[u]=t.ref,r.setValue(t,{property:i,itemIndex:u}),r}},{key:"getValue",value:function(e,t){var n=this._values[e];if(n)return n.get(t)}},{key:"scopeRefs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._values;return this._reduceValues(t,(function(t){if(void 0===t.scopePath)throw new Error('CodeGen: name "'.concat(t,'" has no value'));return(0,g._)(o||(o=u(["","",""])),e,t.scopePath)}))}},{key:"scopeCode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._values,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return this._reduceValues(e,(function(e){if(void 0===e.value)throw new Error('CodeGen: name "'.concat(e,'" has no value'));return e.value.code}),t,n)}},{key:"_reduceValues",value:function(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,c=g.nil,l=function(){var l=e[d];if(!l)return 1;var f=i[d]=i[d]||new Map;l.forEach((function(e){if(!f.has(e)){f.set(e,v.Started);var i=n(e);if(i){var l=r.opts.es5?t.varKinds.var:t.varKinds.const;c=(0,g._)(a||(a=u(["",""," "," = ",";",""])),c,l,e,i,r.opts._n)}else{if(!(i=null===o||void 0===o?void 0:o(e)))throw new m(e);c=(0,g._)(s||(s=u(["","","",""])),c,i,r.opts._n)}f.set(e,v.Completed)}}))};for(var d in e)l();return c}}]),r}(y);t.ValueScope=w},60353:function(e,t,n){"use strict";var r,i,o,a,s,c,u,l,d,f,h,p,v,g,m,y,b,A,w,k,C,_,x,E,S,I=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;var T=n(95925),D=n(44992),O=n(40472);function N(e,t){var n=e.const("err",t);e.if((0,T._)(g||(g=I([""," === null"])),O.default.vErrors),(function(){return e.assign(O.default.vErrors,(0,T._)(m||(m=I(["[","]"])),n))}),(0,T._)(y||(y=I(["",".push(",")"])),O.default.vErrors,n)),e.code((0,T._)(b||(b=I(["","++"])),O.default.errors))}function P(e,t){var n=e.gen,r=e.validateName;e.schemaEnv.$async?n.throw((0,T._)(A||(A=I(["new ","(",")"])),e.ValidationError,t)):(n.assign((0,T._)(w||(w=I(["",".errors"])),r),t),n.return(!1))}t.keywordError={message:function(e){var t=e.keyword;return(0,T.str)(r||(r=I(['must pass "','" keyword validation'])),t)}},t.keyword$DataError={message:function(e){var t=e.keyword,n=e.schemaType;return n?(0,T.str)(i||(i=I(['"','" keyword must be '," ($data)"])),t,n):(0,T.str)(o||(o=I(['"','" keyword is invalid ($data)'])),t)}},t.reportError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=e.it,s=o.gen,c=o.compositeRule,u=o.allErrors,l=M(e,n,r);(null!==i&&void 0!==i?i:c||u)?N(s,l):P(o,(0,T._)(a||(a=I(["[","]"])),l))},t.reportExtraError=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.keywordError,r=arguments.length>2?arguments[2]:void 0,i=e.it,o=i.gen,a=i.compositeRule,s=i.allErrors;N(o,M(e,n,r)),a||s||P(i,O.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(O.default.errors,t),e.if((0,T._)(s||(s=I([""," !== null"])),O.default.vErrors),(function(){return e.if(t,(function(){return e.assign((0,T._)(c||(c=I(["",".length"])),O.default.vErrors),t)}),(function(){return e.assign(O.default.vErrors,null)}))}))},t.extendErrors=function(e){var t=e.gen,n=e.keyword,r=e.schemaValue,i=e.data,o=e.errsCount,a=e.it;if(void 0===o)throw new Error("ajv implementation error");var s=t.name("err");t.forRange("i",o,O.default.errors,(function(e){t.const(s,(0,T._)(u||(u=I(["","[","]"])),O.default.vErrors,e)),t.if((0,T._)(l||(l=I(["",".instancePath === undefined"])),s),(function(){return t.assign((0,T._)(d||(d=I(["",".instancePath"])),s),(0,T.strConcat)(O.default.instancePath,a.errorPath))})),t.assign((0,T._)(f||(f=I(["",".schemaPath"])),s),(0,T.str)(h||(h=I(["","/",""])),a.errSchemaPath,n)),a.opts.verbose&&(t.assign((0,T._)(p||(p=I(["",".schema"])),s),r),t.assign((0,T._)(v||(v=I(["",".data"])),s),i))}))};var L={keyword:new T.Name("keyword"),schemaPath:new T.Name("schemaPath"),params:new T.Name("params"),propertyName:new T.Name("propertyName"),message:new T.Name("message"),schema:new T.Name("schema"),parentSchema:new T.Name("parentSchema")};function M(e,t,n){return!1===e.it.createErrors?(0,T._)(k||(k=I(["{}"]))):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.gen,i=e.it,o=[j(i,n),R(e,n)];return function(e,t,n){var r=t.params,i=t.message,o=e.keyword,a=e.data,s=e.schemaValue,c=e.it,u=c.opts,l=c.propertyName,d=c.topSchemaRef,f=c.schemaPath;n.push([L.keyword,o],[L.params,"function"==typeof r?r(e):r||(0,T._)(E||(E=I(["{}"])))]),u.messages&&n.push([L.message,"function"==typeof i?i(e):i]);u.verbose&&n.push([L.schema,s],[L.parentSchema,(0,T._)(S||(S=I(["","",""])),d,f)],[O.default.data,a]);l&&n.push([L.propertyName,l])}(e,t,o),r.object.apply(r,o)}(e,t,n)}function j(e,t){var n=e.errorPath,r=t.instancePath,i=r?(0,T.str)(C||(C=I(["","",""])),n,(0,D.getErrorPath)(r,D.Type.Str)):n;return[O.default.instancePath,(0,T.strConcat)(O.default.instancePath,i)]}function R(e,t){var n=e.keyword,r=e.it.errSchemaPath,i=t.schemaPath,o=t.parentSchema?r:(0,T.str)(_||(_=I(["","/",""])),r,n);return i&&(o=(0,T.str)(x||(x=I(["","",""])),o,(0,D.getErrorPath)(i,D.Type.Str))),[L.schemaPath,o]}},7262:function(e,t,n){"use strict";var r,i,o=n(74704).default,a=n(59400).default,s=n(89728).default,c=n(56690).default;Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;var u=n(95925),l=n(36191),d=n(40472),f=n(19329),h=n(44992),p=n(94862),v=s((function e(t){var n,r;c(this,e),this.refs={},this.dynamicAnchors={},"object"==typeof t.schema&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=null!==(n=t.baseId)&&void 0!==n?n:(0,f.normalizeId)(null===r||void 0===r?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=null===r||void 0===r?void 0:r.$async,this.refs={}}));function g(e){var t=y.call(this,e);if(t)return t;var n,o=(0,f.getFullPath)(this.opts.uriResolver,e.root.baseId),s=this.opts.code,c=s.es5,h=s.lines,v=this.opts.ownProperties,g=new u.CodeGen(this.scope,{es5:c,lines:h,ownProperties:v});e.$async&&(n=g.scopeValue("Error",{ref:l.default,code:(0,u._)(r||(r=a(['require("ajv/dist/runtime/validation_error").default'])))}));var m=g.scopeName("validate");e.validateName=m;var b,A={gen:g,allErrors:this.opts.allErrors,data:d.default.data,parentData:d.default.parentData,parentDataProperty:d.default.parentDataProperty,dataNames:[d.default.data],dataPathArr:[u.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,u.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:n,schema:e.schema,schemaEnv:e,rootId:o,baseId:e.baseId||o,schemaPath:u.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,u._)(i||(i=a(['""']))),opts:this.opts,self:this};try{this._compilations.add(e),(0,p.validateFunctionCode)(A),g.optimize(this.opts.code.optimize);var w=g.toString();b="".concat(g.scopeRefs(d.default.scope),"return ").concat(w),this.opts.code.process&&(b=this.opts.code.process(b,e));var k=new Function("".concat(d.default.self),"".concat(d.default.scope),b)(this,this.scope.get());if(this.scope.value(m,{ref:k}),k.errors=null,k.schema=e.schema,k.schemaEnv=e,e.$async&&(k.$async=!0),!0===this.opts.code.source&&(k.source={validateName:m,validateCode:w,scopeValues:g._values}),this.opts.unevaluated){var C=A.props,_=A.items;k.evaluated={props:C instanceof u.Name?void 0:C,items:_ instanceof u.Name?void 0:_,dynamicProps:C instanceof u.Name,dynamicItems:_ instanceof u.Name},k.source&&(k.source.evaluated=(0,u.stringify)(k.evaluated))}return e.validate=k,e}catch(x){throw delete e.validate,delete e.validateName,b&&this.logger.error("Error compiling schema, function code:",b),x}finally{this._compilations.delete(e)}}function m(e){return(0,f.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:g.call(this,e)}function y(e){var t,n,r,i=o(this._compilations);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(r=e,(n=a).schema===r.schema&&n.root===r.root&&n.baseId===r.baseId)return a}}catch(s){i.e(s)}finally{i.f()}}function b(e,t){for(var n;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||A.call(this,e,t)}function A(e,t){var n=this.opts.uriResolver.parse(t),r=(0,f._getFullPath)(this.opts.uriResolver,n),i=(0,f.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return k.call(this,n,e);var o=(0,f.normalizeId)(r),a=this.refs[o]||this.schemas[o];if("string"==typeof a){var s=A.call(this,e,a);if("object"!==typeof(null===s||void 0===s?void 0:s.schema))return;return k.call(this,n,s)}if("object"===typeof(null===a||void 0===a?void 0:a.schema)){if(a.validate||g.call(this,a),o===(0,f.normalizeId)(t)){var c=a.schema,u=this.opts.schemaId,l=c[u];return l&&(i=(0,f.resolveUrl)(this.opts.uriResolver,i,l)),new v({schema:c,schemaId:u,root:e,baseId:i})}return k.call(this,n,a)}}t.SchemaEnv=v,t.compileSchema=g,t.resolveRef=function(e,t,n){var r;n=(0,f.resolveUrl)(this.opts.uriResolver,t,n);var i=e.refs[n];if(i)return i;var o=b.call(this,e,n);if(void 0===o){var a=null===(r=e.localRefs)||void 0===r?void 0:r[n],s=this.opts.schemaId;a&&(o=new v({schema:a,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[n]=m.call(this,o):void 0},t.getCompilingSchema=y,t.resolveSchema=A;var w=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(e,t){var n,r=t.baseId,i=t.schema,a=t.root;if("/"===(null===(n=e.fragment)||void 0===n?void 0:n[0])){var s,c,u=o(e.fragment.slice(1).split("/"));try{for(u.s();!(s=u.n()).done;){var l=s.value;if("boolean"===typeof i)return;var d=i[(0,h.unescapeFragment)(l)];if(void 0===d)return;var p="object"===typeof(i=d)&&i[this.opts.schemaId];!w.has(l)&&p&&(r=(0,f.resolveUrl)(this.opts.uriResolver,r,p))}}catch(y){u.e(y)}finally{u.f()}if("boolean"!=typeof i&&i.$ref&&!(0,h.schemaHasRulesButRef)(i,this.RULES)){var g=(0,f.resolveUrl)(this.opts.uriResolver,r,i.$ref);c=A.call(this,a,g)}var m=this.opts.schemaId;return(c=c||new v({schema:i,schemaId:m,root:a,baseId:r})).schema!==c.root.schema?c:void 0}}},40472:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(95925),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},95854:function(e,t,n){"use strict";var r=n(89728).default,i=n(56690).default,o=n(61655).default,a=n(26389).default,s=n(33496).default;Object.defineProperty(t,"__esModule",{value:!0});var c=n(19329),u=function(e){o(n,e);var t=a(n);function n(e,r,o,a){var s;return i(this,n),(s=t.call(this,a||"can't resolve reference ".concat(o," from id ").concat(r))).missingRef=(0,c.resolveUrl)(e,r,o),s.missingSchema=(0,c.normalizeId)((0,c.getFullPath)(e,s.missingRef)),s}return r(n)}(s(Error));t.default=u},19329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;var r=n(44992),i=n(89806),o=n(23523),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"boolean"==typeof e||(!0===t?!c(e):!!t&&u(e)<=t)};var s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(var t in e){if(s.has(t))return!0;var n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function u(e){var t=0;for(var n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(function(e){return t+=u(e)})),t===1/0))return 1/0}return t}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";!1!==(arguments.length>2?arguments[2]:void 0)&&(t=h(t));var n=e.parse(t);return d(e,n)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=d;var f=/#\/?$/;function h(e){return e?e.replace(f,""):""}t.normalizeId=h,t.resolveUrl=function(e,t,n){return n=h(n),e.resolve(t,n)};var p=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){var n=this;if("boolean"==typeof e)return{};var r=this.opts,a=r.schemaId,s=r.uriResolver,c=h(e[a]||t),u={"":c},d=l(s,c,!1),f={},v=new Set;return o(e,{allKeys:!0},(function(e,t,r,i){if(void 0!==i){var o=d+t,s=u[i];"string"==typeof e[a]&&(s=c.call(n,e[a])),l.call(n,e.$anchor),l.call(n,e.$dynamicAnchor),u[t]=s}function c(t){var n=this.opts.uriResolver.resolve;if(t=h(s?n(s,t):t),v.has(t))throw m(t);v.add(t);var r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?g(e,r.schema,t):t!==h(o)&&("#"===t[0]?(g(e,f[t],t),f[t]=e):this.refs[t]=o),t}function l(e){if("string"==typeof e){if(!p.test(e))throw new Error('invalid anchor "'.concat(e,'"'));c.call(this,"#".concat(e))}}})),f;function g(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error('reference "'.concat(e,'" resolves to more than one schema'))}}},61226:function(e,t,n){"use strict";var r=n(42122).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;var i=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&i.has(e)},t.getRules=function(){var e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:r(r({},e),{},{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},44992:function(e,t,n){"use strict";var r,i,o,a,s,c,u,l,d,f,h,p,v,g,m,y,b,A,w=n(42122).default,k=n(59400).default,C=n(74704).default;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;var _=n(95925),x=n(52082);function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.schema,n=e.opts,r=e.self;if(n.strictSchema&&"boolean"!==typeof t){var i=r.RULES.keywords;for(var o in t)i[o]||M(e,'unknown keyword: "'.concat(o,'"'))}}function S(e,t){if("boolean"==typeof e)return!e;for(var n in e)if(t[n])return!0;return!1}function I(e){return"number"==typeof e?"".concat(e):e.replace(/~/g,"~0").replace(/\//g,"~1")}function T(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function D(e){var t=e.mergeNames,n=e.mergeToName,r=e.mergeValues,i=e.resultToName;return function(e,o,a,s){var c=void 0===a?o:a instanceof _.Name?(o instanceof _.Name?t(e,o,a):n(e,o,a),a):o instanceof _.Name?(n(e,a,o),o):r(o,a);return s!==_.Name||c instanceof _.Name?c:i(e,c)}}function O(e,t){if(!0===t)return e.var("props",!0);var n=e.var("props",(0,_._)(v||(v=k(["{}"]))));return void 0!==t&&N(e,n,t),n}function N(e,t,n){Object.keys(n).forEach((function(n){return e.assign((0,_._)(g||(g=k(["","",""])),t,(0,_.getProperty)(n)),!0)}))}t.toHash=function(e){var t,n={},r=C(e);try{for(r.s();!(t=r.n()).done;){n[t.value]=!0}}catch(i){r.e(i)}finally{r.f()}return n},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(E(e,t),!S(t,e.self.RULES.all))},t.checkUnknownRules=E,t.schemaHasRules=S,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(var n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function(e,t,n,o){var a=e.topSchemaRef,s=e.schemaPath;if(!o){if("number"==typeof t||"boolean"==typeof t)return t;if("string"==typeof t)return(0,_._)(r||(r=k(["",""])),t)}return(0,_._)(i||(i=k(["","","",""])),a,s,(0,_.getProperty)(n))},t.unescapeFragment=function(e){return T(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(I(e))},t.escapeJsonPointer=I,t.unescapeJsonPointer=T,t.eachItem=function(e,t){if(Array.isArray(e)){var n,r=C(e);try{for(r.s();!(n=r.n()).done;){t(n.value)}}catch(i){r.e(i)}finally{r.f()}}else t(e)},t.mergeEvaluated={props:D({mergeNames:function(e,t,n){return e.if((0,_._)(o||(o=k([""," !== true && "," !== undefined"])),n,t),(function(){e.if((0,_._)(a||(a=k([""," === true"])),t),(function(){return e.assign(n,!0)}),(function(){return e.assign(n,(0,_._)(s||(s=k([""," || {}"])),n)).code((0,_._)(c||(c=k(["Object.assign(",", ",")"])),n,t))}))}))},mergeToName:function(e,t,n){return e.if((0,_._)(u||(u=k([""," !== true"])),n),(function(){!0===t?e.assign(n,!0):(e.assign(n,(0,_._)(l||(l=k([""," || {}"])),n)),N(e,n,t))}))},mergeValues:function(e,t){return!0===e||w(w({},e),t)},resultToName:O}),items:D({mergeNames:function(e,t,n){return e.if((0,_._)(d||(d=k([""," !== true && "," !== undefined"])),n,t),(function(){return e.assign(n,(0,_._)(f||(f=k([""," === true ? true : "," > "," ? "," : ",""])),t,n,t,n,t))}))},mergeToName:function(e,t,n){return e.if((0,_._)(h||(h=k([""," !== true"])),n),(function(){return e.assign(n,!0===t||(0,_._)(p||(p=k([""," > "," ? "," : ",""])),n,t,n,t))}))},mergeValues:function(e,t){return!0===e||Math.max(e,t)},resultToName:function(e,t){return e.var("items",t)}})},t.evaluatedPropsToName=O,t.setEvaluated=N;var P,L={};function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.opts.strictSchema;if(n){if(t="strict mode: ".concat(t),!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:L[t.code]||(L[t.code]=new x._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(P=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof _.Name){var r=t===P.Num;return n?r?(0,_._)(m||(m=k(['"[" + ',' + "]"'])),e):(0,_._)(y||(y=k(['"[\'" + ',' + "\']"'])),e):r?(0,_._)(b||(b=k(['"/" + ',""])),e):(0,_._)(A||(A=k(['"/" + ','.replace(/~/g, "~0").replace(/\\//g, "~1")'],['"/" + ','.replace(/~/g, "~0").replace(/\\\\//g, "~1")'])),e)}return n?(0,_.getProperty)(e).toString():"/"+I(e)},t.checkStrictMode=M},51033:function(e,t){"use strict";function n(e,t){return t.rules.some((function(t){return r(e,t)}))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((function(t){return void 0!==e[t]})))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function(e,t){var r=e.schema,i=e.self.RULES.types[t];return i&&!0!==i&&n(r,i)},t.shouldUseGroup=n,t.shouldUseRule=r},80390:function(e,t,n){"use strict";var r,i=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;var o=n(60353),a=n(95925),s=n(40472),c={message:"boolean schema is false"};function u(e,t){var n={gen:e.gen,keyword:"false schema",data:e.data,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,o.reportError)(n,c,void 0,t)}t.topBoolOrEmptySchema=function(e){var t=e.gen,n=e.schema,o=e.validateName;!1===n?u(e,!1):"object"==typeof n&&!0===n.$async?t.return(s.default.data):(t.assign((0,a._)(r||(r=i(["",".errors"])),o),null),t.return(!0))},t.boolOrEmptySchema=function(e,t){var n=e.gen;!1===e.schema?(n.var(t,!1),u(e)):n.var(t,!0)}},82736:function(e,t,n){"use strict";var r,i,o,a,s,c,u,l,d,f,h,p,v,g,m,y,b,A,w,k,C,_,x,E,S,I,T,D,O,N,P,L,M,j=n(74704).default,R=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;var B,Z=n(61226),F=n(51033),z=n(60353),V=n(95925),H=n(44992);function U(e){var t=Array.isArray(e)?e:e?[e]:[];if(t.every(Z.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(B=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){var t=U(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=U,t.coerceAndCheckDataType=function(e,t){var n=e.gen,x=e.data,E=e.opts,S=function(e,t){return t?e.filter((function(e){return W.has(e)||"array"===t&&"array"===e})):[]}(t,E.coerceTypes),I=t.length>0&&!(0===S.length&&1===t.length&&(0,F.schemaHasRulesForType)(e,t[0]));if(I){var T=q(t,x,E.strictNumbers,B.Wrong);n.if(T,(function(){S.length?function(e,t,n){var x=e.gen,E=e.data,S=e.opts,I=x.let("dataType",(0,V._)(r||(r=R(["typeof ",""])),E)),T=x.let("coerced",(0,V._)(i||(i=R(["undefined"]))));"array"===S.coerceTypes&&x.if((0,V._)(o||(o=R([""," == 'object' && Array.isArray(",") && ",".length == 1"])),I,E,E),(function(){return x.assign(E,(0,V._)(a||(a=R(["","[0]"])),E)).assign(I,(0,V._)(s||(s=R(["typeof ",""])),E)).if(q(t,E,S.strictNumbers),(function(){return x.assign(T,E)}))}));x.if((0,V._)(c||(c=R([""," !== undefined"])),T));var D,O=j(n);try{for(O.s();!(D=O.n()).done;){var N=D.value;(W.has(N)||"array"===N&&"array"===S.coerceTypes)&&P(N)}}catch(L){O.e(L)}finally{O.f()}function P(e){switch(e){case"string":return void x.elseIf((0,V._)(l||(l=R(["",' == "number" || ',' == "boolean"'])),I,I)).assign(T,(0,V._)(d||(d=R(['"" + ',""])),E)).elseIf((0,V._)(f||(f=R([""," === null"])),E)).assign(T,(0,V._)(h||(h=R(['""']))));case"number":return void x.elseIf((0,V._)(p||(p=R(["",' == "boolean" || '," === null\n || (",' == "string" && '," && "," == +",")"])),I,E,I,E,E,E)).assign(T,(0,V._)(v||(v=R(["+",""])),E));case"integer":return void x.elseIf((0,V._)(g||(g=R(["",' === "boolean" || '," === null\n || (",' === "string" && '," && "," == +"," && !("," % 1))"])),I,E,I,E,E,E,E)).assign(T,(0,V._)(m||(m=R(["+",""])),E));case"boolean":return void x.elseIf((0,V._)(y||(y=R(["",' === "false" || '," === 0 || "," === null"])),E,E,E)).assign(T,!1).elseIf((0,V._)(b||(b=R(["",' === "true" || '," === 1"])),E,E)).assign(T,!0);case"null":return x.elseIf((0,V._)(A||(A=R(["",' === "" || '," === 0 || "," === false"])),E,E,E)),void x.assign(T,null);case"array":x.elseIf((0,V._)(w||(w=R(["",' === "string" || ',' === "number"\n || ',' === "boolean" || '," === null"])),I,I,I,E)).assign(T,(0,V._)(k||(k=R(["[","]"])),E))}}x.else(),K(e),x.endIf(),x.if((0,V._)(u||(u=R([""," !== undefined"])),T),(function(){x.assign(E,T),function(e,t){var n=e.gen,r=e.parentData,i=e.parentDataProperty;n.if((0,V._)(C||(C=R([""," !== undefined"])),r),(function(){return n.assign((0,V._)(_||(_=R(["","[","]"])),r,i),t)}))}(e,T)}))}(e,t,S):K(e)}))}return I};var W=new Set(["string","number","integer","boolean","null"]);function Q(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:B.Correct,o=i===B.Correct?V.operators.EQ:V.operators.NEQ;switch(e){case"null":return(0,V._)(x||(x=R([""," "," null"])),t,o);case"array":r=(0,V._)(E||(E=R(["Array.isArray(",")"])),t);break;case"object":r=(0,V._)(S||(S=R([""," && typeof ",' == "object" && !Array.isArray(',")"])),t,t,t);break;case"integer":r=a((0,V._)(I||(I=R(["!("," % 1) && !isNaN(",")"])),t,t));break;case"number":r=a();break;default:return(0,V._)(T||(T=R(["typeof "," "," ",""])),t,o,e)}return i===B.Correct?r:(0,V.not)(r);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V.nil;return(0,V.and)((0,V._)(D||(D=R(["typeof ",' == "number"'])),t),e,n?(0,V._)(O||(O=R(["isFinite(",")"])),t):V.nil)}}function q(e,t,n,r){if(1===e.length)return Q(e[0],t,n,r);var i,o=(0,H.toHash)(e);if(o.array&&o.object){var a=(0,V._)(N||(N=R(["typeof ",' != "object"'])),t);i=o.null?a:(0,V._)(P||(P=R(["!"," || ",""])),t,a),delete o.null,delete o.array,delete o.object}else i=V.nil;for(var s in o.number&&delete o.integer,o)i=(0,V.and)(i,Q(s,t,n,r));return i}t.checkDataType=Q,t.checkDataTypes=q;var G={message:function(e){var t=e.schema;return"must be ".concat(t)},params:function(e){var t=e.schema,n=e.schemaValue;return"string"==typeof t?(0,V._)(L||(L=R(["{type: ","}"])),t):(0,V._)(M||(M=R(["{type: ","}"])),n)}};function K(e){var t=function(e){var t=e.gen,n=e.data,r=e.schema,i=(0,H.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,z.reportError)(t,G)}t.reportTypeError=K},65288:function(e,t,n){"use strict";var r,i,o,a,s=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;var c=n(95925),u=n(44992);function l(e,t,n){var l=e.gen,d=e.compositeRule,f=e.data,h=e.opts;if(void 0!==n){var p=(0,c._)(r||(r=s(["","",""])),f,(0,c.getProperty)(t));if(d)(0,u.checkStrictMode)(e,"default is ignored for: ".concat(p));else{var v=(0,c._)(i||(i=s([""," === undefined"])),p);"empty"===h.useDefaults&&(v=(0,c._)(o||(o=s([""," || "," === null || ",' === ""'])),v,p,p)),l.if(v,(0,c._)(a||(a=s([""," = ",""])),p,(0,c.stringify)(n)))}}}t.assignDefaults=function(e,t){var n=e.schema,r=n.properties,i=n.items;if("object"===t&&r)for(var o in r)l(e,o,r[o].default);else"array"===t&&Array.isArray(i)&&i.forEach((function(t,n){return l(e,n,t.default)}))}},94862:function(e,t,n){"use strict";var r,i,o,a,s,c,u,l,d,f,h,p,v,g,m,y,b,A,w,k,C,_,x,E,S,I,T,D,O,N,P,L,M,j,R,B,Z,F,z,V=n(42122).default,H=n(56690).default,U=n(89728).default,W=n(74704).default,Q=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;var q=n(80390),G=n(82736),K=n(51033),X=n(82736),Y=n(65288),J=n(80827),$=n(27634),ee=n(95925),te=n(40472),ne=n(19329),re=n(44992),ie=n(60353);function oe(e,t){var n=e.gen,m=e.validateName,y=e.schema,b=e.schemaEnv,A=e.opts;A.code.es5?n.func(m,(0,ee._)(r||(r=Q(["",", ",""])),te.default.data,te.default.valCxt),b.$async,(function(){n.code((0,ee._)(i||(i=Q(['"use strict"; ',""])),ae(y,A))),function(e,t){e.if(te.default.valCxt,(function(){e.var(te.default.instancePath,(0,ee._)(c||(c=Q(["",".",""])),te.default.valCxt,te.default.instancePath)),e.var(te.default.parentData,(0,ee._)(u||(u=Q(["",".",""])),te.default.valCxt,te.default.parentData)),e.var(te.default.parentDataProperty,(0,ee._)(l||(l=Q(["",".",""])),te.default.valCxt,te.default.parentDataProperty)),e.var(te.default.rootData,(0,ee._)(d||(d=Q(["",".",""])),te.default.valCxt,te.default.rootData)),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,ee._)(f||(f=Q(["",".",""])),te.default.valCxt,te.default.dynamicAnchors))}),(function(){e.var(te.default.instancePath,(0,ee._)(h||(h=Q(['""'])))),e.var(te.default.parentData,(0,ee._)(p||(p=Q(["undefined"])))),e.var(te.default.parentDataProperty,(0,ee._)(v||(v=Q(["undefined"])))),e.var(te.default.rootData,te.default.data),t.dynamicRef&&e.var(te.default.dynamicAnchors,(0,ee._)(g||(g=Q(["{}"]))))}))}(n,A),n.code(t)})):n.func(m,(0,ee._)(o||(o=Q(["",", ",""])),te.default.data,function(e){return(0,ee._)(a||(a=Q(["{",'="", ',", ",", ","=","","}={}"])),te.default.instancePath,te.default.parentData,te.default.parentDataProperty,te.default.rootData,te.default.data,e.dynamicRef?(0,ee._)(s||(s=Q([", ","={}"])),te.default.dynamicAnchors):ee.nil)}(A)),b.$async,(function(){return n.code(ae(y,A)).code(t)}))}function ae(e,t){var n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,ee._)(_||(_=Q(["/*# sourceURL="," */"])),n):ee.nil}function se(e,t){ue(e)&&(le(e),ce(e))?function(e,t){var n=e.schema,r=e.gen,i=e.opts;i.$comment&&n.$comment&&fe(e);(function(e){var t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,ne.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);var o=r.const("_errs",te.default.errors);de(e,o),r.var(t,(0,ee._)(x||(x=Q([""," === ",""])),o,te.default.errors))}(e,t):(0,q.boolOrEmptySchema)(e,t)}function ce(e){var t=e.schema,n=e.self;if("boolean"==typeof t)return!t;for(var r in t)if(n.RULES.all[r])return!0;return!1}function ue(e){return"boolean"!=typeof e.schema}function le(e){(0,re.checkUnknownRules)(e),function(e){var t=e.schema,n=e.errSchemaPath,r=e.opts,i=e.self;t.$ref&&r.ignoreKeywordsWithRef&&(0,re.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn('$ref: keywords ignored in schema at path "'.concat(n,'"'))}(e)}function de(e,t){if(e.opts.jtd)return he(e,[],!1,t);var n=(0,G.getSchemaTypes)(e.schema);he(e,n,!(0,G.coerceAndCheckDataType)(e,n),t)}function fe(e){var t=e.gen,n=e.schemaEnv,r=e.schema,i=e.errSchemaPath,o=e.opts,a=r.$comment;if(!0===o.$comment)t.code((0,ee._)(E||(E=Q(["",".logger.log(",")"])),te.default.self,a));else if("function"==typeof o.$comment){var s=(0,ee.str)(S||(S=Q(["","/$comment"])),i),c=t.scopeValue("root",{ref:n.root});t.code((0,ee._)(I||(I=Q(["",".opts.$comment(",", ",", ",".schema)"])),te.default.self,a,s,c))}}function he(e,t,n,r){var i=e.gen,o=e.schema,a=e.data,s=e.allErrors,c=e.opts,u=e.self.RULES;function l(u){(0,K.shouldUseGroup)(o,u)&&(u.type?(i.if((0,X.checkDataType)(u.type,a,c.strictNumbers)),pe(e,u),1===t.length&&t[0]===u.type&&n&&(i.else(),(0,X.reportTypeError)(e)),i.endIf()):pe(e,u),s||i.if((0,ee._)(M||(M=Q([""," === ",""])),te.default.errors,r||0)))}!o.$ref||!c.ignoreKeywordsWithRef&&(0,re.schemaHasRulesButRef)(o,u)?(c.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((function(t){ge(e.dataTypes,t)||me(e,'type "'.concat(t,'" not allowed by context "').concat(e.dataTypes.join(","),'"'))})),function(e,t){var n,r=[],i=W(e.dataTypes);try{for(i.s();!(n=i.n()).done;){var o=n.value;ge(t,o)?r.push(o):t.includes("integer")&&"number"===o&&r.push("integer")}}catch(a){i.e(a)}finally{i.f()}e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&me(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){var n=e.self.RULES.all;for(var r in n){var i=n[r];if("object"==typeof i&&(0,K.shouldUseRule)(e.schema,i)){var o=i.definition.type;o.length&&!o.some((function(e){return ve(t,e)}))&&me(e,'missing type "'.concat(o.join(","),'" for keyword "').concat(r,'"'))}}}(e,e.dataTypes)}(e,t),i.block((function(){var e,t=W(u.rules);try{for(t.s();!(e=t.n()).done;){l(e.value)}}catch(n){t.e(n)}finally{t.f()}l(u.post)}))):i.block((function(){return be(e,"$ref",u.all.$ref.definition)}))}function pe(e,t){var n=e.gen,r=e.schema;e.opts.useDefaults&&(0,Y.assignDefaults)(e,t.type),n.block((function(){var n,i=W(t.rules);try{for(i.s();!(n=i.n()).done;){var o=n.value;(0,K.shouldUseRule)(r,o)&&be(e,o.keyword,o.definition,t.type)}}catch(a){i.e(a)}finally{i.f()}}))}function ve(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function ge(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function me(e,t){var n=e.schemaEnv.baseId+e.errSchemaPath;t+=' at "'.concat(n,'" (strictTypes)'),(0,re.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){ue(e)&&(le(e),ce(e))?function(e){var t=e.schema,n=e.opts,r=e.gen;oe(e,(function(){n.$comment&&t.$comment&&fe(e),function(e){var t=e.schema,n=e.opts;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,re.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(te.default.vErrors,null),r.let(te.default.errors,0),n.unevaluated&&function(e){var t=e.gen,n=e.validateName;e.evaluated=t.const("evaluated",(0,ee._)(m||(m=Q(["",".evaluated"])),n)),t.if((0,ee._)(y||(y=Q(["",".dynamicProps"])),e.evaluated),(function(){return t.assign((0,ee._)(b||(b=Q(["",".props"])),e.evaluated),(0,ee._)(A||(A=Q(["undefined"]))))})),t.if((0,ee._)(w||(w=Q(["",".dynamicItems"])),e.evaluated),(function(){return t.assign((0,ee._)(k||(k=Q(["",".items"])),e.evaluated),(0,ee._)(C||(C=Q(["undefined"]))))}))}(e),de(e),function(e){var t=e.gen,n=e.schemaEnv,r=e.validateName,i=e.ValidationError,o=e.opts;n.$async?t.if((0,ee._)(T||(T=Q([""," === 0"])),te.default.errors),(function(){return t.return(te.default.data)}),(function(){return t.throw((0,ee._)(D||(D=Q(["new ","(",")"])),i,te.default.vErrors))})):(t.assign((0,ee._)(O||(O=Q(["",".errors"])),r),te.default.vErrors),o.unevaluated&&function(e){var t=e.gen,n=e.evaluated,r=e.props,i=e.items;r instanceof ee.Name&&t.assign((0,ee._)(P||(P=Q(["",".props"])),n),r);i instanceof ee.Name&&t.assign((0,ee._)(L||(L=Q(["",".items"])),n),i)}(e),t.return((0,ee._)(N||(N=Q([""," === 0"])),te.default.errors)))}(e)}))}(e):oe(e,(function(){return(0,q.topBoolOrEmptySchema)(e)}))};var ye=function(){function e(t,n,r){if(H(this,e),(0,J.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,re.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",ke(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,J.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error("".concat(r," value must be ").concat(JSON.stringify(n.schemaType)));("code"in n?n.trackErrors:!1!==n.errors)&&(this.errsCount=t.gen.const("_errs",te.default.errors))}return U(e,[{key:"result",value:function(e,t,n){this.failResult((0,ee.not)(e),t,n)}},{key:"failResult",value:function(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}},{key:"pass",value:function(e,t){this.failResult((0,ee.not)(e),void 0,t)}},{key:"fail",value:function(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}},{key:"fail$data",value:function(e){if(!this.$data)return this.fail(e);var t=this.schemaCode;this.fail((0,ee._)(j||(j=Q([""," !== undefined && (",")"])),t,(0,ee.or)(this.invalid$data(),e)))}},{key:"error",value:function(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}},{key:"_error",value:function(e,t){(e?ie.reportExtraError:ie.reportError)(this,this.def.error,t)}},{key:"$dataError",value:function(){(0,ie.reportError)(this,this.def.$dataError||ie.keyword$DataError)}},{key:"reset",value:function(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,ie.resetErrorsCount)(this.gen,this.errsCount)}},{key:"ok",value:function(e){this.allErrors||this.gen.if(e)}},{key:"setParams",value:function(e,t){t?Object.assign(this.params,e):this.params=e}},{key:"block$data",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee.nil;this.gen.block((function(){n.check$data(e,r),t()}))}},{key:"check$data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee.nil,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee.nil;if(this.$data){var n=this.gen,r=this.schemaCode,i=this.schemaType,o=this.def;n.if((0,ee.or)((0,ee._)(R||(R=Q([""," === undefined"])),r),t)),e!==ee.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==ee.nil&&n.assign(e,!1)),n.else()}}},{key:"invalid$data",value:function(){var e=this.gen,t=this.schemaCode,n=this.schemaType,r=this.def,i=this.it;return(0,ee.or)(function(){if(n.length){if(!(t instanceof ee.Name))throw new Error("ajv implementation error");var e=Array.isArray(n)?n:[n];return(0,ee._)(B||(B=Q(["",""])),(0,X.checkDataTypes)(e,t,i.opts.strictNumbers,X.DataType.Wrong))}return ee.nil}(),function(){if(r.validateSchema){var n=e.scopeValue("validate$data",{ref:r.validateSchema});return(0,ee._)(Z||(Z=Q(["!","(",")"])),n,t)}return ee.nil}())}},{key:"subschema",value:function(e,t){var n=(0,$.getSubschema)(this.it,e);(0,$.extendSubschemaData)(n,this.it,e),(0,$.extendSubschemaMode)(n,e);var r=V(V(V({},this.it),n),{},{items:void 0,props:void 0});return se(r,t),r}},{key:"mergeEvaluated",value:function(e,t){var n=this.it,r=this.gen;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=re.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=re.mergeEvaluated.items(r,e.items,n.items,t)))}},{key:"mergeValidEvaluated",value:function(e,t){var n=this,r=this.it,i=this.gen;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return i.if(t,(function(){return n.mergeEvaluated(e,ee.Name)})),!0}}]),e}();function be(e,t,n,r){var i=new ye(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,J.funcKeywordCode)(i,n):"macro"in n?(0,J.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,J.funcKeywordCode)(i,n)}t.KeywordCxt=ye;var Ae=/^\/(?:[^~]|~0|~1)*$/,we=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ke(e,t){var n,r,i=t.dataLevel,o=t.dataNames,a=t.dataPathArr;if(""===e)return te.default.rootData;if("/"===e[0]){if(!Ae.test(e))throw new Error("Invalid JSON-pointer: ".concat(e));n=e,r=te.default.rootData}else{var s=we.exec(e);if(!s)throw new Error("Invalid JSON-pointer: ".concat(e));var c=+s[1];if("#"===(n=s[2])){if(c>=i)throw new Error(p("property/index",c));return a[i-c]}if(c>i)throw new Error(p("data",c));if(r=o[i-c],!n)return r}var u,l=r,d=n.split("/"),f=W(d);try{for(f.s();!(u=f.n()).done;){var h=u.value;h&&(r=(0,ee._)(F||(F=Q(["","",""])),r,(0,ee.getProperty)((0,re.unescapeJsonPointer)(h))),l=(0,ee._)(z||(z=Q([""," && ",""])),l,r))}}catch(v){f.e(v)}finally{f.f()}return l;function p(e,t){return"Cannot access ".concat(e," ").concat(t," levels up, current level is ").concat(i)}}t.getData=ke},80827:function(e,t,n){"use strict";var r,i,o,a,s,c,u,l,d,f,h=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;var p=n(95925),v=n(40472),g=n(12805),m=n(60353);function y(e){var t=e.gen,n=e.data,r=e.it;t.if(r.parentData,(function(){return t.assign(n,(0,p._)(u||(u=h(["","[","]"])),r.parentData,r.parentDataProperty))}))}function b(e,t,n){if(void 0===n)throw new Error('keyword "'.concat(t,'" failed to compile'));return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,p.stringify)(n)})}t.macroKeywordCode=function(e,t){var n=e.gen,r=e.keyword,i=e.schema,o=e.parentSchema,a=e.it,s=t.macro.call(a.self,i,o,a),c=b(n,r,s);!1!==a.opts.validateSchema&&a.self.validateSchema(s,!0);var u=n.name("valid");e.subschema({schema:s,schemaPath:p.nil,errSchemaPath:"".concat(a.errSchemaPath,"/").concat(r),topSchemaRef:c,compositeRule:!0},u),e.pass(u,(function(){return e.error(!0)}))},t.funcKeywordCode=function(e,t){var n,u=e.gen,A=e.keyword,w=e.schema,k=e.parentSchema,C=e.$data,_=e.it;!function(e,t){var n=e.schemaEnv;if(t.async&&!n.$async)throw new Error("async keyword in sync schema")}(_,t);var x=!C&&t.compile?t.compile.call(_.self,w,k,_):t.validate,E=b(u,A,x),S=u.let("valid");function I(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.async?(0,p._)(s||(s=h(["await "]))):p.nil,r=_.opts.passContext?v.default.this:v.default.self,i=!("compile"in t&&!C||!1===t.schema);u.assign(S,(0,p._)(c||(c=h(["","",""])),n,(0,g.callValidateCode)(e,E,r,i)),t.modifying)}function T(e){var n;u.if((0,p.not)(null!==(n=t.valid)&&void 0!==n?n:S),e)}e.block$data(S,(function(){if(!1===t.errors)I(),t.modifying&&y(e),T((function(){return e.error()}));else{var n=t.async?function(){var e=u.let("ruleErrs",null);return u.try((function(){return I((0,p._)(r||(r=h(["await "]))))}),(function(t){return u.assign(S,!1).if((0,p._)(i||(i=h([""," instanceof ",""])),t,_.ValidationError),(function(){return u.assign(e,(0,p._)(o||(o=h(["",".errors"])),t))}),(function(){return u.throw(t)}))})),e}():function(){var e=(0,p._)(a||(a=h(["",".errors"])),E);return u.assign(e,null),I(p.nil),e}();t.modifying&&y(e),T((function(){return function(e,t){var n=e.gen;n.if((0,p._)(l||(l=h(["Array.isArray(",")"])),t),(function(){n.assign(v.default.vErrors,(0,p._)(d||(d=h([""," === null ? "," : ",".concat(",")"])),v.default.vErrors,t,v.default.vErrors,t)).assign(v.default.errors,(0,p._)(f||(f=h(["",".length"])),v.default.vErrors)),(0,m.extendErrors)(e)}),(function(){return e.error()}))}(e,n)}))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:S)},t.validSchemaType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!t.length||t.some((function(t){return"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&"undefined"==typeof e}))},t.validateKeywordUsage=function(e,t,n){var r=e.schema,i=e.opts,o=e.self,a=e.errSchemaPath;if(Array.isArray(t.keyword)?!t.keyword.includes(n):t.keyword!==n)throw new Error("ajv implementation error");var s=t.dependencies;if(null===s||void 0===s?void 0:s.some((function(e){return!Object.prototype.hasOwnProperty.call(r,e)})))throw new Error("parent schema must have dependencies of ".concat(n,": ").concat(s.join(",")));if(t.validateSchema&&!t.validateSchema(r[n])){var c='keyword "'.concat(n,'" value is invalid at path "').concat(a,'": ')+o.errorsText(t.validateSchema.errors);if("log"!==i.validateSchema)throw new Error(c);o.logger.error(c)}}},27634:function(e,t,n){"use strict";var r,i,o,a,s,c=n(861).default,u=n(59400).default;Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;var l=n(95925),d=n(44992);t.getSubschema=function(e,t){var n=t.keyword,o=t.schemaProp,a=t.schema,s=t.schemaPath,c=t.errSchemaPath,f=t.topSchemaRef;if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){var h=e.schema[n];return void 0===o?{schema:h,schemaPath:(0,l._)(r||(r=u(["","",""])),e.schemaPath,(0,l.getProperty)(n)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(n)}:{schema:h[o],schemaPath:(0,l._)(i||(i=u(["","","",""])),e.schemaPath,(0,l.getProperty)(n),(0,l.getProperty)(o)),errSchemaPath:"".concat(e.errSchemaPath,"/").concat(n,"/").concat((0,d.escapeFragment)(o))}}if(void 0!==a){if(void 0===s||void 0===c||void 0===f)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:s,topSchemaRef:f,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,n){var r=n.dataProp,i=n.dataPropType,f=n.data,h=n.dataTypes,p=n.propertyName;if(void 0!==f&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');var v=t.gen;if(void 0!==r){var g=t.errorPath,m=t.dataPathArr,y=t.opts;b(v.let("data",(0,l._)(o||(o=u(["","",""])),t.data,(0,l.getProperty)(r)),!0)),e.errorPath=(0,l.str)(a||(a=u(["","",""])),g,(0,d.getErrorPath)(r,i,y.jsPropertySyntax)),e.parentDataProperty=(0,l._)(s||(s=u(["",""])),r),e.dataPathArr=[].concat(c(m),[e.parentDataProperty])}function b(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[].concat(c(t.dataNames),[n])}void 0!==f&&(b(f instanceof l.Name?f:v.let("data",f,!0)),void 0!==p&&(e.propertyName=p)),h&&(e.dataTypes=h)},t.extendSubschemaMode=function(e,t){var n=t.jtdDiscriminator,r=t.jtdMetadata,i=t.compositeRule,o=t.createErrors,a=t.allErrors;void 0!==i&&(e.compositeRule=i),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=n,e.jtdMetadata=r}},8181:function(e,t,n){"use strict";var r=n(74704).default,i=n(17061).default,o=n(17156).default,a=n(56690).default,s=n(89728).default,c=n(42122).default;Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var u=n(94862);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=n(95925);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=n(36191),f=n(95854),h=n(61226),p=n(7262),v=n(95925),g=n(19329),m=n(82736),y=n(44992),b=n(64775),A=n(20461),w=function(e,t){return new RegExp(e,t)};w.code="new RegExp";var k=["removeAdditional","useDefaults","coerceTypes"],C=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},x={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};var E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts=c(c({},t),function(e){var t,n,r,i,o,a,s,u,l,d,f,h,p,v,g,m,y,b,k,C,_,x,E,S,I,T=e.strict,D=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===D||void 0===D?1:D||0,N=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:w,P=null!==(i=e.uriResolver)&&void 0!==i?i:A.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:T)||void 0===a||a,strictNumbers:null===(u=null!==(s=e.strictNumbers)&&void 0!==s?s:T)||void 0===u||u,strictTypes:null!==(d=null!==(l=e.strictTypes)&&void 0!==l?l:T)&&void 0!==d?d:"log",strictTuples:null!==(h=null!==(f=e.strictTuples)&&void 0!==f?f:T)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(p=e.strictRequired)&&void 0!==p?p:T)&&void 0!==v&&v,code:e.code?c(c({},e.code),{},{optimize:O,regExp:N}):{optimize:O,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(m=e.loopEnum)&&void 0!==m?m:200,meta:null===(y=e.meta)||void 0===y||y,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(k=e.inlineRefs)||void 0===k||k,schemaId:null!==(C=e.schemaId)&&void 0!==C?C:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(S=e.unicodeRegExp)||void 0===S||S,int32range:null===(I=e.int32range)||void 0===I||I,uriResolver:P}}(t));var n=this.opts.code,r=n.es5,i=n.lines;this.scope=new v.ValueScope({scope:{},prefixes:C,es5:r,lines:i}),this.logger=function(e){if(!1===e)return P;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(t.logger);var o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,h.getRules)(),S.call(this,_,t,"NOT SUPPORTED"),S.call(this,x,t,"DEPRECATED","warn"),this._metaOpts=N.call(this),t.formats&&D.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&O.call(this,t.keywords),"object"==typeof t.meta&&this.addMetaSchema(t.meta),T.call(this),t.validateFormats=o}return s(e,[{key:"_addVocabularies",value:function(){this.addKeyword("$async")}},{key:"_addDefaultMetaSchema",value:function(){var e=this.opts,t=e.$data,n=e.meta,r=e.schemaId,i=b;"id"===r&&((i=c({},b)).id=i.$id,delete i.$id),n&&t&&this.addMetaSchema(i,i[r],!1)}},{key:"defaultMeta",value:function(){var e=this.opts,t=e.meta,n=e.schemaId;return this.opts.defaultMeta="object"==typeof t?t[n]||t:void 0}},{key:"validate",value:function(e,t){var n;if("string"==typeof e){if(!(n=this.getSchema(e)))throw new Error('no schema with key or ref "'.concat(e,'"'))}else n=this.compile(e);var r=n(t);return"$async"in n||(this.errors=n.errors),r}},{key:"compile",value:function(e,t){var n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}},{key:"compileAsync",value:function(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");var n=this.opts.loadSchema;return r.call(this,e,t);function r(e,t){return a.apply(this,arguments)}function a(){return(a=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.call(this,t.$schema);case 2:return r=this._addSchema(t,n),e.abrupt("return",r.validate||u.call(this,r));case 4:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function s(e){return c.apply(this,arguments)}function c(){return(c=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||this.getSchema(t)){e.next=3;break}return e.next=3,r.call(this,{$ref:t},!0);case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function u(e){return l.apply(this,arguments)}function l(){return(l=o(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this._compileSchemaEnv(t));case 4:if(e.prev=4,e.t0=e.catch(0),e.t0 instanceof f.default){e.next=8;break}throw e.t0;case 8:return d.call(this,e.t0),e.next=11,h.call(this,e.t0.missingSchema);case 11:return e.abrupt("return",u.call(this,t));case 12:case"end":return e.stop()}}),e,this,[[0,4]])})))).apply(this,arguments)}function d(e){var t=e.missingSchema,n=e.missingRef;if(this.refs[t])throw new Error("AnySchema ".concat(t," is loaded but ").concat(n," cannot be resolved"))}function h(e){return p.apply(this,arguments)}function p(){return(p=o(i().mark((function e(n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.call(this,n);case 2:if(r=e.sent,this.refs[n]){e.next=6;break}return e.next=6,s.call(this,r.$schema);case 6:this.refs[n]||this.addSchema(r,n,t);case 7:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function v(e){return g.apply(this,arguments)}function g(){return(g=o(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._loading[t])){e.next=3;break}return e.abrupt("return",r);case 3:return e.prev=3,e.next=6,this._loading[t]=n(t);case 6:return e.abrupt("return",e.sent);case 7:return e.prev=7,delete this._loading[t],e.finish(7);case 10:case"end":return e.stop()}}),e,this,[[3,,7,10]])})))).apply(this,arguments)}}},{key:"addSchema",value:function(e,t,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema;if(Array.isArray(e)){var a,s=r(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;this.addSchema(c,void 0,n,o)}}catch(l){s.e(l)}finally{s.f()}return this}if("object"===typeof e){var u=this.opts.schemaId;if(void 0!==(i=e[u])&&"string"!=typeof i)throw new Error("schema ".concat(u," must be string"))}return t=(0,g.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,o,!0),this}},{key:"addMetaSchema",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.opts.validateSchema;return this.addSchema(e,t,!0,n),this}},{key:"validateSchema",value:function(e,t){if("boolean"==typeof e)return!0;var n;if(void 0!==(n=e.$schema)&&"string"!=typeof n)throw new Error("$schema must be a string");if(!(n=n||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;var r=this.validate(n,e);if(!r&&t){var i="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(i);this.logger.error(i)}return r}},{key:"getSchema",value:function(e){for(var t;"string"==typeof(t=I.call(this,e));)e=t;if(void 0===t){var n=this.opts.schemaId,r=new p.SchemaEnv({schema:{},schemaId:n});if(!(t=p.resolveSchema.call(this,r,e)))return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}},{key:"removeSchema",value:function(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":var t=I.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this;case"object":var n=e;this._cache.delete(n);var r=e[this.opts.schemaId];return r&&(r=(0,g.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this;default:throw new Error("ajv.removeSchema: invalid parameter")}}},{key:"addVocabulary",value:function(e){var t,n=r(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.addKeyword(i)}}catch(o){n.e(o)}finally{n.f()}return this}},{key:"addKeyword",value:function(e,t){var n,r=this;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(M.call(this,n,t),!t)return(0,y.eachItem)(n,(function(e){return j.call(r,e)})),this;B.call(this,t);var i=c(c({},t),{},{type:(0,m.getJSONTypes)(t.type),schemaType:(0,m.getJSONTypes)(t.schemaType)});return(0,y.eachItem)(n,0===i.type.length?function(e){return j.call(r,e,i)}:function(e){return i.type.forEach((function(t){return j.call(r,e,i,t)}))}),this}},{key:"getKeyword",value:function(e){var t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}},{key:"removeKeyword",value:function(e){var t=this.RULES;delete t.keywords[e],delete t.all[e];var n,i=r(t.rules);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.rules.findIndex((function(t){return t.keyword===e}));a>=0&&o.rules.splice(a,1)}}catch(s){i.e(s)}finally{i.f()}return this}},{key:"addFormat",value:function(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}},{key:"errorsText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.errors,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.separator,r=void 0===n?", ":n,i=t.dataVar,o=void 0===i?"data":i;return e&&0!==e.length?e.map((function(e){return"".concat(o).concat(e.instancePath," ").concat(e.message)})).reduce((function(e,t){return e+r+t})):"No errors"}},{key:"$dataMetaSchema",value:function(e,t){var n=this.RULES.all;e=JSON.parse(JSON.stringify(e));var i,o=r(t);try{for(o.s();!(i=o.n()).done;){var a,s=i.value.split("/").slice(1),c=e,u=r(s);try{for(u.s();!(a=u.n()).done;){c=c[a.value]}}catch(p){u.e(p)}finally{u.f()}for(var l in n){var d=n[l];if("object"==typeof d){var f=d.definition.$data,h=c[l];f&&h&&(c[l]=F(h))}}}}catch(p){o.e(p)}finally{o.f()}return e}},{key:"_removeAllSchemas",value:function(e,t){for(var n in e){var r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}},{key:"_addSchema",value:function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.opts.validateSchema,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.opts.addUsedSchema,a=this.opts.schemaId;if("object"==typeof e)r=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}var s=this._cache.get(e);if(void 0!==s)return s;n=(0,g.normalizeId)(r||n);var c=g.getSchemaRefs.call(this,e,n);return s=new p.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:c}),this._cache.set(s.schema,s),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),i&&this.validateSchema(e,!0),s}},{key:"_checkUnique",value:function(e){if(this.schemas[e]||this.refs[e])throw new Error('schema with key or id "'.concat(e,'" already exists'))}},{key:"_compileSchemaEnv",value:function(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}},{key:"_compileMetaSchema",value:function(e){var t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}]),e}();function S(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"error";for(var i in e){var o=i;o in t&&this.logger[r]("".concat(n,": option ").concat(i,". ").concat(e[o]))}}function I(e){return e=(0,g.normalizeId)(e),this.schemas[e]||this.refs[e]}function T(){var e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(var t in e)this.addSchema(e[t],t)}function D(){for(var e in this.opts.formats){var t=this.opts.formats[e];t&&this.addFormat(e,t)}}function O(e){if(Array.isArray(e))this.addVocabulary(e);else for(var t in this.logger.warn("keywords option as map is deprecated, pass array"),e){var n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}function N(){var e,t=c({},this.opts),n=r(k);try{for(n.s();!(e=n.n()).done;){delete t[e.value]}}catch(i){n.e(i)}finally{n.f()}return t}t.default=E,E.ValidationError=d.default,E.MissingRefError=f.default;var P={log:function(){},warn:function(){},error:function(){}};var L=/^[a-z_$][a-z0-9_$:-]*$/i;function M(e,t){var n=this.RULES;if((0,y.eachItem)(e,(function(e){if(n.keywords[e])throw new Error("Keyword ".concat(e," is already defined"));if(!L.test(e))throw new Error("Keyword ".concat(e," has invalid name"))})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function j(e,t,n){var r,i=this,o=null===t||void 0===t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');var a=this.RULES,s=o?a.post:a.rules.find((function(e){return e.type===n}));if(s||(s={type:n,rules:[]},a.rules.push(s)),a.keywords[e]=!0,t){var u={keyword:e,definition:c(c({},t),{},{type:(0,m.getJSONTypes)(t.type),schemaType:(0,m.getJSONTypes)(t.schemaType)})};t.before?R.call(this,s,u,t.before):s.rules.push(u),a.all[e]=u,null===(r=t.implements)||void 0===r||r.forEach((function(e){return i.addKeyword(e)}))}}function R(e,t,n){var r=e.rules.findIndex((function(e){return e.keyword===n}));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn("rule ".concat(n," is not defined")))}function B(e){var t=e.metaSchema;void 0!==t&&(e.$data&&this.opts.$data&&(t=F(t)),e.validateSchema=this.compile(t,!0))}var Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function F(e){return{anyOf:[e,Z]}}},99398:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73329),i=n(18161),o=n(87114),a=n(484),s=n(70877),c=n(65032),u=n(82374),l=["/properties"];t.default=function(e){var t=this;return[r,i,o,a,n(this,s),c,n(this,u)].forEach((function(e){return t.addMetaSchema(e,void 0,!1)})),this;function n(t,n){return e?t.$dataMetaSchema(n,l):n}}},99336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22577),i=n(90996),o=n(5568),a=n(46795),s=n(235),c=n(2567),u=n(41233),l=n(61968),d=["/properties"];t.default=function(e){var t=this;return[r,i,o,a,s,n(this,c),u,n(this,l)].forEach((function(e){return t.addMetaSchema(e,void 0,!1)})),this;function n(t,n){return e?t.$dataMetaSchema(n,d):n}}},20712:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(89806);r.code='require("ajv/dist/runtime/equal").default',t.default=r},11274:function(e,t){"use strict";function n(e){for(var t,n=e.length,r=0,i=0;i