UNPKG

53.6 kBJavaScriptView Raw
1import e,{useRef as n,useEffect as t,useMemo as r,useReducer as o,useState as a,useContext as i}from"react";import s from"styled-components";import{debounce as u}from"lodash";import{BehaviorSubject as c}from"rxjs";function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){f(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function h(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function b(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(t.push(i.value),!n||t.length!==n);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return t}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function v(){var e=h(["\n .leo {\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n }\n\n .blue-orbit {\n width: 165px;\n height: 165px;\n border: 1px solid #91daffa5;\n -webkit-animation: spin3D 3s linear 0.2s infinite;\n }\n\n .green-orbit {\n width: 120px;\n height: 120px;\n border: 1px solid #91ffbfa5;\n -webkit-animation: spin3D 2s linear 0s infinite;\n }\n\n .red-orbit {\n width: 90px;\n height: 90px;\n border: 1px solid #ffca91a5;\n -webkit-animation: spin3D 1s linear 0s infinite;\n }\n\n .white-orbit {\n width: 60px;\n height: 60px;\n border: 2px solid #ffffff;\n -webkit-animation: spin3D 10s linear 0s infinite;\n }\n\n .w1 {\n transform: rotate3D(1, 1, 1, 90deg);\n }\n\n .w2 {\n transform: rotate3D(1, 2, 0.5, 90deg);\n }\n\n .w3 {\n transform: rotate3D(0.5, 1, 2, 90deg);\n }\n\n @keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(359deg);\n }\n }\n\n @keyframes spin3D {\n from {\n transform: rotate3d(0.5, 0.5, 0.5, 360deg);\n }\n to {\n transform: rotate3d(0deg);\n }\n }\n"]);return v=function(){return e},e}function g(){var e=h(["\n .solar-system {\n width: 250px;\n height: 250px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .orbit {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid #ffffffa5;\n border-radius: 50%;\n }\n\n .earth-orbit {\n width: 165px;\n height: 165px;\n animation: spin 12s linear 0s infinite;\n }\n\n .venus-orbit {\n width: 120px;\n height: 120px;\n animation: spin 7.4s linear 0s infinite;\n }\n\n .mercury-orbit {\n width: 90px;\n height: 90px;\n animation: spin 3s linear 0s infinite;\n }\n\n .planet {\n position: absolute;\n top: -5px;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: #3ff9dc;\n }\n\n .sun {\n width: 35px;\n height: 35px;\n border-radius: 50%;\n background-color: #ffab91;\n }\n"]);return g=function(){return e},e}function y(){var e=h(["\n .pulse-container {\n width: 120px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .pulse-bubble {\n width: 20px;\n height: 20px;\n border-radius: 50%;\n background-color: #3ff9dc;\n }\n\n .pulse-bubble-1 {\n animation: pulse 0.4s ease 0s infinite alternate;\n }\n .pulse-bubble-2 {\n animation: pulse 0.4s ease 0.2s infinite alternate;\n }\n .pulse-bubble-3 {\n animation: pulse 0.4s ease 0.4s infinite alternate;\n }\n @keyframes pulse {\n from {\n opacity: 1;\n transform: scale(1);\n }\n to {\n opacity: 0.25;\n transform: scale(0.75);\n }\n }\n"]);return y=function(){return e},e}function w(){var e=h(["\n .circle-border {\n width: 150px;\n height: 150px;\n padding: 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n background: rgb(63, 249, 220);\n background: linear-gradient(0deg, rgba(63, 249, 220, 0.1) 33%, rgba(63, 249, 220, 1) 100%);\n animation: spin 0.8s linear 0s infinite;\n }\n\n .circle-core {\n width: 100%;\n height: 100%;\n background-color: #37474f;\n border-radius: 50%;\n }\n\n @keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(359deg);\n }\n }\n"]);return w=function(){return e},e}function x(){var e=h(["\n width: 300px;\n height: 300px;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: transparent;\n"]);return x=function(){return e},e}var E=s.div(x()),S=s(E)(w()),P=s(E)(y()),O=function(){return e.createElement(S,null,e.createElement("div",{className:"circle-border"},e.createElement("div",{className:"circle-core"})))},_=function(){return e.createElement(P,null,e.createElement("div",{className:"pulse-container"},e.createElement("div",{className:"pulse-bubble pulse-bubble-1"}),e.createElement("div",{className:"pulse-bubble pulse-bubble-2"}),e.createElement("div",{className:"pulse-bubble pulse-bubble-3"})))},j=s(E)(g()),k=function(){return e.createElement(j,null,e.createElement("div",{className:"solar-system"},e.createElement("div",{className:"earth-orbit orbit"},e.createElement("div",{className:"planet earth"}),e.createElement("div",{className:"venus-orbit orbit"},e.createElement("div",{className:"planet venus"}),e.createElement("div",{className:"mercury-orbit orbit"},e.createElement("div",{className:"planet mercury"}),e.createElement("div",{className:"sun"}))))))},N=s(E)(v()),I=function(){return e.createElement(N,null,e.createElement("div",{className:"blue-orbit leo"}),e.createElement("div",{className:"green-orbit leo"}),e.createElement("div",{className:"red-orbit leo"}),e.createElement("div",{className:"white-orbit w1 leo"}),e.createElement("div",{className:"white-orbit w2 leo"}),e.createElement("div",{className:"white-orbit w3 leo"}))};function D(){var e=h(["\n position: absolute;\n width: 35px;\n height: 35px;\n left: 50%;\n top: 50%;\n & > div {\n position: absolute;\n width: 2px;\n height: 8px;\n background-color: #25363f;\n opacity: 0.05;\n animation: fadeit 0.8s linear infinite;\n }\n\n ","\n\n @keyframes fadeit {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n }\n"]);return D=function(){return e},e}var z=s.div(D(),(function(e){var n=e.bars;return Array(n).fill(null).map((function(e,t){return"\n & > div:nth-child(".concat(t+1,") {\n transform: rotate(").concat((360/n*t).toFixed(2),"deg) translate(0, -12px);\n animation-delay:").concat((.8/n*(t+1)).toFixed(2),"s;\n }\n ")}))})),C=function(n){var t=n.bars,r=void 0===t?16:t;return e.createElement(z,{bars:r},Array(r).fill(null).map((function(n,t){return e.createElement("div",{key:t})})))};function A(){return(A=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,n){return(R=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function M(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Y(e,n,t){return(Y=M()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&R(o,t.prototype),o}).apply(null,arguments)}function V(e){var n="function"==typeof Map?new Map:void 0;return(V=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return Y(e,arguments,T(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),R(t,e)})(e)}var q={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found.\n"};function H(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,o=n[0],a=[];for(r=1;r<n.length;r+=1)a.push(n[r]);return a.forEach((function(e){o=o.replace(/%[a-z]/,e)})),o}var U=function(e){var n,t;function r(n){var t;if("production"===process.env.NODE_ENV)t=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+n+" for more information.")||this;else{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t=e.call(this,H.apply(void 0,[q[n]].concat(o)))||this}return F(t)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t,r}(V(Error));function $(e){return Math.round(255*e)}function L(e,n,t){return $(e)+","+$(n)+","+$(t)}function X(e,n,t,r){if(void 0===r&&(r=L),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),s=0,u=0,c=0;o>=0&&o<1?(s=a,u=i):o>=1&&o<2?(s=i,u=a):o>=2&&o<3?(u=a,c=i):o>=3&&o<4?(u=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var l=t-a/2;return r(s+l,u+l,c+l)}var G={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var W=/^#[a-fA-F0-9]{6}$/,B=/^#[a-fA-F0-9]{8}$/,K=/^#[a-fA-F0-9]{3}$/,Z=/^#[a-fA-F0-9]{4}$/,J=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Q=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,ee=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ne=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function te(e){if("string"!=typeof e)throw new U(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return G[n]?"#"+G[n]:e}(e);if(n.match(W))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(B)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(K))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(Z)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=J.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Q.exec(n);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=ee.exec(n);if(i){var s="rgb("+X(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",u=J.exec(s);if(!u)throw new U(4,n,s);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var c=ne.exec(n);if(c){var l="rgb("+X(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",f=J.exec(l);if(!f)throw new U(4,n,l);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+c[4])}}throw new U(5)}function re(e){return function(e){var n,t=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(t,r,o),i=Math.min(t,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=a-i,c=s>.5?u/(2-a-i):u/(a+i);switch(a){case t:n=(r-o)/u+(r<o?6:0);break;case r:n=(o-t)/u+2;break;default:n=(t-r)/u+4}return n*=60,void 0!==e.alpha?{hue:n,saturation:c,lightness:s,alpha:e.alpha}:{hue:n,saturation:c,lightness:s}}(te(e))}var oe=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function ae(e){var n=e.toString(16);return 1===n.length?"0"+n:n}function ie(e){return ae(Math.round(255*e))}function se(e,n,t){return oe("#"+ie(e)+ie(n)+ie(t))}function ue(e,n,t){return X(e,n,t,se)}function ce(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return oe("#"+ae(e)+ae(n)+ae(t));if("object"===l(e)&&void 0===n&&void 0===t)return oe("#"+ae(e.red)+ae(e.green)+ae(e.blue));throw new U(6)}function le(e){if("object"!==l(e))throw new U(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return function(e,n,t,r){if("string"==typeof e&&"number"==typeof n){var o=te(e);return"rgba("+o.red+","+o.green+","+o.blue+","+n+")"}if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?ce(e,n,t):"rgba("+e+","+n+","+t+","+r+")";if("object"===l(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?ce(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new U(7)}(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return ce(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,n,t,r){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t&&"number"==typeof r)return r>=1?ue(e,n,t):"rgba("+X(e,n,t)+","+r+")";if("object"===l(e)&&void 0===n&&void 0===t&&void 0===r)return e.alpha>=1?ue(e.hue,e.saturation,e.lightness):"rgba("+X(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new U(2)}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return ue(e,n,t);if("object"===l(e)&&void 0===n&&void 0===t)return ue(e.hue,e.saturation,e.lightness);throw new U(1)}(e);throw new U(8)}function fe(e){return function e(n,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?n.apply(this,o):e(n,t,o)}}(e,e.length,[])}function pe(e,n){if("transparent"===n)return n;var t,r,o,a=re(n);return le(A({},a,{lightness:(t=0,r=1,o=a.lightness-parseFloat(e),Math.max(t,Math.min(r,o)))}))}var de=fe(pe);function he(){var e=h(["\n --size: ",";\n\n .container {\n ",";\n transform-style: preserve-3d;\n perspective: 2000px;\n transform: rotateX(-30deg) rotateY(-45deg);\n\n *,\n *:before,\n *:after {\n box-sizing: border-box;\n }\n }\n\n .holder {\n ",";\n transform-style: preserve-3d;\n transform: translate3d(0em, var(--size), calc(var(--size) * 0.5));\n &:nth-child(3) {\n transform: rotateY(-90deg) rotateX(90deg) translate3d(0, var(--size), calc(var(--size) * 0.5));\n }\n &:first-child {\n transform: rotateZ(-90deg) rotateX(-90deg) translate3d(0, var(--size), calc(var(--size) * 0.5));\n }\n }\n\n ","\n\n .info {\n ",";\n padding-top: 180px;\n\n .title {\n font-size: 20px;\n font-weight: 400;\n text-align: center;\n color: #212121;\n }\n\n .detail {\n font-size: 14px;\n font-weight: 200;\n text-align: center;\n }\n }\n\n .box {\n ",";\n transform-style: preserve-3d;\n animation: ani-box 6s infinite;\n width: var(--size);\n height: var(--size);\n //opacity: .9;\n &:before,\n &:after {\n position: absolute;\n width: 100%;\n height: 100%;\n content: '';\n }\n &:before {\n left: 100%;\n bottom: 0;\n transform: rotateY(90deg);\n transform-origin: 0 50%;\n }\n &:after {\n left: 0;\n bottom: 100%;\n transform: rotateX(90deg);\n transform-origin: 0 100%;\n }\n }\n\n @keyframes ani-box {\n 8.33% {\n transform: translate3d(-50%, -50%, 0) scaleZ(2);\n }\n 16.7% {\n transform: translate3d(-50%, -50%, calc(-1 * var(--size))) scaleZ(1);\n }\n 25% {\n transform: translate3d(-50%, -100%, calc(-1 * var(--size))) scaleY(2);\n }\n 33.3% {\n transform: translate3d(-50%, -150%, calc(-1 * var(--size))) scaleY(1);\n }\n 41.7% {\n transform: translate3d(-100%, -150%, calc(-1 * var(--size))) scaleX(2);\n }\n 50% {\n transform: translate3d(-150%, -150%, calc(-1 * var(--size))) scaleX(1);\n }\n 58.3% {\n transform: translate3d(-150%, -150%, 0) scaleZ(2);\n }\n 66.7% {\n transform: translate3d(-150%, -150%, 0) scaleZ(1);\n }\n 75% {\n transform: translate3d(-150%, -100%, 0) scaleY(2);\n }\n 83.3% {\n transform: translate3d(-150%, -50%, 0) scaleY(1);\n }\n 91.7% {\n transform: translate3d(-100%, -50%, 0) scaleX(2);\n }\n 100% {\n transform: translate3d(-50%, -50%, 0) scaleX(1);\n }\n }\n"]);return he=function(){return e},e}var be=function(e){return"\nposition: absolute;\ntop: 50%;\nleft: 50%;\ntransform: translate(-50%, -50%);\n"},me=s.div(he(),(function(e){return e.size||"3em"}),be,be,(function(e){return(e.colors||["#1FBCD3","#CBE2B4","#F6B6CA"]).map((function(e,n){return"\n .holder:nth-child(".concat(n+1,"){\n .box{\n background-color: ").concat(e,";\n &:before{\n background-color: ").concat(de(.2,e),";\n }\n &:after{\n background-color: ").concat(de(.1,e),";\n }\n }\n }\n }\n")}))}),be,be),ve=function(n){var t=n.title,r=n.detail;return e.createElement(me,null,e.createElement("div",{className:"container"},e.createElement("div",{className:"holder"},e.createElement("div",{className:"box"})),e.createElement("div",{className:"holder"},e.createElement("div",{className:"box"})),e.createElement("div",{className:"holder"},e.createElement("div",{className:"box"}))),e.createElement("div",{className:"info"},e.createElement("div",{className:"title"},t),e.createElement("div",{className:"detail"},r)))};function ge(){var e=h(["\n width: 200px;\n height: 200px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n margin: auto;\n filter: url('#gooey-loader-filter');\n animation: rotate-move 2s ease-in-out infinite;\n\n .dot {\n width: 70px;\n height: 70px;\n border-radius: 50%;\n background-color: #000;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n margin: auto;\n }\n\n .dot-3 {\n background-color: #f74d75;\n animation: dot-3-move 2s ease infinite, index 6s ease infinite;\n }\n\n .dot-2 {\n background-color: #10beae;\n animation: dot-2-move 2s ease infinite, index 6s -4s ease infinite;\n }\n\n .dot-1 {\n background-color: #ffe386;\n animation: dot-1-move 2s ease infinite, index 6s -2s ease infinite;\n }\n\n @keyframes dot-3-move {\n 20% {\n transform: scale(1);\n }\n 45% {\n transform: translateY(-18px) scale(0.45);\n }\n 60% {\n transform: translateY(-90px) scale(0.45);\n }\n 80% {\n transform: translateY(-90px) scale(0.45);\n }\n 100% {\n transform: translateY(0px) scale(1);\n }\n }\n\n @keyframes dot-2-move {\n 20% {\n transform: scale(1);\n }\n 45% {\n transform: translate(-16px, 12px) scale(0.45);\n }\n 60% {\n transform: translate(-80px, 60px) scale(0.45);\n }\n 80% {\n transform: translate(-80px, 60px) scale(0.45);\n }\n 100% {\n transform: translateY(0px) scale(1);\n }\n }\n\n @keyframes dot-1-move {\n 20% {\n transform: scale(1);\n }\n 45% {\n transform: translate(16px, 12px) scale(0.45);\n }\n 60% {\n transform: translate(80px, 60px) scale(0.45);\n }\n 80% {\n transform: translate(80px, 60px) scale(0.45);\n }\n 100% {\n transform: translateY(0px) scale(1);\n }\n }\n\n @keyframes rotate-move {\n 55% {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 80% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n 100% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n }\n\n @keyframes index {\n 0%,\n 100% {\n z-index: 3;\n }\n 33.3% {\n z-index: 2;\n }\n 66.6% {\n z-index: 1;\n }\n }\n"]);return ge=function(){return e},e}var ye=s.div(ge());var we=function(){return function(){if("undefined"!=typeof window&&!document.querySelector("#GooeyLoaderSvgFilter")){var e=document.createElement("div");e.id="GooeyLoaderSvgFilter",e.innerHTML='\n<svg xmlns="http://www.w3.org/2000/svg" version="1.1">\n <defs>\n <filter id="gooey-loader-filter">\n <feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" />\n <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -7"/>\n </filter>\n </defs>\n</svg>\n',document.body.appendChild(e)}}(),e.createElement(ye,null,e.createElement("div",{className:"dot dot-1"}),e.createElement("div",{className:"dot dot-2"}),e.createElement("div",{className:"dot dot-3"}))};function xe(e,r){var o=n();t((function(){return e({setCloser:function(e){return o.current=e}}).then((function(e){return"function"==typeof e?o.current=e:null})).catch((function(e){console.trace("useAsyncEffect error",r,e)})),function(){var e;return null===(e=o.current)||void 0===e?void 0:e.call(o)}}),r)}function Ee(n){var t=e.useRef();return t.current||(t.current={v:n()}),t.current.v}function Se(e,n,o){var a=r((function(){return u((function(){null==e||e()}),o)}),[e,o]);t((function(){return a(),function(){return a.cancel()}}),n)}function Pe(){return b(o((function(e){return e+1}),0),2)[1]}function Oe(e,r){var o=n();t((function(){return o.current=setInterval(e,r),function(){return clearInterval(o.current)}}),[r])}function _e(){var e=b(a(!1),2),n=e[0],r=e[1];return t((function(){return r(!0)}),[]),n}function je(){var e,n,r=b(a(null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.onLine),2),o=r[0],i=r[1];return t((function(){var e=function(e){return i("online"===e.type)};return window.addEventListener("online",e),window.addEventListener("offline",e),function(){window.removeEventListener("online",e),window.removeEventListener("offline",e)}}),[]),o}var ke=e.createContext(new c(null));function Ne(n){var r=n.children,o=n.initialTheme,a=Ee((function(){return new c("function"==typeof o?o():o)}));return t((function(){return function(){return a.complete()}}),[]),e.createElement(ke.Provider,{value:a},r)}function Ie(){var e=i(ke),n=b(a(e.value),2),r=n[0],o=n[1];return t((function(){var n=e.subscribe(o);return n.unsubscribe.bind(n)}),[e]),[r,function(n){return e.next(n)}]}function De(n){e.useEffect(n,[])}function ze(e){return e&&e.then&&e.catch}function Ce(n){var t=b(e.useState((function(){return ze(n)?{loading:!0}:{loading:!1,data:n}})),2),r=t[0],o=t[1];return e.useEffect((function(){ze(n)?(o((function(e){return d(d({},e),{},{loading:!0,error:void 0})})),n.then((function(e){return o({loading:!1,data:e})})).catch((function(e){return o({loading:!1,error:e})}))):o((function(e){return e.data===n?e:{loading:!1,data:n}}))}),[n]),r}function Ae(n,t){var r=b(e.useState((function(){try{return n()}catch(e){return Promise.reject(e)}})),2),o=r[0],a=r[1],i=e.useRef(!0);return e.useEffect((function(){if(i.current)i.current=!1;else try{a(n())}catch(e){a(Promise.reject(e))}}),t),Ce(o)}
2/*! *****************************************************************************
3Copyright (c) Microsoft Corporation.
4
5Permission to use, copy, modify, and/or distribute this software for any
6purpose with or without fee is hereby granted.
7
8THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14PERFORMANCE OF THIS SOFTWARE.
15***************************************************************************** */var Fe=function(e,n){return(Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function Te(e,n){function t(){this.constructor=e}Fe(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function Re(e){return"function"==typeof e}var Me=!1,Ye={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;Me=e},get useDeprecatedSynchronousErrorHandling(){return Me}};function Ve(e){setTimeout((function(){throw e}),0)}var qe={closed:!0,next:function(e){},error:function(e){if(Ye.useDeprecatedSynchronousErrorHandling)throw e;Ve(e)},complete:function(){}},He=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Ue(e){return null!==e&&"object"===l(e)}var $e=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,n){return n+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),Le=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t=this._parentOrParents,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof e)t.remove(this);else if(null!==t)for(var a=0;a<t.length;++a){t[a].remove(this)}if(Re(r))try{r.call(this)}catch(e){n=e instanceof $e?Xe(e.errors):[e]}if(He(o)){a=-1;for(var i=o.length;++a<i;){var s=o[a];if(Ue(s))try{s.unsubscribe()}catch(e){n=n||[],e instanceof $e?n=n.concat(Xe(e.errors)):n.push(e)}}}if(n)throw new $e(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(l(n)){case"function":t=new e(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;(t=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var o=t._parentOrParents;if(null===o)t._parentOrParents=this;else if(o instanceof e){if(o===this)return t;t._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return t;o.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[t]:a.push(t),t},e.prototype.remove=function(e){var n=this._subscriptions;if(n){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function Xe(e){return e.reduce((function(e,n){return e.concat(n instanceof $e?n.errors:n)}),[])}var Ge=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),We=function(e){function n(t,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=qe;break;case 1:if(!t){a.destination=qe;break}if("object"===l(t)){t instanceof n?(a.syncErrorThrowable=t.syncErrorThrowable,a.destination=t,t.add(a)):(a.syncErrorThrowable=!0,a.destination=new Be(a,t));break}default:a.syncErrorThrowable=!0,a.destination=new Be(a,t,r,o)}return a}return Te(n,e),n.prototype[Ge]=function(){return this},n.create=function(e,t,r){var o=new n(e,t,r);return o.syncErrorThrowable=!1,o},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(Le),Be=function(e){function n(n,t,r,o){var a,i=e.call(this)||this;i._parentSubscriber=n;var s=i;return Re(t)?a=t:t&&(a=t.next,r=t.error,o=t.complete,t!==qe&&(Re((s=Object.create(t)).unsubscribe)&&i.add(s.unsubscribe.bind(s)),s.unsubscribe=i.unsubscribe.bind(i))),i._context=s,i._next=a,i._error=r,i._complete=o,i}return Te(n,e),n.prototype.next=function(e){if(!this.isStopped&&this._next){var n=this._parentSubscriber;Ye.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},n.prototype.error=function(e){if(!this.isStopped){var n=this._parentSubscriber,t=Ye.useDeprecatedSynchronousErrorHandling;if(this._error)t&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)t?(n.syncErrorValue=e,n.syncErrorThrown=!0):Ve(e),this.unsubscribe();else{if(this.unsubscribe(),t)throw e;Ve(e)}}},n.prototype.complete=function(){var e=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};Ye.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(e,n){try{e.call(this._context,n)}catch(e){if(this.unsubscribe(),Ye.useDeprecatedSynchronousErrorHandling)throw e;Ve(e)}},n.prototype.__tryOrSetError=function(e,n,t){if(!Ye.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,t)}catch(n){return Ye.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):(Ve(n),!0)}return!1},n.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},n}(We);function Ke(e){return function(n){return n.lift(new Ze(e))}}var Ze=function(){function e(e){this.total=e}return e.prototype.call=function(e,n){return n.subscribe(new Je(e,this.total))},e}(),Je=function(e){function n(n,t){var r=e.call(this,n)||this;return r.total=t,r.count=0,r}return Te(n,e),n.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},n}(We);function Qe(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if("production"!==process.env.NODE_ENV){var o=Mn[e],a=o?"function"==typeof o?o.apply(null,t):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(t.length?" "+t.join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function en(e){return!!e&&!!e[Rn]}function nn(e){return!!e&&(function(e){if(!e||"object"!=l(e))return!1;var n=Object.getPrototypeOf(e);return!n||n===Object.prototype}(e)||Array.isArray(e)||!!e[Tn]||!!e.constructor[Tn]||sn(e)||un(e))}function tn(e,n,t){void 0===t&&(t=!1),0===rn(e)?(t?Object.keys:Yn)(e).forEach((function(t){return n(t,e[t],e)})):e.forEach((function(t,r){return n(r,t,e)}))}function rn(e){var n=e[Rn];return n?n.i>3?n.i-4:n.i:Array.isArray(e)?1:sn(e)?2:un(e)?3:0}function on(e,n){return 2===rn(e)?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function an(e,n){return e===n?0!==e||1/e==1/n:e!=e&&n!=n}function sn(e){return zn&&e instanceof Map}function un(e){return Cn&&e instanceof Set}function cn(e){return e.o||e.t}function ln(e,n){if(void 0===n&&(n=!1),Array.isArray(e))return e.slice();var t=Object.create(Object.getPrototypeOf(e));return tn(e,(function(r){if(r!==Rn){var o=Object.getOwnPropertyDescriptor(e,r),a=o.value;o.get&&(n||Qe(1),a=o.get.call(e)),o.enumerable?t[r]=a:Object.defineProperty(t,r,{value:a,writable:!0,configurable:!0})}})),t}function fn(e,n){en(e)||dn(e)||!nn(e)||(rn(e)>1&&(e.set=e.add=e.clear=e.delete=pn),Object.freeze(e),n&&tn(e,(function(e,n){return fn(n,!0)}),!0))}function pn(){Qe(2)}function dn(e){return null==e||"object"!=l(e)||Object.isFrozen(e)}function hn(e){var n=Vn[e];return n||Qe("production"!==process.env.NODE_ENV?18:19,e),n}function bn(){return"production"===process.env.NODE_ENV||In||Qe(0),In}function mn(e,n){n&&(hn("Patches"),e.u=[],e.s=[],e.v=n)}function vn(e){gn(e),e.p.forEach(wn),e.p=null}function gn(e){e===In&&(In=e.l)}function yn(e){return In={p:[],l:In,h:e,m:!0,_:0}}function wn(e){var n=e[Rn];0===n.i||1===n.i?n.j():n.O=!0}function xn(e,n){n._=n.p.length;var t=n.p[0],r=void 0!==e&&e!==t;return n.h.g||hn("ES5").S(n,e,r),r?(t[Rn].P&&(vn(n),Qe(4)),nn(e)&&(e=En(n,e),n.l||Pn(n,e)),n.u&&hn("Patches").M(t[Rn],e,n.u,n.s)):e=En(n,t,[]),vn(n),n.u&&n.v(n.u,n.s),e!==Fn?e:void 0}function En(e,n,t){if(dn(n))return n;var r=n[Rn];if(!r)return tn(n,(function(o,a){return Sn(e,r,n,o,a,t)}),!0),n;if(r.A!==e)return n;if(!r.P)return Pn(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=ln(r.k,!0):r.o;tn(o,(function(n,a){return Sn(e,r,o,n,a,t)})),Pn(e,o,!1),t&&e.u&&hn("Patches").R(r,t,e.u,e.s)}return r.o}function Sn(e,n,t,r,o,a){if("production"!==process.env.NODE_ENV&&o===t&&Qe(5),en(o)){var i=En(e,o,a&&n&&3!==n.i&&!on(n.D,r)?a.concat(r):void 0);if(u=r,c=i,2===(l=rn(s=t))?s.set(u,c):3===l?(s.delete(u),s.add(c)):s[u]=c,!en(i))return;e.m=!1}var s,u,c,l;if((!n||!an(o,function(e,n){return 2===rn(e)?e.get(n):e[n]}(n.t,r)))&&nn(o)){if(!e.h.N&&e._<1)return;En(e,o),n&&n.A.l||Pn(e,o)}}function Pn(e,n,t){void 0===t&&(t=!1),e.h.N&&e.m&&fn(n,t)}function On(e,n){var t=e[Rn],r=Reflect.getOwnPropertyDescriptor(t?cn(t):e,n);return r&&r.value}function _n(e){if(!e.P){if(e.P=!0,0===e.i||1===e.i){var n=e.o=ln(e.t);tn(e.p,(function(e,t){n[e]=t})),e.p=void 0}e.l&&_n(e.l)}}function jn(e){e.o||(e.o=ln(e.t))}function kn(e,n,t){var r=sn(n)?hn("MapSet").T(n,t):un(n)?hn("MapSet").F(n,t):e.g?function(e,n){var t=Array.isArray(e),r={i:t?1:0,A:n?n.A:bn(),P:!1,I:!1,D:{},l:n,t:e,k:null,p:{},o:null,j:null,C:!1},o=r,a=qn;t&&(o=[r],a=Hn);var i=Proxy.revocable(o,a),s=i.revoke,u=i.proxy;return r.k=u,r.j=s,u}(n,t):hn("ES5").J(n,t);return(t?t.A:bn()).p.push(r),r}var Nn,In,Dn="undefined"!=typeof Symbol&&"symbol"==l(Symbol("x")),zn="undefined"!=typeof Map,Cn="undefined"!=typeof Set,An="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Fn=Dn?Symbol("immer-nothing"):((Nn={})["immer-nothing"]=!0,Nn),Tn=Dn?Symbol("immer-draftable"):"__$immer_draftable",Rn=Dn?Symbol("immer-state"):"__$immer_state",Mn={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},19:function(e){return"plugin not loaded: "+e},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available"},Yn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Vn={},qn={get:function(e,n){if(n===Rn)return e;var t=e.p;if(!e.P&&on(t,n))return t[n];var r=cn(e)[n];if(e.I||!nn(r))return r;if(e.P){if(r!==On(e.t,n))return r;t=e.o}return t[n]=kn(e.A.h,r,e)},has:function(e,n){return n in cn(e)},ownKeys:function(e){return Reflect.ownKeys(cn(e))},set:function(e,n,t){if(!e.P){var r=On(e.t,n);if(t?an(r,t)||t===e.p[n]:an(r,t)&&n in e.t)return!0;jn(e),_n(e)}return e.D[n]=!0,e.o[n]=t,!0},deleteProperty:function(e,n){return void 0!==On(e.t,n)||n in e.t?(e.D[n]=!1,jn(e),_n(e)):e.D[n]&&delete e.D[n],e.o&&delete e.o[n],!0},getOwnPropertyDescriptor:function(e,n){var t=cn(e),r=Reflect.getOwnPropertyDescriptor(t,n);return r&&(r.writable=!0,r.configurable=1!==e.i||"length"!==n),r},defineProperty:function(){Qe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Qe(12)}},Hn={};tn(qn,(function(e,n){Hn[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}})),Hn.deleteProperty=function(e,n){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(n))&&Qe(13),qn.deleteProperty.call(this,e[0],n)},Hn.set=function(e,n,t){return"production"!==process.env.NODE_ENV&&"length"!==n&&isNaN(parseInt(n))&&Qe(14),qn.set.call(this,e[0],n,t,e[0])};var Un=new(function(){function e(e){this.g=An,this.N="production"!==process.env.NODE_ENV,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var n=e.prototype;return n.produce=function(e,n,t){if("function"==typeof e&&"function"!=typeof n){var r=n;n=e;var o=this;return function(e){var t=this;void 0===e&&(e=r);for(var a=arguments.length,i=Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return o.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(i))}))}}var a;if("function"!=typeof n&&Qe(6),void 0!==t&&"function"!=typeof t&&Qe(7),nn(e)){var i=yn(this),s=kn(this,e,void 0),u=!0;try{a=n(s),u=!1}finally{u?vn(i):gn(i)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return mn(i,t),xn(e,i)}),(function(e){throw vn(i),e})):(mn(i,t),xn(a,i))}if((a=n(e))!==Fn)return void 0===a&&(a=e),this.N&&fn(a,!0),a},n.produceWithPatches=function(e,n){var t,r,o=this;return"function"==typeof e?function(n){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return o.produceWithPatches(n,(function(n){return e.apply(void 0,[n].concat(r))}))}:[this.produce(e,n,(function(e,n){t=e,r=n})),t,r]},n.createDraft=function(e){nn(e)||Qe(8);var n=yn(this),t=kn(this,e,void 0);return t[Rn].C=!0,gn(n),t},n.finishDraft=function(e,n){var t=e&&e[Rn];"production"!==process.env.NODE_ENV&&(t&&t.C||Qe(9),t.I&&Qe(10));var r=t.A;return mn(r,n),xn(void 0,r)},n.setAutoFreeze=function(e){this.N=e},n.setUseProxies=function(e){An||Qe(20),this.g=e},n.applyPatches=function(e,n){var t;for(t=n.length-1;t>=0;t--){var r=n[t];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=hn("Patches").U;return en(e)?o(e,n):this.produce(e,(function(e){return o(e,n.slice(t+1))}))},e}()),$n=Un.produce,Ln=(Un.produceWithPatches.bind(Un),Un.setAutoFreeze.bind(Un),Un.setUseProxies.bind(Un),Un.applyPatches.bind(Un),Un.createDraft.bind(Un),Un.finishDraft.bind(Un),Symbol());function Xn(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isEqual:function(e,n){return e===n}},o=r.isEqual,a=e.createContext(Ln);function i(t){var r=Ee((function(){var e=t.initialState;return new c("function"==typeof e?e():e)})),o=Ee((function(){var e=!1,t=function n(t){if(e)setTimeout((function(){return n(t)}),0);else{e=!0;try{!function(e){var n;n="function"==typeof e?e(r.getValue()):e,r.next(n)}(t)}finally{e=!1}}};return n({getState:function(){return r.getValue()},setState:t,updateState:function(e){t($n((function(n){e(n)})))},subscribe:function(e){var n=r.subscribe(e);return n.unsubscribe.bind(n)}})}));return e.createElement(a.Provider,{value:{container:o,subject:r}},t.children)}function s(){var n=e.useContext(a);if(n===Ln)throw new Error("Component must be wrapped with <SubscriptionContainer.Provider>");return n.container}function u(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=e.useContext(a);if(i===Ln)throw new Error("Component must be wrapped with <SubscriptionContainer.Provider>");var s=i.subject,u=e.useState((function(){return n(s.getValue())})),c=b(u,2),l=c[0],f=c[1];return t((function(){var e=s.pipe(Ke(1)).subscribe((function(e){f((function(t){var o=n(e);return r(t,o)?t:o}))}));return function(){return e.unsubscribe()}}),[]),l}function l(){return u((function(e){return e}))}function f(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=e.useContext(a);if(s===Ln)throw new Error("Component must be wrapped with <SubscriptionContainer.Provider>");var u=s.subject,c=e.useRef();t((function(){c.current=n(u.getValue());var e=u.subscribe((function(e){var t=c.current,o=n(e);i(t,o)||(r(o),c.current=o)}));return function(){return e.unsubscribe()}}),[])}return{Provider:i,useContainer:s,useSelector:u,useState:l,useWhenValueChange:f}}var Gn=Symbol();function Wn(n){var t=e.createContext(Gn);return{Provider:function(r){var o=n(r.initialState);return e.createElement(t.Provider,{value:o},r.children)},useContainer:function(){var n=e.useContext(t);if(n===Gn)throw new Error("Component must be wrapped with <Container.Provider>");return n}}}function Bn(e){return e.useContainer()}function Kn(n,t){return function(r){return e.createElement(n,Object.assign({},r,t))}}export{C as BarsSpinner,ve as BoxShuffle,we as GooeyLoader,O as GradientSpinner,Ne as NamedThemeProvider,N as PlanetRotatingBox,I as PlantRotating,_ as PulseBubble,k as SolarSystemSpinner,Wn as createContainer,Xn as createSubscriptionContainer,xe as useAsyncEffect,Ee as useConstant,Bn as useContainer,Se as useDebounceEffect,De as useEffectOnce,Ae as useFetchEffect,Pe as useForceRender,Oe as useInterval,_e as useMounted,Ie as useNamedTheme,je as useOnlineEffect,Ce as usePromiseEffect,Kn as withProps};
16//# sourceMappingURL=wener-ui.esm.min.js.map