@veripass/react-sdk 1.0.2 → 1.0.4
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/dist/react-sdk.cjs.js +1153 -185
- package/dist/react-sdk.cjs.js.map +1 -1
- package/dist/react-sdk.esm.js +1154 -186
- package/dist/react-sdk.esm.js.map +1 -1
- package/dist/styles.css +2 -0
- package/dist/styles.css.map +1 -0
- package/package.json +1 -1
package/dist/react-sdk.cjs.js
CHANGED
|
@@ -76,6 +76,14 @@ function _createClass(e, r, t) {
|
|
|
76
76
|
writable: !1
|
|
77
77
|
}), e;
|
|
78
78
|
}
|
|
79
|
+
function _defineProperty(e, r, t) {
|
|
80
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
81
|
+
value: t,
|
|
82
|
+
enumerable: !0,
|
|
83
|
+
configurable: !0,
|
|
84
|
+
writable: !0
|
|
85
|
+
}) : e[r] = t, e;
|
|
86
|
+
}
|
|
79
87
|
function _get() {
|
|
80
88
|
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
|
|
81
89
|
var p = _superPropBase(e, t);
|
|
@@ -140,6 +148,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
140
148
|
function _nonIterableRest() {
|
|
141
149
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
142
150
|
}
|
|
151
|
+
function ownKeys(e, r) {
|
|
152
|
+
var t = Object.keys(e);
|
|
153
|
+
if (Object.getOwnPropertySymbols) {
|
|
154
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
155
|
+
r && (o = o.filter(function (r) {
|
|
156
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
157
|
+
})), t.push.apply(t, o);
|
|
158
|
+
}
|
|
159
|
+
return t;
|
|
160
|
+
}
|
|
161
|
+
function _objectSpread2(e) {
|
|
162
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
163
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
164
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
165
|
+
_defineProperty(e, r, t[r]);
|
|
166
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
167
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
return e;
|
|
171
|
+
}
|
|
143
172
|
function _possibleConstructorReturn(t, e) {
|
|
144
173
|
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
145
174
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -458,6 +487,13 @@ function _superPropBase(t, o) {
|
|
|
458
487
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
459
488
|
return t;
|
|
460
489
|
}
|
|
490
|
+
function _taggedTemplateLiteral(e, t) {
|
|
491
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
492
|
+
raw: {
|
|
493
|
+
value: Object.freeze(t)
|
|
494
|
+
}
|
|
495
|
+
}));
|
|
496
|
+
}
|
|
461
497
|
function _toPrimitive(t, r) {
|
|
462
498
|
if ("object" != typeof t || !t) return t;
|
|
463
499
|
var e = t[Symbol.toPrimitive];
|
|
@@ -489,6 +525,130 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
489
525
|
}
|
|
490
526
|
}
|
|
491
527
|
|
|
528
|
+
var useLocalStorage = function useLocalStorage(keyName, defaultValue) {
|
|
529
|
+
var _useState = React.useState(function () {
|
|
530
|
+
try {
|
|
531
|
+
var value = window.localStorage.getItem(keyName);
|
|
532
|
+
if (value) {
|
|
533
|
+
return JSON.parse(value);
|
|
534
|
+
} else {
|
|
535
|
+
window.localStorage.setItem(keyName, JSON.stringify(defaultValue));
|
|
536
|
+
return defaultValue;
|
|
537
|
+
}
|
|
538
|
+
} catch (err) {
|
|
539
|
+
return defaultValue;
|
|
540
|
+
}
|
|
541
|
+
}),
|
|
542
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
543
|
+
storedValue = _useState2[0],
|
|
544
|
+
setStoredValue = _useState2[1];
|
|
545
|
+
var setValue = function setValue(newValue) {
|
|
546
|
+
try {
|
|
547
|
+
window.localStorage.setItem(keyName, JSON.stringify(newValue));
|
|
548
|
+
} catch (err) {}
|
|
549
|
+
setStoredValue(newValue);
|
|
550
|
+
};
|
|
551
|
+
return [storedValue, setValue];
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Authentication context used to provide user authentication data and functions.
|
|
556
|
+
*/
|
|
557
|
+
var AuthContext = /*#__PURE__*/React.createContext();
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* AuthProvider component that wraps around the application or part of it to provide authentication context.
|
|
561
|
+
* It uses local storage to persist user data and provides login, logout, and token retrieval functions.
|
|
562
|
+
*
|
|
563
|
+
* @param {object} props - The component props.
|
|
564
|
+
* @param {React.ReactNode} props.children - The children components that require access to the authentication context.
|
|
565
|
+
* @returns {JSX.Element} The provider component for AuthContext.
|
|
566
|
+
*/
|
|
567
|
+
var AuthProvider = function AuthProvider(_ref) {
|
|
568
|
+
var children = _ref.children;
|
|
569
|
+
// State to manage user data, persisted in local storage
|
|
570
|
+
var _useLocalStorage = useLocalStorage('veripass-user-data', null),
|
|
571
|
+
_useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
|
|
572
|
+
user = _useLocalStorage2[0],
|
|
573
|
+
setUser = _useLocalStorage2[1];
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Logs in the user by saving their data to local storage and navigating to the admin page.
|
|
577
|
+
*
|
|
578
|
+
* @param {object} user - The user data to be stored.
|
|
579
|
+
*/
|
|
580
|
+
var login = /*#__PURE__*/function () {
|
|
581
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
582
|
+
var user, _ref2$redirectUrl, redirectUrl;
|
|
583
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
584
|
+
while (1) switch (_context.prev = _context.next) {
|
|
585
|
+
case 0:
|
|
586
|
+
user = _ref2.user, _ref2$redirectUrl = _ref2.redirectUrl, redirectUrl = _ref2$redirectUrl === void 0 ? '' : _ref2$redirectUrl;
|
|
587
|
+
setUser(user);
|
|
588
|
+
if (redirectUrl) {
|
|
589
|
+
window.location.replace(redirectUrl);
|
|
590
|
+
}
|
|
591
|
+
case 3:
|
|
592
|
+
case "end":
|
|
593
|
+
return _context.stop();
|
|
594
|
+
}
|
|
595
|
+
}, _callee);
|
|
596
|
+
}));
|
|
597
|
+
return function login(_x) {
|
|
598
|
+
return _ref3.apply(this, arguments);
|
|
599
|
+
};
|
|
600
|
+
}();
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Logs out the current user by clearing their data from local storage.
|
|
604
|
+
*/
|
|
605
|
+
var logout = function logout() {
|
|
606
|
+
setUser(null);
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Retrieves the stored user data (token) from local storage.
|
|
611
|
+
*
|
|
612
|
+
* @returns {object|null} The user data stored in local storage, or null if not found.
|
|
613
|
+
*/
|
|
614
|
+
var getToken = function getToken() {
|
|
615
|
+
var value = window.localStorage.getItem('veripass-user-data');
|
|
616
|
+
return JSON.parse(value);
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Memoized value containing the user data and authentication functions.
|
|
621
|
+
*
|
|
622
|
+
* @typedef {object} AuthContextValue
|
|
623
|
+
* @property {object|null} user - The currently authenticated user or null if not authenticated.
|
|
624
|
+
* @property {function(object): Promise<void>} login - Function to log in the user.
|
|
625
|
+
* @property {function(): void} logout - Function to log out the user.
|
|
626
|
+
* @property {function(): object|null} getToken - Function to get the current user's token.
|
|
627
|
+
*
|
|
628
|
+
* @returns {AuthContextValue} The context value with user data and authentication functions.
|
|
629
|
+
*/
|
|
630
|
+
var value = React.useMemo(function () {
|
|
631
|
+
return {
|
|
632
|
+
user: user,
|
|
633
|
+
login: login,
|
|
634
|
+
logout: logout,
|
|
635
|
+
getToken: getToken
|
|
636
|
+
};
|
|
637
|
+
}, [user]);
|
|
638
|
+
return /*#__PURE__*/React.createElement(AuthContext.Provider, {
|
|
639
|
+
value: value
|
|
640
|
+
}, children);
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Custom hook to access the authentication context.
|
|
645
|
+
*
|
|
646
|
+
* @returns {AuthContextValue} The authentication context value, including user data, login, logout, and getToken functions.
|
|
647
|
+
*/
|
|
648
|
+
var useAuth = function useAuth() {
|
|
649
|
+
return React.useContext(AuthContext);
|
|
650
|
+
};
|
|
651
|
+
|
|
492
652
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
493
653
|
|
|
494
654
|
function getDefaultExportFromCjs (x) {
|
|
@@ -32690,131 +32850,6 @@ function useViewTransitionState(to, opts) {
|
|
|
32690
32850
|
return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;
|
|
32691
32851
|
}
|
|
32692
32852
|
|
|
32693
|
-
var useLocalStorage = function useLocalStorage(keyName, defaultValue) {
|
|
32694
|
-
var _useState = React.useState(function () {
|
|
32695
|
-
try {
|
|
32696
|
-
var value = window.localStorage.getItem(keyName);
|
|
32697
|
-
if (value) {
|
|
32698
|
-
return JSON.parse(value);
|
|
32699
|
-
} else {
|
|
32700
|
-
window.localStorage.setItem(keyName, JSON.stringify(defaultValue));
|
|
32701
|
-
return defaultValue;
|
|
32702
|
-
}
|
|
32703
|
-
} catch (err) {
|
|
32704
|
-
return defaultValue;
|
|
32705
|
-
}
|
|
32706
|
-
}),
|
|
32707
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
32708
|
-
storedValue = _useState2[0],
|
|
32709
|
-
setStoredValue = _useState2[1];
|
|
32710
|
-
var setValue = function setValue(newValue) {
|
|
32711
|
-
try {
|
|
32712
|
-
window.localStorage.setItem(keyName, JSON.stringify(newValue));
|
|
32713
|
-
} catch (err) {}
|
|
32714
|
-
setStoredValue(newValue);
|
|
32715
|
-
};
|
|
32716
|
-
return [storedValue, setValue];
|
|
32717
|
-
};
|
|
32718
|
-
|
|
32719
|
-
/**
|
|
32720
|
-
* Authentication context used to provide user authentication data and functions.
|
|
32721
|
-
*/
|
|
32722
|
-
var AuthContext = /*#__PURE__*/React.createContext();
|
|
32723
|
-
|
|
32724
|
-
/**
|
|
32725
|
-
* AuthProvider component that wraps around the application or part of it to provide authentication context.
|
|
32726
|
-
* It uses local storage to persist user data and provides login, logout, and token retrieval functions.
|
|
32727
|
-
*
|
|
32728
|
-
* @param {object} props - The component props.
|
|
32729
|
-
* @param {React.ReactNode} props.children - The children components that require access to the authentication context.
|
|
32730
|
-
* @returns {JSX.Element} The provider component for AuthContext.
|
|
32731
|
-
*/
|
|
32732
|
-
var AuthProvider = function AuthProvider(_ref) {
|
|
32733
|
-
var children = _ref.children;
|
|
32734
|
-
// State to manage user data, persisted in local storage
|
|
32735
|
-
var _useLocalStorage = useLocalStorage('veripass-user-data', null),
|
|
32736
|
-
_useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
|
|
32737
|
-
user = _useLocalStorage2[0],
|
|
32738
|
-
setUser = _useLocalStorage2[1];
|
|
32739
|
-
var navigate = useNavigate();
|
|
32740
|
-
|
|
32741
|
-
/**
|
|
32742
|
-
* Logs in the user by saving their data to local storage and navigating to the admin page.
|
|
32743
|
-
*
|
|
32744
|
-
* @param {object} user - The user data to be stored.
|
|
32745
|
-
*/
|
|
32746
|
-
var login = /*#__PURE__*/function () {
|
|
32747
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
32748
|
-
var user, _ref2$redirectUrl, redirectUrl;
|
|
32749
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32750
|
-
while (1) switch (_context.prev = _context.next) {
|
|
32751
|
-
case 0:
|
|
32752
|
-
user = _ref2.user, _ref2$redirectUrl = _ref2.redirectUrl, redirectUrl = _ref2$redirectUrl === void 0 ? '' : _ref2$redirectUrl;
|
|
32753
|
-
setUser(user);
|
|
32754
|
-
navigate(redirectUrl, {
|
|
32755
|
-
replace: true
|
|
32756
|
-
});
|
|
32757
|
-
case 3:
|
|
32758
|
-
case "end":
|
|
32759
|
-
return _context.stop();
|
|
32760
|
-
}
|
|
32761
|
-
}, _callee);
|
|
32762
|
-
}));
|
|
32763
|
-
return function login(_x) {
|
|
32764
|
-
return _ref3.apply(this, arguments);
|
|
32765
|
-
};
|
|
32766
|
-
}();
|
|
32767
|
-
|
|
32768
|
-
/**
|
|
32769
|
-
* Logs out the current user by clearing their data from local storage.
|
|
32770
|
-
*/
|
|
32771
|
-
var logout = function logout() {
|
|
32772
|
-
setUser(null);
|
|
32773
|
-
};
|
|
32774
|
-
|
|
32775
|
-
/**
|
|
32776
|
-
* Retrieves the stored user data (token) from local storage.
|
|
32777
|
-
*
|
|
32778
|
-
* @returns {object|null} The user data stored in local storage, or null if not found.
|
|
32779
|
-
*/
|
|
32780
|
-
var getToken = function getToken() {
|
|
32781
|
-
var value = window.localStorage.getItem('veripass-user-data');
|
|
32782
|
-
return JSON.parse(value);
|
|
32783
|
-
};
|
|
32784
|
-
|
|
32785
|
-
/**
|
|
32786
|
-
* Memoized value containing the user data and authentication functions.
|
|
32787
|
-
*
|
|
32788
|
-
* @typedef {object} AuthContextValue
|
|
32789
|
-
* @property {object|null} user - The currently authenticated user or null if not authenticated.
|
|
32790
|
-
* @property {function(object): Promise<void>} login - Function to log in the user.
|
|
32791
|
-
* @property {function(): void} logout - Function to log out the user.
|
|
32792
|
-
* @property {function(): object|null} getToken - Function to get the current user's token.
|
|
32793
|
-
*
|
|
32794
|
-
* @returns {AuthContextValue} The context value with user data and authentication functions.
|
|
32795
|
-
*/
|
|
32796
|
-
var value = React.useMemo(function () {
|
|
32797
|
-
return {
|
|
32798
|
-
user: user,
|
|
32799
|
-
login: login,
|
|
32800
|
-
logout: logout,
|
|
32801
|
-
getToken: getToken
|
|
32802
|
-
};
|
|
32803
|
-
}, [user]);
|
|
32804
|
-
return /*#__PURE__*/React.createElement(AuthContext.Provider, {
|
|
32805
|
-
value: value
|
|
32806
|
-
}, children);
|
|
32807
|
-
};
|
|
32808
|
-
|
|
32809
|
-
/**
|
|
32810
|
-
* Custom hook to access the authentication context.
|
|
32811
|
-
*
|
|
32812
|
-
* @returns {AuthContextValue} The authentication context value, including user data, login, logout, and getToken functions.
|
|
32813
|
-
*/
|
|
32814
|
-
var useAuth = function useAuth() {
|
|
32815
|
-
return React.useContext(AuthContext);
|
|
32816
|
-
};
|
|
32817
|
-
|
|
32818
32853
|
var sweetalert2_all = {exports: {}};
|
|
32819
32854
|
|
|
32820
32855
|
/*!
|
|
@@ -37504,6 +37539,918 @@ function requireClient () {
|
|
|
37504
37539
|
var sweetalert2ReactContent_umdExports = sweetalert2ReactContent_umd.exports;
|
|
37505
37540
|
var withReactContent = /*@__PURE__*/getDefaultExportFromCjs(sweetalert2ReactContent_umdExports);
|
|
37506
37541
|
|
|
37542
|
+
/******************************************************************************
|
|
37543
|
+
Copyright (c) Microsoft Corporation.
|
|
37544
|
+
|
|
37545
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37546
|
+
purpose with or without fee is hereby granted.
|
|
37547
|
+
|
|
37548
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37549
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37550
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
37551
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
37552
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
37553
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37554
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
37555
|
+
***************************************************************************** */
|
|
37556
|
+
/* global Reflect, Promise */
|
|
37557
|
+
|
|
37558
|
+
|
|
37559
|
+
var __assign = function() {
|
|
37560
|
+
__assign = Object.assign || function __assign(t) {
|
|
37561
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37562
|
+
s = arguments[i];
|
|
37563
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
37564
|
+
}
|
|
37565
|
+
return t;
|
|
37566
|
+
};
|
|
37567
|
+
return __assign.apply(this, arguments);
|
|
37568
|
+
};
|
|
37569
|
+
|
|
37570
|
+
function __spreadArray(to, from, pack) {
|
|
37571
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
37572
|
+
if (ar || !(i in from)) {
|
|
37573
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37574
|
+
ar[i] = from[i];
|
|
37575
|
+
}
|
|
37576
|
+
}
|
|
37577
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
37578
|
+
}
|
|
37579
|
+
|
|
37580
|
+
function memoize$3(fn) {
|
|
37581
|
+
var cache = Object.create(null);
|
|
37582
|
+
return function (arg) {
|
|
37583
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
37584
|
+
return cache[arg];
|
|
37585
|
+
};
|
|
37586
|
+
}
|
|
37587
|
+
|
|
37588
|
+
var reactPropsRegex$1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
37589
|
+
|
|
37590
|
+
var isPropValid$1 = /* #__PURE__ */memoize$3(function (prop) {
|
|
37591
|
+
return reactPropsRegex$1.test(prop) || prop.charCodeAt(0) === 111
|
|
37592
|
+
/* o */
|
|
37593
|
+
&& prop.charCodeAt(1) === 110
|
|
37594
|
+
/* n */
|
|
37595
|
+
&& prop.charCodeAt(2) < 91;
|
|
37596
|
+
}
|
|
37597
|
+
/* Z+1 */
|
|
37598
|
+
);
|
|
37599
|
+
|
|
37600
|
+
var MS$1 = '-ms-';
|
|
37601
|
+
var MOZ$1 = '-moz-';
|
|
37602
|
+
var WEBKIT$1 = '-webkit-';
|
|
37603
|
+
|
|
37604
|
+
var COMMENT$1 = 'comm';
|
|
37605
|
+
var RULESET$1 = 'rule';
|
|
37606
|
+
var DECLARATION$1 = 'decl';
|
|
37607
|
+
var IMPORT$1 = '@import';
|
|
37608
|
+
var KEYFRAMES$1 = '@keyframes';
|
|
37609
|
+
var LAYER$1 = '@layer';
|
|
37610
|
+
|
|
37611
|
+
/**
|
|
37612
|
+
* @param {number}
|
|
37613
|
+
* @return {number}
|
|
37614
|
+
*/
|
|
37615
|
+
var abs$1 = Math.abs;
|
|
37616
|
+
|
|
37617
|
+
/**
|
|
37618
|
+
* @param {number}
|
|
37619
|
+
* @return {string}
|
|
37620
|
+
*/
|
|
37621
|
+
var from$1 = String.fromCharCode;
|
|
37622
|
+
|
|
37623
|
+
/**
|
|
37624
|
+
* @param {object}
|
|
37625
|
+
* @return {object}
|
|
37626
|
+
*/
|
|
37627
|
+
var assign$1 = Object.assign;
|
|
37628
|
+
|
|
37629
|
+
/**
|
|
37630
|
+
* @param {string} value
|
|
37631
|
+
* @param {number} length
|
|
37632
|
+
* @return {number}
|
|
37633
|
+
*/
|
|
37634
|
+
function hash$1 (value, length) {
|
|
37635
|
+
return charat$1(value, 0) ^ 45 ? (((((((length << 2) ^ charat$1(value, 0)) << 2) ^ charat$1(value, 1)) << 2) ^ charat$1(value, 2)) << 2) ^ charat$1(value, 3) : 0
|
|
37636
|
+
}
|
|
37637
|
+
|
|
37638
|
+
/**
|
|
37639
|
+
* @param {string} value
|
|
37640
|
+
* @return {string}
|
|
37641
|
+
*/
|
|
37642
|
+
function trim$2 (value) {
|
|
37643
|
+
return value.trim()
|
|
37644
|
+
}
|
|
37645
|
+
|
|
37646
|
+
/**
|
|
37647
|
+
* @param {string} value
|
|
37648
|
+
* @param {RegExp} pattern
|
|
37649
|
+
* @return {string?}
|
|
37650
|
+
*/
|
|
37651
|
+
function match$1 (value, pattern) {
|
|
37652
|
+
return (value = pattern.exec(value)) ? value[0] : value
|
|
37653
|
+
}
|
|
37654
|
+
|
|
37655
|
+
/**
|
|
37656
|
+
* @param {string} value
|
|
37657
|
+
* @param {(string|RegExp)} pattern
|
|
37658
|
+
* @param {string} replacement
|
|
37659
|
+
* @return {string}
|
|
37660
|
+
*/
|
|
37661
|
+
function replace$1 (value, pattern, replacement) {
|
|
37662
|
+
return value.replace(pattern, replacement)
|
|
37663
|
+
}
|
|
37664
|
+
|
|
37665
|
+
/**
|
|
37666
|
+
* @param {string} value
|
|
37667
|
+
* @param {string} search
|
|
37668
|
+
* @param {number} position
|
|
37669
|
+
* @return {number}
|
|
37670
|
+
*/
|
|
37671
|
+
function indexof$1 (value, search, position) {
|
|
37672
|
+
return value.indexOf(search, position)
|
|
37673
|
+
}
|
|
37674
|
+
|
|
37675
|
+
/**
|
|
37676
|
+
* @param {string} value
|
|
37677
|
+
* @param {number} index
|
|
37678
|
+
* @return {number}
|
|
37679
|
+
*/
|
|
37680
|
+
function charat$1 (value, index) {
|
|
37681
|
+
return value.charCodeAt(index) | 0
|
|
37682
|
+
}
|
|
37683
|
+
|
|
37684
|
+
/**
|
|
37685
|
+
* @param {string} value
|
|
37686
|
+
* @param {number} begin
|
|
37687
|
+
* @param {number} end
|
|
37688
|
+
* @return {string}
|
|
37689
|
+
*/
|
|
37690
|
+
function substr$1 (value, begin, end) {
|
|
37691
|
+
return value.slice(begin, end)
|
|
37692
|
+
}
|
|
37693
|
+
|
|
37694
|
+
/**
|
|
37695
|
+
* @param {string} value
|
|
37696
|
+
* @return {number}
|
|
37697
|
+
*/
|
|
37698
|
+
function strlen$1 (value) {
|
|
37699
|
+
return value.length
|
|
37700
|
+
}
|
|
37701
|
+
|
|
37702
|
+
/**
|
|
37703
|
+
* @param {any[]} value
|
|
37704
|
+
* @return {number}
|
|
37705
|
+
*/
|
|
37706
|
+
function sizeof$1 (value) {
|
|
37707
|
+
return value.length
|
|
37708
|
+
}
|
|
37709
|
+
|
|
37710
|
+
/**
|
|
37711
|
+
* @param {any} value
|
|
37712
|
+
* @param {any[]} array
|
|
37713
|
+
* @return {any}
|
|
37714
|
+
*/
|
|
37715
|
+
function append$1 (value, array) {
|
|
37716
|
+
return array.push(value), value
|
|
37717
|
+
}
|
|
37718
|
+
|
|
37719
|
+
/**
|
|
37720
|
+
* @param {string[]} array
|
|
37721
|
+
* @param {function} callback
|
|
37722
|
+
* @return {string}
|
|
37723
|
+
*/
|
|
37724
|
+
function combine$1 (array, callback) {
|
|
37725
|
+
return array.map(callback).join('')
|
|
37726
|
+
}
|
|
37727
|
+
|
|
37728
|
+
/**
|
|
37729
|
+
* @param {string[]} array
|
|
37730
|
+
* @param {RegExp} pattern
|
|
37731
|
+
* @return {string[]}
|
|
37732
|
+
*/
|
|
37733
|
+
function filter (array, pattern) {
|
|
37734
|
+
return array.filter(function (value) { return !match$1(value, pattern) })
|
|
37735
|
+
}
|
|
37736
|
+
|
|
37737
|
+
var line$1 = 1;
|
|
37738
|
+
var column$1 = 1;
|
|
37739
|
+
var length$1 = 0;
|
|
37740
|
+
var position$1 = 0;
|
|
37741
|
+
var character$1 = 0;
|
|
37742
|
+
var characters$1 = '';
|
|
37743
|
+
|
|
37744
|
+
/**
|
|
37745
|
+
* @param {string} value
|
|
37746
|
+
* @param {object | null} root
|
|
37747
|
+
* @param {object | null} parent
|
|
37748
|
+
* @param {string} type
|
|
37749
|
+
* @param {string[] | string} props
|
|
37750
|
+
* @param {object[] | string} children
|
|
37751
|
+
* @param {object[]} siblings
|
|
37752
|
+
* @param {number} length
|
|
37753
|
+
*/
|
|
37754
|
+
function node$1 (value, root, parent, type, props, children, length, siblings) {
|
|
37755
|
+
return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line$1, column: column$1, length: length, return: '', siblings: siblings}
|
|
37756
|
+
}
|
|
37757
|
+
|
|
37758
|
+
/**
|
|
37759
|
+
* @param {object} root
|
|
37760
|
+
* @param {object} props
|
|
37761
|
+
* @return {object}
|
|
37762
|
+
*/
|
|
37763
|
+
function copy$1 (root, props) {
|
|
37764
|
+
return assign$1(node$1('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
|
|
37765
|
+
}
|
|
37766
|
+
|
|
37767
|
+
/**
|
|
37768
|
+
* @param {object} root
|
|
37769
|
+
*/
|
|
37770
|
+
function lift (root) {
|
|
37771
|
+
while (root.root)
|
|
37772
|
+
root = copy$1(root.root, {children: [root]});
|
|
37773
|
+
|
|
37774
|
+
append$1(root, root.siblings);
|
|
37775
|
+
}
|
|
37776
|
+
|
|
37777
|
+
/**
|
|
37778
|
+
* @return {number}
|
|
37779
|
+
*/
|
|
37780
|
+
function char$1 () {
|
|
37781
|
+
return character$1
|
|
37782
|
+
}
|
|
37783
|
+
|
|
37784
|
+
/**
|
|
37785
|
+
* @return {number}
|
|
37786
|
+
*/
|
|
37787
|
+
function prev$1 () {
|
|
37788
|
+
character$1 = position$1 > 0 ? charat$1(characters$1, --position$1) : 0;
|
|
37789
|
+
|
|
37790
|
+
if (column$1--, character$1 === 10)
|
|
37791
|
+
column$1 = 1, line$1--;
|
|
37792
|
+
|
|
37793
|
+
return character$1
|
|
37794
|
+
}
|
|
37795
|
+
|
|
37796
|
+
/**
|
|
37797
|
+
* @return {number}
|
|
37798
|
+
*/
|
|
37799
|
+
function next$1 () {
|
|
37800
|
+
character$1 = position$1 < length$1 ? charat$1(characters$1, position$1++) : 0;
|
|
37801
|
+
|
|
37802
|
+
if (column$1++, character$1 === 10)
|
|
37803
|
+
column$1 = 1, line$1++;
|
|
37804
|
+
|
|
37805
|
+
return character$1
|
|
37806
|
+
}
|
|
37807
|
+
|
|
37808
|
+
/**
|
|
37809
|
+
* @return {number}
|
|
37810
|
+
*/
|
|
37811
|
+
function peek$1 () {
|
|
37812
|
+
return charat$1(characters$1, position$1)
|
|
37813
|
+
}
|
|
37814
|
+
|
|
37815
|
+
/**
|
|
37816
|
+
* @return {number}
|
|
37817
|
+
*/
|
|
37818
|
+
function caret$1 () {
|
|
37819
|
+
return position$1
|
|
37820
|
+
}
|
|
37821
|
+
|
|
37822
|
+
/**
|
|
37823
|
+
* @param {number} begin
|
|
37824
|
+
* @param {number} end
|
|
37825
|
+
* @return {string}
|
|
37826
|
+
*/
|
|
37827
|
+
function slice$1 (begin, end) {
|
|
37828
|
+
return substr$1(characters$1, begin, end)
|
|
37829
|
+
}
|
|
37830
|
+
|
|
37831
|
+
/**
|
|
37832
|
+
* @param {number} type
|
|
37833
|
+
* @return {number}
|
|
37834
|
+
*/
|
|
37835
|
+
function token$1 (type) {
|
|
37836
|
+
switch (type) {
|
|
37837
|
+
// \0 \t \n \r \s whitespace token
|
|
37838
|
+
case 0: case 9: case 10: case 13: case 32:
|
|
37839
|
+
return 5
|
|
37840
|
+
// ! + , / > @ ~ isolate token
|
|
37841
|
+
case 33: case 43: case 44: case 47: case 62: case 64: case 126:
|
|
37842
|
+
// ; { } breakpoint token
|
|
37843
|
+
case 59: case 123: case 125:
|
|
37844
|
+
return 4
|
|
37845
|
+
// : accompanied token
|
|
37846
|
+
case 58:
|
|
37847
|
+
return 3
|
|
37848
|
+
// " ' ( [ opening delimit token
|
|
37849
|
+
case 34: case 39: case 40: case 91:
|
|
37850
|
+
return 2
|
|
37851
|
+
// ) ] closing delimit token
|
|
37852
|
+
case 41: case 93:
|
|
37853
|
+
return 1
|
|
37854
|
+
}
|
|
37855
|
+
|
|
37856
|
+
return 0
|
|
37857
|
+
}
|
|
37858
|
+
|
|
37859
|
+
/**
|
|
37860
|
+
* @param {string} value
|
|
37861
|
+
* @return {any[]}
|
|
37862
|
+
*/
|
|
37863
|
+
function alloc$1 (value) {
|
|
37864
|
+
return line$1 = column$1 = 1, length$1 = strlen$1(characters$1 = value), position$1 = 0, []
|
|
37865
|
+
}
|
|
37866
|
+
|
|
37867
|
+
/**
|
|
37868
|
+
* @param {any} value
|
|
37869
|
+
* @return {any}
|
|
37870
|
+
*/
|
|
37871
|
+
function dealloc$1 (value) {
|
|
37872
|
+
return characters$1 = '', value
|
|
37873
|
+
}
|
|
37874
|
+
|
|
37875
|
+
/**
|
|
37876
|
+
* @param {number} type
|
|
37877
|
+
* @return {string}
|
|
37878
|
+
*/
|
|
37879
|
+
function delimit$1 (type) {
|
|
37880
|
+
return trim$2(slice$1(position$1 - 1, delimiter$1(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
|
|
37881
|
+
}
|
|
37882
|
+
|
|
37883
|
+
/**
|
|
37884
|
+
* @param {number} type
|
|
37885
|
+
* @return {string}
|
|
37886
|
+
*/
|
|
37887
|
+
function whitespace$1 (type) {
|
|
37888
|
+
while (character$1 = peek$1())
|
|
37889
|
+
if (character$1 < 33)
|
|
37890
|
+
next$1();
|
|
37891
|
+
else
|
|
37892
|
+
break
|
|
37893
|
+
|
|
37894
|
+
return token$1(type) > 2 || token$1(character$1) > 3 ? '' : ' '
|
|
37895
|
+
}
|
|
37896
|
+
|
|
37897
|
+
/**
|
|
37898
|
+
* @param {number} index
|
|
37899
|
+
* @param {number} count
|
|
37900
|
+
* @return {string}
|
|
37901
|
+
*/
|
|
37902
|
+
function escaping$1 (index, count) {
|
|
37903
|
+
while (--count && next$1())
|
|
37904
|
+
// not 0-9 A-F a-f
|
|
37905
|
+
if (character$1 < 48 || character$1 > 102 || (character$1 > 57 && character$1 < 65) || (character$1 > 70 && character$1 < 97))
|
|
37906
|
+
break
|
|
37907
|
+
|
|
37908
|
+
return slice$1(index, caret$1() + (count < 6 && peek$1() == 32 && next$1() == 32))
|
|
37909
|
+
}
|
|
37910
|
+
|
|
37911
|
+
/**
|
|
37912
|
+
* @param {number} type
|
|
37913
|
+
* @return {number}
|
|
37914
|
+
*/
|
|
37915
|
+
function delimiter$1 (type) {
|
|
37916
|
+
while (next$1())
|
|
37917
|
+
switch (character$1) {
|
|
37918
|
+
// ] ) " '
|
|
37919
|
+
case type:
|
|
37920
|
+
return position$1
|
|
37921
|
+
// " '
|
|
37922
|
+
case 34: case 39:
|
|
37923
|
+
if (type !== 34 && type !== 39)
|
|
37924
|
+
delimiter$1(character$1);
|
|
37925
|
+
break
|
|
37926
|
+
// (
|
|
37927
|
+
case 40:
|
|
37928
|
+
if (type === 41)
|
|
37929
|
+
delimiter$1(type);
|
|
37930
|
+
break
|
|
37931
|
+
// \
|
|
37932
|
+
case 92:
|
|
37933
|
+
next$1();
|
|
37934
|
+
break
|
|
37935
|
+
}
|
|
37936
|
+
|
|
37937
|
+
return position$1
|
|
37938
|
+
}
|
|
37939
|
+
|
|
37940
|
+
/**
|
|
37941
|
+
* @param {number} type
|
|
37942
|
+
* @param {number} index
|
|
37943
|
+
* @return {number}
|
|
37944
|
+
*/
|
|
37945
|
+
function commenter$1 (type, index) {
|
|
37946
|
+
while (next$1())
|
|
37947
|
+
// //
|
|
37948
|
+
if (type + character$1 === 47 + 10)
|
|
37949
|
+
break
|
|
37950
|
+
// /*
|
|
37951
|
+
else if (type + character$1 === 42 + 42 && peek$1() === 47)
|
|
37952
|
+
break
|
|
37953
|
+
|
|
37954
|
+
return '/*' + slice$1(index, position$1 - 1) + '*' + from$1(type === 47 ? type : next$1())
|
|
37955
|
+
}
|
|
37956
|
+
|
|
37957
|
+
/**
|
|
37958
|
+
* @param {number} index
|
|
37959
|
+
* @return {string}
|
|
37960
|
+
*/
|
|
37961
|
+
function identifier$1 (index) {
|
|
37962
|
+
while (!token$1(peek$1()))
|
|
37963
|
+
next$1();
|
|
37964
|
+
|
|
37965
|
+
return slice$1(index, position$1)
|
|
37966
|
+
}
|
|
37967
|
+
|
|
37968
|
+
/**
|
|
37969
|
+
* @param {string} value
|
|
37970
|
+
* @return {object[]}
|
|
37971
|
+
*/
|
|
37972
|
+
function compile$1 (value) {
|
|
37973
|
+
return dealloc$1(parse$1('', null, null, null, [''], value = alloc$1(value), 0, [0], value))
|
|
37974
|
+
}
|
|
37975
|
+
|
|
37976
|
+
/**
|
|
37977
|
+
* @param {string} value
|
|
37978
|
+
* @param {object} root
|
|
37979
|
+
* @param {object?} parent
|
|
37980
|
+
* @param {string[]} rule
|
|
37981
|
+
* @param {string[]} rules
|
|
37982
|
+
* @param {string[]} rulesets
|
|
37983
|
+
* @param {number[]} pseudo
|
|
37984
|
+
* @param {number[]} points
|
|
37985
|
+
* @param {string[]} declarations
|
|
37986
|
+
* @return {object}
|
|
37987
|
+
*/
|
|
37988
|
+
function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
37989
|
+
var index = 0;
|
|
37990
|
+
var offset = 0;
|
|
37991
|
+
var length = pseudo;
|
|
37992
|
+
var atrule = 0;
|
|
37993
|
+
var property = 0;
|
|
37994
|
+
var previous = 0;
|
|
37995
|
+
var variable = 1;
|
|
37996
|
+
var scanning = 1;
|
|
37997
|
+
var ampersand = 1;
|
|
37998
|
+
var character = 0;
|
|
37999
|
+
var type = '';
|
|
38000
|
+
var props = rules;
|
|
38001
|
+
var children = rulesets;
|
|
38002
|
+
var reference = rule;
|
|
38003
|
+
var characters = type;
|
|
38004
|
+
|
|
38005
|
+
while (scanning)
|
|
38006
|
+
switch (previous = character, character = next$1()) {
|
|
38007
|
+
// (
|
|
38008
|
+
case 40:
|
|
38009
|
+
if (previous != 108 && charat$1(characters, length - 1) == 58) {
|
|
38010
|
+
if (indexof$1(characters += replace$1(delimit$1(character), '&', '&\f'), '&\f', abs$1(index ? points[index - 1] : 0)) != -1)
|
|
38011
|
+
ampersand = -1;
|
|
38012
|
+
break
|
|
38013
|
+
}
|
|
38014
|
+
// " ' [
|
|
38015
|
+
case 34: case 39: case 91:
|
|
38016
|
+
characters += delimit$1(character);
|
|
38017
|
+
break
|
|
38018
|
+
// \t \n \r \s
|
|
38019
|
+
case 9: case 10: case 13: case 32:
|
|
38020
|
+
characters += whitespace$1(previous);
|
|
38021
|
+
break
|
|
38022
|
+
// \
|
|
38023
|
+
case 92:
|
|
38024
|
+
characters += escaping$1(caret$1() - 1, 7);
|
|
38025
|
+
continue
|
|
38026
|
+
// /
|
|
38027
|
+
case 47:
|
|
38028
|
+
switch (peek$1()) {
|
|
38029
|
+
case 42: case 47:
|
|
38030
|
+
append$1(comment$1(commenter$1(next$1(), caret$1()), root, parent, declarations), declarations);
|
|
38031
|
+
break
|
|
38032
|
+
default:
|
|
38033
|
+
characters += '/';
|
|
38034
|
+
}
|
|
38035
|
+
break
|
|
38036
|
+
// {
|
|
38037
|
+
case 123 * variable:
|
|
38038
|
+
points[index++] = strlen$1(characters) * ampersand;
|
|
38039
|
+
// } ; \0
|
|
38040
|
+
case 125 * variable: case 59: case 0:
|
|
38041
|
+
switch (character) {
|
|
38042
|
+
// \0 }
|
|
38043
|
+
case 0: case 125: scanning = 0;
|
|
38044
|
+
// ;
|
|
38045
|
+
case 59 + offset: if (ampersand == -1) characters = replace$1(characters, /\f/g, '');
|
|
38046
|
+
if (property > 0 && (strlen$1(characters) - length))
|
|
38047
|
+
append$1(property > 32 ? declaration$1(characters + ';', rule, parent, length - 1, declarations) : declaration$1(replace$1(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
38048
|
+
break
|
|
38049
|
+
// @ ;
|
|
38050
|
+
case 59: characters += ';';
|
|
38051
|
+
// { rule/at-rule
|
|
38052
|
+
default:
|
|
38053
|
+
append$1(reference = ruleset$1(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
38054
|
+
|
|
38055
|
+
if (character === 123)
|
|
38056
|
+
if (offset === 0)
|
|
38057
|
+
parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
38058
|
+
else
|
|
38059
|
+
switch (atrule === 99 && charat$1(characters, 3) === 110 ? 100 : atrule) {
|
|
38060
|
+
// d l m s
|
|
38061
|
+
case 100: case 108: case 109: case 115:
|
|
38062
|
+
parse$1(value, reference, reference, rule && append$1(ruleset$1(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
38063
|
+
break
|
|
38064
|
+
default:
|
|
38065
|
+
parse$1(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
38066
|
+
}
|
|
38067
|
+
}
|
|
38068
|
+
|
|
38069
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
38070
|
+
break
|
|
38071
|
+
// :
|
|
38072
|
+
case 58:
|
|
38073
|
+
length = 1 + strlen$1(characters), property = previous;
|
|
38074
|
+
default:
|
|
38075
|
+
if (variable < 1)
|
|
38076
|
+
if (character == 123)
|
|
38077
|
+
--variable;
|
|
38078
|
+
else if (character == 125 && variable++ == 0 && prev$1() == 125)
|
|
38079
|
+
continue
|
|
38080
|
+
|
|
38081
|
+
switch (characters += from$1(character), character * variable) {
|
|
38082
|
+
// &
|
|
38083
|
+
case 38:
|
|
38084
|
+
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
38085
|
+
break
|
|
38086
|
+
// ,
|
|
38087
|
+
case 44:
|
|
38088
|
+
points[index++] = (strlen$1(characters) - 1) * ampersand, ampersand = 1;
|
|
38089
|
+
break
|
|
38090
|
+
// @
|
|
38091
|
+
case 64:
|
|
38092
|
+
// -
|
|
38093
|
+
if (peek$1() === 45)
|
|
38094
|
+
characters += delimit$1(next$1());
|
|
38095
|
+
|
|
38096
|
+
atrule = peek$1(), offset = length = strlen$1(type = characters += identifier$1(caret$1())), character++;
|
|
38097
|
+
break
|
|
38098
|
+
// -
|
|
38099
|
+
case 45:
|
|
38100
|
+
if (previous === 45 && strlen$1(characters) == 2)
|
|
38101
|
+
variable = 0;
|
|
38102
|
+
}
|
|
38103
|
+
}
|
|
38104
|
+
|
|
38105
|
+
return rulesets
|
|
38106
|
+
}
|
|
38107
|
+
|
|
38108
|
+
/**
|
|
38109
|
+
* @param {string} value
|
|
38110
|
+
* @param {object} root
|
|
38111
|
+
* @param {object?} parent
|
|
38112
|
+
* @param {number} index
|
|
38113
|
+
* @param {number} offset
|
|
38114
|
+
* @param {string[]} rules
|
|
38115
|
+
* @param {number[]} points
|
|
38116
|
+
* @param {string} type
|
|
38117
|
+
* @param {string[]} props
|
|
38118
|
+
* @param {string[]} children
|
|
38119
|
+
* @param {number} length
|
|
38120
|
+
* @param {object[]} siblings
|
|
38121
|
+
* @return {object}
|
|
38122
|
+
*/
|
|
38123
|
+
function ruleset$1 (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
38124
|
+
var post = offset - 1;
|
|
38125
|
+
var rule = offset === 0 ? rules : [''];
|
|
38126
|
+
var size = sizeof$1(rule);
|
|
38127
|
+
|
|
38128
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
38129
|
+
for (var x = 0, y = substr$1(value, post + 1, post = abs$1(j = points[i])), z = value; x < size; ++x)
|
|
38130
|
+
if (z = trim$2(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
|
|
38131
|
+
props[k++] = z;
|
|
38132
|
+
|
|
38133
|
+
return node$1(value, root, parent, offset === 0 ? RULESET$1 : type, props, children, length, siblings)
|
|
38134
|
+
}
|
|
38135
|
+
|
|
38136
|
+
/**
|
|
38137
|
+
* @param {number} value
|
|
38138
|
+
* @param {object} root
|
|
38139
|
+
* @param {object?} parent
|
|
38140
|
+
* @param {object[]} siblings
|
|
38141
|
+
* @return {object}
|
|
38142
|
+
*/
|
|
38143
|
+
function comment$1 (value, root, parent, siblings) {
|
|
38144
|
+
return node$1(value, root, parent, COMMENT$1, from$1(char$1()), substr$1(value, 2, -2), 0, siblings)
|
|
38145
|
+
}
|
|
38146
|
+
|
|
38147
|
+
/**
|
|
38148
|
+
* @param {string} value
|
|
38149
|
+
* @param {object} root
|
|
38150
|
+
* @param {object?} parent
|
|
38151
|
+
* @param {number} length
|
|
38152
|
+
* @param {object[]} siblings
|
|
38153
|
+
* @return {object}
|
|
38154
|
+
*/
|
|
38155
|
+
function declaration$1 (value, root, parent, length, siblings) {
|
|
38156
|
+
return node$1(value, root, parent, DECLARATION$1, substr$1(value, 0, length), substr$1(value, length + 1, -1), length, siblings)
|
|
38157
|
+
}
|
|
38158
|
+
|
|
38159
|
+
/**
|
|
38160
|
+
* @param {string} value
|
|
38161
|
+
* @param {number} length
|
|
38162
|
+
* @param {object[]} children
|
|
38163
|
+
* @return {string}
|
|
38164
|
+
*/
|
|
38165
|
+
function prefix$1 (value, length, children) {
|
|
38166
|
+
switch (hash$1(value, length)) {
|
|
38167
|
+
// color-adjust
|
|
38168
|
+
case 5103:
|
|
38169
|
+
return WEBKIT$1 + 'print-' + value + value
|
|
38170
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
38171
|
+
case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
|
|
38172
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
38173
|
+
case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
|
|
38174
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
38175
|
+
case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
|
|
38176
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
38177
|
+
case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
|
|
38178
|
+
return WEBKIT$1 + value + value
|
|
38179
|
+
// tab-size
|
|
38180
|
+
case 4789:
|
|
38181
|
+
return MOZ$1 + value + value
|
|
38182
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
38183
|
+
case 5349: case 4246: case 4810: case 6968: case 2756:
|
|
38184
|
+
return WEBKIT$1 + value + MOZ$1 + value + MS$1 + value + value
|
|
38185
|
+
// writing-mode
|
|
38186
|
+
case 5936:
|
|
38187
|
+
switch (charat$1(value, length + 11)) {
|
|
38188
|
+
// vertical-l(r)
|
|
38189
|
+
case 114:
|
|
38190
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
|
|
38191
|
+
// vertical-r(l)
|
|
38192
|
+
case 108:
|
|
38193
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
|
|
38194
|
+
// horizontal(-)tb
|
|
38195
|
+
case 45:
|
|
38196
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
|
|
38197
|
+
// default: fallthrough to below
|
|
38198
|
+
}
|
|
38199
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
38200
|
+
case 6828: case 4268: case 2903:
|
|
38201
|
+
return WEBKIT$1 + value + MS$1 + value + value
|
|
38202
|
+
// order
|
|
38203
|
+
case 6165:
|
|
38204
|
+
return WEBKIT$1 + value + MS$1 + 'flex-' + value + value
|
|
38205
|
+
// align-items
|
|
38206
|
+
case 5187:
|
|
38207
|
+
return WEBKIT$1 + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT$1 + 'box-$1$2' + MS$1 + 'flex-$1$2') + value
|
|
38208
|
+
// align-self
|
|
38209
|
+
case 5443:
|
|
38210
|
+
return WEBKIT$1 + value + MS$1 + 'flex-item-' + replace$1(value, /flex-|-self/g, '') + (!match$1(value, /flex-|baseline/) ? MS$1 + 'grid-row-' + replace$1(value, /flex-|-self/g, '') : '') + value
|
|
38211
|
+
// align-content
|
|
38212
|
+
case 4675:
|
|
38213
|
+
return WEBKIT$1 + value + MS$1 + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/g, '') + value
|
|
38214
|
+
// flex-shrink
|
|
38215
|
+
case 5548:
|
|
38216
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, 'shrink', 'negative') + value
|
|
38217
|
+
// flex-basis
|
|
38218
|
+
case 5292:
|
|
38219
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, 'basis', 'preferred-size') + value
|
|
38220
|
+
// flex-grow
|
|
38221
|
+
case 6060:
|
|
38222
|
+
return WEBKIT$1 + 'box-' + replace$1(value, '-grow', '') + WEBKIT$1 + value + MS$1 + replace$1(value, 'grow', 'positive') + value
|
|
38223
|
+
// transition
|
|
38224
|
+
case 4554:
|
|
38225
|
+
return WEBKIT$1 + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT$1 + '$2') + value
|
|
38226
|
+
// cursor
|
|
38227
|
+
case 6187:
|
|
38228
|
+
return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT$1 + '$1'), /(image-set)/, WEBKIT$1 + '$1'), value, '') + value
|
|
38229
|
+
// background, background-image
|
|
38230
|
+
case 5495: case 3959:
|
|
38231
|
+
return replace$1(value, /(image-set\([^]*)/, WEBKIT$1 + '$1' + '$`$1')
|
|
38232
|
+
// justify-content
|
|
38233
|
+
case 4968:
|
|
38234
|
+
return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT$1 + 'box-pack:$3' + MS$1 + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT$1 + value + value
|
|
38235
|
+
// justify-self
|
|
38236
|
+
case 4200:
|
|
38237
|
+
if (!match$1(value, /flex-|baseline/)) return MS$1 + 'grid-column-align' + substr$1(value, length) + value
|
|
38238
|
+
break
|
|
38239
|
+
// grid-template-(columns|rows)
|
|
38240
|
+
case 2592: case 3360:
|
|
38241
|
+
return MS$1 + replace$1(value, 'template-', '') + value
|
|
38242
|
+
// grid-(row|column)-start
|
|
38243
|
+
case 4384: case 3616:
|
|
38244
|
+
if (children && children.some(function (element, index) { return length = index, match$1(element.props, /grid-\w+-end/) })) {
|
|
38245
|
+
return ~indexof$1(value + (children = children[length].value), 'span', 0) ? value : (MS$1 + replace$1(value, '-start', '') + value + MS$1 + 'grid-row-span:' + (~indexof$1(children, 'span', 0) ? match$1(children, /\d+/) : +match$1(children, /\d+/) - +match$1(value, /\d+/)) + ';')
|
|
38246
|
+
}
|
|
38247
|
+
return MS$1 + replace$1(value, '-start', '') + value
|
|
38248
|
+
// grid-(row|column)-end
|
|
38249
|
+
case 4896: case 4128:
|
|
38250
|
+
return (children && children.some(function (element) { return match$1(element.props, /grid-\w+-start/) })) ? value : MS$1 + replace$1(replace$1(value, '-end', '-span'), 'span ', '') + value
|
|
38251
|
+
// (margin|padding)-inline-(start|end)
|
|
38252
|
+
case 4095: case 3583: case 4068: case 2532:
|
|
38253
|
+
return replace$1(value, /(.+)-inline(.+)/, WEBKIT$1 + '$1$2') + value
|
|
38254
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
38255
|
+
case 8116: case 7059: case 5753: case 5535:
|
|
38256
|
+
case 5445: case 5701: case 4933: case 4677:
|
|
38257
|
+
case 5533: case 5789: case 5021: case 4765:
|
|
38258
|
+
// stretch, max-content, min-content, fill-available
|
|
38259
|
+
if (strlen$1(value) - 1 - length > 6)
|
|
38260
|
+
switch (charat$1(value, length + 1)) {
|
|
38261
|
+
// (m)ax-content, (m)in-content
|
|
38262
|
+
case 109:
|
|
38263
|
+
// -
|
|
38264
|
+
if (charat$1(value, length + 4) !== 45)
|
|
38265
|
+
break
|
|
38266
|
+
// (f)ill-available, (f)it-content
|
|
38267
|
+
case 102:
|
|
38268
|
+
return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT$1 + '$2-$3' + '$1' + MOZ$1 + (charat$1(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
|
|
38269
|
+
// (s)tretch
|
|
38270
|
+
case 115:
|
|
38271
|
+
return ~indexof$1(value, 'stretch', 0) ? prefix$1(replace$1(value, 'stretch', 'fill-available'), length, children) + value : value
|
|
38272
|
+
}
|
|
38273
|
+
break
|
|
38274
|
+
// grid-(column|row)
|
|
38275
|
+
case 5152: case 5920:
|
|
38276
|
+
return replace$1(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS$1 + a + ':' + b + f) + (c ? (MS$1 + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
|
|
38277
|
+
// position: sticky
|
|
38278
|
+
case 4949:
|
|
38279
|
+
// stick(y)?
|
|
38280
|
+
if (charat$1(value, length + 6) === 121)
|
|
38281
|
+
return replace$1(value, ':', ':' + WEBKIT$1) + value
|
|
38282
|
+
break
|
|
38283
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
38284
|
+
case 6444:
|
|
38285
|
+
switch (charat$1(value, charat$1(value, 14) === 45 ? 18 : 11)) {
|
|
38286
|
+
// (inline-)?fle(x)
|
|
38287
|
+
case 120:
|
|
38288
|
+
return replace$1(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT$1 + (charat$1(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT$1 + '$2$3' + '$1' + MS$1 + '$2box$3') + value
|
|
38289
|
+
// (inline-)?gri(d)
|
|
38290
|
+
case 100:
|
|
38291
|
+
return replace$1(value, ':', ':' + MS$1) + value
|
|
38292
|
+
}
|
|
38293
|
+
break
|
|
38294
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
38295
|
+
case 5719: case 2647: case 2135: case 3927: case 2391:
|
|
38296
|
+
return replace$1(value, 'scroll-', 'scroll-snap-') + value
|
|
38297
|
+
}
|
|
38298
|
+
|
|
38299
|
+
return value
|
|
38300
|
+
}
|
|
38301
|
+
|
|
38302
|
+
/**
|
|
38303
|
+
* @param {object[]} children
|
|
38304
|
+
* @param {function} callback
|
|
38305
|
+
* @return {string}
|
|
38306
|
+
*/
|
|
38307
|
+
function serialize$1 (children, callback) {
|
|
38308
|
+
var output = '';
|
|
38309
|
+
|
|
38310
|
+
for (var i = 0; i < children.length; i++)
|
|
38311
|
+
output += callback(children[i], i, children, callback) || '';
|
|
38312
|
+
|
|
38313
|
+
return output
|
|
38314
|
+
}
|
|
38315
|
+
|
|
38316
|
+
/**
|
|
38317
|
+
* @param {object} element
|
|
38318
|
+
* @param {number} index
|
|
38319
|
+
* @param {object[]} children
|
|
38320
|
+
* @param {function} callback
|
|
38321
|
+
* @return {string}
|
|
38322
|
+
*/
|
|
38323
|
+
function stringify$1 (element, index, children, callback) {
|
|
38324
|
+
switch (element.type) {
|
|
38325
|
+
case LAYER$1: if (element.children.length) break
|
|
38326
|
+
case IMPORT$1: case DECLARATION$1: return element.return = element.return || element.value
|
|
38327
|
+
case COMMENT$1: return ''
|
|
38328
|
+
case KEYFRAMES$1: return element.return = element.value + '{' + serialize$1(element.children, callback) + '}'
|
|
38329
|
+
case RULESET$1: if (!strlen$1(element.value = element.props.join(','))) return ''
|
|
38330
|
+
}
|
|
38331
|
+
|
|
38332
|
+
return strlen$1(children = serialize$1(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
|
|
38333
|
+
}
|
|
38334
|
+
|
|
38335
|
+
/**
|
|
38336
|
+
* @param {function[]} collection
|
|
38337
|
+
* @return {function}
|
|
38338
|
+
*/
|
|
38339
|
+
function middleware$1 (collection) {
|
|
38340
|
+
var length = sizeof$1(collection);
|
|
38341
|
+
|
|
38342
|
+
return function (element, index, children, callback) {
|
|
38343
|
+
var output = '';
|
|
38344
|
+
|
|
38345
|
+
for (var i = 0; i < length; i++)
|
|
38346
|
+
output += collection[i](element, index, children, callback) || '';
|
|
38347
|
+
|
|
38348
|
+
return output
|
|
38349
|
+
}
|
|
38350
|
+
}
|
|
38351
|
+
|
|
38352
|
+
/**
|
|
38353
|
+
* @param {function} callback
|
|
38354
|
+
* @return {function}
|
|
38355
|
+
*/
|
|
38356
|
+
function rulesheet$1 (callback) {
|
|
38357
|
+
return function (element) {
|
|
38358
|
+
if (!element.root)
|
|
38359
|
+
if (element = element.return)
|
|
38360
|
+
callback(element);
|
|
38361
|
+
}
|
|
38362
|
+
}
|
|
38363
|
+
|
|
38364
|
+
/**
|
|
38365
|
+
* @param {object} element
|
|
38366
|
+
* @param {number} index
|
|
38367
|
+
* @param {object[]} children
|
|
38368
|
+
* @param {function} callback
|
|
38369
|
+
*/
|
|
38370
|
+
function prefixer$1 (element, index, children, callback) {
|
|
38371
|
+
if (element.length > -1)
|
|
38372
|
+
if (!element.return)
|
|
38373
|
+
switch (element.type) {
|
|
38374
|
+
case DECLARATION$1: element.return = prefix$1(element.value, element.length, children);
|
|
38375
|
+
return
|
|
38376
|
+
case KEYFRAMES$1:
|
|
38377
|
+
return serialize$1([copy$1(element, {value: replace$1(element.value, '@', '@' + WEBKIT$1)})], callback)
|
|
38378
|
+
case RULESET$1:
|
|
38379
|
+
if (element.length)
|
|
38380
|
+
return combine$1(children = element.props, function (value) {
|
|
38381
|
+
switch (match$1(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
38382
|
+
// :read-(only|write)
|
|
38383
|
+
case ':read-only': case ':read-write':
|
|
38384
|
+
lift(copy$1(element, {props: [replace$1(value, /:(read-\w+)/, ':' + MOZ$1 + '$1')]}));
|
|
38385
|
+
lift(copy$1(element, {props: [value]}));
|
|
38386
|
+
assign$1(element, {props: filter(children, callback)});
|
|
38387
|
+
break
|
|
38388
|
+
// :placeholder
|
|
38389
|
+
case '::placeholder':
|
|
38390
|
+
lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT$1 + 'input-$1')]}));
|
|
38391
|
+
lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, ':' + MOZ$1 + '$1')]}));
|
|
38392
|
+
lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, MS$1 + 'input-$1')]}));
|
|
38393
|
+
lift(copy$1(element, {props: [value]}));
|
|
38394
|
+
assign$1(element, {props: filter(children, callback)});
|
|
38395
|
+
break
|
|
38396
|
+
}
|
|
38397
|
+
|
|
38398
|
+
return ''
|
|
38399
|
+
})
|
|
38400
|
+
}
|
|
38401
|
+
}
|
|
38402
|
+
|
|
38403
|
+
var unitlessKeys$1 = {
|
|
38404
|
+
animationIterationCount: 1,
|
|
38405
|
+
borderImageOutset: 1,
|
|
38406
|
+
borderImageSlice: 1,
|
|
38407
|
+
borderImageWidth: 1,
|
|
38408
|
+
boxFlex: 1,
|
|
38409
|
+
boxFlexGroup: 1,
|
|
38410
|
+
boxOrdinalGroup: 1,
|
|
38411
|
+
columnCount: 1,
|
|
38412
|
+
columns: 1,
|
|
38413
|
+
flex: 1,
|
|
38414
|
+
flexGrow: 1,
|
|
38415
|
+
flexPositive: 1,
|
|
38416
|
+
flexShrink: 1,
|
|
38417
|
+
flexNegative: 1,
|
|
38418
|
+
flexOrder: 1,
|
|
38419
|
+
gridRow: 1,
|
|
38420
|
+
gridRowEnd: 1,
|
|
38421
|
+
gridRowSpan: 1,
|
|
38422
|
+
gridRowStart: 1,
|
|
38423
|
+
gridColumn: 1,
|
|
38424
|
+
gridColumnEnd: 1,
|
|
38425
|
+
gridColumnSpan: 1,
|
|
38426
|
+
gridColumnStart: 1,
|
|
38427
|
+
msGridRow: 1,
|
|
38428
|
+
msGridRowSpan: 1,
|
|
38429
|
+
msGridColumn: 1,
|
|
38430
|
+
msGridColumnSpan: 1,
|
|
38431
|
+
fontWeight: 1,
|
|
38432
|
+
lineHeight: 1,
|
|
38433
|
+
opacity: 1,
|
|
38434
|
+
order: 1,
|
|
38435
|
+
orphans: 1,
|
|
38436
|
+
tabSize: 1,
|
|
38437
|
+
widows: 1,
|
|
38438
|
+
zIndex: 1,
|
|
38439
|
+
zoom: 1,
|
|
38440
|
+
WebkitLineClamp: 1,
|
|
38441
|
+
// SVG-related properties
|
|
38442
|
+
fillOpacity: 1,
|
|
38443
|
+
floodOpacity: 1,
|
|
38444
|
+
stopOpacity: 1,
|
|
38445
|
+
strokeDasharray: 1,
|
|
38446
|
+
strokeDashoffset: 1,
|
|
38447
|
+
strokeMiterlimit: 1,
|
|
38448
|
+
strokeOpacity: 1,
|
|
38449
|
+
strokeWidth: 1
|
|
38450
|
+
};
|
|
38451
|
+
|
|
38452
|
+
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.8",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},React.useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return M(F,e)};function z(e){return x($(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,W=G?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:q;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=new Map,ye=new Map,ve=1,ge=function(e){if(me.has(e))return me.get(e);for(;ye.has(ve);)ve++;var t=ve++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw he(16,"".concat(t));return me.set(e,t),ye.set(t,e),t},Se=function(e,t){ve=t+1,me.set(e,t),ye.set(t,e);},we="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),be=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ee=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Ne=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(be);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(Se(u,l),Ee(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function Pe(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _e=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Pe();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ce=function(){function e(e){this.element=_e(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ie=function(){function e(e){this.element=_e(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ae=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Oe=S,De={isServer:!S,useCSSOMInjection:!w},Re=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},De),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Oe&&(Oe=!1,function(e){for(var t=document.querySelectorAll(we),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Ne(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ye.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return ge(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ae(n):t?new Ce(n):new Ie(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ge(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ge(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(ge(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),Te=/&/g,ke=/^\s*\/\/.*$/gm;function je(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function xe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET$1&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Te,n).replace(o,l));}),i.prefix&&u.push(prefixer$1),u.push(stringify$1);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(ke,""),l=compile$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=je(l,i.namespace));var p=[];return serialize$1(l,middleware$1(u.concat(rulesheet$1(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Ve=new Re,Fe=xe(),Me=React.createContext({shouldForwardProp:void 0,styleSheet:Ve,stylis:Fe});Me.Consumer;React.createContext(void 0);function Be(){return React.useContext(Me)}var Ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Fe);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Fe),this.name+e.hash},e}(),Ye=function(e){return e>="A"&&e<="Z"};function We(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Ye(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var qe=function(e){return null==e||!1===e||""===e},He=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!qe(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(We(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],He(i),!1),["}"],!1)):r.push("".concat(We(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys$1||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Ue(e,t,n,o){if(qe(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Ge||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ue(r,t,n,o)}var s;return e instanceof Ge?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?He(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Ue(e,t,n,o)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Xe=$(v),Ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=M(Xe,t),this.baseStyle=n,Re.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Ue(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Ue(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),Ke=React.createContext(void 0);Ke.Consumer;var nt={},ot=new Set;function rt(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);nt[n]=(nt[n]||0)+1;var o="".concat(n,"-").concat(z(v+n+nt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Ze(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React.useContext(Ke),m=Be(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&React.useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid$1(b)||ot.has(b)||!A.has(S)||(ot.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Be(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&React.useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,React.createElement(S,w)}(D,e,r)}O.displayName=y;var D=React.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function st(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var it=function(e){return Object.assign(e,{isCss:!0})};function at(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return it(Ue(st(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ue(r):it(Ue(st(r,n)))}function ct(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,at.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ct(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ct(n,o,__assign(__assign({},r),e))},s}var lt=function(e){return ct(rt,e)},ut=lt;A.forEach(function(e){ut[e]=lt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var vt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[vt]||(window[vt]=0),1===window[vt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[vt]+=1);
|
|
38453
|
+
|
|
37507
38454
|
const common = {
|
|
37508
38455
|
black: '#000',
|
|
37509
38456
|
white: '#fff'
|
|
@@ -57927,6 +58874,18 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
57927
58874
|
} : void 0;
|
|
57928
58875
|
var TextField$1 = TextField;
|
|
57929
58876
|
|
|
58877
|
+
var VisibilityIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
58878
|
+
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
|
|
58879
|
+
}), 'Visibility');
|
|
58880
|
+
|
|
58881
|
+
var VisibilityOffIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
58882
|
+
d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
|
|
58883
|
+
}), 'VisibilityOff');
|
|
58884
|
+
|
|
58885
|
+
var LockIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
58886
|
+
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"
|
|
58887
|
+
}), 'Lock');
|
|
58888
|
+
|
|
57930
58889
|
function bind(fn, thisArg) {
|
|
57931
58890
|
return function wrap() {
|
|
57932
58891
|
return fn.apply(thisArg, arguments);
|
|
@@ -61943,7 +62902,7 @@ var BaseApi = /*#__PURE__*/function () {
|
|
|
61943
62902
|
key: "post",
|
|
61944
62903
|
value: (function () {
|
|
61945
62904
|
var _post = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(payload, settings) {
|
|
61946
|
-
var result;
|
|
62905
|
+
var endpoint, result;
|
|
61947
62906
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
61948
62907
|
while (1) switch (_context5.prev = _context5.next) {
|
|
61949
62908
|
case 0:
|
|
@@ -61954,21 +62913,22 @@ var BaseApi = /*#__PURE__*/function () {
|
|
|
61954
62913
|
}
|
|
61955
62914
|
return _context5.abrupt("return", null);
|
|
61956
62915
|
case 3:
|
|
61957
|
-
|
|
61958
|
-
|
|
61959
|
-
|
|
62916
|
+
endpoint = "".concat(settings !== null && settings !== void 0 && settings.debug ? this.serviceEndpoints.baseUrlDev : this.serviceEndpoints.baseUrlProd).concat((settings === null || settings === void 0 ? void 0 : settings.endpoint) || this.serviceEndpoints.post);
|
|
62917
|
+
_context5.next = 6;
|
|
62918
|
+
return this.request().post(endpoint, payload);
|
|
62919
|
+
case 6:
|
|
61960
62920
|
result = _context5.sent;
|
|
61961
62921
|
return _context5.abrupt("return", result.data);
|
|
61962
|
-
case
|
|
61963
|
-
_context5.prev =
|
|
62922
|
+
case 10:
|
|
62923
|
+
_context5.prev = 10;
|
|
61964
62924
|
_context5.t0 = _context5["catch"](0);
|
|
61965
62925
|
console.error(_context5.t0);
|
|
61966
62926
|
return _context5.abrupt("return", _context5.t0.response.data);
|
|
61967
|
-
case
|
|
62927
|
+
case 14:
|
|
61968
62928
|
case "end":
|
|
61969
62929
|
return _context5.stop();
|
|
61970
62930
|
}
|
|
61971
|
-
}, _callee5, this, [[0,
|
|
62931
|
+
}, _callee5, this, [[0, 10]]);
|
|
61972
62932
|
}));
|
|
61973
62933
|
function post(_x5, _x6) {
|
|
61974
62934
|
return _post.apply(this, arguments);
|
|
@@ -62116,6 +63076,7 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62116
63076
|
_this.api_key = (args === null || args === void 0 ? void 0 : args.apiKey) || '';
|
|
62117
63077
|
_this.serviceEndpoints = {
|
|
62118
63078
|
baseUrlProd: undefined,
|
|
63079
|
+
baseUrlDev: undefined,
|
|
62119
63080
|
signUpWithPassword: '/security/signup/standard',
|
|
62120
63081
|
signInStandard: '/security/signin/standard',
|
|
62121
63082
|
emailRecoverPassword: '/security/password/reset/standard',
|
|
@@ -62133,10 +63094,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62133
63094
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
62134
63095
|
while (1) switch (_context.prev = _context.next) {
|
|
62135
63096
|
case 0:
|
|
62136
|
-
return _context.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62137
|
-
endpoint: this.serviceEndpoints.signUpWithPassword
|
|
62138
|
-
|
|
62139
|
-
}));
|
|
63097
|
+
return _context.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63098
|
+
endpoint: this.serviceEndpoints.signUpWithPassword
|
|
63099
|
+
}, this.settings)));
|
|
62140
63100
|
case 1:
|
|
62141
63101
|
case "end":
|
|
62142
63102
|
return _context.stop();
|
|
@@ -62155,10 +63115,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62155
63115
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
62156
63116
|
while (1) switch (_context2.prev = _context2.next) {
|
|
62157
63117
|
case 0:
|
|
62158
|
-
return _context2.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62159
|
-
endpoint: this.serviceEndpoints.signInStandard
|
|
62160
|
-
|
|
62161
|
-
}));
|
|
63118
|
+
return _context2.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63119
|
+
endpoint: this.serviceEndpoints.signInStandard
|
|
63120
|
+
}, this.settings)));
|
|
62162
63121
|
case 1:
|
|
62163
63122
|
case "end":
|
|
62164
63123
|
return _context2.stop();
|
|
@@ -62177,10 +63136,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62177
63136
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
62178
63137
|
while (1) switch (_context3.prev = _context3.next) {
|
|
62179
63138
|
case 0:
|
|
62180
|
-
return _context3.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62181
|
-
endpoint: this.serviceEndpoints.logout
|
|
62182
|
-
|
|
62183
|
-
}));
|
|
63139
|
+
return _context3.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63140
|
+
endpoint: this.serviceEndpoints.logout
|
|
63141
|
+
}, this.settings)));
|
|
62184
63142
|
case 1:
|
|
62185
63143
|
case "end":
|
|
62186
63144
|
return _context3.stop();
|
|
@@ -62199,10 +63157,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62199
63157
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
62200
63158
|
while (1) switch (_context4.prev = _context4.next) {
|
|
62201
63159
|
case 0:
|
|
62202
|
-
return _context4.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62203
|
-
endpoint: this.serviceEndpoints.emailRecoverPassword
|
|
62204
|
-
|
|
62205
|
-
}));
|
|
63160
|
+
return _context4.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63161
|
+
endpoint: this.serviceEndpoints.emailRecoverPassword
|
|
63162
|
+
}, this.settings)));
|
|
62206
63163
|
case 1:
|
|
62207
63164
|
case "end":
|
|
62208
63165
|
return _context4.stop();
|
|
@@ -62236,12 +63193,16 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62236
63193
|
}]);
|
|
62237
63194
|
}(BaseApi);
|
|
62238
63195
|
|
|
63196
|
+
var _templateObject, _templateObject2;
|
|
63197
|
+
var StandarSigninContainer = ut.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0 auto;\n min-width: 400px;\n\n @media (min-width: 768px) {\n max-width: 66.6667%; /* 8/12 */\n }\n\n @media (min-width: 992px) {\n max-width: 50%; /* 6/12 */\n }\n\n @media (min-width: 1200px) {\n max-width: 41.6667%; /* 5/12 */\n }\n"])));
|
|
63198
|
+
var KarlaTypography = ut(Typography$1)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
|
|
62239
63199
|
var swal = withReactContent(Swal);
|
|
62240
63200
|
var statusCodeMessages = {
|
|
62241
63201
|
461: 'The data provided does not match any registered application',
|
|
62242
63202
|
462: 'Unauthorized user. After 3 failed attempts, your account will be locked for 24 hours.',
|
|
62243
63203
|
463: 'The user is not registered in this application, needs to register',
|
|
62244
63204
|
464: 'Unauthorized. After 3 failed attempts, your account will be locked for 24 hours.',
|
|
63205
|
+
465: 'API key is missing or invalid',
|
|
62245
63206
|
401: 'Error authenticating'
|
|
62246
63207
|
};
|
|
62247
63208
|
function signInStandard(_x) {
|
|
@@ -62297,7 +63258,9 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62297
63258
|
_ref2$redirectUrl = _ref2.redirectUrl,
|
|
62298
63259
|
redirectUrl = _ref2$redirectUrl === void 0 ? '' : _ref2$redirectUrl,
|
|
62299
63260
|
_ref2$debug = _ref2.debug,
|
|
62300
|
-
debug = _ref2$debug === void 0 ? false : _ref2$debug
|
|
63261
|
+
debug = _ref2$debug === void 0 ? false : _ref2$debug,
|
|
63262
|
+
_ref2$apiKey = _ref2.apiKey,
|
|
63263
|
+
apiKey = _ref2$apiKey === void 0 ? '' : _ref2$apiKey;
|
|
62301
63264
|
// Hooks
|
|
62302
63265
|
var authProvider = useAuth();
|
|
62303
63266
|
var location = useLocation();
|
|
@@ -62315,7 +63278,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62315
63278
|
setShowPassword = _React$useState2[1];
|
|
62316
63279
|
|
|
62317
63280
|
// Entity states
|
|
62318
|
-
var _useState3 = React.useState(
|
|
63281
|
+
var _useState3 = React.useState(''),
|
|
62319
63282
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
62320
63283
|
email = _useState4[0],
|
|
62321
63284
|
setEmail = _useState4[1];
|
|
@@ -62354,9 +63317,6 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62354
63317
|
break;
|
|
62355
63318
|
}
|
|
62356
63319
|
};
|
|
62357
|
-
var initializeComponent = function initializeComponent() {
|
|
62358
|
-
setErrors();
|
|
62359
|
-
};
|
|
62360
63320
|
var handleSubmit = /*#__PURE__*/function () {
|
|
62361
63321
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
|
|
62362
63322
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -62399,6 +63359,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62399
63359
|
},
|
|
62400
63360
|
authProvider: authProvider,
|
|
62401
63361
|
redirectUrl: redirectUrl,
|
|
63362
|
+
apiKey: apiKey,
|
|
62402
63363
|
debug: debug
|
|
62403
63364
|
});
|
|
62404
63365
|
case 13:
|
|
@@ -62422,15 +63383,13 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62422
63383
|
return _ref4.apply(this, arguments);
|
|
62423
63384
|
};
|
|
62424
63385
|
}();
|
|
63386
|
+
var initializeComponent = function initializeComponent() {
|
|
63387
|
+
setErrors();
|
|
63388
|
+
};
|
|
62425
63389
|
React.useEffect(function () {
|
|
62426
63390
|
initializeComponent();
|
|
62427
63391
|
}, []);
|
|
62428
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("
|
|
62429
|
-
style: {
|
|
62430
|
-
maxWidth: '600px',
|
|
62431
|
-
margin: '0 auto'
|
|
62432
|
-
}
|
|
62433
|
-
}, /*#__PURE__*/React.createElement("header", {
|
|
63392
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StandarSigninContainer, null, /*#__PURE__*/React.createElement("header", {
|
|
62434
63393
|
style: {
|
|
62435
63394
|
textAlign: 'center'
|
|
62436
63395
|
}
|
|
@@ -62446,25 +63405,25 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62446
63405
|
}
|
|
62447
63406
|
})), /*#__PURE__*/React.createElement(Typography$1, {
|
|
62448
63407
|
variant: "body2",
|
|
62449
|
-
color: "textSecondary",
|
|
62450
63408
|
style: {
|
|
62451
63409
|
marginTop: '16px',
|
|
62452
|
-
marginBottom: '24px'
|
|
63410
|
+
marginBottom: '24px',
|
|
63411
|
+
color: '#98a6ad',
|
|
63412
|
+
fontWeight: 300
|
|
62453
63413
|
}
|
|
62454
63414
|
}, organizationSlogan)), /*#__PURE__*/React.createElement("section", {
|
|
62455
63415
|
style: {
|
|
62456
|
-
border: '1px solid #
|
|
63416
|
+
border: '1px solid #f2f2f2',
|
|
62457
63417
|
borderRadius: '8px',
|
|
62458
|
-
padding: '16px'
|
|
63418
|
+
padding: '16px',
|
|
63419
|
+
boxShadow: '0 .75rem 6rem rgba(56, 65, 74, 0.03)'
|
|
62459
63420
|
}
|
|
62460
63421
|
}, /*#__PURE__*/React.createElement("div", {
|
|
62461
63422
|
style: {
|
|
62462
63423
|
textAlign: 'center',
|
|
62463
63424
|
marginBottom: '32px'
|
|
62464
63425
|
}
|
|
62465
|
-
}, /*#__PURE__*/React.createElement(
|
|
62466
|
-
variant: "h6"
|
|
62467
|
-
}, "Log in using email address")), /*#__PURE__*/React.createElement("form", {
|
|
63426
|
+
}, /*#__PURE__*/React.createElement(KarlaTypography, null, "Log in using email address")), /*#__PURE__*/React.createElement("form", {
|
|
62468
63427
|
onSubmit: handleSubmit,
|
|
62469
63428
|
autoComplete: "off"
|
|
62470
63429
|
}, /*#__PURE__*/React.createElement("section", {
|
|
@@ -62512,50 +63471,59 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62512
63471
|
event.preventDefault();
|
|
62513
63472
|
},
|
|
62514
63473
|
edge: "end"
|
|
62515
|
-
}, showPassword ? /*#__PURE__*/React.createElement(
|
|
62516
|
-
className: "fe-eye-off"
|
|
62517
|
-
}) : /*#__PURE__*/React.createElement("i", {
|
|
62518
|
-
className: "fe-eye"
|
|
62519
|
-
})))
|
|
63474
|
+
}, showPassword ? /*#__PURE__*/React.createElement(VisibilityIcon, null) : /*#__PURE__*/React.createElement(VisibilityOffIcon, null)))
|
|
62520
63475
|
},
|
|
62521
63476
|
InputLabelProps: {
|
|
62522
63477
|
shrink: true
|
|
62523
63478
|
}
|
|
62524
63479
|
})), /*#__PURE__*/React.createElement("section", {
|
|
62525
63480
|
style: {
|
|
62526
|
-
|
|
62527
|
-
|
|
62528
|
-
marginBottom: '16px'
|
|
63481
|
+
marginBottom: '16px',
|
|
63482
|
+
width: '100%'
|
|
62529
63483
|
}
|
|
62530
63484
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
62531
63485
|
to: "recover-password",
|
|
63486
|
+
underline: "hover",
|
|
62532
63487
|
style: {
|
|
62533
63488
|
marginLeft: '8px',
|
|
62534
|
-
color: 'gray'
|
|
63489
|
+
color: 'gray',
|
|
63490
|
+
width: '100%',
|
|
63491
|
+
display: 'flex',
|
|
63492
|
+
justifyContent: 'flex-end',
|
|
63493
|
+
textDecoration: 'none'
|
|
62535
63494
|
}
|
|
62536
|
-
}, /*#__PURE__*/React.createElement(
|
|
62537
|
-
className: "fa fa-lock",
|
|
63495
|
+
}, /*#__PURE__*/React.createElement(LockIcon, {
|
|
62538
63496
|
style: {
|
|
62539
|
-
marginRight: '
|
|
63497
|
+
marginRight: '5px',
|
|
63498
|
+
color: '#98a6ad',
|
|
63499
|
+
fontSize: '18px'
|
|
62540
63500
|
}
|
|
62541
|
-
}),
|
|
63501
|
+
}), /*#__PURE__*/React.createElement(Typography$1, {
|
|
63502
|
+
variant: "body2",
|
|
63503
|
+
style: {
|
|
63504
|
+
color: '#98a6ad',
|
|
63505
|
+
fontWeight: '400'
|
|
63506
|
+
}
|
|
63507
|
+
}, "Forgot password?"))), /*#__PURE__*/React.createElement("footer", {
|
|
62542
63508
|
style: {
|
|
62543
63509
|
marginBottom: '16px',
|
|
62544
63510
|
display: 'flex',
|
|
62545
63511
|
justifyContent: 'center'
|
|
62546
63512
|
}
|
|
62547
63513
|
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
62548
|
-
|
|
63514
|
+
type: "submit",
|
|
63515
|
+
variant: "contained",
|
|
62549
63516
|
disabled: isLoading,
|
|
62550
63517
|
sx: {
|
|
62551
63518
|
display: 'flex',
|
|
62552
63519
|
alignItems: 'center',
|
|
62553
63520
|
border: '2px solid #232931',
|
|
62554
|
-
backgroundColor:
|
|
62555
|
-
color:
|
|
63521
|
+
backgroundColor: '#323a46',
|
|
63522
|
+
color: '#fff',
|
|
62556
63523
|
'&:hover': {
|
|
62557
|
-
backgroundColor:
|
|
62558
|
-
}
|
|
63524
|
+
backgroundColor: '#3d4c61'
|
|
63525
|
+
},
|
|
63526
|
+
width: '100%'
|
|
62559
63527
|
}
|
|
62560
63528
|
}, isLoading && /*#__PURE__*/React.createElement(CircularProgress$1, {
|
|
62561
63529
|
size: 20,
|