mobileboost-cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{index-Deils465.js → index-Bu1akwRM.js} +68 -75
- package/.output/public/assets/{main-5WzLXT-A.js → main-BOWxdROu.js} +1 -1
- package/.output/server/chunks/_/{_tanstack-start-manifest_v-Chz34YFq.mjs → _tanstack-start-manifest_v-CUvi9Zok.mjs} +1 -1
- package/.output/server/chunks/_/cache-D_LOBxSY.mjs +1 -0
- package/.output/server/chunks/_/client-DG3m9828.mjs +1 -0
- package/.output/server/chunks/_/index-Cz7u2rY_.mjs +419 -0
- package/.output/server/chunks/_/{router-vxnEMbKX.mjs → router-Bufjq1jN.mjs} +1 -1
- package/.output/server/chunks/_/server.mjs +2 -2
- package/.output/server/index.mjs +6 -6
- package/dist/commands/studio.js +16 -8
- package/dist/commands/studio.js.map +1 -1
- package/package.json +1 -1
- package/.output/server/chunks/_/cache-C5L90tGD.mjs +0 -1
- package/.output/server/chunks/_/client-CzCEo8ab.mjs +0 -1
- package/.output/server/chunks/_/index-BPmuBr-n.mjs +0 -426
|
@@ -48,4 +48,4 @@ const theme = ${JSON.stringify(a,null,2)};
|
|
|
48
48
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
49
49
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
50
50
|
|
|
51
|
-
export default theme;`}function m0(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const PA=e=>{if(!Number.isNaN(+e))return+e;const a=e.match(/\d*\.?\d+/g);if(!a)return 0;let i=0;for(let s=0;s<a.length;s+=1)i+=+a[s];return i};function KA(e){Object.assign(e,{alpha(a,i){const s=this||e;return s.colorSpace?`oklch(from ${a} l c h / ${typeof i=="string"?`calc(${i})`:i})`:s.vars?`rgba(${a.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:Kv(a,PA(i))},lighten(a,i){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${a}, #fff ${m0(i)})`:su(a,i)},darken(a,i){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${a}, #000 ${m0(i)})`:lu(a,i)}})}function gd(e={},...a){const{breakpoints:i,mixins:s={},spacing:o,palette:f={},transitions:d={},typography:h={},shape:m,colorSpace:y,...v}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(pr(20));const g=Zd({...f,colorSpace:y}),S=Qv(e);let E=nn(S,{mixins:NA(S.breakpoints,s),palette:g,shadows:kA.slice(),typography:nS(g,h),transitions:YA(d),zIndex:{...VA}});return E=nn(E,v),E=a.reduce((R,_)=>nn(R,_),E),E.unstable_sxConfig={...$l,...v?.unstable_sxConfig},E.unstable_sx=function(_){return Pl({sx:_,theme:this})},E.toRuntimeSource=aS,KA(E),E}function XA(e){let a;return e<1?a=5.11916*e**2:a=4.5*Math.log(e+1)+2,Math.round(a*10)/1e3}const FA=[...Array(25)].map((e,a)=>{if(a===0)return"none";const i=XA(a);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function rS(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function iS(e){return e==="dark"?FA:[]}function ZA(e){const{palette:a={mode:"light"},opacity:i,overlays:s,colorSpace:o,...f}=e,d=Zd({...a,colorSpace:o});return{palette:d,opacity:{...rS(d.mode),...i},overlays:s||iS(d.mode),...f}}function JA(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const IA=e=>[...[...Array(25)].map((a,i)=>`--${e?`${e}-`:""}overlays-${i}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],WA=e=>(a,i)=>{const s=e.rootSelector||":root",o=e.colorSchemeSelector;let f=o;if(o==="class"&&(f=".%s"),o==="data"&&(f="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(f=`[${o}="%s"]`),e.defaultColorScheme===a){if(a==="dark"){const d={};return IA(e.cssVarPrefix).forEach(h=>{d[h]=i[h],delete i[h]}),f==="media"?{[s]:i,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",a)]:d,[`${s}, ${f.replace("%s",a)}`]:i}:{[s]:{...i,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(a))}`}else if(a){if(f==="media")return{[`@media (prefers-color-scheme: ${String(a)})`]:{[s]:i}};if(f)return f.replace("%s",String(a))}return s};function tw(e,a){a.forEach(i=>{e[i]||(e[i]={})})}function P(e,a,i){!e[a]&&i&&(e[a]=i)}function bl(e){return typeof e!="string"||!e.startsWith("hsl")?e:Pv(e)}function ea(e,a){`${a}Channel`in e||(e[`${a}Channel`]=Sl(bl(e[a])))}function ew(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zn=e=>{try{return e()}catch{}},nw=(e="mui")=>_A(e);function Zf(e,a,i,s,o){if(!i)return;i=i===!0?{}:i;const f=o==="dark"?"dark":"light";if(!s){a[o]=ZA({...i,palette:{mode:f,...i?.palette},colorSpace:e});return}const{palette:d,...h}=gd({...s,palette:{mode:f,...i?.palette},colorSpace:e});return a[o]={...i,palette:d,opacity:{...rS(f),...i?.opacity},overlays:i?.overlays||iS(f)},h}function aw(e={},...a){const{colorSchemes:i={light:!0},defaultColorScheme:s,disableCssColorScheme:o=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:h=JA,colorSchemeSelector:m=i.light&&i.dark?"media":void 0,rootSelector:y=":root",...v}=e,g=Object.keys(i)[0],S=s||(i.light&&g!=="light"?"light":g),E=nw(f),{[S]:R,light:_,dark:A,...z}=i,G={...z};let Q=R;if((S==="dark"&&!("dark"in i)||S==="light"&&!("light"in i))&&(Q=!0),!Q)throw new Error(pr(21,S));let k;d&&(k="oklch");const j=Zf(k,G,Q,v,S);_&&!G.light&&Zf(k,G,_,void 0,"light"),A&&!G.dark&&Zf(k,G,A,void 0,"dark");let L={defaultColorScheme:S,...j,cssVarPrefix:f,colorSchemeSelector:m,rootSelector:y,getCssVar:E,colorSchemes:G,font:{...LA(j.typography),...j.font},spacing:ew(v.spacing)};Object.keys(L.colorSchemes).forEach(at=>{const C=L.colorSchemes[at].palette,it=ct=>{const U=ct.split("-"),tt=U[1],ot=U[2];return E(ct,C[tt][ot])};C.mode==="light"&&(P(C.common,"background","#fff"),P(C.common,"onBackground","#000")),C.mode==="dark"&&(P(C.common,"background","#000"),P(C.common,"onBackground","#fff"));function W(ct,U,tt){if(k){let ot;return ct===lr&&(ot=`transparent ${((1-tt)*100).toFixed(0)}%`),ct===Ut&&(ot=`#000 ${(tt*100).toFixed(0)}%`),ct===Ht&&(ot=`#fff ${(tt*100).toFixed(0)}%`),`color-mix(in ${k}, ${U}, ${ot})`}return ct(U,tt)}if(tw(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){P(C.Alert,"errorColor",W(Ut,C.error.light,.6)),P(C.Alert,"infoColor",W(Ut,C.info.light,.6)),P(C.Alert,"successColor",W(Ut,C.success.light,.6)),P(C.Alert,"warningColor",W(Ut,C.warning.light,.6)),P(C.Alert,"errorFilledBg",it("palette-error-main")),P(C.Alert,"infoFilledBg",it("palette-info-main")),P(C.Alert,"successFilledBg",it("palette-success-main")),P(C.Alert,"warningFilledBg",it("palette-warning-main")),P(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.main))),P(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.main))),P(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.main))),P(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.main))),P(C.Alert,"errorStandardBg",W(Ht,C.error.light,.9)),P(C.Alert,"infoStandardBg",W(Ht,C.info.light,.9)),P(C.Alert,"successStandardBg",W(Ht,C.success.light,.9)),P(C.Alert,"warningStandardBg",W(Ht,C.warning.light,.9)),P(C.Alert,"errorIconColor",it("palette-error-main")),P(C.Alert,"infoIconColor",it("palette-info-main")),P(C.Alert,"successIconColor",it("palette-success-main")),P(C.Alert,"warningIconColor",it("palette-warning-main")),P(C.AppBar,"defaultBg",it("palette-grey-100")),P(C.Avatar,"defaultBg",it("palette-grey-400")),P(C.Button,"inheritContainedBg",it("palette-grey-300")),P(C.Button,"inheritContainedHoverBg",it("palette-grey-A100")),P(C.Chip,"defaultBorder",it("palette-grey-400")),P(C.Chip,"defaultAvatarColor",it("palette-grey-700")),P(C.Chip,"defaultIconColor",it("palette-grey-700")),P(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),P(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),P(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),P(C.LinearProgress,"primaryBg",W(Ht,C.primary.main,.62)),P(C.LinearProgress,"secondaryBg",W(Ht,C.secondary.main,.62)),P(C.LinearProgress,"errorBg",W(Ht,C.error.main,.62)),P(C.LinearProgress,"infoBg",W(Ht,C.info.main,.62)),P(C.LinearProgress,"successBg",W(Ht,C.success.main,.62)),P(C.LinearProgress,"warningBg",W(Ht,C.warning.main,.62)),P(C.Skeleton,"bg",k?W(lr,C.text.primary,.11):`rgba(${it("palette-text-primaryChannel")} / 0.11)`),P(C.Slider,"primaryTrack",W(Ht,C.primary.main,.62)),P(C.Slider,"secondaryTrack",W(Ht,C.secondary.main,.62)),P(C.Slider,"errorTrack",W(Ht,C.error.main,.62)),P(C.Slider,"infoTrack",W(Ht,C.info.main,.62)),P(C.Slider,"successTrack",W(Ht,C.success.main,.62)),P(C.Slider,"warningTrack",W(Ht,C.warning.main,.62));const ct=k?W(Ut,C.background.default,.6825):vo(C.background.default,.8);P(C.SnackbarContent,"bg",ct),P(C.SnackbarContent,"color",zn(()=>k?pd.text.primary:C.getContrastText(ct))),P(C.SpeedDialAction,"fabHoverBg",vo(C.background.paper,.15)),P(C.StepConnector,"border",it("palette-grey-400")),P(C.StepContent,"border",it("palette-grey-400")),P(C.Switch,"defaultColor",it("palette-common-white")),P(C.Switch,"defaultDisabledColor",it("palette-grey-100")),P(C.Switch,"primaryDisabledColor",W(Ht,C.primary.main,.62)),P(C.Switch,"secondaryDisabledColor",W(Ht,C.secondary.main,.62)),P(C.Switch,"errorDisabledColor",W(Ht,C.error.main,.62)),P(C.Switch,"infoDisabledColor",W(Ht,C.info.main,.62)),P(C.Switch,"successDisabledColor",W(Ht,C.success.main,.62)),P(C.Switch,"warningDisabledColor",W(Ht,C.warning.main,.62)),P(C.TableCell,"border",W(Ht,W(lr,C.divider,1),.88)),P(C.Tooltip,"bg",W(lr,C.grey[700],.92))}if(C.mode==="dark"){P(C.Alert,"errorColor",W(Ht,C.error.light,.6)),P(C.Alert,"infoColor",W(Ht,C.info.light,.6)),P(C.Alert,"successColor",W(Ht,C.success.light,.6)),P(C.Alert,"warningColor",W(Ht,C.warning.light,.6)),P(C.Alert,"errorFilledBg",it("palette-error-dark")),P(C.Alert,"infoFilledBg",it("palette-info-dark")),P(C.Alert,"successFilledBg",it("palette-success-dark")),P(C.Alert,"warningFilledBg",it("palette-warning-dark")),P(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.dark))),P(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.dark))),P(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.dark))),P(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.dark))),P(C.Alert,"errorStandardBg",W(Ut,C.error.light,.9)),P(C.Alert,"infoStandardBg",W(Ut,C.info.light,.9)),P(C.Alert,"successStandardBg",W(Ut,C.success.light,.9)),P(C.Alert,"warningStandardBg",W(Ut,C.warning.light,.9)),P(C.Alert,"errorIconColor",it("palette-error-main")),P(C.Alert,"infoIconColor",it("palette-info-main")),P(C.Alert,"successIconColor",it("palette-success-main")),P(C.Alert,"warningIconColor",it("palette-warning-main")),P(C.AppBar,"defaultBg",it("palette-grey-900")),P(C.AppBar,"darkBg",it("palette-background-paper")),P(C.AppBar,"darkColor",it("palette-text-primary")),P(C.Avatar,"defaultBg",it("palette-grey-600")),P(C.Button,"inheritContainedBg",it("palette-grey-800")),P(C.Button,"inheritContainedHoverBg",it("palette-grey-700")),P(C.Chip,"defaultBorder",it("palette-grey-700")),P(C.Chip,"defaultAvatarColor",it("palette-grey-300")),P(C.Chip,"defaultIconColor",it("palette-grey-300")),P(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),P(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),P(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),P(C.LinearProgress,"primaryBg",W(Ut,C.primary.main,.5)),P(C.LinearProgress,"secondaryBg",W(Ut,C.secondary.main,.5)),P(C.LinearProgress,"errorBg",W(Ut,C.error.main,.5)),P(C.LinearProgress,"infoBg",W(Ut,C.info.main,.5)),P(C.LinearProgress,"successBg",W(Ut,C.success.main,.5)),P(C.LinearProgress,"warningBg",W(Ut,C.warning.main,.5)),P(C.Skeleton,"bg",k?W(lr,C.text.primary,.13):`rgba(${it("palette-text-primaryChannel")} / 0.13)`),P(C.Slider,"primaryTrack",W(Ut,C.primary.main,.5)),P(C.Slider,"secondaryTrack",W(Ut,C.secondary.main,.5)),P(C.Slider,"errorTrack",W(Ut,C.error.main,.5)),P(C.Slider,"infoTrack",W(Ut,C.info.main,.5)),P(C.Slider,"successTrack",W(Ut,C.success.main,.5)),P(C.Slider,"warningTrack",W(Ut,C.warning.main,.5));const ct=k?W(Ht,C.background.default,.985):vo(C.background.default,.98);P(C.SnackbarContent,"bg",ct),P(C.SnackbarContent,"color",zn(()=>k?tS.text.primary:C.getContrastText(ct))),P(C.SpeedDialAction,"fabHoverBg",vo(C.background.paper,.15)),P(C.StepConnector,"border",it("palette-grey-600")),P(C.StepContent,"border",it("palette-grey-600")),P(C.Switch,"defaultColor",it("palette-grey-300")),P(C.Switch,"defaultDisabledColor",it("palette-grey-600")),P(C.Switch,"primaryDisabledColor",W(Ut,C.primary.main,.55)),P(C.Switch,"secondaryDisabledColor",W(Ut,C.secondary.main,.55)),P(C.Switch,"errorDisabledColor",W(Ut,C.error.main,.55)),P(C.Switch,"infoDisabledColor",W(Ut,C.info.main,.55)),P(C.Switch,"successDisabledColor",W(Ut,C.success.main,.55)),P(C.Switch,"warningDisabledColor",W(Ut,C.warning.main,.55)),P(C.TableCell,"border",W(Ut,W(lr,C.divider,1),.68)),P(C.Tooltip,"bg",W(lr,C.grey[700],.92))}ea(C.background,"default"),ea(C.background,"paper"),ea(C.common,"background"),ea(C.common,"onBackground"),ea(C,"divider"),Object.keys(C).forEach(ct=>{const U=C[ct];ct!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&P(C[ct],"mainChannel",Sl(bl(U.main))),U.light&&P(C[ct],"lightChannel",Sl(bl(U.light))),U.dark&&P(C[ct],"darkChannel",Sl(bl(U.dark))),U.contrastText&&P(C[ct],"contrastTextChannel",Sl(bl(U.contrastText))),ct==="text"&&(ea(C[ct],"primary"),ea(C[ct],"secondary")),ct==="action"&&(U.active&&ea(C[ct],"active"),U.selected&&ea(C[ct],"selected")))})}),L=a.reduce((at,C)=>nn(at,C),L);const Y={prefix:f,disableCssColorScheme:o,shouldSkipGeneratingVar:h,getSelector:WA(L),enableContrastVars:d},{vars:F,generateThemeVars:I,generateStyleSheets:nt}=EA(L,Y);return L.vars=F,Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([at,C])=>{L[at]=C}),L.generateThemeVars=I,L.generateStyleSheets=nt,L.generateSpacing=function(){return Gv(v.spacing,Yd(this))},L.getColorSchemeSelector=xA(m),L.spacing=L.generateSpacing(),L.shouldSkipGeneratingVar=h,L.unstable_sxConfig={...$l,...v?.unstable_sxConfig},L.unstable_sx=function(C){return Pl({sx:C,theme:this})},L.toRuntimeSource=aS,L}function y0(e,a,i){e.colorSchemes&&i&&(e.colorSchemes[a]={...i!==!0&&i,palette:Zd({...i===!0?{}:i.palette,mode:a})})}function Jd(e={},...a){const{palette:i,cssVariables:s=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:f=i?.mode,...d}=e,h=f||"light",m=o?.[h],y={...o,...i?{[h]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(s===!1){if(!("colorSchemes"in e))return gd(e,...a);let v=i;"palette"in e||y[h]&&(y[h]!==!0?v=y[h].palette:h==="dark"&&(v={mode:"dark"}));const g=gd({...e,palette:v},...a);return g.defaultColorScheme=h,g.colorSchemes=y,g.palette.mode==="light"&&(g.colorSchemes.light={...y.light!==!0&&y.light,palette:g.palette},y0(g,"dark",y.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...y.dark!==!0&&y.dark,palette:g.palette},y0(g,"light",y.light)),g}return!i&&!("light"in y)&&h==="light"&&(y.light=!0),aw({...d,colorSchemes:y,defaultColorScheme:h,...typeof s!="boolean"&&s},...a)}const rw=Jd();function iw({theme:e,...a}){const i=dr in e?e[dr]:void 0;return K.jsx(Jv,{...a,themeId:i?dr:void 0,theme:i||e})}const So={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:lw}=bA({themeId:dr,theme:()=>Jd({cssVariables:!0}),colorSchemeStorageKey:So.colorSchemeStorageKey,modeStorageKey:So.modeStorageKey,defaultColorScheme:{light:So.defaultLightColorScheme,dark:So.defaultDarkColorScheme},resolveTheme:e=>{const a={...e,typography:nS(e.palette,e.typography)};return a.unstable_sx=function(s){return Pl({sx:s,theme:this})},a}}),sw=lw;function ow({theme:e,...a}){const i=J.useMemo(()=>{if(typeof e=="function")return e;const s=dr in e?e[dr]:e;return"colorSchemes"in s?null:"vars"in s?e:{...e,vars:null}},[e]);return i?K.jsx(iw,{theme:i,...a}):K.jsx(sw,{theme:e,...a})}function uw(e){return K.jsx(Yv,{...e,defaultTheme:rw,themeId:dr})}function lS(e){return function(i){return K.jsx(uw,{styles:typeof e=="function"?s=>e({theme:s,...i}):e})}}function Vw(){return XR}function cw(e){return oA(e)}const vd=typeof lS({})=="function",fw=(e,a)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...a&&!e.vars&&{colorScheme:e.palette.mode}}),dw=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),sS=(e,a=!1)=>{const i={};a&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([f,d])=>{const h=e.getColorSchemeSelector(f);h.startsWith("@")?i[h]={":root":{colorScheme:d.palette?.mode}}:i[h.replace(/\s*&/,"")]={colorScheme:d.palette?.mode}});let s={html:fw(e,a),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...dw(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(s=[s,o]),s},Ao="mui-ecs",hw=e=>{const a=sS(e,!1),i=Array.isArray(a)?a[0]:a;return!e.vars&&i&&(i.html[`:root:has(${Ao})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{const f=e.getColorSchemeSelector(s);f.startsWith("@")?i[f]={[`:root:not(:has(.${Ao}))`]:{colorScheme:o.palette?.mode}}:i[f.replace(/\s*&/,"")]={[`&:not(:has(.${Ao}))`]:{colorScheme:o.palette?.mode}}}),a},mw=lS(vd?({theme:e,enableColorScheme:a})=>sS(e,a):({theme:e})=>hw(e));function yw(e){const a=cw({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:s=!1}=a;return K.jsxs(J.Fragment,{children:[vd&&K.jsx(mw,{enableColorScheme:s}),!vd&&!s&&K.jsx("span",{className:Ao,style:{display:"none"}}),i]})}const pw="/assets/index-DcK8FECE.css",gw=Jd({typography:{fontFamily:"'Roboto Variable', sans-serif"}}),oS=DT()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Mobileboost CLI"}],links:[{rel:"stylesheet",href:pw}]}),shellComponent:vw});function vw(){return K.jsx(bw,{children:K.jsx(fv,{})})}function Sw({children:e}){const a=Mv({key:"css"});return K.jsx(zx,{value:a,children:K.jsxs(ow,{theme:gw,children:[K.jsx(yw,{}),e]})})}function bw({children:e}){return K.jsxs("html",{children:[K.jsx("head",{children:K.jsx(ZT,{})}),K.jsxs("body",{children:[K.jsx(Sw,{children:e}),K.jsx(IT,{})]})]})}const _w="modulepreload",Cw=function(e){return"/"+e},p0={},Tw=function(a,i,s){let o=Promise.resolve();if(i&&i.length>0){let m=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");o=m(i.map(y=>{if(y=Cw(y),y in p0)return;p0[y]=!0;const v=y.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${g}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":_w,v||(S.as="script"),S.crossOrigin="",S.href=y,h&&S.setAttribute("nonce",h),document.head.appendChild(S),v)return new Promise((E,R)=>{S.addEventListener("load",E),S.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return o.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return a().catch(f)})},Ew=()=>Tw(()=>import("./index-Deils465.js"),[]),xw=nd("/")({component:BT(Ew,"component")}),Rw=xw.update({id:"/",path:"/",getParentRoute:()=>oS}),Aw={IndexRoute:Rw},ww=oS._addFileChildren(Aw);function Ow({error:e}){const a=ge(),i=Tn({strict:!1,select:s=>s.id===ke});return console.error(e),K.jsxs("div",{className:"min-w-0 flex-1 p-4 flex flex-col items-center justify-center gap-6",children:[K.jsx(kl,{error:e}),K.jsxs("div",{className:"flex gap-2 items-center flex-wrap",children:[K.jsx("button",{onClick:()=>{a.invalidate()},className:"px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded-sm text-white uppercase font-extrabold",children:"Try Again"}),i?K.jsx(Ml,{to:"/",className:"px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded-sm text-white uppercase font-extrabold",children:"Home"}):K.jsx(Ml,{to:"/",className:"px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded-sm text-white uppercase font-extrabold",onClick:s=>{s.preventDefault(),window.history.back()},children:"Go Back"})]})]})}function Mw({children:e}){return K.jsxs("div",{className:"space-y-2 p-2",children:[K.jsx("div",{className:"text-gray-600 dark:text-gray-400",children:e||K.jsx("p",{children:"The page you are looking for does not exist."})}),K.jsxs("p",{className:"flex items-center gap-2 flex-wrap",children:[K.jsx("button",{onClick:()=>window.history.back(),className:"bg-emerald-500 text-white px-2 py-1 rounded-sm uppercase font-black text-sm",children:"Go back"}),K.jsx(Ml,{to:"/",className:"bg-cyan-600 text-white px-2 py-1 rounded-sm uppercase font-black text-sm",children:"Start Over"})]})]})}function zw(){const e=new QE,a=VT({routeTree:ww,context:{queryClient:e},defaultPreload:"intent",defaultErrorComponent:Ow,defaultNotFoundComponent:()=>K.jsx(Mw,{})});return PE({router:a,queryClient:e}),a}async function Dw(){const e=await zw();let a;return a=[],window.__TSS_START_OPTIONS__={serializationAdapters:a},a.push(cE),e.options.serializationAdapters&&a.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:a}),e.state.matches.length||await tE(e),e}let Jf;function Lw(){return Jf||(Jf=Dw()),K.jsx(sT,{promise:Jf,children:e=>K.jsx(KT,{router:e})})}J.startTransition(()=>{B1.hydrateRoot(document,K.jsx(J.StrictMode,{children:K.jsx(Lw,{})}))});export{qe as $,Qw as A,na as B,rw as C,cw as D,kv as E,$v as F,Nw as G,GA as H,Kv as I,XA as J,qw as K,Ux as L,fA as M,Vw as N,ov as O,Yw as P,lS as Q,yi as R,Ko as S,dr as T,pr as U,Jd as V,md as W,nn as X,tA as Y,Ul as Z,fd as _,ld as a,q1 as a0,hd as a1,jw as a2,rE as a3,tn as a4,Ge as a5,uE as a6,vT as a7,yE as b,id as c,jE as d,bE as e,pv as f,Me as g,zl as h,Xo as i,kE as j,J as k,Hw as l,Gw as m,Oe as n,Pl as o,EE as p,PR as q,gE as r,Uw as s,pE as t,kw as u,XR as v,K as w,FR as x,Kx as y,Qv as z};
|
|
51
|
+
export default theme;`}function m0(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const PA=e=>{if(!Number.isNaN(+e))return+e;const a=e.match(/\d*\.?\d+/g);if(!a)return 0;let i=0;for(let s=0;s<a.length;s+=1)i+=+a[s];return i};function KA(e){Object.assign(e,{alpha(a,i){const s=this||e;return s.colorSpace?`oklch(from ${a} l c h / ${typeof i=="string"?`calc(${i})`:i})`:s.vars?`rgba(${a.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof i=="string"?`calc(${i})`:i})`:Kv(a,PA(i))},lighten(a,i){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${a}, #fff ${m0(i)})`:su(a,i)},darken(a,i){const s=this||e;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${a}, #000 ${m0(i)})`:lu(a,i)}})}function gd(e={},...a){const{breakpoints:i,mixins:s={},spacing:o,palette:f={},transitions:d={},typography:h={},shape:m,colorSpace:y,...v}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(pr(20));const g=Zd({...f,colorSpace:y}),S=Qv(e);let E=nn(S,{mixins:NA(S.breakpoints,s),palette:g,shadows:kA.slice(),typography:nS(g,h),transitions:YA(d),zIndex:{...VA}});return E=nn(E,v),E=a.reduce((R,_)=>nn(R,_),E),E.unstable_sxConfig={...$l,...v?.unstable_sxConfig},E.unstable_sx=function(_){return Pl({sx:_,theme:this})},E.toRuntimeSource=aS,KA(E),E}function XA(e){let a;return e<1?a=5.11916*e**2:a=4.5*Math.log(e+1)+2,Math.round(a*10)/1e3}const FA=[...Array(25)].map((e,a)=>{if(a===0)return"none";const i=XA(a);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function rS(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function iS(e){return e==="dark"?FA:[]}function ZA(e){const{palette:a={mode:"light"},opacity:i,overlays:s,colorSpace:o,...f}=e,d=Zd({...a,colorSpace:o});return{palette:d,opacity:{...rS(d.mode),...i},overlays:s||iS(d.mode),...f}}function JA(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const IA=e=>[...[...Array(25)].map((a,i)=>`--${e?`${e}-`:""}overlays-${i}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],WA=e=>(a,i)=>{const s=e.rootSelector||":root",o=e.colorSchemeSelector;let f=o;if(o==="class"&&(f=".%s"),o==="data"&&(f="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(f=`[${o}="%s"]`),e.defaultColorScheme===a){if(a==="dark"){const d={};return IA(e.cssVarPrefix).forEach(h=>{d[h]=i[h],delete i[h]}),f==="media"?{[s]:i,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",a)]:d,[`${s}, ${f.replace("%s",a)}`]:i}:{[s]:{...i,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(a))}`}else if(a){if(f==="media")return{[`@media (prefers-color-scheme: ${String(a)})`]:{[s]:i}};if(f)return f.replace("%s",String(a))}return s};function tw(e,a){a.forEach(i=>{e[i]||(e[i]={})})}function P(e,a,i){!e[a]&&i&&(e[a]=i)}function bl(e){return typeof e!="string"||!e.startsWith("hsl")?e:Pv(e)}function ea(e,a){`${a}Channel`in e||(e[`${a}Channel`]=Sl(bl(e[a])))}function ew(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const zn=e=>{try{return e()}catch{}},nw=(e="mui")=>_A(e);function Zf(e,a,i,s,o){if(!i)return;i=i===!0?{}:i;const f=o==="dark"?"dark":"light";if(!s){a[o]=ZA({...i,palette:{mode:f,...i?.palette},colorSpace:e});return}const{palette:d,...h}=gd({...s,palette:{mode:f,...i?.palette},colorSpace:e});return a[o]={...i,palette:d,opacity:{...rS(f),...i?.opacity},overlays:i?.overlays||iS(f)},h}function aw(e={},...a){const{colorSchemes:i={light:!0},defaultColorScheme:s,disableCssColorScheme:o=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:h=JA,colorSchemeSelector:m=i.light&&i.dark?"media":void 0,rootSelector:y=":root",...v}=e,g=Object.keys(i)[0],S=s||(i.light&&g!=="light"?"light":g),E=nw(f),{[S]:R,light:_,dark:A,...z}=i,G={...z};let Q=R;if((S==="dark"&&!("dark"in i)||S==="light"&&!("light"in i))&&(Q=!0),!Q)throw new Error(pr(21,S));let k;d&&(k="oklch");const j=Zf(k,G,Q,v,S);_&&!G.light&&Zf(k,G,_,void 0,"light"),A&&!G.dark&&Zf(k,G,A,void 0,"dark");let L={defaultColorScheme:S,...j,cssVarPrefix:f,colorSchemeSelector:m,rootSelector:y,getCssVar:E,colorSchemes:G,font:{...LA(j.typography),...j.font},spacing:ew(v.spacing)};Object.keys(L.colorSchemes).forEach(at=>{const C=L.colorSchemes[at].palette,it=ct=>{const U=ct.split("-"),tt=U[1],ot=U[2];return E(ct,C[tt][ot])};C.mode==="light"&&(P(C.common,"background","#fff"),P(C.common,"onBackground","#000")),C.mode==="dark"&&(P(C.common,"background","#000"),P(C.common,"onBackground","#fff"));function W(ct,U,tt){if(k){let ot;return ct===lr&&(ot=`transparent ${((1-tt)*100).toFixed(0)}%`),ct===Ut&&(ot=`#000 ${(tt*100).toFixed(0)}%`),ct===Ht&&(ot=`#fff ${(tt*100).toFixed(0)}%`),`color-mix(in ${k}, ${U}, ${ot})`}return ct(U,tt)}if(tw(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){P(C.Alert,"errorColor",W(Ut,C.error.light,.6)),P(C.Alert,"infoColor",W(Ut,C.info.light,.6)),P(C.Alert,"successColor",W(Ut,C.success.light,.6)),P(C.Alert,"warningColor",W(Ut,C.warning.light,.6)),P(C.Alert,"errorFilledBg",it("palette-error-main")),P(C.Alert,"infoFilledBg",it("palette-info-main")),P(C.Alert,"successFilledBg",it("palette-success-main")),P(C.Alert,"warningFilledBg",it("palette-warning-main")),P(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.main))),P(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.main))),P(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.main))),P(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.main))),P(C.Alert,"errorStandardBg",W(Ht,C.error.light,.9)),P(C.Alert,"infoStandardBg",W(Ht,C.info.light,.9)),P(C.Alert,"successStandardBg",W(Ht,C.success.light,.9)),P(C.Alert,"warningStandardBg",W(Ht,C.warning.light,.9)),P(C.Alert,"errorIconColor",it("palette-error-main")),P(C.Alert,"infoIconColor",it("palette-info-main")),P(C.Alert,"successIconColor",it("palette-success-main")),P(C.Alert,"warningIconColor",it("palette-warning-main")),P(C.AppBar,"defaultBg",it("palette-grey-100")),P(C.Avatar,"defaultBg",it("palette-grey-400")),P(C.Button,"inheritContainedBg",it("palette-grey-300")),P(C.Button,"inheritContainedHoverBg",it("palette-grey-A100")),P(C.Chip,"defaultBorder",it("palette-grey-400")),P(C.Chip,"defaultAvatarColor",it("palette-grey-700")),P(C.Chip,"defaultIconColor",it("palette-grey-700")),P(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),P(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),P(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),P(C.LinearProgress,"primaryBg",W(Ht,C.primary.main,.62)),P(C.LinearProgress,"secondaryBg",W(Ht,C.secondary.main,.62)),P(C.LinearProgress,"errorBg",W(Ht,C.error.main,.62)),P(C.LinearProgress,"infoBg",W(Ht,C.info.main,.62)),P(C.LinearProgress,"successBg",W(Ht,C.success.main,.62)),P(C.LinearProgress,"warningBg",W(Ht,C.warning.main,.62)),P(C.Skeleton,"bg",k?W(lr,C.text.primary,.11):`rgba(${it("palette-text-primaryChannel")} / 0.11)`),P(C.Slider,"primaryTrack",W(Ht,C.primary.main,.62)),P(C.Slider,"secondaryTrack",W(Ht,C.secondary.main,.62)),P(C.Slider,"errorTrack",W(Ht,C.error.main,.62)),P(C.Slider,"infoTrack",W(Ht,C.info.main,.62)),P(C.Slider,"successTrack",W(Ht,C.success.main,.62)),P(C.Slider,"warningTrack",W(Ht,C.warning.main,.62));const ct=k?W(Ut,C.background.default,.6825):vo(C.background.default,.8);P(C.SnackbarContent,"bg",ct),P(C.SnackbarContent,"color",zn(()=>k?pd.text.primary:C.getContrastText(ct))),P(C.SpeedDialAction,"fabHoverBg",vo(C.background.paper,.15)),P(C.StepConnector,"border",it("palette-grey-400")),P(C.StepContent,"border",it("palette-grey-400")),P(C.Switch,"defaultColor",it("palette-common-white")),P(C.Switch,"defaultDisabledColor",it("palette-grey-100")),P(C.Switch,"primaryDisabledColor",W(Ht,C.primary.main,.62)),P(C.Switch,"secondaryDisabledColor",W(Ht,C.secondary.main,.62)),P(C.Switch,"errorDisabledColor",W(Ht,C.error.main,.62)),P(C.Switch,"infoDisabledColor",W(Ht,C.info.main,.62)),P(C.Switch,"successDisabledColor",W(Ht,C.success.main,.62)),P(C.Switch,"warningDisabledColor",W(Ht,C.warning.main,.62)),P(C.TableCell,"border",W(Ht,W(lr,C.divider,1),.88)),P(C.Tooltip,"bg",W(lr,C.grey[700],.92))}if(C.mode==="dark"){P(C.Alert,"errorColor",W(Ht,C.error.light,.6)),P(C.Alert,"infoColor",W(Ht,C.info.light,.6)),P(C.Alert,"successColor",W(Ht,C.success.light,.6)),P(C.Alert,"warningColor",W(Ht,C.warning.light,.6)),P(C.Alert,"errorFilledBg",it("palette-error-dark")),P(C.Alert,"infoFilledBg",it("palette-info-dark")),P(C.Alert,"successFilledBg",it("palette-success-dark")),P(C.Alert,"warningFilledBg",it("palette-warning-dark")),P(C.Alert,"errorFilledColor",zn(()=>C.getContrastText(C.error.dark))),P(C.Alert,"infoFilledColor",zn(()=>C.getContrastText(C.info.dark))),P(C.Alert,"successFilledColor",zn(()=>C.getContrastText(C.success.dark))),P(C.Alert,"warningFilledColor",zn(()=>C.getContrastText(C.warning.dark))),P(C.Alert,"errorStandardBg",W(Ut,C.error.light,.9)),P(C.Alert,"infoStandardBg",W(Ut,C.info.light,.9)),P(C.Alert,"successStandardBg",W(Ut,C.success.light,.9)),P(C.Alert,"warningStandardBg",W(Ut,C.warning.light,.9)),P(C.Alert,"errorIconColor",it("palette-error-main")),P(C.Alert,"infoIconColor",it("palette-info-main")),P(C.Alert,"successIconColor",it("palette-success-main")),P(C.Alert,"warningIconColor",it("palette-warning-main")),P(C.AppBar,"defaultBg",it("palette-grey-900")),P(C.AppBar,"darkBg",it("palette-background-paper")),P(C.AppBar,"darkColor",it("palette-text-primary")),P(C.Avatar,"defaultBg",it("palette-grey-600")),P(C.Button,"inheritContainedBg",it("palette-grey-800")),P(C.Button,"inheritContainedHoverBg",it("palette-grey-700")),P(C.Chip,"defaultBorder",it("palette-grey-700")),P(C.Chip,"defaultAvatarColor",it("palette-grey-300")),P(C.Chip,"defaultIconColor",it("palette-grey-300")),P(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),P(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),P(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),P(C.LinearProgress,"primaryBg",W(Ut,C.primary.main,.5)),P(C.LinearProgress,"secondaryBg",W(Ut,C.secondary.main,.5)),P(C.LinearProgress,"errorBg",W(Ut,C.error.main,.5)),P(C.LinearProgress,"infoBg",W(Ut,C.info.main,.5)),P(C.LinearProgress,"successBg",W(Ut,C.success.main,.5)),P(C.LinearProgress,"warningBg",W(Ut,C.warning.main,.5)),P(C.Skeleton,"bg",k?W(lr,C.text.primary,.13):`rgba(${it("palette-text-primaryChannel")} / 0.13)`),P(C.Slider,"primaryTrack",W(Ut,C.primary.main,.5)),P(C.Slider,"secondaryTrack",W(Ut,C.secondary.main,.5)),P(C.Slider,"errorTrack",W(Ut,C.error.main,.5)),P(C.Slider,"infoTrack",W(Ut,C.info.main,.5)),P(C.Slider,"successTrack",W(Ut,C.success.main,.5)),P(C.Slider,"warningTrack",W(Ut,C.warning.main,.5));const ct=k?W(Ht,C.background.default,.985):vo(C.background.default,.98);P(C.SnackbarContent,"bg",ct),P(C.SnackbarContent,"color",zn(()=>k?tS.text.primary:C.getContrastText(ct))),P(C.SpeedDialAction,"fabHoverBg",vo(C.background.paper,.15)),P(C.StepConnector,"border",it("palette-grey-600")),P(C.StepContent,"border",it("palette-grey-600")),P(C.Switch,"defaultColor",it("palette-grey-300")),P(C.Switch,"defaultDisabledColor",it("palette-grey-600")),P(C.Switch,"primaryDisabledColor",W(Ut,C.primary.main,.55)),P(C.Switch,"secondaryDisabledColor",W(Ut,C.secondary.main,.55)),P(C.Switch,"errorDisabledColor",W(Ut,C.error.main,.55)),P(C.Switch,"infoDisabledColor",W(Ut,C.info.main,.55)),P(C.Switch,"successDisabledColor",W(Ut,C.success.main,.55)),P(C.Switch,"warningDisabledColor",W(Ut,C.warning.main,.55)),P(C.TableCell,"border",W(Ut,W(lr,C.divider,1),.68)),P(C.Tooltip,"bg",W(lr,C.grey[700],.92))}ea(C.background,"default"),ea(C.background,"paper"),ea(C.common,"background"),ea(C.common,"onBackground"),ea(C,"divider"),Object.keys(C).forEach(ct=>{const U=C[ct];ct!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&P(C[ct],"mainChannel",Sl(bl(U.main))),U.light&&P(C[ct],"lightChannel",Sl(bl(U.light))),U.dark&&P(C[ct],"darkChannel",Sl(bl(U.dark))),U.contrastText&&P(C[ct],"contrastTextChannel",Sl(bl(U.contrastText))),ct==="text"&&(ea(C[ct],"primary"),ea(C[ct],"secondary")),ct==="action"&&(U.active&&ea(C[ct],"active"),U.selected&&ea(C[ct],"selected")))})}),L=a.reduce((at,C)=>nn(at,C),L);const Y={prefix:f,disableCssColorScheme:o,shouldSkipGeneratingVar:h,getSelector:WA(L),enableContrastVars:d},{vars:F,generateThemeVars:I,generateStyleSheets:nt}=EA(L,Y);return L.vars=F,Object.entries(L.colorSchemes[L.defaultColorScheme]).forEach(([at,C])=>{L[at]=C}),L.generateThemeVars=I,L.generateStyleSheets=nt,L.generateSpacing=function(){return Gv(v.spacing,Yd(this))},L.getColorSchemeSelector=xA(m),L.spacing=L.generateSpacing(),L.shouldSkipGeneratingVar=h,L.unstable_sxConfig={...$l,...v?.unstable_sxConfig},L.unstable_sx=function(C){return Pl({sx:C,theme:this})},L.toRuntimeSource=aS,L}function y0(e,a,i){e.colorSchemes&&i&&(e.colorSchemes[a]={...i!==!0&&i,palette:Zd({...i===!0?{}:i.palette,mode:a})})}function Jd(e={},...a){const{palette:i,cssVariables:s=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:f=i?.mode,...d}=e,h=f||"light",m=o?.[h],y={...o,...i?{[h]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(s===!1){if(!("colorSchemes"in e))return gd(e,...a);let v=i;"palette"in e||y[h]&&(y[h]!==!0?v=y[h].palette:h==="dark"&&(v={mode:"dark"}));const g=gd({...e,palette:v},...a);return g.defaultColorScheme=h,g.colorSchemes=y,g.palette.mode==="light"&&(g.colorSchemes.light={...y.light!==!0&&y.light,palette:g.palette},y0(g,"dark",y.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...y.dark!==!0&&y.dark,palette:g.palette},y0(g,"light",y.light)),g}return!i&&!("light"in y)&&h==="light"&&(y.light=!0),aw({...d,colorSchemes:y,defaultColorScheme:h,...typeof s!="boolean"&&s},...a)}const rw=Jd();function iw({theme:e,...a}){const i=dr in e?e[dr]:void 0;return K.jsx(Jv,{...a,themeId:i?dr:void 0,theme:i||e})}const So={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:lw}=bA({themeId:dr,theme:()=>Jd({cssVariables:!0}),colorSchemeStorageKey:So.colorSchemeStorageKey,modeStorageKey:So.modeStorageKey,defaultColorScheme:{light:So.defaultLightColorScheme,dark:So.defaultDarkColorScheme},resolveTheme:e=>{const a={...e,typography:nS(e.palette,e.typography)};return a.unstable_sx=function(s){return Pl({sx:s,theme:this})},a}}),sw=lw;function ow({theme:e,...a}){const i=J.useMemo(()=>{if(typeof e=="function")return e;const s=dr in e?e[dr]:e;return"colorSchemes"in s?null:"vars"in s?e:{...e,vars:null}},[e]);return i?K.jsx(iw,{theme:i,...a}):K.jsx(sw,{theme:e,...a})}function uw(e){return K.jsx(Yv,{...e,defaultTheme:rw,themeId:dr})}function lS(e){return function(i){return K.jsx(uw,{styles:typeof e=="function"?s=>e({theme:s,...i}):e})}}function Vw(){return XR}function cw(e){return oA(e)}const vd=typeof lS({})=="function",fw=(e,a)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...a&&!e.vars&&{colorScheme:e.palette.mode}}),dw=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),sS=(e,a=!1)=>{const i={};a&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([f,d])=>{const h=e.getColorSchemeSelector(f);h.startsWith("@")?i[h]={":root":{colorScheme:d.palette?.mode}}:i[h.replace(/\s*&/,"")]={colorScheme:d.palette?.mode}});let s={html:fw(e,a),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...dw(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const o=e.components?.MuiCssBaseline?.styleOverrides;return o&&(s=[s,o]),s},Ao="mui-ecs",hw=e=>{const a=sS(e,!1),i=Array.isArray(a)?a[0]:a;return!e.vars&&i&&(i.html[`:root:has(${Ao})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{const f=e.getColorSchemeSelector(s);f.startsWith("@")?i[f]={[`:root:not(:has(.${Ao}))`]:{colorScheme:o.palette?.mode}}:i[f.replace(/\s*&/,"")]={[`&:not(:has(.${Ao}))`]:{colorScheme:o.palette?.mode}}}),a},mw=lS(vd?({theme:e,enableColorScheme:a})=>sS(e,a):({theme:e})=>hw(e));function yw(e){const a=cw({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:s=!1}=a;return K.jsxs(J.Fragment,{children:[vd&&K.jsx(mw,{enableColorScheme:s}),!vd&&!s&&K.jsx("span",{className:Ao,style:{display:"none"}}),i]})}const pw="/assets/index-DcK8FECE.css",gw=Jd({typography:{fontFamily:"'Roboto Variable', sans-serif"}}),oS=DT()({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Mobileboost CLI"}],links:[{rel:"stylesheet",href:pw}]}),shellComponent:vw});function vw(){return K.jsx(bw,{children:K.jsx(fv,{})})}function Sw({children:e}){const a=Mv({key:"css"});return K.jsx(zx,{value:a,children:K.jsxs(ow,{theme:gw,children:[K.jsx(yw,{}),e]})})}function bw({children:e}){return K.jsxs("html",{children:[K.jsx("head",{children:K.jsx(ZT,{})}),K.jsxs("body",{children:[K.jsx(Sw,{children:e}),K.jsx(IT,{})]})]})}const _w="modulepreload",Cw=function(e){return"/"+e},p0={},Tw=function(a,i,s){let o=Promise.resolve();if(i&&i.length>0){let m=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");o=m(i.map(y=>{if(y=Cw(y),y in p0)return;p0[y]=!0;const v=y.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${g}`))return;const S=document.createElement("link");if(S.rel=v?"stylesheet":_w,v||(S.as="script"),S.crossOrigin="",S.href=y,h&&S.setAttribute("nonce",h),document.head.appendChild(S),v)return new Promise((E,R)=>{S.addEventListener("load",E),S.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return o.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return a().catch(f)})},Ew=()=>Tw(()=>import("./index-Bu1akwRM.js"),[]),xw=nd("/")({component:BT(Ew,"component")}),Rw=xw.update({id:"/",path:"/",getParentRoute:()=>oS}),Aw={IndexRoute:Rw},ww=oS._addFileChildren(Aw);function Ow({error:e}){const a=ge(),i=Tn({strict:!1,select:s=>s.id===ke});return console.error(e),K.jsxs("div",{className:"min-w-0 flex-1 p-4 flex flex-col items-center justify-center gap-6",children:[K.jsx(kl,{error:e}),K.jsxs("div",{className:"flex gap-2 items-center flex-wrap",children:[K.jsx("button",{onClick:()=>{a.invalidate()},className:"px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded-sm text-white uppercase font-extrabold",children:"Try Again"}),i?K.jsx(Ml,{to:"/",className:"px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded-sm text-white uppercase font-extrabold",children:"Home"}):K.jsx(Ml,{to:"/",className:"px-2 py-1 bg-gray-600 dark:bg-gray-700 rounded-sm text-white uppercase font-extrabold",onClick:s=>{s.preventDefault(),window.history.back()},children:"Go Back"})]})]})}function Mw({children:e}){return K.jsxs("div",{className:"space-y-2 p-2",children:[K.jsx("div",{className:"text-gray-600 dark:text-gray-400",children:e||K.jsx("p",{children:"The page you are looking for does not exist."})}),K.jsxs("p",{className:"flex items-center gap-2 flex-wrap",children:[K.jsx("button",{onClick:()=>window.history.back(),className:"bg-emerald-500 text-white px-2 py-1 rounded-sm uppercase font-black text-sm",children:"Go back"}),K.jsx(Ml,{to:"/",className:"bg-cyan-600 text-white px-2 py-1 rounded-sm uppercase font-black text-sm",children:"Start Over"})]})]})}function zw(){const e=new QE,a=VT({routeTree:ww,context:{queryClient:e},defaultPreload:"intent",defaultErrorComponent:Ow,defaultNotFoundComponent:()=>K.jsx(Mw,{})});return PE({router:a,queryClient:e}),a}async function Dw(){const e=await zw();let a;return a=[],window.__TSS_START_OPTIONS__={serializationAdapters:a},a.push(cE),e.options.serializationAdapters&&a.push(...e.options.serializationAdapters),e.update({basepath:"",serializationAdapters:a}),e.state.matches.length||await tE(e),e}let Jf;function Lw(){return Jf||(Jf=Dw()),K.jsx(sT,{promise:Jf,children:e=>K.jsx(KT,{router:e})})}J.startTransition(()=>{B1.hydrateRoot(document,K.jsx(J.StrictMode,{children:K.jsx(Lw,{})}))});export{qe as $,Qw as A,na as B,rw as C,cw as D,kv as E,$v as F,Nw as G,GA as H,Kv as I,XA as J,qw as K,Ux as L,fA as M,Vw as N,ov as O,Yw as P,lS as Q,yi as R,Ko as S,dr as T,pr as U,Jd as V,md as W,nn as X,tA as Y,Ul as Z,fd as _,ld as a,q1 as a0,hd as a1,jw as a2,rE as a3,tn as a4,Ge as a5,uE as a6,vT as a7,yE as b,id as c,jE as d,bE as e,pv as f,Me as g,zl as h,Xo as i,kE as j,J as k,Hw as l,Gw as m,Oe as n,Pl as o,EE as p,PR as q,gE as r,Uw as s,pE as t,kw as u,XR as v,K as w,FR as x,Kx as y,Qv as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const s=()=>({routes:{__root__:{filePath:"/Users/ricpar11/Documents/mobileboost/mobileboost-cli/src/app/routes/__root.tsx",children:["/"],preloads:["/assets/main-
|
|
1
|
+
const s=()=>({routes:{__root__:{filePath:"/Users/ricpar11/Documents/mobileboost/mobileboost-cli/src/app/routes/__root.tsx",children:["/"],preloads:["/assets/main-BOWxdROu.js"],assets:[]},"/":{filePath:"/Users/ricpar11/Documents/mobileboost/mobileboost-cli/src/app/routes/index.tsx",assets:[],preloads:["/assets/index-Bu1akwRM.js"]}},clientEntry:"/assets/main-BOWxdROu.js"});export{s as tsrStartManifest};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as n}from"zod";const o=n.object({stepNumber:n.number(),stepDescription:n.string(),filepath:n.string().optional(),screenshot:n.string(),interactionCoordinates:n.object({x:n.number(),y:n.number(),action:n.string().optional()}),platform:n.string().optional(),screenResolution:n.object({width:n.number(),height:n.number()}).optional()}),e=n.object({stepNumber:n.number(),stepDescription:n.string(),filepath:n.string().optional(),screenshot:n.string(),platform:n.string().optional(),highest_used_index:n.number().nullable().optional(),screenResolution:n.object({width:n.number(),height:n.number()}).optional()}),i=n.object({found:n.boolean(),interactionCoordinates:n.object({x:n.number(),y:n.number(),action:n.string().optional()}).optional(),cacheCommands:n.array(n.string()).optional(),cacheIndex:n.number().optional(),timings:n.any().optional()});export{i,o as n,e as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as p,a as d}from"./server.mjs";import c from"node:fs";import f from"node:path";import l from"node:crypto";import{o as b,i as g,n as w}from"./cache-D_LOBxSY.mjs";import"@tanstack/history";import"@tanstack/router-core/ssr/client";import"@tanstack/router-core";import"node:async_hooks";import"@tanstack/router-core/ssr/server";import"../../index.mjs";import"node:http";import"node:stream";import"node:https";import"node:http2";import"node:url";import"tiny-invariant";import"seroval";import"react/jsx-runtime";import"@tanstack/react-router/ssr/server";import"@tanstack/react-router";import"zod";const h="https://cache.mobileboost.io";function m(){const e=f.join(process.cwd(),"mobileboost.config.json");if(!c.existsSync(e))throw new Error("mobileboost.config.json not found");const t=c.readFileSync(e,"utf-8");return JSON.parse(t)}function u(e,t,a,r,o,n){const s=n?`${n.width}x${n.height}`:"",i=`${e}${t||""}${a}${r}${o||""}${s}`;return l.createHash("sha256").update(i).digest("hex")}function y(e){const t=atob(e.replace(/^data:image\/\w+;base64,/,"")),a=new ArrayBuffer(t.length),r=new Uint8Array(a);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return new Blob([a],{type:"image/png"})}const x=p("fcbe7e11d05240fa28a1dd79ec8c395f6c03682edbaeb19f469bd78d6399cdde",(e,t)=>_.__executeServer(e,t)),_=d({method:"POST"}).inputValidator(e=>w.parse(e)).handler(x,async({data:e})=>{try{const t=m().apiKey;if(!t)throw new Error("API Key missing");const a=u(t,e.filepath,e.stepNumber,e.stepDescription,e.platform,e.screenResolution),r=e.screenshot.replace(/^data:image\/\w+;base64,/,""),o=`tap on x=${e.interactionCoordinates.x} y=${e.interactionCoordinates.y}`,n=[{screenshot:r,commands:[o]}],s=await fetch(`${h}/populate-cache?hash=${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});return s.ok?{success:!0}:(console.error("Failed to populate cache:",await s.text()),{success:!1})}catch(t){return console.error("Error populating cache:",t),{success:!1,error:String(t)}}}),S=p("7d2aacaab26ab11cdc66f03a4ed01b8b38186abf16ab1f9306801ea7769aaa2a",(e,t)=>$.__executeServer(e,t)),$=d({method:"POST"}).inputValidator(e=>b.parse(e)).handler(S,async({data:e})=>{try{const t=m().apiKey;if(!t)throw new Error("API Key missing");const a=u(t,e.filepath,e.stepNumber,e.stepDescription,e.platform,e.screenResolution),r=new FormData;r.append("hash",a),r.append("screenshot",y(e.screenshot),"screenshot.png"),e.highest_used_index!==void 0&&e.highest_used_index!==null&&r.append("highest_used_index",String(e.highest_used_index));const o=await fetch(`${h}/execute-from-cache`,{method:"POST",body:r});if(!o.ok){const i=await o.text();return console.warn("Cache lookup failed:",i),{found:!1}}const n=await o.json(),s=g.safeParse(n);return s.success?s.data:(console.error("Invalid cache response:",n),{found:!1})}catch(t){return console.error("Error executing from cache:",t),{found:!1,error:String(t)}}});export{S as executeFromCacheMutation_createServerFn_handler,x as populateCacheMutation_createServerFn_handler};
|