earthnut 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/BackgroundRipple/index.cjs +0 -1
- package/BackgroundRipple/index.mjs +0 -1
- package/Layout/index.cjs +0 -1
- package/Layout/index.mjs +0 -1
- package/README.md +0 -28
- package/components/button/button.d.ts +0 -5
- package/components/button/index.d.ts +0 -3
- package/components/index.d.ts +0 -3
- package/components/layout/EnLayoutContent.d.ts +0 -3
- package/components/layout/content.d.ts +0 -11
- package/components/layout/footer.d.ts +0 -16
- package/components/layout/generate-class.d.ts +0 -2
- package/components/layout/get-value.d.ts +0 -4
- package/components/layout/header.d.ts +0 -18
- package/components/layout/index.d.ts +0 -2
- package/components/layout/layout.d.ts +0 -50
- package/components/layout/sideBar.d.ts +0 -24
- package/components/layout/types.d.ts +0 -101
- package/components/menu/index.d.ts +0 -0
- package/components/menu/menu.d.ts +0 -0
- package/components/ripples/RipplesEle.d.ts +0 -35
- package/components/ripples/index.d.ts +0 -4
- package/components/ripples/types.d.ts +0 -11
- package/components/ripples/useOptionUpdate.d.ts +0 -5
- package/customHooks/index.d.ts +0 -5
- package/customHooks/useAnimationFrame.d.ts +0 -42
- package/customHooks/useInputIsComposing.d.ts +0 -46
- package/customHooks/useRipples/buildBackground/create-background-color.d.ts +0 -3
- package/customHooks/useRipples/buildBackground/create-linear-gradient.d.ts +0 -3
- package/customHooks/useRipples/buildBackground/default-background/_createImageData.d.ts +0 -7
- package/customHooks/useRipples/buildBackground/default-background/circleDataList.d.ts +0 -18
- package/customHooks/useRipples/buildBackground/default-background/createCanvasElementBySize.d.ts +0 -2
- package/customHooks/useRipples/buildBackground/default-background/createDefault.d.ts +0 -2
- package/customHooks/useRipples/buildBackground/default-background/index.d.ts +0 -10
- package/customHooks/useRipples/buildBackground/load-image.d.ts +0 -13
- package/customHooks/useRipples/buildBackground/run-side.d.ts +0 -9
- package/customHooks/useRipples/buildBackground/type.d.ts +0 -31
- package/customHooks/useRipples/buildBackground/utils/bind-image.d.ts +0 -4
- package/customHooks/useRipples/buildBackground/utils/create-canvas-element.d.ts +0 -3
- package/customHooks/useRipples/buildBackground/utils/create-image-by-src.d.ts +0 -2
- package/customHooks/useRipples/buildBackground/utils/get-background-style.d.ts +0 -3
- package/customHooks/useRipples/buildBackground/utils/hide-css-background.d.ts +0 -10
- package/customHooks/useRipples/buildBackground/utils/restore-css-background.d.ts +0 -7
- package/customHooks/useRipples/callback/destroy.d.ts +0 -3
- package/customHooks/useRipples/callback/drop.d.ts +0 -3
- package/customHooks/useRipples/callback/fade.d.ts +0 -3
- package/customHooks/useRipples/callback/reload-background.d.ts +0 -6
- package/customHooks/useRipples/callback/scale.d.ts +0 -2
- package/customHooks/useRipples/index.d.ts +0 -40
- package/customHooks/useRipples/init/index.d.ts +0 -5
- package/customHooks/useRipples/init/initEvent.d.ts +0 -5
- package/customHooks/useRipples/init/initShaders.d.ts +0 -7
- package/customHooks/useRipples/init/initTexture.d.ts +0 -7
- package/customHooks/useRipples/render/computeTextureBoundaries.d.ts +0 -3
- package/customHooks/useRipples/render/draw.d.ts +0 -7
- package/customHooks/useRipples/render/drawQuad.d.ts +0 -7
- package/customHooks/useRipples/render/dropAtPointer.d.ts +0 -7
- package/customHooks/useRipples/render/index.d.ts +0 -6
- package/customHooks/useRipples/render/swapBufferIndices.d.ts +0 -5
- package/customHooks/useRipples/render/update.d.ts +0 -5
- package/customHooks/useRipples/rippersData/defaultData.d.ts +0 -5
- package/customHooks/useRipples/rippersData/fadeData.d.ts +0 -43
- package/customHooks/useRipples/rippersData/index.d.ts +0 -40
- package/customHooks/useRipples/rippersData/loadConfig.d.ts +0 -19
- package/customHooks/useRipples/rippersData/renderData.d.ts +0 -74
- package/customHooks/useRipples/rippersData/useOptions.d.ts +0 -81
- package/customHooks/useRipples/rippersData/vertexSource.d.ts +0 -28
- package/customHooks/useRipples/ripple.html.d.ts +0 -6
- package/customHooks/useRipples/ripplesClass.d.ts +0 -51
- package/customHooks/useRipples/tools.d.ts +0 -31
- package/customHooks/useRipples/types.d.ts +0 -192
- package/customHooks/useTimeId.d.ts +0 -46
- package/dog.d.ts +0 -2
- package/index.cjs +0 -1
- package/index.d.ts +0 -5
- package/index.js.LICENSE.txt +0 -79
- package/index.mjs +0 -1
- package/styles/common.scss +0 -444
- package/useAnimationFrame/index.cjs +0 -1
- package/useAnimationFrame/index.mjs +0 -1
- package/useInputIsComposing/index.cjs +0 -1
- package/useInputIsComposing/index.mjs +0 -1
- package/useRipples/index.cjs +0 -1
- package/useRipples/index.mjs +0 -1
- package/useTimeId/index.cjs +0 -1
- package/useTimeId/index.mjs +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";(()=>{var e={570:e=>{"use strict";e.exports=require("a-type-of-js")},575:(e,t,r)=>{"use strict";r.d(t,{useRipples:()=>Ve});var n=r(953);const i=require("a-element-inline-style");var o=r(570);function a(e,t,r,n){function i(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error("compile error: "+r.getShaderInfoLog(n));return n}var a,s={id:r.createProgram(),uniforms:{},locations:{}};if(r.attachShader(s.id,i(r.VERTEX_SHADER,e)),r.attachShader(s.id,i(r.FRAGMENT_SHADER,t)),r.linkProgram(s.id),!r.getProgramParameter(s.id,r.LINK_STATUS))throw new Error("link error: "+r.getProgramInfoLog(s.id));r.useProgram(s.id),r.enableVertexAttribArray(0);for(var u=e+t,c=/uniform (\w+) (\w+)/g;!(0,o.isNull)(a=c.exec(u));){var l=a[2];s.locations[l]=r.getUniformLocation(s.id,l)}return s}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.gl;r.activeTexture(r.TEXTURE0+(t||0)),r.bindTexture(r.TEXTURE_2D,e)}function u(e){return"rgba(0, 0, 0, 0)"===e||"#ffffffff"===e||"transport"===e}function c(e){return"none"===e||""===e}function l(){var e=this,t=function(){return e.initState=!1,null};if(!this.gl)return t();var r=this.gl,n=Object.fromEntries(["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear"].reduce((function(e,t){var n=r.getExtension(t);return n&&e.push([t,n]),e}),[]));if(!n.OES_texture_float)return t();var i=[];function o(e,t,r){var i="OES_texture_"+e,o=i+"_linear",a=o in n;return{type:t,linearSupport:a,arrayType:r,extensions:a?[i,o]:[i]}}i.push(o("float",r.FLOAT,Float32Array)),n.OES_texture_half_float&&i.push(o("half_float",n.OES_texture_half_float.HALF_FLOAT_OES,null));var a=r.createTexture(),s=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,s),r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);for(var u=null,c=0;c<i.length;c++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[c].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[c];break}return u}function f(e){"@babel/helpers - typeof";return f="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},f(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function h(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:t+""}var m=h((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"canvas",void 0),d(this,"gl",void 0),d(this,"config",void 0),d(this,"initState",!0),this.canvas=t;var r=t.getContext("webgl");if((0,o.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(l,this,[])})),v=r(705),y={imgUrl:"",resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0};function b(e){"@babel/helpers - typeof";return b="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},b(e)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S(n.key),n)}}function S(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}Object.freeze(y);var E;new(function(){return function(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t}),[{key:"clear",value:function(){}}])}())({name:"earthnut",type:!1});function R(e){"@babel/helpers - typeof";return R="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},R(e)}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function T(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}function x(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function O(e,t,r){return e.set(k(e,t),r),r}function I(e,t){return e.get(k(e,t))}function k(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function A(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t={list:[],diameter:48,radius:0,cells:0};t.diameter%2!=0&&t.diameter++;var r=t.diameter,n=t.list,i=r/2;t.radius=i,t.cells=Math.pow(r,2);for(var o=0;o<r;o++){n[o]=[];for(var a=0;a<r;a++)n[o][a]=[0,0,0,0]}for(var s=0;s<=i;s++)for(var u=s;u<=i;u++){var c=n[s][u],l=function(){return(0,v.getRandomInt)(255,190)};c[0]=l(),c[1]=l(),c[2]=l(),c[3]=Math.ceil(Math.sqrt(Math.pow(s,2)+Math.pow(u,2)))<=i?(0,v.getRandomInt)(120,180):(0,v.getRandomInt)(160,240)}for(var f=0;f<=i;f++)for(var p=0;p<=f;p++)n[f][p]=n[p][f];for(var h=i;h<r;h++)for(var d=0;d<=i;d++)n[h][d]=n[r-h][d];for(var g=0;g<i;g++)for(var m=i;m<r;m++)n[g][m]=n[g][r-m];for(var y=i;y<r;y++)for(var b=i;b<r;b++)n[y][b]=n[y][r-b];var w=e%r;return t.list=[].concat(A(n.slice(w)),A(n.slice(0,w))),t},j=new(E=new WeakMap,function(){return function(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),x(this,E,1),function(e,t,r){(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"data",D())}),[{key:"build",value:function(){I(E,this)>100&&O(E,this,0),this.data=D(O(E,this,I(E,this)+3))}}])}());function C(e,t){var r=document.createElement("canvas"),n=document.createElement("canvas"),i=r.getContext("2d"),a=n.getContext("2d");return(0,o.isNull)(i)||(0,o.isNull)(a)?r:(r.width=n.width=e||1,r.height=n.height=t||1,i.clearRect(0,0,e,t),a.clearRect(0,0,e,t),i.globalAlpha=1,i.putImageData(function(e,t){Date.now();for(var r=new ImageData(e||1,t||1),n=r.data,i=j.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var c=u/4%s,l=c%e%o,f=Math.floor(c/e),p=a[l][f];n[u]=p[0],n[u+1]=p[1],n[u+2]=p[2],n[u+3]=p[3]}return r}(e,t),0,0),a.fillStyle="#ffffff",a.fillRect(0,0,e,t),a.drawImage(r,0,0,e||1,t||1),a.globalCompositeOperation="source-over",n)}function F(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.fadeData,r=t.backgroundInfo,n=t.toBeList,i=r.width,o=r.height,a=(0,v.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});j.build(),n.push({resource:C(i,o),width:i,height:o,kind:"default",tag:a}),e&&t.run()}function N(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,o.isNull)(e))return Reflect.apply(F,this,[]);var n=e.originStyle;if(u(n.backgroundColor)&&(!(0,o.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(F,this,[]);var i=document.createElement("canvas"),a=i.getContext("2d");if((0,o.isNull)(a))return Reflect.apply(F,this,[]);var s=t.backgroundInfo,c=s.width,l=s.height;i.width=c,i.height=l,a.clearRect(0,0,c,l);var f=(0,o.isArray)(r.imgUrl)&&1===r.imgUrl.length&&r.imgUrl[0]||n.backgroundColor;a.beginPath(),a.fillStyle=f,a.fillRect(0,0,c,l),a.fill(),t.isTransitioning?t.toBeList=[t.toBeList[0]]:t.toBeList=[];var p={resource:i,kind:"background-color",tag:f,width:c,height:l};t.toBeList.push(p),t.run()}function U(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,o.isNull)(t))return Reflect.apply(N,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,o.isArray)(r.imgUrl))return Reflect.apply(N,this,[]);var i=(0,o.isArray)(r.imgUrl)&&r.imgUrl.length>1&&r.imgUrl||n.backgroundImage.replace(/^.*linear-gradient\((.*)\).*$/,"$1").split("),").map((function(e){return(e=e.trim()).endsWith(")")||(e+=")"),e})).filter((function(e){return e.startsWith("rgb")||e.startsWith("#")}));if(i.length<2)return Reflect.apply(N,this,[]);var a=document.createElement("canvas"),s=a.getContext("2d");if((0,o.isNull)(s))return Reflect.apply(N,this,[]);var u=e.backgroundInfo,c=u.width,l=u.height;a.width=c,a.height=l,s.fillStyle="#fff",s.fillRect(0,0,c,l);var f=s.createLinearGradient(0,0,0,l);i.forEach((function(e,t){return f.addColorStop(t/(i.length-1),e)})),s.fillStyle=f,s.fillRect(0,0,c,l),e.isTransitioning?e.toBeList=[e.toBeList[0]]:e.toBeList=[],e.toBeList.push({resource:a,kind:"linear-gradient",tag:i.join("_"),width:c,height:l}),e.run()}function B(e){return function(e){if(Array.isArray(e))return L(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function M(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,o.isNull)(t))Reflect.apply(U,this,[]);else{var i,a,s=t.lastUseStyle,u=n.backgroundInfo,c=u.width,l=u.height,f=(0,o.isString)(r.imgUrl)&&r.imgUrl||(i=s.backgroundImage,a=/url\(["']?([^"']*)["']?\)/.exec(i),(0,o.isNull)(a)?null:a[1]);if(t.imageSource=f,f){var p=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(f,c,l);p.onload=function(){clearTimeout(n.transparentId),n.isTransitioning?n.toBeList=[n.toBeList[0]].concat(B(n.toBeList.slice(1).filter((function(e){return"image"===e.kind&&(Math.abs(e.width-c)>2||Math.abs(e.height-l)>2||e.tag!==f)})))):n.toBeList=[],n.toBeList.push({resource:p,width:c,height:l,kind:"image",tag:f}),n.run()},p.onerror=function(){Reflect.apply(U,e,[])},p.crossOrigin=r.crossOrigin}else Reflect.apply(U,this,[])}}function $(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement;t&&[["background-image","none"],["background-color","transparent"]].forEach((function(e){return t.style.setProperty(e[0],e[1],"important")}))}}function W(e){var t=window.getComputedStyle(e),r=e.style;return{inlineBackground:r.background,inlineBackgroundColor:r.backgroundColor,inlineBackgroundImage:r.backgroundImage,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage,backgroundSize:t.backgroundSize,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundClip:t.backgroundClip,backgroundOrigin:t.backgroundOrigin,backgroundAttachment:t.backgroundAttachment,position:t.position,width:parseInt(t.width),height:parseInt(t.height)}}function z(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.parentElement,r=e.originStyle;t.style.setProperty("background-image",r.inlineBackgroundImage),t.style.setProperty("background-color",r.inlineBackgroundColor)}}function X(e){"@babel/helpers - typeof";return X="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},X(e)}function G(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}function H(e,t,r){return(t=Y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=X(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}var q=function(){return function(e,t,r){return t&&G(e.prototype,t),r&&G(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,n){var i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),H(this,"quad",null),H(this,"lastRaindropsFallTime",0),H(this,"parentElement",void 0),H(this,"mutationObserver",void 0),H(this,"resizeObserver",void 0),H(this,"renderProgram",void 0),H(this,"imageSource",""),H(this,"dropProgram",void 0),H(this,"updateProgram",void 0),H(this,"textures",[]),H(this,"backgroundTexture",[]),H(this,"textureDelta",void 0),H(this,"framebuffers",[]),H(this,"bufferWriteIndex",0),H(this,"bufferReadIndex",1),H(this,"originStyle",void 0),H(this,"lastUseStyle",void 0),H(this,"events",{}),H(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply($,n,[]),this.originStyle=this.lastUseStyle=W(this.parentElement),this.mutationObserver=new MutationObserver((function(e){e.forEach((function(e){if(e.target===a.parentElement&&"attributes"===e.type&&n.options.visible){var t=Object.values(a.lastUseStyle),i=W(a.parentElement),s=Object.values(i);if((0,o.isEmptyArray)(v.enArr.difference(t,s)))return;var l=c(i.backgroundImage),f=u(i.backgroundColor);if(l&&f)return;a.lastUseStyle=i,Reflect.apply(r,n,[]),Reflect.apply($,n,[])}}))})),this.mutationObserver.observe(this.parentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),this.resizeObserver=new ResizeObserver((function(e){e.forEach((function(e){e.target===a.parentElement&&Reflect.apply(r,n,[])}))})),this.resizeObserver.observe(this.parentElement)}),[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply(z,{renderData:this},[]),this.parentElement&&this.events){var e,t,r,n=this.parentElement,i=this.events;Object.keys(i).forEach((function(e){return n.removeEventListener&&n.removeEventListener(e,i[e])})),n.removeAttribute&&n.removeAttribute("data-ripples"),null===(e=this.mutationObserver)||void 0===e||e.takeRecords(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.mutationObserver=null,null===(r=this.resizeObserver)||void 0===r||r.disconnect(),this.resizeObserver=null}}}])}();function V(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r,n,i,a=e.parentElement,s=window.getComputedStyle(a),u=s.backgroundSize,c=s.backgroundAttachment,l=s.backgroundPosition,f=/\s+/.test(r=l)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):Z(r)?[r,"50%"]:{center:["50%","50%"],top:["50%","0%"],bottom:["50%","100%"],left:["0%","50%"],right:["100%","50%"]}[r],p={left:0,top:0,width:0,height:0};"fixed"===c?(p.height=window.innerHeight,p.left=window.screenX,p.top=window.screenY,p.width=window.innerWidth):(p.left=0,p.top=0,p.width=a.scrollWidth,p.height=a.scrollHeight);var h=t.backgroundInfo||{width:100,height:100},d=h.width,g=h.height;if("cover"===u){var m=Math.max(p.width/d,p.height/g);n=d*m,i=g*m}else if("contain"===u){var v=Math.min(p.width/d,p.height/g);n=d*v,i=g*v}else{var y=u.split(" ");n=y[0]||"",i=y[1]||n,Z(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),Z(i)?i=p.height*parseFloat(i)/100:"auto"!==i&&(i=parseFloat(i)),"auto"===n&&"auto"===i?(n=d,i=g):("auto"===n&&(n=d*(Number(i)/g)),"auto"===i&&(i=g*(Number(n)/d)))}var b=f&&f[0]||"0%",w=f&&f[1]||"0%";b=Z(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),w=Z(w)?(p.top+(p.height-Number(i))*parseFloat(w)/100).toString():(p.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([-Number(b)/n,-Number(w)/i]),e.renderProgram.uniforms.bottomRight=new Float32Array([e.renderProgram.uniforms.topLeft[0]+a.clientWidth/n,e.renderProgram.uniforms.topLeft[1]+a.clientHeight/i]);var S=Math.max(this.canvas.width,this.canvas.height);e.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/S,this.canvas.height/S])}}function Z(e){return e.endsWith("%")}function K(){var e=this.gl,t=this.renderData;(0,o.isNull)(t)||(e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_FAN,0,4))}function J(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.textures,i=t.backgroundTexture,a=r.perturbance;e.bindFramebuffer(e.FRAMEBUFFER,null),e.viewport(0,0,this.canvas.width,this.canvas.height),e.enable(e.BLEND),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.useProgram(t.renderProgram.id),Reflect.apply(s,this,[i,0]),Reflect.apply(s,this,[n[0],1]),e.uniform1f(t.renderProgram.locations.perturbance,a),e.uniform2fv(t.renderProgram.locations.topLeft,t.renderProgram.uniforms.topLeft),e.uniform2fv(t.renderProgram.locations.bottomRight,t.renderProgram.uniforms.bottomRight),e.uniform2fv(t.renderProgram.locations.containerRatio,t.renderProgram.uniforms.containerRatio),e.uniform1i(t.renderProgram.locations.samplerBackground,0),e.uniform1i(t.renderProgram.locations.samplerRipples,1),Reflect.apply(K,this,[]),e.disable(e.BLEND)}}function Q(){var e=this.renderData;if(!(0,o.isNull)(e)){var t=e.bufferWriteIndex,r=e.bufferReadIndex;e.bufferWriteIndex=1-t,e.bufferReadIndex=1-r}}function ee(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.updateProgram,i=t.textures,a=t.framebuffers,u=t.bufferWriteIndex,c=t.bufferReadIndex,l=r.resolution;e.viewport(0,0,l,l),e.bindFramebuffer(e.FRAMEBUFFER,a[u]),Reflect.apply(s,this,[i[c]]),e.useProgram(n.id),Reflect.apply(K,this,[]),Reflect.apply(Q,this,[])}}function te(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)){var i=t.parentElement,a=n.isTransitioning,s=r.running,u=r.idleFluctuations,c=r.lastRunningState,l=getComputedStyle(i);n.backgroundInfo={width:parseInt(l.width),height:parseInt(l.height)},Reflect.apply(V,this,[]),s?(c||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),a&&this.fade(),Reflect.apply(ee,this,[]),Reflect.apply(J,this,[])):c&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(te,e,[])}))}}function re(e,t,r){var n=this.renderData;if(!(0,o.isNull)(n)){var i=n.parentElement,a=window.getComputedStyle(i),s=parseInt(a.borderLeftWidth)||0,u=parseInt(a.borderTopWidth)||0,c=i.getBoundingClientRect(),l=e.clientX-c.left-s,f=e.clientY-c.top-u;this.drop(l,f,t,r)}}function ne(){var e=this,t=this.renderData,r=this.options;if(!(0,o.isNull)(t)){var n=t.parentElement,i=t.events,a=function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.visible&&r.running&&r.interactive&&(t.lastRaindropsFallTime=Date.now(),Reflect.apply(re,e,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};i.mousemove=function(e){for(var t=r.accelerating;t--;)a(e)},i.touchmove=i.touchstart=function(e){for(var t=e.touches,r=0;r<t.length;r++)a(t[r])},i.mousedown=function(e){return a(e,!0)},Object.keys(i).forEach((function(e){return null==n?void 0:n.addEventListener(e,i[e],{passive:!0})}))}}var ie="\n attribute vec2 vertex;\n varying vec2 coord;\n void main() {\n coord = vertex * 0.5 + 0.5;\n gl_Position = vec4(vertex, 0.0, 1.0);\n }";function oe(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.textureDelta;t.dropProgram=a(ie,"precision highp float;\n\n const float PI = 3.141592653589793;\n uniform sampler2D texture;\n uniform vec2 center;\n uniform float radius;\n uniform float strength;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n\n float drop = max(0.0, 1.0 - length(center * 0.5 + 0.5 - coord) / radius);\n drop = 0.5 - cos(drop * PI) * 0.5;\n info.r += drop * strength;\n gl_FragColor = info;\n }",e);var n=t.updateProgram=a(ie,"\n precision highp float;\n\n uniform sampler2D texture;\n uniform vec2 delta;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n \n vec2 dx = vec2(delta.x, 0.0);\n vec2 dy = vec2(0.0, delta.y);\n \n float average = (\n texture2D(texture, coord - dx).r +\n texture2D(texture, coord - dy).r +\n texture2D(texture, coord + dx).r +\n texture2D(texture, coord + dy).r\n ) * 0.25;\n \n info.g += (average - info.r) * 2.0;\n info.g *= 0.995;\n info.r += info.g;\n \n gl_FragColor = info;\n }\n ",this.gl);e.uniform2fv(n.locations.delta,r),t.renderProgram=a("\n precision highp float;\n\n attribute vec2 vertex;\n uniform vec2 topLeft;\n uniform vec2 bottomRight;\n uniform vec2 containerRatio;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n void main() {\n backgroundCoord = mix(topLeft, bottomRight, vertex * 0.5 + 0.5);\n backgroundCoord.y = 1.0 - backgroundCoord.y;\n ripplesCoord = vec2(vertex.x, -vertex.y) * containerRatio * 0.5 + 0.5;\n gl_Position = vec4(vertex.x, -vertex.y, 0.0, 1.0);\n }\n ","\n precision highp float;\n\n uniform sampler2D samplerBackground;\n uniform sampler2D samplerRipples;\n uniform vec2 delta;\n\n uniform float perturbance;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n\n void main() {\n float height = texture2D(samplerRipples, ripplesCoord).r;\n float heightX = texture2D(samplerRipples, vec2(ripplesCoord.x + delta.x, ripplesCoord.y)).r;\n float heightY = texture2D(samplerRipples, vec2(ripplesCoord.x, ripplesCoord.y + delta.y)).r;\n vec3 dx = vec3(delta.x, heightX - height, 0.0);\n vec3 dy = vec3(0.0, heightY - height, delta.y);\n vec2 offset = -normalize(cross(dy, dx)).xz;\n float specular = pow(max(0.0, dot(offset, normalize(vec2(-0.6, 1.0)))), 4.0);\n gl_FragColor = texture2D(samplerBackground, backgroundCoord + offset * perturbance) + specular;\n }",e),e.uniform2fv(t.renderProgram.locations.delta,r)}}function ae(){var e=this.gl,t=this.renderData;if(!(0,o.isNull)(t)){var r=t.backgroundTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,1),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}}function se(e){var t=this.gl,r=this.renderData,n=this.fadeData;if(!(0,o.isNull)(r)){var i=r.backgroundTexture,a=r.parentElement,s=n.backgroundInfo,u=s.width,c=s.height,l=function(e){return(0,o.isZero)(e&e-1)},f=l(u)&&l(c)?t.REPEAT:t.CLAMP_TO_EDGE;t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,f),a.dataset.render_img=e.tag,a.dataset.render_width=e.width+"px",a.dataset.render_height=e.height+"px",t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e.resource)}}function ue(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,o.isNull)(t)&&this.config){var i=t.textures,a=t.framebuffers,s=r.resolution,u=this.gl,c=1/s;t.textureDelta=new Float32Array([c,c]),this.config.extensions.forEach((function(e){return u.getExtension(e)}));for(var l=this.config.arrayType,f=l?new l(s*s*4):null,p=this.config,h=0;h<2;h++){var d=u.createTexture(),g=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,g),u.bindTexture(u.TEXTURE_2D,d),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,s,s,0,u.RGBA,p.type,f),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,d,0),i.push(d),a.push(g)}t.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,t.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),Reflect.apply(oe,this,[]),Reflect.apply(ae,this,[]),Reflect.apply(M,this,[]),u.clearColor(0,0,0,0),u.blendFunc(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA),r.visible=!0,r.running=!0,Reflect.apply(ne,this,[]),Reflect.apply(se,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(te,e,[])}))}}function ce(){var e=this.renderData,t=this.fadeData;if(!(0,o.isNull)(e)){var r=e.parentElement,n=t.backgroundInfo,i=r.offsetWidth,a=r.offsetHeight;this.canvas.width=n.width=i,this.canvas.height=n.height=a,Reflect.apply(M,this,[])}}function le(){var e=this.renderData,t=this.fadeData;(0,o.isNull)(e)||(e.destroy(),Object.keys(e).forEach((function(t){return e[t]=null})),this.renderData=null),t.destroy(),Object.keys(t).forEach((function(e){return t[e]=null})),this.fadeData=null,this.gl&&(this.gl=null)}function fe(e,t,r,n){var i=this.renderData,a=this.options,u=this.gl;if(!(0,o.isNull)(i)){var c=i.parentElement,l=i.dropProgram,f=i.textures,p=i.framebuffers,h=i.bufferWriteIndex,d=i.bufferReadIndex,g=a.resolution,m=c.offsetWidth,v=c.offsetHeight,y=Math.max(m,v);r/=y;var b=new Float32Array([(2*e-m)/y,(v-2*t)/y]);u.viewport(0,0,g,g),u.bindFramebuffer(u.FRAMEBUFFER,p[h]),Reflect.apply(s,this,[f[d]]),u.useProgram(l.id),u.uniform2fv(l.locations.center,b),u.uniform1f(l.locations.radius,r),u.uniform1f(l.locations.strength,n),Reflect.apply(K,this,[]),Reflect.apply(Q,this,[])}}function pe(e){"@babel/helpers - typeof";return pe="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},pe(e)}function he(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ge(n.key),n)}}function de(e,t,r){return(t=ge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ge(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}function me(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function ve(e,t){return e.get(be(e,t))}function ye(e,t,r){return e.set(be(e,t),r),r}function be(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var we=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Re=new WeakMap,Pe=new WeakMap,Te=new WeakMap,xe=new WeakMap,Oe=function(){return function(e,t,r){return t&&he(e.prototype,t),r&&he(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),me(this,we,y.accelerating),me(this,Se,y.interactive),me(this,Ee,y.resolution),me(this,Re,y.perturbance),me(this,Pe,y.dropRadius),de(this,"imgUrl",y.imgUrl),me(this,Te,y.idleFluctuations),me(this,xe,y.raindropsTimeInterval),de(this,"crossOrigin","no-cors"),de(this,"visible",!1),de(this,"running",!1),de(this,"lastRunningState",!1),this.perturbance=t.perturbance,this.resolution=t.resolution,this.raindropsTimeInterval=t.raindropsTimeInterval,this.accelerating=t.accelerating,this.interactive=t.interactive,this.dropRadius=t.dropRadius,this.imgUrl=t.imgUrl,this.idleFluctuations=t.idleFluctuations,this.running=Boolean(null===(r=t.playingState)||void 0===r||r),this.crossOrigin=t.crossOrigin}),[{key:"accelerating",get:function(){return ve(we,this)},set:function(e){e>100||e<2||ye(we,this,e)}},{key:"interactive",get:function(){return ve(Se,this)},set:function(e){(0,o.isBoolean)(e)&&ye(Se,this,e)}},{key:"resolution",get:function(){return ve(Ee,this)},set:function(e){e<100||e>550||ye(Ee,this,e)}},{key:"perturbance",get:function(){return ve(Re,this)},set:function(e){e<1e-4||e>1||ye(Re,this,e)}},{key:"dropRadius",get:function(){return ve(Pe,this)},set:function(e){!isFinite(e)||e<10||ye(Pe,this,e)}},{key:"idleFluctuations",get:function(){return ve(Te,this)},set:function(e){(0,o.isBoolean)(e)&&ye(Te,this,e)}},{key:"raindropsTimeInterval",get:function(){return ve(xe,this)},set:function(e){e<10||e>12e3||ye(xe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}}])}();function Ie(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout((function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(Ie,e,[]);"image"!==r.lastDrawImage.kind&&r.run()}),2*t.raindropsTimeInterval)}function ke(){var e=this.renderData,t=this.fadeData,r=this.options,n=t.toBeList;if((0,o.isNull)(e))return t.isTransitioning=!1,void Reflect.apply(Ie,this,[]);if((0,o.isEmptyArray)(n))return t.isTransitioning=!1,void Reflect.apply(Ie,this,[]);if(0===t.drawProgress&&n.forEach((function(e){})),t.drawProgress>1e3)if(t.isTransitioning=!1,t.lastDrawImage=n.shift(),Reflect.apply(se,this,[t.lastDrawImage]),(0,o.isEmptyArray)(n)){var i=e.lastUseStyle;((0,o.isNull)(r.imgUrl)||(0,o.isBusinessEmptyString)(r.imgUrl)||(0,o.isZero)(r.imgUrl.length))&&u(i.backgroundColor)&&c(i.backgroundImage)&&(Reflect.apply(F,this,[!1]),Reflect.apply(Ie,this,[]))}else Reflect.apply(Ie,this,[]);else{var a=t.lastDrawImage,s=t.backgroundInfo;t.drawProgress+=18;var l=document.createElement("canvas"),f=l.getContext("2d");if(!((0,o.isNull)(f)||(0,o.isNull)(a.resource)||(0,o.isEmptyArray)(n))){var p=s.width,h=s.height;l.width=p,l.height=h,f.clearRect(0,0,p,h),f.drawImage(a.resource,0,0,p,h),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,p,h),f.globalAlpha=1;var d={resource:l,width:p,height:h,kind:"mix",tag:"".concat(a.tag," >> ").concat(n[0].tag)};Reflect.apply(se,this,[d]),n.length>1&&(t.lastDrawImage=d,n.shift(),t.drawProgress=0)}}}function Ae(e){"@babel/helpers - typeof";return Ae="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},Ae(e)}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,je(n.key),n)}}function De(e,t,r){return(t=je(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e){var t=function(e,t){if("object"!=Ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ae(t)?t:t+""}var Ce=function(){return function(e,t,r){return t&&_e(e.prototype,t),r&&_e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),De(this,"backgroundInfo",{width:0,height:0}),De(this,"transparentId",setTimeout(Boolean)),De(this,"lastDrawImage",void 0),De(this,"toBeList",[]),De(this,"drawProgress",0),De(this,"isTransitioning",!1);var r,n,i=t.renderData;if((0,o.isNull)(i))r=10,n=10;else{var a=getComputedStyle(i.parentElement);r=parseInt(a.width),n=parseInt(a.height)}this.backgroundInfo={width:r,height:n},this.lastDrawImage={resource:C(r,n),width:r,height:n,kind:"default",tag:""}}),[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId)}}])}();function Fe(e){"@babel/helpers - typeof";return Fe="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},Fe(e)}function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){Xe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ge(n.key),n)}}function Le(e,t,r){return t=$e(t),function(e,t){if(t&&("object"==Fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Me()?Reflect.construct(t,r||[],$e(e).constructor):t.apply(e,r))}function Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Me=function(){return!!e})()}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$e(e)}function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}function ze(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function Xe(e,t,r){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}function He(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var Ye=new WeakMap,qe=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xe(n=Le(this,t,[e]),"renderData",null),Xe(n,"options",void 0),Xe(n,"fadeData",void 0),Xe(n,"defaults",y),Xe(n,"initialized",!1),ze(n,Ye,(0,v.debounce)(ce,{this:n})),Object.defineProperties(n,{defaults:{value:n.defaults,writable:!1,enumerable:!1,configurable:!1}}),n.options=new Oe(Ue(Ue({},n.defaults),r)),n.renderData=new q(e,n.reloadBackground,n),n.fadeData=new Ce(n),(0,o.isFalse)(n.initState)||(0,o.isNull)(e.parentElement)||(0,o.isNull)(n.config)||(0,o.isNull)(n.gl)?n.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,(0,i.setStyle)(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(ue,n,[])),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(t,e),function(e,t,r){return t&&Be(e.prototype,t),r&&Be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"raindropsFall",value:function(){var e=this.renderData,t=this.options,r=this.fadeData;if(!(0,o.isNull)(e)){var n=r.backgroundInfo,i=e.lastRaindropsFallTime,a=t.raindropsTimeInterval,s=t.dropRadius,u=Date.now();if(!(u-i<a)){e.lastRaindropsFallTime=u;var c=function(e){return(0,v.getRandomInt)(e)},l=n.width,f=n.height;this.drop(c(l),c(f),s,.03)}}}},{key:"drop",value:function(e,t,r,n){Reflect.apply(fe,this,[e,t,r,n])}},{key:"fade",value:function(){Reflect.apply(ke,this,[])}},{key:"reloadBackground",value:function(){He(Ye,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(le,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply($,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply(z,this,[])}},{key:"pause",value:function(){this.options.running=!1}},{key:"play",value:function(){this.options.running=!0}},{key:"changePlayingState",value:function(){var e=this.options;e.running=!e.running}},{key:"set",value:function(e,t){"imgUrl"===e?(this.options.imgUrl=t,Reflect.apply(M,this,[])):this.options[e]=t}}])}(m);function Ve(e,t){var r=(0,n.useRef)(null);return(0,n.useEffect)((function(){if(!(0,o.isNull)(e.current))return r.current=new qe(e.current,t&&t.option),function(){var e;return null===(e=r.current)||void 0===e?void 0:e.destroy()}}),[]),r}},581:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Ht});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.create;function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var o=r(953),a=r.n(o),s=r(833),u=r.n(s),c="-ms-",l="-moz-",f="-webkit-",p="comm",h="rule",d="decl",g="@keyframes",m=Math.abs,v=String.fromCharCode,y=Object.assign;function b(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,r){return e.replace(t,r)}function E(e,t,r){return e.indexOf(t,r)}function R(e,t){return 0|e.charCodeAt(t)}function P(e,t,r){return e.slice(t,r)}function T(e){return e.length}function x(e){return e.length}function O(e,t){return t.push(e),e}function I(e,t){return e.filter((function(e){return!w(e,t)}))}var k=1,A=1,_=0,D=0,j=0,C="";function F(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:k,column:A,length:a,return:"",siblings:s}}function N(e,t){return y(F("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function U(e){for(;e.root;)e=N(e.root,{children:[e]});O(e,e.siblings)}function B(){return j=D>0?R(C,--D):0,A--,10===j&&(A=1,k--),j}function L(){return j=D<_?R(C,D++):0,A++,10===j&&(A=1,k++),j}function M(){return R(C,D)}function $(){return D}function W(e,t){return P(C,e,t)}function z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function X(e){return k=A=1,_=T(C=e),D=0,[]}function G(e){return C="",e}function H(e){return b(W(D-1,V(91===e?e+2:40===e?e+1:e)))}function Y(e){for(;(j=M())&&j<33;)L();return z(e)>2||z(j)>3?"":" "}function q(e,t){for(;--t&&L()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return W(e,$()+(t<6&&32==M()&&32==L()))}function V(e){for(;L();)switch(j){case e:return D;case 34:case 39:34!==e&&39!==e&&V(j);break;case 40:41===e&&V(e);break;case 92:L()}return D}function Z(e,t){for(;L()&&e+j!==57&&(e+j!==84||47!==M()););return"/*"+W(t,D-1)+"*"+v(47===e?e:L())}function K(e){for(;!z(M());)L();return W(e,D)}function J(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Q(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case d:return e.return=e.return||e.value;case p:return"";case g:return e.return=e.value+"{"+J(e.children,n)+"}";case h:if(!T(e.value=e.props.join(",")))return""}return T(r=J(e.children,n))?e.return=e.value+"{"+r+"}":""}function ee(e,t,r){switch(function(e,t){return 45^R(e,0)?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}(e,t)){case 5103:return f+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return f+e+e;case 4789:return l+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return f+e+l+e+c+e+e;case 5936:switch(R(e,t+11)){case 114:return f+e+c+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return f+e+c+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return f+e+c+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return f+e+c+e+e;case 6165:return f+e+c+"flex-"+e+e;case 5187:return f+e+S(e,/(\w+).+(:[^]+)/,f+"box-$1$2"+c+"flex-$1$2")+e;case 5443:return f+e+c+"flex-item-"+S(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":c+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return f+e+c+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return f+e+c+S(e,"shrink","negative")+e;case 5292:return f+e+c+S(e,"basis","preferred-size")+e;case 6060:return f+"box-"+S(e,"-grow","")+f+e+c+S(e,"grow","positive")+e;case 4554:return f+S(e,/([^-])(transform)/g,"$1"+f+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,f+"$1"),/(image-set)/,f+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,f+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,f+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+f+e+e;case 4200:if(!w(e,/flex-|baseline/))return c+"grid-column-align"+P(e,t)+e;break;case 2592:case 3360:return c+S(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,w(e.props,/grid-\w+-end/)}))?~E(e+(r=r[t].value),"span",0)?e:c+S(e,"-start","")+e+c+"grid-row-span:"+(~E(r,"span",0)?w(r,/\d+/):+w(r,/\d+/)-+w(e,/\d+/))+";":c+S(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:c+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,f+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(T(e)-1-t>6)switch(R(e,t+1)){case 109:if(45!==R(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+f+"$2-$3$1"+l+(108==R(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch",0)?ee(S(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,i,o,a,s){return c+r+":"+n+s+(i?c+r+"-span:"+(o?a:+a-+n)+s:"")+e}));case 4949:if(121===R(e,t+6))return S(e,":",":"+f)+e;break;case 6444:switch(R(e,45===R(e,14)?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+f+(45===R(e,14)?"inline-":"")+"box$3$1"+f+"$2$3$1"+c+"$2box$3")+e;case 100:return S(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case d:return void(e.return=ee(e.value,e.length,r));case g:return J([N(e,{value:S(e.value,"@","@"+f)})],n);case h:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(w(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":U(N(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})),U(N(e,{props:[t]})),y(e,{props:I(r,n)});break;case"::placeholder":U(N(e,{props:[S(t,/:(plac\w+)/,":"+f+"input-$1")]})),U(N(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]})),U(N(e,{props:[S(t,/:(plac\w+)/,c+"input-$1")]})),U(N(e,{props:[t]})),y(e,{props:I(r,n)})}return""}))}}function re(e){return G(ne("",null,null,null,[""],e=X(e),0,[0],e))}function ne(e,t,r,n,i,o,a,s,u){for(var c=0,l=0,f=a,p=0,h=0,d=0,g=1,y=1,b=1,w=0,P="",x=i,I=o,k=n,A=P;y;)switch(d=w,w=L()){case 40:if(108!=d&&58==R(A,f-1)){-1!=E(A+=S(H(w),"&","&\f"),"&\f",m(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:A+=H(w);break;case 9:case 10:case 13:case 32:A+=Y(d);break;case 92:A+=q($()-1,7);continue;case 47:switch(M()){case 42:case 47:O(oe(Z(L(),$()),t,r,u),u);break;default:A+="/"}break;case 123*g:s[c++]=T(A)*b;case 125*g:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+l:-1==b&&(A=S(A,/\f/g,"")),h>0&&T(A)-f&&O(h>32?ae(A+";",n,r,f-1,u):ae(S(A," ","")+";",n,r,f-2,u),u);break;case 59:A+=";";default:if(O(k=ie(A,t,r,c,l,i,s,P,x=[],I=[],f,o),o),123===w)if(0===l)ne(A,t,k,k,x,o,f,s,I);else switch(99===p&&110===R(A,3)?100:p){case 100:case 108:case 109:case 115:ne(e,k,k,n&&O(ie(e,k,k,0,0,i,s,P,i,x=[],f,I),I),i,I,f,s,n?x:I);break;default:ne(A,k,k,k,[""],I,0,s,I)}}c=l=h=0,g=b=1,P=A="",f=a;break;case 58:f=1+T(A),h=d;default:if(g<1)if(123==w)--g;else if(125==w&&0==g++&&125==B())continue;switch(A+=v(w),w*g){case 38:b=l>0?1:(A+="\f",-1);break;case 44:s[c++]=(T(A)-1)*b,b=1;break;case 64:45===M()&&(A+=H(L())),p=M(),l=f=T(P=A+=K($())),w++;break;case 45:45===d&&2==T(A)&&(g=0)}}return o}function ie(e,t,r,n,i,o,a,s,u,c,l,f){for(var p=i-1,d=0===i?o:[""],g=x(d),v=0,y=0,w=0;v<n;++v)for(var E=0,R=P(e,p+1,p=m(y=a[v])),T=e;E<g;++E)(T=b(y>0?d[E]+" "+R:S(R,/&\f/g,d[E])))&&(u[w++]=T);return F(e,t,r,0===i?h:s,u,c,l,f)}function oe(e,t,r,n){return F(e,t,r,p,v(j),P(e,2,-2),0,n)}function ae(e,t,r,n,i){return F(e,t,r,d,P(e,0,n),P(e,n+1,-1),n,i)}var se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ue="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="active",le="data-styled-version",fe="6.1.19",pe="/*!sc*/\n",he="undefined"!=typeof window&&"undefined"!=typeof document,de=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)),ge=(new Set,Object.freeze([])),me=Object.freeze({});function ve(e,t,r){return void 0===r&&(r=me),e.theme!==r.theme&&e.theme||t||r.theme}var ye=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"]),be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function Se(e){return e.replace(be,"-").replace(we,"")}var Ee=/(a)(d)/gi,Re=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pe(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Re(t%52)+r;return(Re(t%52)+r).replace(Ee,"$1-$2")}var Te,xe=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Oe=function(e){return xe(5381,e)};function Ie(e){return Pe(Oe(e)>>>0)}function ke(e){return e.displayName||e.name||"Component"}function Ae(e){return"string"==typeof e&&!0}var _e="function"==typeof Symbol&&Symbol.for,De=_e?Symbol.for("react.memo"):60115,je=_e?Symbol.for("react.forward_ref"):60112,Ce={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ne={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ue=((Te={})[je]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Te[De]=Ne,Te);function Be(e){return("type"in(t=e)&&t.type.$$typeof)===De?Ne:"$$typeof"in e?Ue[e.$$typeof]:Ce;var t}var Le=Object.defineProperty,Me=Object.getOwnPropertyNames,$e=Object.getOwnPropertySymbols,We=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,Xe=Object.prototype;function Ge(e,t,r){if("string"!=typeof t){if(Xe){var n=ze(t);n&&n!==Xe&&Ge(e,n,r)}var i=Me(t);$e&&(i=i.concat($e(t)));for(var o=Be(e),a=Be(t),s=0;s<i.length;++s){var u=i[s];if(!(u in Fe||r&&r[u]||a&&u in a||o&&u in o)){var c=We(t,u);try{Le(e,u,c)}catch(e){}}}}return e}function He(e){return"function"==typeof e}function Ye(e){return"object"==typeof e&&"styledComponentId"in e}function qe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ve(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ze(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ke(e,t,r){if(void 0===r&&(r=!1),!r&&!Ze(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ke(e[n],t[n]);else if(Ze(t))for(var n in t)e[n]=Ke(e[n],t[n]);return e}function Je(e,t){Object.defineProperty(e,"toString",{value:t})}function Qe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var et=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,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Qe(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(pe);return t},e}(),tt=new Map,rt=new Map,nt=1,it=function(e){if(tt.has(e))return tt.get(e);for(;rt.has(nt);)nt++;var t=nt++;return tt.set(e,t),rt.set(t,e),t},ot=function(e,t){nt=t+1,tt.set(e,t),rt.set(t,e)},at="style[".concat(ue,"][").concat(le,'="').concat(fe,'"]'),st=new RegExp("^".concat(ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ut=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},ct=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(pe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(st);if(u){var c=0|parseInt(u[1],10),l=u[2];0!==c&&(ot(l,c),ut(e,l,u[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},lt=function(e){for(var t=document.querySelectorAll(at),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(ue)!==ce&&(ct(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ft(){return r.nc}var pt=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ue,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(ue,ce),n.setAttribute(le,fe);var a=ft();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},ht=function(){function e(e){this.element=pt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw Qe(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}(),dt=function(){function e(e){this.element=pt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,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}(),gt=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}(),mt=he,vt={isServer:!he,useCSSOMInjection:!de},yt=function(){function e(e,t,r){void 0===e&&(e=me),void 0===t&&(t={});var i=this;this.options=n(n({},vt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&he&&mt&&(mt=!1,lt(this)),Je(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return rt.get(e)}(r);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(r);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(ue,".g").concat(r,'[id="').concat(i,'"]'),u="";void 0!==o&&o.forEach((function(e){e.length>0&&(u+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(pe)},o=0;o<r;o++)i(o);return n}(i)}))}return e.registerId=function(e){return it(e)},e.prototype.rehydrate=function(){!this.server&&he&<(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&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,r=e.target;return e.isServer?new gt(r):t?new ht(r):new dt(r)}(this.options),new et(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(it(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(it(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(it(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),bt=/&/g,wt=/^\s*\/\/.*$/gm;function St(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=St(e.children,t)),e}))}function Et(e){var t,r,n,i=void 0===e?me:e,o=i.options,a=void 0===o?me:o,s=i.plugins,u=void 0===s?ge:s,c=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},l=u.slice();l.push((function(e){e.type===h&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(bt,r).replace(n,c))})),a.prefix&&l.push(te),l.push(Q);var f=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,r=i,n=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(wt,""),c=re(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(c=St(c,a.namespace));var f,p,h,d=[];return J(c,(f=l.concat((h=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&h(e)})),p=x(f),function(e,t,r,n){for(var i="",o=0;o<p;o++)i+=f[o](e,t,r,n)||"";return i})),d};return f.hash=u.length?u.reduce((function(e,t){return t.name||Qe(15),xe(e,t.name)}),5381).toString():"",f}var Rt=new yt,Pt=Et(),Tt=a().createContext({shouldForwardProp:void 0,styleSheet:Rt,stylis:Pt}),xt=(Tt.Consumer,a().createContext(void 0));function Ot(){return(0,o.useContext)(Tt)}function It(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=Ot().styleSheet,s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),c=(0,o.useMemo)((function(){return Et({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)((function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var l=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return a().createElement(Tt.Provider,{value:l},a().createElement(xt.Provider,{value:c},e.children))}var kt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Pt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Je(this,(function(){throw Qe(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Pt),this.name+e.hash},e}(),At=function(e){return e>="A"&&e<="Z"};function _t(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;At(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Dt=function(e){return null==e||!1===e||""===e},jt=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Dt(a)&&(Array.isArray(a)&&a.isCss||He(a)?n.push("".concat(_t(o),":"),a,";"):Ze(a)?n.push.apply(n,i(i(["".concat(o," {")],jt(a),!1),["}"],!1)):n.push("".concat(_t(o),": ").concat((t=o,null==(r=a)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in se||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ct(e,t,r,n){return Dt(e)?[]:Ye(e)?[".".concat(e.styledComponentId)]:He(e)?!He(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Ct(e(t),t,r,n):e instanceof kt?r?(e.inject(r,n),[e.getName(n)]):[e]:Ze(e)?jt(e):Array.isArray(e)?Array.prototype.concat.apply(ge,e.map((function(e){return Ct(e,t,r,n)}))):[e.toString()];var i}function Ft(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(He(r)&&!Ye(r))return!1}return!0}var Nt=Oe(fe),Ut=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ft(e),this.componentId=t,this.baseHash=xe(Nt,t),this.baseStyle=r,yt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=qe(n,this.staticRulesId);else{var i=Ve(Ct(this.rules,e,t,r)),o=Pe(xe(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=qe(n,o),this.staticRulesId=o}else{for(var s=xe(this.baseHash,r.hash),u="",c=0;c<this.rules.length;c++){var l=this.rules[c];if("string"==typeof l)u+=l;else if(l){var f=Ve(Ct(l,e,t,r));s=xe(s,f+c),u+=f}}if(u){var p=Pe(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),n=qe(n,p)}}return n},e}(),Bt=a().createContext(void 0);Bt.Consumer;var Lt={};new Set;function Mt(e,t,r){var i=Ye(e),s=e,u=!Ae(e),c=t.attrs,l=void 0===c?ge:c,f=t.componentId,p=void 0===f?function(e,t){var r="string"!=typeof e?"sc":Se(e);Lt[r]=(Lt[r]||0)+1;var n="".concat(r,"-").concat(Ie(fe+r+Lt[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):f,h=t.displayName,d=void 0===h?function(e){return Ae(e)?"styled.".concat(e):"Styled(".concat(ke(e),")")}(e):h,g=t.displayName&&t.componentId?"".concat(Se(t.displayName),"-").concat(t.componentId):t.componentId||p,m=i&&s.attrs?s.attrs.concat(l).filter(Boolean):l,v=t.shouldForwardProp;if(i&&s.shouldForwardProp){var y=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var w=new Ut(r,g,i?s.componentStyle:void 0);function S(e,t){return function(e,t,r){var i=e.attrs,s=e.componentStyle,u=e.defaultProps,c=e.foldedComponentIds,l=e.styledComponentId,f=e.target,p=a().useContext(Bt),h=Ot(),d=e.shouldForwardProp||h.shouldForwardProp,g=ve(t,p,u)||me,m=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=He(i=e[a])?i(o):i;for(var u in s)o[u]="className"===u?qe(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=qe(o.className,t.className)),o}(i,t,g),v=m.as||f,y={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?y.as=m.forwardedAs:d&&!d(b,v)||(y[b]=m[b]));var w=function(e,t){var r=Ot();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,m),S=qe(c,l);return w&&(S+=" "+w),m.className&&(S+=" "+m.className),y[Ae(v)&&!ye.has(v)?"class":"className"]=S,r&&(y.ref=r),(0,o.createElement)(v,y)}(E,e,t)}S.displayName=d;var E=a().forwardRef(S);return E.attrs=m,E.componentStyle=w,E.displayName=d,E.shouldForwardProp=v,E.foldedComponentIds=i?qe(s.foldedComponentIds,s.styledComponentId):"",E.styledComponentId=g,E.target=i?s.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++)Ke(e,i[n],!0);return e}({},s.defaultProps,e):e}}),Je(E,(function(){return".".concat(E.styledComponentId)})),u&&Ge(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function $t(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var Wt=function(e){return Object.assign(e,{isCss:!0})};function zt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(He(e)||Ze(e))return Wt(Ct($t(ge,i([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ct(n):Wt(Ct($t(n,t)))}function Xt(e,t,r){if(void 0===r&&(r=me),!t)throw Qe(1,t);var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,r,zt.apply(void 0,i([n],o,!1)))};return o.attrs=function(i){return Xt(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Xt(e,t,n(n({},r),i))},o}var Gt=function(e){return Xt(Mt,e)},Ht=Gt;ye.forEach((function(e){Ht[e]=Gt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ft(e),yt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(Ve(Ct(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&yt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=ft(),n=Ve([r&&'nonce="'.concat(r,'"'),"".concat(ue,'="true"'),"".concat(le,'="').concat(fe,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Qe(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Qe(2);var r=e.instance.toString();if(!r)return[];var i=((t={})[ue]="",t[le]=fe,t.dangerouslySetInnerHTML={__html:r},t),o=ft();return o&&(i.nonce=o),[a().createElement("style",n({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new yt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Qe(2);return a().createElement(It,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Qe(3)}})(),"__sc-".concat(ue,"__")},705:e=>{"use strict";e.exports=require("a-js-tools")},833:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},953:e=>{"use strict";e.exports=require("react")}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var n={};(()=>{"use strict";r.r(n),r.d(n,{BackgroundRipple:()=>d});var e=r(953),t=r.n(e),i=r(575),o=r(570);var a=r(581);function s(e){"@babel/helpers - typeof";return s="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},s(e)}var u,c=["children","style"];function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=a.Ay.div(u||(u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n width: 100%;\n height: 100%;\n position: relative;\n top: 0px;\n left: 0px;\n z-index: 1;\n"]))),d=(0,e.forwardRef)((function(r,n){var a=r.children,s=r.style,u=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(r,c),l=(0,e.useRef)(null),p=(0,i.useRipples)(l,u);return function(t,r){(0,e.useEffect)((function(){if(r.option&&t.current){var e=r.option;Object.keys(t.current.defaults).forEach((function(r){!(0,o.isUndefined)(e[r])&&t.current&&t.current.set(r,e[r])}))}}),[r.option])}(p,u),(0,e.useImperativeHandle)(n,(function(){return{toggleState:function(){var e;null===(e=p.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=p.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=p.current)||void 0===e||e.pause()},set:function(e){if(!(0,o.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,a=t[r];null===(i=p.current)||void 0===i||i.set(a,e[a])}}}})),t().createElement(h,{style:f({backgroundRepeat:"round"},s)},t().createElement("canvas",{ref:l,"data-earthnut-ui":"canvas"}),a)}));d.displayName="en-background-ripple"})(),module.exports.earthnut=n})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import*as e from"a-js-tools";import*as t from"a-type-of-js";import*as r from"a-element-inline-style";import*as n from"react";var i={161:(t,r,n)=>{t.exports=(e=>{var t={};return n.d(t,e),t})({debounce:()=>e.debounce,enArr:()=>e.enArr,getRandomInt:()=>e.getRandomInt,getRandomString:()=>e.getRandomString})},362:(e,r,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({isArray:()=>t.isArray,isBoolean:()=>t.isBoolean,isBusinessEmptyString:()=>t.isBusinessEmptyString,isEmptyArray:()=>t.isEmptyArray,isFalse:()=>t.isFalse,isNull:()=>t.isNull,isString:()=>t.isString,isUndefined:()=>t.isUndefined,isZero:()=>t.isZero})},377:(e,t,n)=>{n.d(t,{n:()=>Ve});var i=n(649);const o=(e=>{var t={};return n.d(t,e),t})({setStyle:()=>r.setStyle});var a=n(362);function s(e,t,r,n){function i(e,t){var n=r.createShader(e);if(r.shaderSource(n,t),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error("compile error: "+r.getShaderInfoLog(n));return n}var o,s={id:r.createProgram(),uniforms:{},locations:{}};if(r.attachShader(s.id,i(r.VERTEX_SHADER,e)),r.attachShader(s.id,i(r.FRAGMENT_SHADER,t)),r.linkProgram(s.id),!r.getProgramParameter(s.id,r.LINK_STATUS))throw new Error("link error: "+r.getProgramInfoLog(s.id));r.useProgram(s.id),r.enableVertexAttribArray(0);for(var u=e+t,c=/uniform (\w+) (\w+)/g;!(0,a.isNull)(o=c.exec(u));){var l=o[2];s.locations[l]=r.getUniformLocation(s.id,l)}return s}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.gl;r.activeTexture(r.TEXTURE0+(t||0)),r.bindTexture(r.TEXTURE_2D,e)}function c(e){return"rgba(0, 0, 0, 0)"===e||"#ffffffff"===e||"transport"===e}function l(e){return"none"===e||""===e}function f(){var e=this,t=function(){return e.initState=!1,null};if(!this.gl)return t();var r=this.gl,n=Object.fromEntries(["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear"].reduce((function(e,t){var n=r.getExtension(t);return n&&e.push([t,n]),e}),[]));if(!n.OES_texture_float)return t();var i=[];function o(e,t,r){var i="OES_texture_"+e,o=i+"_linear",a=o in n;return{type:t,linearSupport:a,arrayType:r,extensions:a?[i,o]:[i]}}i.push(o("float",r.FLOAT,Float32Array)),n.OES_texture_half_float&&i.push(o("half_float",n.OES_texture_half_float.HALF_FLOAT_OES,null));var a=r.createTexture(),s=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,s),r.bindTexture(r.TEXTURE_2D,a),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE);for(var u=null,c=0;c<i.length;c++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[c].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){u=i[c];break}return u}function p(e){"@babel/helpers - typeof";return p="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},p(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function d(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g(e,t,r){return(t=m(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}var v=d((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"canvas",void 0),g(this,"gl",void 0),g(this,"config",void 0),g(this,"initState",!0),this.canvas=t;var r=t.getContext("webgl");if((0,a.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(f,this,[])})),y=n(161),b={imgUrl:"",resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0};function w(e){"@babel/helpers - typeof";return w="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},w(e)}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function E(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}Object.freeze(b);var R;new(function(){return function(e,t,r){return t&&S(e.prototype,t),r&&S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(){};return Object.setPrototypeOf(t,this),Object.defineProperties(t,{info:{value:function(){},configurable:!1,writable:!1},warn:{value:function(){},configurable:!1,writable:!1},error:{value:function(){},configurable:!1,writable:!1},type:{value:!1,configurable:!1,writable:!1}}),t}),[{key:"clear",value:function(){}}])}())({name:"earthnut",type:!1});function P(e){"@babel/helpers - typeof";return P="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},P(e)}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x(n.key),n)}}function x(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}function O(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function I(e,t,r){return e.set(A(e,t),r),r}function k(e,t){return e.get(A(e,t))}function A(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function _(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t={list:[],diameter:48,radius:0,cells:0};t.diameter%2!=0&&t.diameter++;var r=t.diameter,n=t.list,i=r/2;t.radius=i,t.cells=Math.pow(r,2);for(var o=0;o<r;o++){n[o]=[];for(var a=0;a<r;a++)n[o][a]=[0,0,0,0]}for(var s=0;s<=i;s++)for(var u=s;u<=i;u++){var c=n[s][u],l=function(){return(0,y.getRandomInt)(255,190)};c[0]=l(),c[1]=l(),c[2]=l(),c[3]=Math.ceil(Math.sqrt(Math.pow(s,2)+Math.pow(u,2)))<=i?(0,y.getRandomInt)(120,180):(0,y.getRandomInt)(160,240)}for(var f=0;f<=i;f++)for(var p=0;p<=f;p++)n[f][p]=n[p][f];for(var h=i;h<r;h++)for(var d=0;d<=i;d++)n[h][d]=n[r-h][d];for(var g=0;g<i;g++)for(var m=i;m<r;m++)n[g][m]=n[g][r-m];for(var v=i;v<r;v++)for(var b=i;b<r;b++)n[v][b]=n[v][r-b];var w=e%r;return t.list=[].concat(_(n.slice(w)),_(n.slice(0,w))),t},j=new(R=new WeakMap,function(){return function(e,t,r){return t&&T(e.prototype,t),r&&T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),O(this,R,1),function(e,t,r){(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"data",C())}),[{key:"build",value:function(){k(R,this)>100&&I(R,this,0),this.data=C(I(R,this,k(R,this)+3))}}])}());function F(e,t){var r=document.createElement("canvas"),n=document.createElement("canvas"),i=r.getContext("2d"),o=n.getContext("2d");return(0,a.isNull)(i)||(0,a.isNull)(o)?r:(r.width=n.width=e||1,r.height=n.height=t||1,i.clearRect(0,0,e,t),o.clearRect(0,0,e,t),i.globalAlpha=1,i.putImageData(function(e,t){Date.now();for(var r=new ImageData(e||1,t||1),n=r.data,i=j.data,o=i.diameter,a=i.list,s=e*o,u=0;u<n.length;u+=4){var c=u/4%s,l=c%e%o,f=Math.floor(c/e),p=a[l][f];n[u]=p[0],n[u+1]=p[1],n[u+2]=p[2],n[u+3]=p[3]}return r}(e,t),0,0),o.fillStyle="#ffffff",o.fillRect(0,0,e,t),o.drawImage(r,0,0,e||1,t||1),o.globalCompositeOperation="source-over",n)}function N(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.fadeData,r=t.backgroundInfo,n=t.toBeList,i=r.width,o=r.height,a=(0,y.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});j.build(),n.push({resource:F(i,o),width:i,height:o,kind:"default",tag:a}),e&&t.run()}function U(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,a.isNull)(e))return Reflect.apply(N,this,[]);var n=e.originStyle;if(c(n.backgroundColor)&&(!(0,a.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(N,this,[]);var i=document.createElement("canvas"),o=i.getContext("2d");if((0,a.isNull)(o))return Reflect.apply(N,this,[]);var s=t.backgroundInfo,u=s.width,l=s.height;i.width=u,i.height=l,o.clearRect(0,0,u,l);var f=(0,a.isArray)(r.imgUrl)&&1===r.imgUrl.length&&r.imgUrl[0]||n.backgroundColor;o.beginPath(),o.fillStyle=f,o.fillRect(0,0,u,l),o.fill(),t.isTransitioning?t.toBeList=[t.toBeList[0]]:t.toBeList=[];var p={resource:i,kind:"background-color",tag:f,width:u,height:l};t.toBeList.push(p),t.run()}function B(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,a.isNull)(t))return Reflect.apply(U,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,a.isArray)(r.imgUrl))return Reflect.apply(U,this,[]);var i=(0,a.isArray)(r.imgUrl)&&r.imgUrl.length>1&&r.imgUrl||n.backgroundImage.replace(/^.*linear-gradient\((.*)\).*$/,"$1").split("),").map((function(e){return(e=e.trim()).endsWith(")")||(e+=")"),e})).filter((function(e){return e.startsWith("rgb")||e.startsWith("#")}));if(i.length<2)return Reflect.apply(U,this,[]);var o=document.createElement("canvas"),s=o.getContext("2d");if((0,a.isNull)(s))return Reflect.apply(U,this,[]);var u=e.backgroundInfo,c=u.width,l=u.height;o.width=c,o.height=l,s.fillStyle="#fff",s.fillRect(0,0,c,l);var f=s.createLinearGradient(0,0,0,l);i.forEach((function(e,t){return f.addColorStop(t/(i.length-1),e)})),s.fillStyle=f,s.fillRect(0,0,c,l),e.isTransitioning?e.toBeList=[e.toBeList[0]]:e.toBeList=[],e.toBeList.push({resource:o,kind:"linear-gradient",tag:i.join("_"),width:c,height:l}),e.run()}function L(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function $(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,a.isNull)(t))Reflect.apply(B,this,[]);else{var i,o,s=t.lastUseStyle,u=n.backgroundInfo,c=u.width,l=u.height,f=(0,a.isString)(r.imgUrl)&&r.imgUrl||(i=s.backgroundImage,o=/url\(["']?([^"']*)["']?\)/.exec(i),(0,a.isNull)(o)?null:o[1]);if(t.imageSource=f,f){var p=function(e,t,r){var n=new Image(t,r);return n.width=t,n.height=r,n.src=e,n}(f,c,l);p.onload=function(){clearTimeout(n.transparentId),n.isTransitioning?n.toBeList=[n.toBeList[0]].concat(L(n.toBeList.slice(1).filter((function(e){return"image"===e.kind&&(Math.abs(e.width-c)>2||Math.abs(e.height-l)>2||e.tag!==f)})))):n.toBeList=[],n.toBeList.push({resource:p,width:c,height:l,kind:"image",tag:f}),n.run()},p.onerror=function(){Reflect.apply(B,e,[])},p.crossOrigin=r.crossOrigin}else Reflect.apply(B,this,[])}}function z(){var e=this.renderData;if(!(0,a.isNull)(e)){var t=e.parentElement;t&&[["background-image","none"],["background-color","transparent"]].forEach((function(e){return t.style.setProperty(e[0],e[1],"important")}))}}function W(e){var t=window.getComputedStyle(e),r=e.style;return{inlineBackground:r.background,inlineBackgroundColor:r.backgroundColor,inlineBackgroundImage:r.backgroundImage,backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage,backgroundSize:t.backgroundSize,backgroundPosition:t.backgroundPosition,backgroundRepeat:t.backgroundRepeat,backgroundClip:t.backgroundClip,backgroundOrigin:t.backgroundOrigin,backgroundAttachment:t.backgroundAttachment,position:t.position,width:parseInt(t.width),height:parseInt(t.height)}}function X(){var e=this.renderData;if(!(0,a.isNull)(e)){var t=e.parentElement,r=e.originStyle;t.style.setProperty("background-image",r.inlineBackgroundImage),t.style.setProperty("background-color",r.inlineBackgroundColor)}}function G(e){"@babel/helpers - typeof";return G="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},G(e)}function H(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q(n.key),n)}}function Y(e,t,r){return(t=q(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e){var t=function(e,t){if("object"!=G(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==G(t)?t:t+""}var Z=function(){return function(e,t,r){return t&&H(e.prototype,t),r&&H(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,r,n){var i,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Y(this,"quad",null),Y(this,"lastRaindropsFallTime",0),Y(this,"parentElement",void 0),Y(this,"mutationObserver",void 0),Y(this,"resizeObserver",void 0),Y(this,"renderProgram",void 0),Y(this,"imageSource",""),Y(this,"dropProgram",void 0),Y(this,"updateProgram",void 0),Y(this,"textures",[]),Y(this,"backgroundTexture",[]),Y(this,"textureDelta",void 0),Y(this,"framebuffers",[]),Y(this,"bufferWriteIndex",0),Y(this,"bufferReadIndex",1),Y(this,"originStyle",void 0),Y(this,"lastUseStyle",void 0),Y(this,"events",{}),Y(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply(z,n,[]),this.originStyle=this.lastUseStyle=W(this.parentElement),this.mutationObserver=new MutationObserver((function(e){e.forEach((function(e){if(e.target===o.parentElement&&"attributes"===e.type&&n.options.visible){var t=Object.values(o.lastUseStyle),i=W(o.parentElement),s=Object.values(i);if((0,a.isEmptyArray)(y.enArr.difference(t,s)))return;var u=l(i.backgroundImage),f=c(i.backgroundColor);if(u&&f)return;o.lastUseStyle=i,Reflect.apply(r,n,[]),Reflect.apply(z,n,[])}}))})),this.mutationObserver.observe(this.parentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),this.resizeObserver=new ResizeObserver((function(e){e.forEach((function(e){e.target===o.parentElement&&Reflect.apply(r,n,[])}))})),this.resizeObserver.observe(this.parentElement)}),[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply(X,{renderData:this},[]),this.parentElement&&this.events){var e,t,r,n=this.parentElement,i=this.events;Object.keys(i).forEach((function(e){return n.removeEventListener&&n.removeEventListener(e,i[e])})),n.removeAttribute&&n.removeAttribute("data-ripples"),null===(e=this.mutationObserver)||void 0===e||e.takeRecords(),null===(t=this.mutationObserver)||void 0===t||t.disconnect(),this.mutationObserver=null,null===(r=this.resizeObserver)||void 0===r||r.disconnect(),this.resizeObserver=null}}}])}();function V(){var e=this.renderData,t=this.fadeData;if(!(0,a.isNull)(e)){var r,n,i,o=e.parentElement,s=window.getComputedStyle(o),u=s.backgroundSize,c=s.backgroundAttachment,l=s.backgroundPosition,f=/\s+/.test(r=l)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):K(r)?[r,"50%"]:{center:["50%","50%"],top:["50%","0%"],bottom:["50%","100%"],left:["0%","50%"],right:["100%","50%"]}[r],p={left:0,top:0,width:0,height:0};"fixed"===c?(p.height=window.innerHeight,p.left=window.screenX,p.top=window.screenY,p.width=window.innerWidth):(p.left=0,p.top=0,p.width=o.scrollWidth,p.height=o.scrollHeight);var h=t.backgroundInfo||{width:100,height:100},d=h.width,g=h.height;if("cover"===u){var m=Math.max(p.width/d,p.height/g);n=d*m,i=g*m}else if("contain"===u){var v=Math.min(p.width/d,p.height/g);n=d*v,i=g*v}else{var y=u.split(" ");n=y[0]||"",i=y[1]||n,K(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),K(i)?i=p.height*parseFloat(i)/100:"auto"!==i&&(i=parseFloat(i)),"auto"===n&&"auto"===i?(n=d,i=g):("auto"===n&&(n=d*(Number(i)/g)),"auto"===i&&(i=g*(Number(n)/d)))}var b=f&&f[0]||"0%",w=f&&f[1]||"0%";b=K(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),w=K(w)?(p.top+(p.height-Number(i))*parseFloat(w)/100).toString():(p.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([-Number(b)/n,-Number(w)/i]),e.renderProgram.uniforms.bottomRight=new Float32Array([e.renderProgram.uniforms.topLeft[0]+o.clientWidth/n,e.renderProgram.uniforms.topLeft[1]+o.clientHeight/i]);var S=Math.max(this.canvas.width,this.canvas.height);e.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/S,this.canvas.height/S])}}function K(e){return e.endsWith("%")}function J(){var e=this.gl,t=this.renderData;(0,a.isNull)(t)||(e.bindBuffer(e.ARRAY_BUFFER,t.quad),e.vertexAttribPointer(0,2,e.FLOAT,!1,0,0),e.drawArrays(e.TRIANGLE_FAN,0,4))}function Q(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,a.isNull)(t)){var n=t.textures,i=t.backgroundTexture,o=r.perturbance;e.bindFramebuffer(e.FRAMEBUFFER,null),e.viewport(0,0,this.canvas.width,this.canvas.height),e.enable(e.BLEND),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),e.useProgram(t.renderProgram.id),Reflect.apply(u,this,[i,0]),Reflect.apply(u,this,[n[0],1]),e.uniform1f(t.renderProgram.locations.perturbance,o),e.uniform2fv(t.renderProgram.locations.topLeft,t.renderProgram.uniforms.topLeft),e.uniform2fv(t.renderProgram.locations.bottomRight,t.renderProgram.uniforms.bottomRight),e.uniform2fv(t.renderProgram.locations.containerRatio,t.renderProgram.uniforms.containerRatio),e.uniform1i(t.renderProgram.locations.samplerBackground,0),e.uniform1i(t.renderProgram.locations.samplerRipples,1),Reflect.apply(J,this,[]),e.disable(e.BLEND)}}function ee(){var e=this.renderData;if(!(0,a.isNull)(e)){var t=e.bufferWriteIndex,r=e.bufferReadIndex;e.bufferWriteIndex=1-t,e.bufferReadIndex=1-r}}function te(){var e=this.gl,t=this.renderData,r=this.options;if(!(0,a.isNull)(t)){var n=t.updateProgram,i=t.textures,o=t.framebuffers,s=t.bufferWriteIndex,c=t.bufferReadIndex,l=r.resolution;e.viewport(0,0,l,l),e.bindFramebuffer(e.FRAMEBUFFER,o[s]),Reflect.apply(u,this,[i[c]]),e.useProgram(n.id),Reflect.apply(J,this,[]),Reflect.apply(ee,this,[])}}function re(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,a.isNull)(t)){var i=t.parentElement,o=n.isTransitioning,s=r.running,u=r.idleFluctuations,c=r.lastRunningState,l=getComputedStyle(i);n.backgroundInfo={width:parseInt(l.width),height:parseInt(l.height)},Reflect.apply(V,this,[]),s?(c||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),o&&this.fade(),Reflect.apply(te,this,[]),Reflect.apply(Q,this,[])):c&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(re,e,[])}))}}function ne(e,t,r){var n=this.renderData;if(!(0,a.isNull)(n)){var i=n.parentElement,o=window.getComputedStyle(i),s=parseInt(o.borderLeftWidth)||0,u=parseInt(o.borderTopWidth)||0,c=i.getBoundingClientRect(),l=e.clientX-c.left-s,f=e.clientY-c.top-u;this.drop(l,f,t,r)}}function ie(){var e=this,t=this.renderData,r=this.options;if(!(0,a.isNull)(t)){var n=t.parentElement,i=t.events,o=function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.visible&&r.running&&r.interactive&&(t.lastRaindropsFallTime=Date.now(),Reflect.apply(ne,e,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};i.mousemove=function(e){for(var t=r.accelerating;t--;)o(e)},i.touchmove=i.touchstart=function(e){for(var t=e.touches,r=0;r<t.length;r++)o(t[r])},i.mousedown=function(e){return o(e,!0)},Object.keys(i).forEach((function(e){return null==n?void 0:n.addEventListener(e,i[e],{passive:!0})}))}}var oe="\n attribute vec2 vertex;\n varying vec2 coord;\n void main() {\n coord = vertex * 0.5 + 0.5;\n gl_Position = vec4(vertex, 0.0, 1.0);\n }";function ae(){var e=this.gl,t=this.renderData;if(!(0,a.isNull)(t)){var r=t.textureDelta;t.dropProgram=s(oe,"precision highp float;\n\n const float PI = 3.141592653589793;\n uniform sampler2D texture;\n uniform vec2 center;\n uniform float radius;\n uniform float strength;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n\n float drop = max(0.0, 1.0 - length(center * 0.5 + 0.5 - coord) / radius);\n drop = 0.5 - cos(drop * PI) * 0.5;\n info.r += drop * strength;\n gl_FragColor = info;\n }",e);var n=t.updateProgram=s(oe,"\n precision highp float;\n\n uniform sampler2D texture;\n uniform vec2 delta;\n\n varying vec2 coord;\n\n void main() {\n vec4 info = texture2D(texture, coord);\n \n vec2 dx = vec2(delta.x, 0.0);\n vec2 dy = vec2(0.0, delta.y);\n \n float average = (\n texture2D(texture, coord - dx).r +\n texture2D(texture, coord - dy).r +\n texture2D(texture, coord + dx).r +\n texture2D(texture, coord + dy).r\n ) * 0.25;\n \n info.g += (average - info.r) * 2.0;\n info.g *= 0.995;\n info.r += info.g;\n \n gl_FragColor = info;\n }\n ",this.gl);e.uniform2fv(n.locations.delta,r),t.renderProgram=s("\n precision highp float;\n\n attribute vec2 vertex;\n uniform vec2 topLeft;\n uniform vec2 bottomRight;\n uniform vec2 containerRatio;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n void main() {\n backgroundCoord = mix(topLeft, bottomRight, vertex * 0.5 + 0.5);\n backgroundCoord.y = 1.0 - backgroundCoord.y;\n ripplesCoord = vec2(vertex.x, -vertex.y) * containerRatio * 0.5 + 0.5;\n gl_Position = vec4(vertex.x, -vertex.y, 0.0, 1.0);\n }\n ","\n precision highp float;\n\n uniform sampler2D samplerBackground;\n uniform sampler2D samplerRipples;\n uniform vec2 delta;\n\n uniform float perturbance;\n varying vec2 ripplesCoord;\n varying vec2 backgroundCoord;\n\n void main() {\n float height = texture2D(samplerRipples, ripplesCoord).r;\n float heightX = texture2D(samplerRipples, vec2(ripplesCoord.x + delta.x, ripplesCoord.y)).r;\n float heightY = texture2D(samplerRipples, vec2(ripplesCoord.x, ripplesCoord.y + delta.y)).r;\n vec3 dx = vec3(delta.x, heightX - height, 0.0);\n vec3 dy = vec3(0.0, heightY - height, delta.y);\n vec2 offset = -normalize(cross(dy, dx)).xz;\n float specular = pow(max(0.0, dot(offset, normalize(vec2(-0.6, 1.0)))), 4.0);\n gl_FragColor = texture2D(samplerBackground, backgroundCoord + offset * perturbance) + specular;\n }",e),e.uniform2fv(t.renderProgram.locations.delta,r)}}function se(){var e=this.gl,t=this.renderData;if(!(0,a.isNull)(t)){var r=t.backgroundTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,r),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,1),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}}function ue(e){var t=this.gl,r=this.renderData,n=this.fadeData;if(!(0,a.isNull)(r)){var i=r.backgroundTexture,o=r.parentElement,s=n.backgroundInfo,u=s.width,c=s.height,l=function(e){return(0,a.isZero)(e&e-1)},f=l(u)&&l(c)?t.REPEAT:t.CLAMP_TO_EDGE;t.bindTexture(t.TEXTURE_2D,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,f),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,f),o.dataset.render_img=e.tag,o.dataset.render_width=e.width+"px",o.dataset.render_height=e.height+"px",t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e.resource)}}function ce(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if(!(0,a.isNull)(t)&&this.config){var i=t.textures,o=t.framebuffers,s=r.resolution,u=this.gl,c=1/s;t.textureDelta=new Float32Array([c,c]),this.config.extensions.forEach((function(e){return u.getExtension(e)}));for(var l=this.config.arrayType,f=l?new l(s*s*4):null,p=this.config,h=0;h<2;h++){var d=u.createTexture(),g=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,g),u.bindTexture(u.TEXTURE_2D,d),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,p.linearSupport?u.LINEAR:u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),u.texImage2D(u.TEXTURE_2D,0,u.RGBA,s,s,0,u.RGBA,p.type,f),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,d,0),i.push(d),o.push(g)}t.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,t.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),Reflect.apply(ae,this,[]),Reflect.apply(se,this,[]),Reflect.apply($,this,[]),u.clearColor(0,0,0,0),u.blendFunc(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA),r.visible=!0,r.running=!0,Reflect.apply(ie,this,[]),Reflect.apply(ue,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(re,e,[])}))}}function le(){var e=this.renderData,t=this.fadeData;if(!(0,a.isNull)(e)){var r=e.parentElement,n=t.backgroundInfo,i=r.offsetWidth,o=r.offsetHeight;this.canvas.width=n.width=i,this.canvas.height=n.height=o,Reflect.apply($,this,[])}}function fe(){var e=this.renderData,t=this.fadeData;(0,a.isNull)(e)||(e.destroy(),Object.keys(e).forEach((function(t){return e[t]=null})),this.renderData=null),t.destroy(),Object.keys(t).forEach((function(e){return t[e]=null})),this.fadeData=null,this.gl&&(this.gl=null)}function pe(e,t,r,n){var i=this.renderData,o=this.options,s=this.gl;if(!(0,a.isNull)(i)){var c=i.parentElement,l=i.dropProgram,f=i.textures,p=i.framebuffers,h=i.bufferWriteIndex,d=i.bufferReadIndex,g=o.resolution,m=c.offsetWidth,v=c.offsetHeight,y=Math.max(m,v);r/=y;var b=new Float32Array([(2*e-m)/y,(v-2*t)/y]);s.viewport(0,0,g,g),s.bindFramebuffer(s.FRAMEBUFFER,p[h]),Reflect.apply(u,this,[f[d]]),s.useProgram(l.id),s.uniform2fv(l.locations.center,b),s.uniform1f(l.locations.radius,r),s.uniform1f(l.locations.strength,n),Reflect.apply(J,this,[]),Reflect.apply(ee,this,[])}}function he(e){"@babel/helpers - typeof";return he="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},he(e)}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,me(n.key),n)}}function ge(e,t,r){return(t=me(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function me(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=he(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==he(t)?t:t+""}function ve(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function ye(e,t){return e.get(we(e,t))}function be(e,t,r){return e.set(we(e,t),r),r}function we(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var Se=new WeakMap,Ee=new WeakMap,Re=new WeakMap,Pe=new WeakMap,Te=new WeakMap,xe=new WeakMap,Oe=new WeakMap,Ie=function(){return function(e,t,r){return t&&de(e.prototype,t),r&&de(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ve(this,Se,b.accelerating),ve(this,Ee,b.interactive),ve(this,Re,b.resolution),ve(this,Pe,b.perturbance),ve(this,Te,b.dropRadius),ge(this,"imgUrl",b.imgUrl),ve(this,xe,b.idleFluctuations),ve(this,Oe,b.raindropsTimeInterval),ge(this,"crossOrigin","no-cors"),ge(this,"visible",!1),ge(this,"running",!1),ge(this,"lastRunningState",!1),this.perturbance=t.perturbance,this.resolution=t.resolution,this.raindropsTimeInterval=t.raindropsTimeInterval,this.accelerating=t.accelerating,this.interactive=t.interactive,this.dropRadius=t.dropRadius,this.imgUrl=t.imgUrl,this.idleFluctuations=t.idleFluctuations,this.running=Boolean(null===(r=t.playingState)||void 0===r||r),this.crossOrigin=t.crossOrigin}),[{key:"accelerating",get:function(){return ye(Se,this)},set:function(e){e>100||e<2||be(Se,this,e)}},{key:"interactive",get:function(){return ye(Ee,this)},set:function(e){(0,a.isBoolean)(e)&&be(Ee,this,e)}},{key:"resolution",get:function(){return ye(Re,this)},set:function(e){e<100||e>550||be(Re,this,e)}},{key:"perturbance",get:function(){return ye(Pe,this)},set:function(e){e<1e-4||e>1||be(Pe,this,e)}},{key:"dropRadius",get:function(){return ye(Te,this)},set:function(e){!isFinite(e)||e<10||be(Te,this,e)}},{key:"idleFluctuations",get:function(){return ye(xe,this)},set:function(e){(0,a.isBoolean)(e)&&be(xe,this,e)}},{key:"raindropsTimeInterval",get:function(){return ye(Oe,this)},set:function(e){e<10||e>12e3||be(Oe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}}])}();function ke(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout((function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(ke,e,[]);"image"!==r.lastDrawImage.kind&&r.run()}),2*t.raindropsTimeInterval)}function Ae(){var e=this.renderData,t=this.fadeData,r=this.options,n=t.toBeList;if((0,a.isNull)(e))return t.isTransitioning=!1,void Reflect.apply(ke,this,[]);if((0,a.isEmptyArray)(n))return t.isTransitioning=!1,void Reflect.apply(ke,this,[]);if(0===t.drawProgress&&n.forEach((function(e){})),t.drawProgress>1e3)if(t.isTransitioning=!1,t.lastDrawImage=n.shift(),Reflect.apply(ue,this,[t.lastDrawImage]),(0,a.isEmptyArray)(n)){var i=e.lastUseStyle;((0,a.isNull)(r.imgUrl)||(0,a.isBusinessEmptyString)(r.imgUrl)||(0,a.isZero)(r.imgUrl.length))&&c(i.backgroundColor)&&l(i.backgroundImage)&&(Reflect.apply(N,this,[!1]),Reflect.apply(ke,this,[]))}else Reflect.apply(ke,this,[]);else{var o=t.lastDrawImage,s=t.backgroundInfo;t.drawProgress+=18;var u=document.createElement("canvas"),f=u.getContext("2d");if(!((0,a.isNull)(f)||(0,a.isNull)(o.resource)||(0,a.isEmptyArray)(n))){var p=s.width,h=s.height;u.width=p,u.height=h,f.clearRect(0,0,p,h),f.drawImage(o.resource,0,0,p,h),f.globalAlpha=t.drawProgress/1e3,f.drawImage(n[0].resource,0,0,p,h),f.globalAlpha=1;var d={resource:u,width:p,height:h,kind:"mix",tag:"".concat(o.tag," >> ").concat(n[0].tag)};Reflect.apply(ue,this,[d]),n.length>1&&(t.lastDrawImage=d,n.shift(),t.drawProgress=0)}}}function _e(e){"@babel/helpers - typeof";return _e="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(e)}function De(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,je(n.key),n)}}function Ce(e,t,r){return(t=je(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e){var t=function(e,t){if("object"!=_e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_e(t)?t:t+""}var Fe=function(){return function(e,t,r){return t&&De(e.prototype,t),r&&De(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ce(this,"backgroundInfo",{width:0,height:0}),Ce(this,"transparentId",setTimeout(Boolean)),Ce(this,"lastDrawImage",void 0),Ce(this,"toBeList",[]),Ce(this,"drawProgress",0),Ce(this,"isTransitioning",!1);var r,n,i=t.renderData;if((0,a.isNull)(i))r=10,n=10;else{var o=getComputedStyle(i.parentElement);r=parseInt(o.width),n=parseInt(o.height)}this.backgroundInfo={width:r,height:n},this.lastDrawImage={resource:F(r,n),width:r,height:n,kind:"default",tag:""}}),[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId)}}])}();function Ne(e){"@babel/helpers - typeof";return Ne="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},Ne(e)}function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ue(Object(r),!0).forEach((function(t){Ge(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function Me(e,t,r){return t=ze(t),function(e,t){if(t&&("object"==Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$e()?Reflect.construct(t,r||[],ze(e).constructor):t.apply(e,r))}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}function Xe(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function Ge(e,t,r){return(t=He(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function He(e){var t=function(e,t){if("object"!=Ne(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ne(t)?t:t+""}function Ye(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var qe=new WeakMap,Ze=function(e){function t(e,r){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ge(n=Me(this,t,[e]),"renderData",null),Ge(n,"options",void 0),Ge(n,"fadeData",void 0),Ge(n,"defaults",b),Ge(n,"initialized",!1),Xe(n,qe,(0,y.debounce)(le,{this:n})),Object.defineProperties(n,{defaults:{value:n.defaults,writable:!1,enumerable:!1,configurable:!1}}),n.options=new Ie(Be(Be({},n.defaults),r)),n.renderData=new Z(e,n.reloadBackground,n),n.fadeData=new Fe(n),(0,a.isFalse)(n.initState)||(0,a.isNull)(e.parentElement)||(0,a.isNull)(n.config)||(0,a.isNull)(n.gl)?n.initState=!1:(!function(e){var t=e.parentElement;e.width=t.clientWidth,e.height=t.clientHeight,(0,o.setStyle)(e,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(e),Reflect.apply(ce,n,[])),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(t,e),function(e,t,r){return t&&Le(e.prototype,t),r&&Le(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"raindropsFall",value:function(){var e=this.renderData,t=this.options,r=this.fadeData;if(!(0,a.isNull)(e)){var n=r.backgroundInfo,i=e.lastRaindropsFallTime,o=t.raindropsTimeInterval,s=t.dropRadius,u=Date.now();if(!(u-i<o)){e.lastRaindropsFallTime=u;var c=function(e){return(0,y.getRandomInt)(e)},l=n.width,f=n.height;this.drop(c(l),c(f),s,.03)}}}},{key:"drop",value:function(e,t,r,n){Reflect.apply(pe,this,[e,t,r,n])}},{key:"fade",value:function(){Reflect.apply(Ae,this,[])}},{key:"reloadBackground",value:function(){Ye(qe,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(fe,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply(z,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply(X,this,[])}},{key:"pause",value:function(){this.options.running=!1}},{key:"play",value:function(){this.options.running=!0}},{key:"changePlayingState",value:function(){var e=this.options;e.running=!e.running}},{key:"set",value:function(e,t){"imgUrl"===e?(this.options.imgUrl=t,Reflect.apply($,this,[])):this.options[e]=t}}])}(v);function Ve(e,t){var r=(0,i.useRef)(null);return(0,i.useEffect)((function(){if(!(0,a.isNull)(e.current))return r.current=new Ze(e.current,t&&t.option),function(){var e;return null===(e=r.current)||void 0===e?void 0:e.destroy()}}),[]),r}},581:(e,t,r)=>{r.d(t,{Ay:()=>Gt});var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.create;function i(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var o=r(649),a=r(833),s=r.n(a),u="-ms-",c="-moz-",l="-webkit-",f="comm",p="rule",h="decl",d="@keyframes",g=Math.abs,m=String.fromCharCode,v=Object.assign;function y(e){return e.trim()}function b(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,r){return e.replace(t,r)}function S(e,t,r){return e.indexOf(t,r)}function E(e,t){return 0|e.charCodeAt(t)}function R(e,t,r){return e.slice(t,r)}function P(e){return e.length}function T(e){return e.length}function x(e,t){return t.push(e),e}function O(e,t){return e.filter((function(e){return!b(e,t)}))}var I=1,k=1,A=0,_=0,D=0,C="";function j(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:I,column:k,length:a,return:"",siblings:s}}function F(e,t){return v(j("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function N(e){for(;e.root;)e=F(e.root,{children:[e]});x(e,e.siblings)}function U(){return D=_>0?E(C,--_):0,k--,10===D&&(k=1,I--),D}function B(){return D=_<A?E(C,_++):0,k++,10===D&&(k=1,I++),D}function L(){return E(C,_)}function M(){return _}function $(e,t){return R(C,e,t)}function z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(e){return I=k=1,A=P(C=e),_=0,[]}function X(e){return C="",e}function G(e){return y($(_-1,q(91===e?e+2:40===e?e+1:e)))}function H(e){for(;(D=L())&&D<33;)B();return z(e)>2||z(D)>3?"":" "}function Y(e,t){for(;--t&&B()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return $(e,M()+(t<6&&32==L()&&32==B()))}function q(e){for(;B();)switch(D){case e:return _;case 34:case 39:34!==e&&39!==e&&q(D);break;case 40:41===e&&q(e);break;case 92:B()}return _}function Z(e,t){for(;B()&&e+D!==57&&(e+D!==84||47!==L()););return"/*"+$(t,_-1)+"*"+m(47===e?e:B())}function V(e){for(;!z(L());)B();return $(e,_)}function K(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function J(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case f:return"";case d:return e.return=e.value+"{"+K(e.children,n)+"}";case p:if(!P(e.value=e.props.join(",")))return""}return P(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function Q(e,t,r){switch(function(e,t){return 45^E(e,0)?(((t<<2^E(e,0))<<2^E(e,1))<<2^E(e,2))<<2^E(e,3):0}(e,t)){case 5103:return l+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return l+e+e;case 4789:return c+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return l+e+c+e+u+e+e;case 5936:switch(E(e,t+11)){case 114:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return l+e+u+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return l+e+u+e+e;case 6165:return l+e+u+"flex-"+e+e;case 5187:return l+e+w(e,/(\w+).+(:[^]+)/,l+"box-$1$2"+u+"flex-$1$2")+e;case 5443:return l+e+u+"flex-item-"+w(e,/flex-|-self/g,"")+(b(e,/flex-|baseline/)?"":u+"grid-row-"+w(e,/flex-|-self/g,""))+e;case 4675:return l+e+u+"flex-line-pack"+w(e,/align-content|flex-|-self/g,"")+e;case 5548:return l+e+u+w(e,"shrink","negative")+e;case 5292:return l+e+u+w(e,"basis","preferred-size")+e;case 6060:return l+"box-"+w(e,"-grow","")+l+e+u+w(e,"grow","positive")+e;case 4554:return l+w(e,/([^-])(transform)/g,"$1"+l+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,l+"box-pack:$3"+u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+l+e+e;case 4200:if(!b(e,/flex-|baseline/))return u+"grid-column-align"+R(e,t)+e;break;case 2592:case 3360:return u+w(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,b(e.props,/grid-\w+-end/)}))?~S(e+(r=r[t].value),"span",0)?e:u+w(e,"-start","")+e+u+"grid-row-span:"+(~S(r,"span",0)?b(r,/\d+/):+b(r,/\d+/)-+b(e,/\d+/))+";":u+w(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return b(e.props,/grid-\w+-start/)}))?e:u+w(w(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,l+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(P(e)-1-t>6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+l+"$2-$3$1"+c+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~S(e,"stretch",0)?Q(w(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,i,o,a,s){return u+r+":"+n+s+(i?u+r+"-span:"+(o?a:+a-+n)+s:"")+e}));case 4949:if(121===E(e,t+6))return w(e,":",":"+l)+e;break;case 6444:switch(E(e,45===E(e,14)?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+l+(45===E(e,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+u+"$2box$3")+e;case 100:return w(e,":",":"+u)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ee(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=Q(e.value,e.length,r));case d:return K([F(e,{value:w(e.value,"@","@"+l)})],n);case p:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(b(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":N(F(e,{props:[w(t,/:(read-\w+)/,":-moz-$1")]})),N(F(e,{props:[t]})),v(e,{props:O(r,n)});break;case"::placeholder":N(F(e,{props:[w(t,/:(plac\w+)/,":"+l+"input-$1")]})),N(F(e,{props:[w(t,/:(plac\w+)/,":-moz-$1")]})),N(F(e,{props:[w(t,/:(plac\w+)/,u+"input-$1")]})),N(F(e,{props:[t]})),v(e,{props:O(r,n)})}return""}))}}function te(e){return X(re("",null,null,null,[""],e=W(e),0,[0],e))}function re(e,t,r,n,i,o,a,s,u){for(var c=0,l=0,f=a,p=0,h=0,d=0,v=1,y=1,b=1,R=0,T="",O=i,I=o,k=n,A=T;y;)switch(d=R,R=B()){case 40:if(108!=d&&58==E(A,f-1)){-1!=S(A+=w(G(R),"&","&\f"),"&\f",g(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:A+=G(R);break;case 9:case 10:case 13:case 32:A+=H(d);break;case 92:A+=Y(M()-1,7);continue;case 47:switch(L()){case 42:case 47:x(ie(Z(B(),M()),t,r,u),u);break;default:A+="/"}break;case 123*v:s[c++]=P(A)*b;case 125*v:case 59:case 0:switch(R){case 0:case 125:y=0;case 59+l:-1==b&&(A=w(A,/\f/g,"")),h>0&&P(A)-f&&x(h>32?oe(A+";",n,r,f-1,u):oe(w(A," ","")+";",n,r,f-2,u),u);break;case 59:A+=";";default:if(x(k=ne(A,t,r,c,l,i,s,T,O=[],I=[],f,o),o),123===R)if(0===l)re(A,t,k,k,O,o,f,s,I);else switch(99===p&&110===E(A,3)?100:p){case 100:case 108:case 109:case 115:re(e,k,k,n&&x(ne(e,k,k,0,0,i,s,T,i,O=[],f,I),I),i,I,f,s,n?O:I);break;default:re(A,k,k,k,[""],I,0,s,I)}}c=l=h=0,v=b=1,T=A="",f=a;break;case 58:f=1+P(A),h=d;default:if(v<1)if(123==R)--v;else if(125==R&&0==v++&&125==U())continue;switch(A+=m(R),R*v){case 38:b=l>0?1:(A+="\f",-1);break;case 44:s[c++]=(P(A)-1)*b,b=1;break;case 64:45===L()&&(A+=G(B())),p=L(),l=f=P(T=A+=V(M())),R++;break;case 45:45===d&&2==P(A)&&(v=0)}}return o}function ne(e,t,r,n,i,o,a,s,u,c,l,f){for(var h=i-1,d=0===i?o:[""],m=T(d),v=0,b=0,S=0;v<n;++v)for(var E=0,P=R(e,h+1,h=g(b=a[v])),x=e;E<m;++E)(x=y(b>0?d[E]+" "+P:w(P,/&\f/g,d[E])))&&(u[S++]=x);return j(e,t,r,0===i?p:s,u,c,l,f)}function ie(e,t,r,n){return j(e,t,r,f,m(D),R(e,2,-2),0,n)}function oe(e,t,r,n,i){return j(e,t,r,h,R(e,0,n),R(e,n+1,-1),n,i)}var ae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},se="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ue="active",ce="data-styled-version",le="6.1.19",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"undefined"!=typeof document,he=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)),de=(new Set,Object.freeze([])),ge=Object.freeze({});function me(e,t,r){return void 0===r&&(r=ge),e.theme!==r.theme&&e.theme||t||r.theme}var ve=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"]),ye=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ye,"-").replace(be,"")}var Se=/(a)(d)/gi,Ee=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Ee(t%52)+r;return(Ee(t%52)+r).replace(Se,"$1-$2")}var Pe,Te=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},xe=function(e){return Te(5381,e)};function Oe(e){return Re(xe(e)>>>0)}function Ie(e){return e.displayName||e.name||"Component"}function ke(e){return"string"==typeof e&&!0}var Ae="function"==typeof Symbol&&Symbol.for,_e=Ae?Symbol.for("react.memo"):60115,De=Ae?Symbol.for("react.forward_ref"):60112,Ce={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},je={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ne=((Pe={})[De]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pe[_e]=Fe,Pe);function Ue(e){return("type"in(t=e)&&t.type.$$typeof)===_e?Fe:"$$typeof"in e?Ne[e.$$typeof]:Ce;var t}var Be=Object.defineProperty,Le=Object.getOwnPropertyNames,Me=Object.getOwnPropertySymbols,$e=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,We=Object.prototype;function Xe(e,t,r){if("string"!=typeof t){if(We){var n=ze(t);n&&n!==We&&Xe(e,n,r)}var i=Le(t);Me&&(i=i.concat(Me(t)));for(var o=Ue(e),a=Ue(t),s=0;s<i.length;++s){var u=i[s];if(!(u in je||r&&r[u]||a&&u in a||o&&u in o)){var c=$e(t,u);try{Be(e,u,c)}catch(e){}}}}return e}function Ge(e){return"function"==typeof e}function He(e){return"object"==typeof e&&"styledComponentId"in e}function Ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qe(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ze(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ve(e,t,r){if(void 0===r&&(r=!1),!r&&!Ze(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ve(e[n],t[n]);else if(Ze(t))for(var n in t)e[n]=Ve(e[n],t[n]);return e}function Ke(e,t){Object.defineProperty(e,"toString",{value:t})}function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Qe=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,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw Je(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),et=new Map,tt=new Map,rt=1,nt=function(e){if(et.has(e))return et.get(e);for(;tt.has(rt);)rt++;var t=rt++;return et.set(e,t),tt.set(t,e),t},it=function(e,t){rt=t+1,et.set(e,t),tt.set(t,e)},ot="style[".concat(se,"][").concat(ce,'="').concat(le,'"]'),at=new RegExp("^".concat(se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),st=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},ut=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(fe),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(at);if(u){var c=0|parseInt(u[1],10),l=u[2];0!==c&&(it(l,c),st(e,l,u[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},ct=function(e){for(var t=document.querySelectorAll(ot),r=0,n=t.length;r<n;r++){var i=t[r];i&&i.getAttribute(se)!==ue&&(ut(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function lt(){return r.nc}var ft=function(e){var t=document.head,r=e||t,n=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(se,"]")));return t[t.length-1]}(r),o=void 0!==i?i.nextSibling:null;n.setAttribute(se,ue),n.setAttribute(ce,le);var a=lt();return a&&n.setAttribute("nonce",a),r.insertBefore(n,o),n},pt=function(){function e(e){this.element=ft(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw Je(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}(),ht=function(){function e(e){this.element=ft(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,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}(),dt=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}(),gt=pe,mt={isServer:!pe,useCSSOMInjection:!he},vt=function(){function e(e,t,r){void 0===e&&(e=ge),void 0===t&&(t={});var i=this;this.options=n(n({},mt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&pe&>&&(gt=!1,ct(this)),Ke(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=function(r){var i=function(e){return tt.get(e)}(r);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(r);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(se,".g").concat(r,'[id="').concat(i,'"]'),u="";void 0!==o&&o.forEach((function(e){e.length>0&&(u+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(fe)},o=0;o<r;o++)i(o);return n}(i)}))}return e.registerId=function(e){return nt(e)},e.prototype.rehydrate=function(){!this.server&&pe&&ct(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&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,r=e.target;return e.isServer?new dt(r):t?new pt(r):new ht(r)}(this.options),new Qe(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(nt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(nt(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(nt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),yt=/&/g,bt=/^\s*\/\/.*$/gm;function wt(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=wt(e.children,t)),e}))}function St(e){var t,r,n,i=void 0===e?ge:e,o=i.options,a=void 0===o?ge:o,s=i.plugins,u=void 0===s?de:s,c=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},l=u.slice();l.push((function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(yt,r).replace(n,c))})),a.prefix&&l.push(ee),l.push(J);var f=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,r=i,n=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(bt,""),c=te(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);a.namespace&&(c=wt(c,a.namespace));var f,p,h,d=[];return K(c,(f=l.concat((h=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&h(e)})),p=T(f),function(e,t,r,n){for(var i="",o=0;o<p;o++)i+=f[o](e,t,r,n)||"";return i})),d};return f.hash=u.length?u.reduce((function(e,t){return t.name||Je(15),Te(e,t.name)}),5381).toString():"",f}var Et=new vt,Rt=St(),Pt=o.default.createContext({shouldForwardProp:void 0,styleSheet:Et,stylis:Rt}),Tt=(Pt.Consumer,o.default.createContext(void 0));function xt(){return(0,o.useContext)(Pt)}function Ot(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=xt().styleSheet,a=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),u=(0,o.useMemo)((function(){return St({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)((function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var c=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:u}}),[e.shouldForwardProp,a,u]);return o.default.createElement(Pt.Provider,{value:c},o.default.createElement(Tt.Provider,{value:u},e.children))}var It=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Rt);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ke(this,(function(){throw Je(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Rt),this.name+e.hash},e}(),kt=function(e){return e>="A"&&e<="Z"};function At(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;kt(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var _t=function(e){return null==e||!1===e||""===e},Dt=function(e){var t,r,n=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!_t(a)&&(Array.isArray(a)&&a.isCss||Ge(a)?n.push("".concat(At(o),":"),a,";"):Ze(a)?n.push.apply(n,i(i(["".concat(o," {")],Dt(a),!1),["}"],!1)):n.push("".concat(At(o),": ").concat((t=o,null==(r=a)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in ae||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ct(e,t,r,n){return _t(e)?[]:He(e)?[".".concat(e.styledComponentId)]:Ge(e)?!Ge(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Ct(e(t),t,r,n):e instanceof It?r?(e.inject(r,n),[e.getName(n)]):[e]:Ze(e)?Dt(e):Array.isArray(e)?Array.prototype.concat.apply(de,e.map((function(e){return Ct(e,t,r,n)}))):[e.toString()];var i}function jt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ge(r)&&!He(r))return!1}return!0}var Ft=xe(le),Nt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&jt(e),this.componentId=t,this.baseHash=Te(Ft,t),this.baseStyle=r,vt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ye(n,this.staticRulesId);else{var i=qe(Ct(this.rules,e,t,r)),o=Re(Te(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=Ye(n,o),this.staticRulesId=o}else{for(var s=Te(this.baseHash,r.hash),u="",c=0;c<this.rules.length;c++){var l=this.rules[c];if("string"==typeof l)u+=l;else if(l){var f=qe(Ct(l,e,t,r));s=Te(s,f+c),u+=f}}if(u){var p=Re(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(u,".".concat(p),void 0,this.componentId)),n=Ye(n,p)}}return n},e}(),Ut=o.default.createContext(void 0);Ut.Consumer;var Bt={};new Set;function Lt(e,t,r){var i=He(e),a=e,s=!ke(e),u=t.attrs,c=void 0===u?de:u,l=t.componentId,f=void 0===l?function(e,t){var r="string"!=typeof e?"sc":we(e);Bt[r]=(Bt[r]||0)+1;var n="".concat(r,"-").concat(Oe(le+r+Bt[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,p=t.displayName,h=void 0===p?function(e){return ke(e)?"styled.".concat(e):"Styled(".concat(Ie(e),")")}(e):p,d=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,g=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,m=t.shouldForwardProp;if(i&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;m=function(e,t){return v(e,t)&&y(e,t)}}else m=v}var b=new Nt(r,d,i?a.componentStyle:void 0);function w(e,t){return function(e,t,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,l=e.target,f=o.default.useContext(Ut),p=xt(),h=e.shouldForwardProp||p.shouldForwardProp,d=me(t,f,s)||ge,g=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=Ge(i=e[a])?i(o):i;for(var u in s)o[u]="className"===u?Ye(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=Ye(o.className,t.className)),o}(i,t,d),m=g.as||l,v={};for(var y in g)void 0===g[y]||"$"===y[0]||"as"===y||"theme"===y&&g.theme===d||("forwardedAs"===y?v.as=g.forwardedAs:h&&!h(y,m)||(v[y]=g[y]));var b=function(e,t){var r=xt();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,g),w=Ye(u,c);return b&&(w+=" "+b),g.className&&(w+=" "+g.className),v[ke(m)&&!ve.has(m)?"class":"className"]=w,r&&(v.ref=r),(0,o.createElement)(m,v)}(S,e,t)}w.displayName=h;var S=o.default.forwardRef(w);return S.attrs=g,S.componentStyle=b,S.displayName=h,S.shouldForwardProp=m,S.foldedComponentIds=i?Ye(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=d,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++)Ve(e,i[n],!0);return e}({},a.defaultProps,e):e}}),Ke(S,(function(){return".".concat(S.styledComponentId)})),s&&Xe(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Mt(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var $t=function(e){return Object.assign(e,{isCss:!0})};function zt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ge(e)||Ze(e))return $t(Ct(Mt(de,i([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ct(n):$t(Ct(Mt(n,t)))}function Wt(e,t,r){if(void 0===r&&(r=ge),!t)throw Je(1,t);var o=function(n){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,r,zt.apply(void 0,i([n],o,!1)))};return o.attrs=function(i){return Wt(e,t,n(n({},r),{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Wt(e,t,n(n({},r),i))},o}var Xt=function(e){return Wt(Lt,e)},Gt=Xt;ve.forEach((function(e){Gt[e]=Xt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=jt(e),vt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(qe(Ct(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&vt.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=lt(),n=qe([r&&'nonce="'.concat(r,'"'),"".concat(se,'="true"'),"".concat(ce,'="').concat(le,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Je(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Je(2);var r=e.instance.toString();if(!r)return[];var i=((t={})[se]="",t[ce]=le,t.dangerouslySetInnerHTML={__html:r},t),a=lt();return a&&(i.nonce=a),[o.default.createElement("style",n({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new vt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Je(2);return o.default.createElement(Ot,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Je(3)}})(),"__sc-".concat(se,"__")},649:(e,t,r)=>{e.exports=(e=>{var t={};return r.d(t,e),t})({createElement:()=>n.createElement,default:()=>n.default,forwardRef:()=>n.forwardRef,useContext:()=>n.useContext,useEffect:()=>n.useEffect,useImperativeHandle:()=>n.useImperativeHandle,useMemo:()=>n.useMemo,useRef:()=>n.useRef,useState:()=>n.useState})},833:e=>{e.exports=function(e,t,r,n){var i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=r?r.call(n,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return i[e](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.nc=void 0;var s={};a.d(s,{z:()=>b});var u=a(649),c=a(377),l=a(362);var f=a(581);function p(e){"@babel/helpers - typeof";return p="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},p(e)}var h,d=["children","style"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=f.Ay.div(h||(h=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n width: 100%;\n height: 100%;\n position: relative;\n top: 0px;\n left: 0px;\n z-index: 1;\n"]))),b=(0,u.forwardRef)((function(e,t){var r=e.children,n=e.style,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,d),o=(0,u.useRef)(null),a=(0,c.n)(o,i);return function(e,t){(0,u.useEffect)((function(){if(t.option&&e.current){var r=t.option;Object.keys(e.current.defaults).forEach((function(t){!(0,l.isUndefined)(r[t])&&e.current&&e.current.set(t,r[t])}))}}),[t.option])}(a,i),(0,u.useImperativeHandle)(t,(function(){return{toggleState:function(){var e;null===(e=a.current)||void 0===e||e.changePlayingState()},get state(){var e,t;return null!==(e=null===(t=a.current)||void 0===t?void 0:t.options.playingState)&&void 0!==e&&e},pause:function(){var e;null===(e=a.current)||void 0===e||e.pause()},set:function(e){if(!(0,l.isUndefined)(e))for(var t=Object.keys(e),r=0,n=t.length;r<n;r++){var i,o=t[r];null===(i=a.current)||void 0===i||i.set(o,e[o])}}}})),u.default.createElement(y,{style:m({backgroundRepeat:"round"},n)},u.default.createElement("canvas",{ref:o,"data-earthnut-ui":"canvas"}),r)}));b.displayName="en-background-ripple";const w=s.z;export{w as BackgroundRipple};
|
package/Layout/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";(()=>{var e={570:e=>{"use strict";e.exports=require("a-type-of-js")},581:(e,t,n)=>{"use strict";n.d(t,{AH:()=>Mt,Ay:()=>qt,I4:()=>qt});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,a=0,o=t.length;a<o;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var o=n(953),i=n.n(o),s=n(833),c=n.n(s),u="-ms-",l="-moz-",f="-webkit-",d="comm",p="rule",h="decl",y="@keyframes",g=Math.abs,m=String.fromCharCode,v=Object.assign;function b(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,n){return e.replace(t,n)}function O(e,t,n){return e.indexOf(t,n)}function x(e,t){return 0|e.charCodeAt(t)}function P(e,t,n){return e.slice(t,n)}function j(e){return e.length}function $(e){return e.length}function A(e,t){return t.push(e),e}function E(e,t){return e.filter((function(e){return!w(e,t)}))}var I=1,N=1,C=0,k=0,R=0,T="";function _(e,t,n,r,a,o,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:I,column:N,length:i,return:"",siblings:s}}function z(e,t){return v(_("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function H(e){for(;e.root;)e=z(e.root,{children:[e]});A(e,e.siblings)}function D(){return R=k>0?x(T,--k):0,N--,10===R&&(N=1,I--),R}function L(){return R=k<C?x(T,k++):0,N++,10===R&&(N=1,I++),R}function F(){return x(T,k)}function B(){return k}function G(e,t){return P(T,e,t)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function W(e){return I=N=1,C=j(T=e),k=0,[]}function Y(e){return T="",e}function q(e){return b(G(k-1,Z(91===e?e+2:40===e?e+1:e)))}function U(e){for(;(R=F())&&R<33;)L();return M(e)>2||M(R)>3?"":" "}function V(e,t){for(;--t&&L()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return G(e,B()+(t<6&&32==F()&&32==L()))}function Z(e){for(;L();)switch(R){case e:return k;case 34:case 39:34!==e&&39!==e&&Z(R);break;case 40:41===e&&Z(e);break;case 92:L()}return k}function J(e,t){for(;L()&&e+R!==57&&(e+R!==84||47!==F()););return"/*"+G(t,k-1)+"*"+m(47===e?e:L())}function K(e){for(;!M(F());)L();return G(e,k)}function Q(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function X(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case d:return"";case y:return e.return=e.value+"{"+Q(e.children,r)+"}";case p:if(!j(e.value=e.props.join(",")))return""}return j(n=Q(e.children,r))?e.return=e.value+"{"+n+"}":""}function ee(e,t,n){switch(function(e,t){return 45^x(e,0)?(((t<<2^x(e,0))<<2^x(e,1))<<2^x(e,2))<<2^x(e,3):0}(e,t)){case 5103:return f+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return f+e+e;case 4789:return l+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return f+e+l+e+u+e+e;case 5936:switch(x(e,t+11)){case 114:return f+e+u+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return f+e+u+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return f+e+u+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return f+e+u+e+e;case 6165:return f+e+u+"flex-"+e+e;case 5187:return f+e+S(e,/(\w+).+(:[^]+)/,f+"box-$1$2"+u+"flex-$1$2")+e;case 5443:return f+e+u+"flex-item-"+S(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":u+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return f+e+u+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return f+e+u+S(e,"shrink","negative")+e;case 5292:return f+e+u+S(e,"basis","preferred-size")+e;case 6060:return f+"box-"+S(e,"-grow","")+f+e+u+S(e,"grow","positive")+e;case 4554:return f+S(e,/([^-])(transform)/g,"$1"+f+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,f+"$1"),/(image-set)/,f+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,f+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,f+"box-pack:$3"+u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+f+e+e;case 4200:if(!w(e,/flex-|baseline/))return u+"grid-column-align"+P(e,t)+e;break;case 2592:case 3360:return u+S(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,w(e.props,/grid-\w+-end/)}))?~O(e+(n=n[t].value),"span",0)?e:u+S(e,"-start","")+e+u+"grid-row-span:"+(~O(n,"span",0)?w(n,/\d+/):+w(n,/\d+/)-+w(e,/\d+/))+";":u+S(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:u+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,f+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(j(e)-1-t>6)switch(x(e,t+1)){case 109:if(45!==x(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+f+"$2-$3$1"+l+(108==x(e,t+3)?"$3":"$2-$3"))+e;case 115:return~O(e,"stretch",0)?ee(S(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,a,o,i,s){return u+n+":"+r+s+(a?u+n+"-span:"+(o?i:+i-+r)+s:"")+e}));case 4949:if(121===x(e,t+6))return S(e,":",":"+f)+e;break;case 6444:switch(x(e,45===x(e,14)?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+f+(45===x(e,14)?"inline-":"")+"box$3$1"+f+"$2$3$1"+u+"$2box$3")+e;case 100:return S(e,":",":"+u)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=ee(e.value,e.length,n));case y:return Q([z(e,{value:S(e.value,"@","@"+f)})],r);case p:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":H(z(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})),H(z(e,{props:[t]})),v(e,{props:E(n,r)});break;case"::placeholder":H(z(e,{props:[S(t,/:(plac\w+)/,":"+f+"input-$1")]})),H(z(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]})),H(z(e,{props:[S(t,/:(plac\w+)/,u+"input-$1")]})),H(z(e,{props:[t]})),v(e,{props:E(n,r)})}return""}))}}function ne(e){return Y(re("",null,null,null,[""],e=W(e),0,[0],e))}function re(e,t,n,r,a,o,i,s,c){for(var u=0,l=0,f=i,d=0,p=0,h=0,y=1,v=1,b=1,w=0,P="",$=a,E=o,I=r,N=P;v;)switch(h=w,w=L()){case 40:if(108!=h&&58==x(N,f-1)){-1!=O(N+=S(q(w),"&","&\f"),"&\f",g(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:N+=q(w);break;case 9:case 10:case 13:case 32:N+=U(h);break;case 92:N+=V(B()-1,7);continue;case 47:switch(F()){case 42:case 47:A(oe(J(L(),B()),t,n,c),c);break;default:N+="/"}break;case 123*y:s[u++]=j(N)*b;case 125*y:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:-1==b&&(N=S(N,/\f/g,"")),p>0&&j(N)-f&&A(p>32?ie(N+";",r,n,f-1,c):ie(S(N," ","")+";",r,n,f-2,c),c);break;case 59:N+=";";default:if(A(I=ae(N,t,n,u,l,a,s,P,$=[],E=[],f,o),o),123===w)if(0===l)re(N,t,I,I,$,o,f,s,E);else switch(99===d&&110===x(N,3)?100:d){case 100:case 108:case 109:case 115:re(e,I,I,r&&A(ae(e,I,I,0,0,a,s,P,a,$=[],f,E),E),a,E,f,s,r?$:E);break;default:re(N,I,I,I,[""],E,0,s,E)}}u=l=p=0,y=b=1,P=N="",f=i;break;case 58:f=1+j(N),p=h;default:if(y<1)if(123==w)--y;else if(125==w&&0==y++&&125==D())continue;switch(N+=m(w),w*y){case 38:b=l>0?1:(N+="\f",-1);break;case 44:s[u++]=(j(N)-1)*b,b=1;break;case 64:45===F()&&(N+=q(L())),d=F(),l=f=j(P=N+=K(B())),w++;break;case 45:45===h&&2==j(N)&&(y=0)}}return o}function ae(e,t,n,r,a,o,i,s,c,u,l,f){for(var d=a-1,h=0===a?o:[""],y=$(h),m=0,v=0,w=0;m<r;++m)for(var O=0,x=P(e,d+1,d=g(v=i[m])),j=e;O<y;++O)(j=b(v>0?h[O]+" "+x:S(x,/&\f/g,h[O])))&&(c[w++]=j);return _(e,t,n,0===a?p:s,c,u,l,f)}function oe(e,t,n,r){return _(e,t,n,d,m(R),P(e,2,-2),0,r)}function ie(e,t,n,r,a){return _(e,t,n,h,P(e,0,r),P(e,r+1,-1),r,a)}var se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ce="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ue="active",le="data-styled-version",fe="6.1.19",de="/*!sc*/\n",pe="undefined"!=typeof window&&"undefined"!=typeof document,he=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)),ye=(new Set,Object.freeze([])),ge=Object.freeze({});function me(e,t,n){return void 0===n&&(n=ge),e.theme!==n.theme&&e.theme||t||n.theme}var ve=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"]),be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function Se(e){return e.replace(be,"-").replace(we,"")}var Oe=/(a)(d)/gi,xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pe(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=xe(t%52)+n;return(xe(t%52)+n).replace(Oe,"$1-$2")}var je,$e=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ae=function(e){return $e(5381,e)};function Ee(e){return Pe(Ae(e)>>>0)}function Ie(e){return e.displayName||e.name||"Component"}function Ne(e){return"string"==typeof e&&!0}var Ce="function"==typeof Symbol&&Symbol.for,ke=Ce?Symbol.for("react.memo"):60115,Re=Ce?Symbol.for("react.forward_ref"):60112,Te={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ze={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},He=((je={})[Re]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},je[ke]=ze,je);function De(e){return("type"in(t=e)&&t.type.$$typeof)===ke?ze:"$$typeof"in e?He[e.$$typeof]:Te;var t}var Le=Object.defineProperty,Fe=Object.getOwnPropertyNames,Be=Object.getOwnPropertySymbols,Ge=Object.getOwnPropertyDescriptor,Me=Object.getPrototypeOf,We=Object.prototype;function Ye(e,t,n){if("string"!=typeof t){if(We){var r=Me(t);r&&r!==We&&Ye(e,r,n)}var a=Fe(t);Be&&(a=a.concat(Be(t)));for(var o=De(e),i=De(t),s=0;s<a.length;++s){var c=a[s];if(!(c in _e||n&&n[c]||i&&c in i||o&&c in o)){var u=Ge(t,c);try{Le(e,c,u)}catch(e){}}}}return e}function qe(e){return"function"==typeof e}function Ue(e){return"object"==typeof e&&"styledComponentId"in e}function Ve(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ze(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Je(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ke(e,t,n){if(void 0===n&&(n=!1),!n&&!Je(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Ke(e[r],t[r]);else if(Je(t))for(var r in t)e[r]=Ke(e[r],t[r]);return e}function Qe(e,t){Object.defineProperty(e,"toString",{value:t})}function Xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var et=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,r=n.length,a=r;e>=a;)if((a<<=1)<0)throw Xe(16,"".concat(e));this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=r;o<a;o++)this.groupSizes[o]=0}for(var i=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(i,t[o])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)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],r=this.indexOfGroup(e),a=r+n,o=r;o<a;o++)t+="".concat(this.tag.getRule(o)).concat(de);return t},e}(),tt=new Map,nt=new Map,rt=1,at=function(e){if(tt.has(e))return tt.get(e);for(;nt.has(rt);)rt++;var t=rt++;return tt.set(e,t),nt.set(t,e),t},ot=function(e,t){rt=t+1,tt.set(e,t),nt.set(t,e)},it="style[".concat(ce,"][").concat(le,'="').concat(fe,'"]'),st=new RegExp("^".concat(ce,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ct=function(e,t,n){for(var r,a=n.split(","),o=0,i=a.length;o<i;o++)(r=a[o])&&e.registerName(t,r)},ut=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(de),a=[],o=0,i=r.length;o<i;o++){var s=r[o].trim();if(s){var c=s.match(st);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ot(l,u),ct(e,l,c[3]),e.getTag().insertRules(u,a)),a.length=0}else a.push(s)}}},lt=function(e){for(var t=document.querySelectorAll(it),n=0,r=t.length;n<r;n++){var a=t[n];a&&a.getAttribute(ce)!==ue&&(ut(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function ft(){return n.nc}var dt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ce,"]")));return t[t.length-1]}(n),o=void 0!==a?a.nextSibling:null;r.setAttribute(ce,ue),r.setAttribute(le,fe);var i=ft();return i&&r.setAttribute("nonce",i),n.insertBefore(r,o),r},pt=function(){function e(e){this.element=dt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}throw Xe(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}(),ht=function(){function e(e){this.element=dt(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}(),yt=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}(),gt=pe,mt={isServer:!pe,useCSSOMInjection:!he},vt=function(){function e(e,t,n){void 0===e&&(e=ge),void 0===t&&(t={});var a=this;this.options=r(r({},mt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pe&>&&(gt=!1,lt(this)),Qe(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=function(n){var a=function(e){return nt.get(e)}(n);if(void 0===a)return"continue";var o=e.names.get(a),i=t.getGroup(n);if(void 0===o||!o.size||0===i.length)return"continue";var s="".concat(ce,".g").concat(n,'[id="').concat(a,'"]'),c="";void 0!==o&&o.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),r+="".concat(i).concat(s,'{content:"').concat(c,'"}').concat(de)},o=0;o<n;o++)a(o);return r}(a)}))}return e.registerId=function(e){return at(e)},e.prototype.rehydrate=function(){!this.server&&pe&<(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&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 yt(n):t?new pt(n):new ht(n)}(this.options),new et(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(at(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(at(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(at(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),bt=/&/g,wt=/^\s*\/\/.*$/gm;function St(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=St(e.children,t)),e}))}function Ot(e){var t,n,r,a=void 0===e?ge:e,o=a.options,i=void 0===o?ge:o,s=a.plugins,c=void 0===s?ye:s,u=function(e,r,a){return a.startsWith(n)&&a.endsWith(n)&&a.replaceAll(n,"").length>0?".".concat(t):e},l=c.slice();l.push((function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(bt,n).replace(r,u))})),i.prefix&&l.push(te),l.push(X);var f=function(e,a,o,s){void 0===a&&(a=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=a,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(wt,""),u=ne(o||a?"".concat(o," ").concat(a," { ").concat(c," }"):c);i.namespace&&(u=St(u,i.namespace));var f,d,p,h=[];return Q(u,(f=l.concat((p=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&p(e)})),d=$(f),function(e,t,n,r){for(var a="",o=0;o<d;o++)a+=f[o](e,t,n,r)||"";return a})),h};return f.hash=c.length?c.reduce((function(e,t){return t.name||Xe(15),$e(e,t.name)}),5381).toString():"",f}var xt=new vt,Pt=Ot(),jt=i().createContext({shouldForwardProp:void 0,styleSheet:xt,stylis:Pt}),$t=(jt.Consumer,i().createContext(void 0));function At(){return(0,o.useContext)(jt)}function Et(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=At().styleSheet,s=(0,o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,a]),u=(0,o.useMemo)((function(){return Ot({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)((function(){c()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:u}}),[e.shouldForwardProp,s,u]);return i().createElement(jt.Provider,{value:l},i().createElement($t.Provider,{value:u},e.children))}var It=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Pt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Qe(this,(function(){throw Xe(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Pt),this.name+e.hash},e}(),Nt=function(e){return e>="A"&&e<="Z"};function Ct(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Nt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var kt=function(e){return null==e||!1===e||""===e},Rt=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!kt(i)&&(Array.isArray(i)&&i.isCss||qe(i)?r.push("".concat(Ct(o),":"),i,";"):Je(i)?r.push.apply(r,a(a(["".concat(o," {")],Rt(i),!1),["}"],!1)):r.push("".concat(Ct(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in se||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Tt(e,t,n,r){return kt(e)?[]:Ue(e)?[".".concat(e.styledComponentId)]:qe(e)?!qe(a=e)||a.prototype&&a.prototype.isReactComponent||!t?[e]:Tt(e(t),t,n,r):e instanceof It?n?(e.inject(n,r),[e.getName(r)]):[e]:Je(e)?Rt(e):Array.isArray(e)?Array.prototype.concat.apply(ye,e.map((function(e){return Tt(e,t,n,r)}))):[e.toString()];var a}function _t(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(qe(n)&&!Ue(n))return!1}return!0}var zt=Ae(fe),Ht=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&_t(e),this.componentId=t,this.baseHash=$e(zt,t),this.baseStyle=n,vt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Ve(r,this.staticRulesId);else{var a=Ze(Tt(this.rules,e,t,n)),o=Pe($e(this.baseHash,a)>>>0);if(!t.hasNameForId(this.componentId,o)){var i=n(a,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,i)}r=Ve(r,o),this.staticRulesId=o}else{for(var s=$e(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=Ze(Tt(l,e,t,n));s=$e(s,f+u),c+=f}}if(c){var d=Pe(s>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),r=Ve(r,d)}}return r},e}(),Dt=i().createContext(void 0);Dt.Consumer;var Lt={};new Set;function Ft(e,t,n){var a=Ue(e),s=e,c=!Ne(e),u=t.attrs,l=void 0===u?ye:u,f=t.componentId,d=void 0===f?function(e,t){var n="string"!=typeof e?"sc":Se(e);Lt[n]=(Lt[n]||0)+1;var r="".concat(n,"-").concat(Ee(fe+n+Lt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):f,p=t.displayName,h=void 0===p?function(e){return Ne(e)?"styled.".concat(e):"Styled(".concat(Ie(e),")")}(e):p,y=t.displayName&&t.componentId?"".concat(Se(t.displayName),"-").concat(t.componentId):t.componentId||d,g=a&&s.attrs?s.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(a&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;m=function(e,t){return v(e,t)&&b(e,t)}}else m=v}var w=new Ht(n,y,a?s.componentStyle:void 0);function S(e,t){return function(e,t,n){var a=e.attrs,s=e.componentStyle,c=e.defaultProps,u=e.foldedComponentIds,l=e.styledComponentId,f=e.target,d=i().useContext(Dt),p=At(),h=e.shouldForwardProp||p.shouldForwardProp,y=me(t,d,c)||ge,g=function(e,t,n){for(var a,o=r(r({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var s=qe(a=e[i])?a(o):a;for(var c in s)o[c]="className"===c?Ve(o[c],s[c]):"style"===c?r(r({},o[c]),s[c]):s[c]}return t.className&&(o.className=Ve(o.className,t.className)),o}(a,t,y),m=g.as||f,v={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===y||("forwardedAs"===b?v.as=g.forwardedAs:h&&!h(b,m)||(v[b]=g[b]));var w=function(e,t){var n=At();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,g),S=Ve(u,l);return w&&(S+=" "+w),g.className&&(S+=" "+g.className),v[Ne(m)&&!ve.has(m)?"class":"className"]=S,n&&(v.ref=n),(0,o.createElement)(m,v)}(O,e,t)}S.displayName=h;var O=i().forwardRef(S);return O.attrs=g,O.componentStyle=w,O.displayName=h,O.shouldForwardProp=m,O.foldedComponentIds=a?Ve(s.foldedComponentIds,s.styledComponentId):"",O.styledComponentId=y,O.target=a?s.target:e,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,a=t;r<a.length;r++)Ke(e,a[r],!0);return e}({},s.defaultProps,e):e}}),Qe(O,(function(){return".".concat(O.styledComponentId)})),c&&Ye(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),O}function Bt(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n}var Gt=function(e){return Object.assign(e,{isCss:!0})};function Mt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(qe(e)||Je(e))return Gt(Tt(Bt(ye,a([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Tt(r):Gt(Tt(Bt(r,t)))}function Wt(e,t,n){if(void 0===n&&(n=ge),!t)throw Xe(1,t);var o=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Mt.apply(void 0,a([r],o,!1)))};return o.attrs=function(a){return Wt(e,t,r(r({},n),{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},o.withConfig=function(a){return Wt(e,t,r(r({},n),a))},o}var Yt=function(e){return Wt(Ft,e)},qt=Yt;ve.forEach((function(e){qt[e]=Yt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_t(e),vt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var a=r(Ze(Tt(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,a)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&vt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ft(),r=Ze([n&&'nonce="'.concat(n,'"'),"".concat(ce,'="true"'),"".concat(le,'="').concat(fe,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Xe(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Xe(2);var n=e.instance.toString();if(!n)return[];var a=((t={})[ce]="",t[le]=fe,t.dangerouslySetInnerHTML={__html:n},t),o=ft();return o&&(a.nonce=o),[i().createElement("style",r({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new vt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Xe(2);return i().createElement(Et,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Xe(3)}})(),"__sc-".concat(ce,"__")},705:e=>{"use strict";e.exports=require("a-js-tools")},833:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var u=o[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(a=n?n.call(r,l,f,u):void 0)||void 0===a&&l!==f)return!1}return!0}},953:e=>{"use strict";e.exports=require("react")}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var r={};(()=>{"use strict";n.r(r),n.d(r,{EnLayout:()=>fe,EnLayoutContent:()=>w,EnLayoutFooter:()=>j,EnLayoutHeader:()=>l,EnLayoutSideBar:()=>y,Layout:()=>fe,LayoutContent:()=>w,LayoutFooter:()=>j,LayoutHeader:()=>l,LayoutSideBar:()=>y});var e=n(953),t=n.n(e);const a=require("xcn");var o,i=n(581),s=["className","children","height","noSticky"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(null,arguments)}var u=i.Ay.div(o||(o=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: header;\n position: sticky;\n top: 0px;\n left: 0px;\n z-index: 10;\n height: var(--layout-header-height);\n box-shadow: 0 4px 13px -3px #0000001a;\n overflow: hidden;\n"]))),l=t().forwardRef((function(e,n){var r=e.className,o=e.children,i=(e.height,e.noSticky,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,s));return t().createElement(u,c({ref:n,className:(0,a.xcn)(["en-layout-header"],r)},i,{"data-earthnut-ui":"layout-header"}),o)}));l.displayName="LayoutHeader";var f,d=["className","width","right","full"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}var h=i.Ay.div(f||(f=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n position: sticky;\n left: 0;\n z-index: 8;\n grid-area: side;\n overflow-x: hidden;\n overflow-y: auto;\n"]))),y=t().forwardRef((function(e,n){var r=e.className,o=(e.width,e.right,e.full,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,d));return t().createElement(h,p({className:(0,a.xcn)("en-layout-side",r),ref:n},o,{"data-earthnut-ui":"layout-side-bar"}))}));y.displayName="LayoutSideBar";var g,m=["className"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(null,arguments)}var b=i.Ay.main(g||(g=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n"]))),w=t().forwardRef((function(e,n){var r=e.className,o=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,m);return t().createElement(b,v({ref:n,className:(0,a.xcn)("en-layout-main",r)},o,{"data-earthnut-ui":"layout-content"}))}));w.displayName="LayoutContent";var S,O=["className","height"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}var P=i.Ay.div(S||(S=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: footer;\n height: var(--layout-footer-height);\n box-shadow: 0 -1px 13px 0px #0000001a;\n overflow: hidden;\n"]))),j=t().forwardRef((function(e,n){var r=e.className,o=(e.height,function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,O));return t().createElement(P,x({ref:n},o,{className:(0,a.xcn)("en-layout-footer",r),"data-earthnut-ui":"layout-footer"}))}));j.displayName="LayoutFooter";var $,A,E,I,N,C,k,R,T,_,z,H,D,L,F,B,G,M,W,Y,q,U,V,Z,J,K=n(570);function Q(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var X=i.I4.div($||($=Q(["\n position: relative;\n top: 0px;\n width: var(--layout-width);\n height: var(--layout-height);\n overflow-x: hidden;\n overflow-y: auto;\n\n ","\n // 侧边栏全屏样式\n ","\n\n // ------------------------------\n // --- 标准模式(全)与侧边栏右置(全)共用样式 ---\n // 标准模式(全)与侧边栏右置(全)\n ","\n\n // 标准模式(全) 侧边栏与内容区设置\n ","\n // 侧边栏(全) 侧边栏与内容区设置\n ","\n\n // 侧边栏 (全) 左侧全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n \n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 标准模式(无 header)与侧边栏在右侧的无头模式共用样式 ---\n // 标准的无头模式样式、侧边栏在右侧的无头模式样式\n ","\n \n // 侧边栏(无 header )全屏\n // side bar 居左全尺寸\n // side bar 值由 en-layout-side-full 控制\n ","\n\n // 标准的 side bar 居左全尺寸\n ","\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // 标准模式(无 footer)与侧边栏右置(无 footer)共用样式\n // 没有 footer\n ","\n \n\n // 标准模式(无 footer) 侧边栏与内容区设置\n ","\n\n\n// 侧边栏在右侧的无 footer 模式样式\n ","\n\n// 侧边栏 (全) 左侧全屏\n// side bar 居左全尺寸\n// side bar 值由 en-layout-side-full 控制\n","\n\n// 标准的 side bar 居左全尺寸\n ","\n\n\n // side bar 居右全尺寸\n ","\n \n // ------------------------------\n // --- 分割线 --- \n // 下面是仅头部、底部和侧边栏布局\n // 仅底部布局\n ","\n\n // 仅头部布局\n ","\n \n // 仅侧边布局\n// 标准的无头模式样式、侧边栏在右侧的无头模式样式\n// side bar 值由 en-layout-side-full 控制\n ","\n \n // 右侧侧边布局\n ","\n"])),(function(e){var t=e.$headerNoSticky,n=e.$header,r=e.$layoutType,a=e.$content,o=e.$sidebar;return t&&(0,i.AH)(A||(A=Q(["\n // 头部不粘连样式,头部区域设置\n & > ."," {\n position: relative;\n z-index: 2;\n }\n\n ","\n\n ","\n "])),n,("simple-all"===r||"side-right-all"===r)&&(0,i.AH)(E||(E=Q(["\n & > ."," > ."," {\n top: 0;\n min-height: calc(\n var(--layout-height) - var (--layout-footer-height) - var(--layout-header-height)\n );\n max-height: var(--layout-height);\n }\n "])),a,o),("simple-no-footer"===r||"side-right-no-footer"===r)&&(0,i.AH)(I||(I=Q(["\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n "])),o))}),(function(e){var t=e.$layoutType,n=e.$sidebar;return"side-full"===t&&(0,i.AH)(N||(N=Q(["\n & > ."," {\n top: 0;\n height: var(--layout-height);\n }\n "])),n)}),(function(e){var t=e.$layoutType,n=e.$content,r=e.$sidebar;return["simple-all","side-right-all"].includes(t)&&(0,i.AH)(C||(C=Q(["\n // 子元素\n & > ."," {\n display: grid;\n grid-template-rows:\n calc(var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height))\n auto;\n min-height: calc(100% - var(--layout-header-height) - var(--layout-footer-height));\n\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n min-height: calc(\n var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height)\n );\n max-height: calc(var(--layout-height) - var(--layout-header-height));\n }\n }\n "])),n,r)}),(function(e){var t=e.$layoutType,n=e.$content;return["simple-all","simple-no-header"].includes(t)&&(0,i.AH)(k||(k=Q(["\n & > ."," {\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n '. content';\n }\n "])),n)}),(function(e){var t=e.$layoutType,n=e.$content;return["side-right-all","side-right-no-header"].includes(t)&&(0,i.AH)(R||(R=Q(["\n & > ."," {\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'content .';\n }\n "])),n)}),(function(e){var t=e.$layoutType;return["side-full-all","side-right-full-all"].includes(t)&&(0,i.AH)(T||(T=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto var(--layout-footer-height);\n gap: 0px;\n "])))}),(function(e){return"side-full-all"===e.$layoutType&&(0,i.AH)(_||(_=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content'\n 'side footer';\n "])))}),(function(e){return"side-right-full-all"===e.$layoutType&&(0,i.AH)(z||(z=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side'\n 'footer side';\n "])))}),(function(e){var t=e.$layoutType,n=e.$content,r=e.$sidebar;return["simple-no-header","side-right-no-header"].includes(t)&&(0,i.AH)(H||(H=Q(["\n & > ."," {\n display: grid;\n grid-template-rows: auto;\n // side bar 块的样式\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n }\n "])),n,r)}),(function(e){var t=e.$layoutType;return["side-full-no-header","side-right-full-no-header"].includes(t)&&(0,i.AH)(D||(D=Q(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n gap: 0px;\n "])))}),(function(e){return"side-full-no-header"===e.$layoutType&&(0,i.AH)(L||(L=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side content'\n 'side footer';\n "])))}),(function(e){return"side-right-full-no-header"===e.$layoutType&&(0,i.AH)(F||(F=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'content side'\n 'footer side';\n "])))}),(function(e){var t=e.$layoutType,n=e.$sidebar;return["simple-no-footer","side-right-no-footer"].includes(t)&&(0,i.AH)(B||(B=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n min-height: calc(100% - var(--layout-header-height));\n gap: 0px;\n // side bar 块保持粘连,且在 content height 不足时支撑页面\n & > ."," {\n top: var(--layout-header-height);\n height: calc(var(--layout-height) - var(--layout-header-height));\n }\n "])),n)}),(function(e){return"simple-no-footer"===e.$layoutType&&(0,i.AH)(G||(G=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'header header'\n 'side content'\n '. content';\n "])))}),(function(e){return"side-right-no-footer"===e.$layoutType&&(0,i.AH)(M||(M=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header header'\n 'content side'\n 'content .';\n "])))}),(function(e){var t=e.$layoutType,n=e.$main;return["side-full-no-footer","side-right-full-no-footer"].includes(t)&&(0,i.AH)(W||(W=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n gap: 0px;\n\n // content 块\n & > ."," {\n min-height: calc(var(--layout-height) - var (--layout-header-height));\n }\n "])),n)}),(function(e){return"side-full-no-footer"===e.$layoutType&&(0,i.AH)(Y||(Y=Q(["\n grid-template-columns: var(--layout-side-bar-width) auto;\n grid-template-areas:\n 'side header'\n 'side content';\n "])))}),(function(e){return"side-right-full-no-footer"===e.$layoutType&&(0,i.AH)(q||(q=Q(["\n grid-template-columns: auto var(--layout-side-bar-width);\n grid-template-areas:\n 'header side'\n 'content side';\n "])))}),(function(e){return"only-footer"===e.$layoutType&&(0,i.AH)(U||(U=Q(["\n display: grid;\n grid-template-rows: auto var(--layout-footer-height);\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'content' 'footer';\n "])))}),(function(e){return"only-header"===e.$layoutType&&(0,i.AH)(V||(V=Q(["\n display: grid;\n grid-template-rows: var(--layout-header-height) auto;\n grid-template-columns: 1fr;\n gap: 0px;\n grid-template-areas: 'header' 'content';\n "])))}),(function(e){var t=e.$layoutType;return["simple-only-side","side-right-only-side","side-full-only-side","side-right-full-only-side"].includes(t)&&(0,i.AH)(Z||(Z=Q(["\n display: grid;\n // 纵向空间占比设置\n grid-template-rows: 100%;\n // 横向空间占比设置\n grid-template-columns: var(--layout-side-bar-width) auto;\n gap: 0px;\n grid-template-areas:\n 'side content'\n '. content';\n "])))}),(function(e){var t=e.$layoutType;return("side-right-full-only-side"===t||"side-right-only-side"===t)&&(0,i.AH)(J||(J=Q(["\n grid-template-areas:\n 'content side'\n 'content .';\n grid-template-columns: auto var(--layout-side-bar-width);\n "])))}));function ee(e){return(0,K.isNumber)(e)||parseInt(e)===Number(e)?e+"px":e||0}var te=n(705);function ne(e){return"en-"+e+"-"+(0,te.getRandomString)({length:12,includeNumbers:!0,includeUppercaseLetters:!0})}function re(e){"@babel/helpers - typeof";return re="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},re(e)}var ae,oe=["className","children","style","width","height","classes"];function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(null,arguments)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==re(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le=i.Ay.div(ae||(ae=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n grid-area: content;\n overflow: auto;\n"]))),fe=e.forwardRef((function(t,n){var r,o,i,s,c=t.className,u=t.children,f=t.style,d=t.width,p=void 0===d?"100vw":d,h=t.height,g=void 0===h?"100vh":h,m=t.classes,v=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,oe),b="simple",S=!1,O=!1,x=!1,P=!1,$=!1,A=150,E="2.8rem",I="2rem",N=!1,C=ne("header"),k=ne("content"),R=ne("main"),T=ne("sidebar"),_=ne("footer");e.Children.forEach(u,(function(t){if(e.isValidElement(t))if(O||t.type!==l)if(x||t.type!==y)if(P||t.type!==w)if(P||t.type!==fe){if(!$&&t.type===j){var n=t;I=n.props.height||I,s=e.cloneElement(n,{className:(0,a.xcn)(_,n.props.className)}),$=!0}}else{var c=t;i=e.createElement(le,{"data-earthnut-ui":"layout-content",className:(0,a.xcn)(R,"en-layout-main")},c),P=!0}else{var u=t;i=e.cloneElement(u,{className:(0,a.xcn)(R,u.props.className)}),P=!0}else{var f=t,d=f.props;A=d.width||A,b=d.right&&d.full?"side-right-full":d.right?"side-right":d.full?"side-full":"simple",N=(0,K.isTrue)(d.full),o=e.cloneElement(f,{className:(0,a.xcn)(T,f.props.className)}),x=!0}else{var p,h=t,g=h.props;E=g.height||E,S=null!==(p=g.noSticky)&&void 0!==p&&p,r=e.cloneElement(h,{className:(0,a.xcn)(C,h.props.className)}),O=!0}}));var z=O&&x&&P&&$&&"".concat(b,"-all")||O&&P&&x&&"".concat(b,"-no-footer")||x&&P&&$&&"".concat(b,"-no-header")||P&&$&&"only-footer"||P&&O&&"only-header"||P&&x&&(N=!0)&&"".concat(b,"-only-side")||"simple",H=ce({layoutHeight:p,layoutWith:g,sideBarWidth:A,headerHeight:E,footerHeight:I},v.theme||{}),D=/side.*full/.test(b);return e.createElement(X,ie({ref:n,$headerNoSticky:S,$layoutType:z,$header:C,$sidebar:T,$main:R,$content:k,$footer:_,className:(0,a.xcn)(N&&"en-layout-side-full","en-layout-".concat(z),c,m),style:ce({"--layout-width":ee(p),"--layout-height":ee(g),"--layout-side-bar-width":ee(A),"--layout-header-height":ee(E),"--layout-footer-height":ee(I)},f),theme:H},v,{"data-earthnut-ui":"layout"}),D?e.createElement(e.Fragment,null,o,r,i,s):e.createElement(e.Fragment,null,r,$?e.createElement("div",{className:(0,a.xcn)(k),"data-earthnut-ui":"layout-with-foot-content"},o,i):e.createElement(e.Fragment,null,o,i),s))}));fe.displayName="Layout"})(),module.exports.earthnut=r})();
|