Initial commit: Crypto trader application

This commit is contained in:
2025-12-25 20:20:40 -05:00
commit 07a04c1bb8
47895 changed files with 2042266 additions and 0 deletions
@@ -0,0 +1,24 @@
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import { Global } from '@emotion/react';
import { jsx as _jsx } from "react/jsx-runtime";
function isEmpty(obj) {
return obj === undefined || obj === null || Object.keys(obj).length === 0;
}
export default function GlobalStyles(props) {
var styles = props.styles,
_props$defaultTheme = props.defaultTheme,
defaultTheme = _props$defaultTheme === void 0 ? {} : _props$defaultTheme;
var globalStyles = typeof styles === 'function' ? function (themeInput) {
return styles(isEmpty(themeInput) ? defaultTheme : themeInput);
} : styles;
return /*#__PURE__*/_jsx(Global, {
styles: globalStyles
});
}
process.env.NODE_ENV !== "production" ? GlobalStyles.propTypes = {
defaultTheme: PropTypes.object,
styles: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.func])
} : void 0;
@@ -0,0 +1,3 @@
'use client';
export { default } from './GlobalStyles';
@@ -0,0 +1,70 @@
'use client';
import _typeof from "@babel/runtime/helpers/esm/typeof";
import * as React from 'react';
import PropTypes from 'prop-types';
import { CacheProvider } from '@emotion/react';
import createCache from '@emotion/cache';
// prepend: true moves MUI styles to the top of the <head> so they're loaded first.
// It allows developers to easily override MUI styles with other styling solutions, like CSS modules.
import { jsx as _jsx } from "react/jsx-runtime";
function getCache(injectFirst, enableCssLayer) {
var emotionCache = createCache({
key: 'css',
prepend: injectFirst
});
if (enableCssLayer) {
var prevInsert = emotionCache.insert;
emotionCache.insert = function () {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
if (!args[1].styles.match(/^@layer\s+[^{]*$/)) {
// avoid nested @layer
args[1].styles = "@layer mui {".concat(args[1].styles, "}");
}
return prevInsert.apply(void 0, args);
};
}
return emotionCache;
}
var cacheMap = new Map();
export default function StyledEngineProvider(props) {
var injectFirst = props.injectFirst,
enableCssLayer = props.enableCssLayer,
children = props.children;
var cache = React.useMemo(function () {
var cacheKey = "".concat(injectFirst, "-").concat(enableCssLayer);
if ((typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && cacheMap.has(cacheKey)) {
return cacheMap.get(cacheKey);
}
var fresh = getCache(injectFirst, enableCssLayer);
cacheMap.set(cacheKey, fresh);
return fresh;
}, [injectFirst, enableCssLayer]);
if (injectFirst || enableCssLayer) {
return /*#__PURE__*/_jsx(CacheProvider, {
value: cache,
children: children
});
}
return children;
}
process.env.NODE_ENV !== "production" ? StyledEngineProvider.propTypes = {
/**
* Your component tree.
*/
children: PropTypes.node,
/**
* If true, MUI styles are wrapped in CSS `@layer mui` rule.
* It helps to override MUI styles when using CSS Modules, Tailwind CSS, plain CSS, or any other styling solution.
*/
enableCssLayer: PropTypes.bool,
/**
* By default, the styles are injected last in the <head> element of the page.
* As a result, they gain more specificity than any other style sheet.
* If you want to override MUI's styles, set this prop.
*/
injectFirst: PropTypes.bool
} : void 0;
@@ -0,0 +1,3 @@
'use client';
export { default } from './StyledEngineProvider';
+52
View File
@@ -0,0 +1,52 @@
/**
* @mui/styled-engine v5.18.0
*
* @license MIT
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use client';
/* eslint-disable no-underscore-dangle */
import emStyled from '@emotion/styled';
import { serializeStyles as emSerializeStyles } from '@emotion/serialize';
export default function styled(tag, options) {
var stylesFactory = emStyled(tag, options);
if (process.env.NODE_ENV !== 'production') {
return function () {
var component = typeof tag === 'string' ? "\"".concat(tag, "\"") : 'component';
for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
styles[_key] = arguments[_key];
}
if (styles.length === 0) {
console.error(["MUI: Seems like you called `styled(".concat(component, ")()` without a `style` argument."), 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join('\n'));
} else if (styles.some(function (style) {
return style === undefined;
})) {
console.error("MUI: the styled(".concat(component, ")(...args) API requires all its args to be defined."));
}
return stylesFactory.apply(void 0, styles);
};
}
return stylesFactory;
}
// eslint-disable-next-line @typescript-eslint/naming-convention
export var internal_processStyles = function internal_processStyles(tag, processor) {
// Emotion attaches all the styles as `__emotion_styles`.
// Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186
if (Array.isArray(tag.__emotion_styles)) {
tag.__emotion_styles = processor(tag.__emotion_styles);
}
};
// Emotion only accepts an array, but we want to avoid allocations
var wrapper = [];
// eslint-disable-next-line @typescript-eslint/naming-convention
export function internal_serializeStyles(styles) {
wrapper[0] = styles;
return emSerializeStyles(wrapper);
}
export { ThemeContext, keyframes, css } from '@emotion/react';
export { default as StyledEngineProvider } from './StyledEngineProvider';
export { default as GlobalStyles } from './GlobalStyles';