earthnut 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BackgroundRipple/index.cjs +1 -1
- package/BackgroundRipple/index.mjs +1 -1
- package/Layout/index.cjs +1 -1
- package/Layout/index.mjs +1 -1
- package/components/layout/EnLayoutContent.d.ts +3 -0
- package/components/layout/generate-class.d.ts +2 -0
- package/components/layout/get-value.d.ts +4 -0
- package/components/layout/types.d.ts +30 -0
- package/components/ripples/RipplesEle.d.ts +1 -2
- package/components/ripples/types.d.ts +1 -1
- package/components/ripples/useOptionUpdate.d.ts +1 -1
- package/customHooks/useRipples/buildBackground/utils/bind-image.d.ts +4 -0
- package/customHooks/useTimeId.d.ts +0 -9
- package/index.cjs +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/useAnimationFrame/index.cjs +1 -1
- package/useAnimationFrame/index.mjs +1 -1
- package/useInputIsComposing/index.cjs +1 -1
- package/useInputIsComposing/index.mjs +1 -1
- package/useRipples/index.cjs +1 -1
- package/useRipples/index.mjs +1 -1
- package/useTimeId/index.cjs +1 -1
- package/useTimeId/index.mjs +1 -1
- package/components/button/style/index.d.ts +0 -1
- package/components/menu/style/index.d.ts +0 -0
- package/components/ripples/style/index.d.ts +0 -0
- package/customHooks/useRipples/buildBackground/utils/bindImage.d.ts +0 -4
- /package/customHooks/useRipples/buildBackground/{loadImage.d.ts → load-image.d.ts} +0 -0
- /package/customHooks/useRipples/buildBackground/{runSide.d.ts → run-side.d.ts} +0 -0
- /package/customHooks/useRipples/buildBackground/utils/{createCanvasElement.d.ts → create-canvas-element.d.ts} +0 -0
- /package/customHooks/useRipples/buildBackground/utils/{createImageBySrc.d.ts → create-image-by-src.d.ts} +0 -0
- /package/customHooks/useRipples/buildBackground/utils/{getBackgroundStyle.d.ts → get-background-style.d.ts} +0 -0
- /package/customHooks/useRipples/buildBackground/utils/{hideCssBackground.d.ts → hide-css-background.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"a-element-inline-style";import*as e from"a-js-tools";import*as r from"a-type-of-js";import*as n from"xcn";import*as i from"react";var o={56:(t,e,r)=>{t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},72:t=>{var e=[];function r(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function n(t,n){for(var o={},a=[],u=0;u<t.length;u++){var l=t[u],s=n.base?l[0]+n.base:l[0],c=o[s]||0,f="".concat(s," ").concat(c);o[s]=c+1;var p=r(f),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)e[p].references++,e[p].updater(d);else{var h=i(d,n);n.byIndex=u,e.splice(u,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function i(t,e){var r=e.domAPI(e);return r.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,i){var o=n(t=t||[],i=i||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var u=r(o[a]);e[u].references--}for(var l=n(t,i),s=0;s<o.length;s++){var c=r(o[s]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},78:(r,n,i)=>{i.d(n,{n:()=>$t});var o=i(649);const a=(u={setStyle:()=>t.setStyle},l={},i.d(l,u),l);var u,l,s=i(362);function c(t,e,r,n){function i(t,e){var n=r.createShader(t);if(r.shaderSource(n,e),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw new Error("compile error: "+r.getShaderInfoLog(n));return n}var o,a={id:r.createProgram(),uniforms:{},locations:{}};if(r.attachShader(a.id,i(r.VERTEX_SHADER,t)),r.attachShader(a.id,i(r.FRAGMENT_SHADER,e)),r.linkProgram(a.id),!r.getProgramParameter(a.id,r.LINK_STATUS))throw new Error("link error: "+r.getProgramInfoLog(a.id));r.useProgram(a.id),r.enableVertexAttribArray(0);for(var u=t+e,l=/uniform (\w+) (\w+)/g;!(0,s.isNull)(o=l.exec(u));){var c=o[2];a.locations[c]=r.getUniformLocation(a.id,c)}return a}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.gl;r.activeTexture(r.TEXTURE0+(e||0)),r.bindTexture(r.TEXTURE_2D,t)}function p(t){return"rgba(0, 0, 0, 0)"===t||"#ffffffff"===t||"transport"===t}function d(t){return"none"===t||""===t}function h(){var t=this,e=function(){return t.initState=!1,null};if(!this.gl)return e();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(t,e){var n=r.getExtension(e);return n&&t.push([e,n]),t}),[]));if(!n.OES_texture_float)return e();var i=[];function o(t,e,r){var i="OES_texture_"+t,o=i+"_linear",a=o in n;return{type:e,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(),u=r.createFramebuffer();r.bindFramebuffer(r.FRAMEBUFFER,u),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 l=null,s=0;s<i.length;s++)if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,32,32,0,r.RGBA,i[s].type,null),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,a,0),r.checkFramebufferStatus(r.FRAMEBUFFER)===r.FRAMEBUFFER_COMPLETE){l=i[s];break}return l}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,b(n.key),n)}}function g(t,e,r){return e&&m(t.prototype,e),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function y(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}var E=g((function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),y(this,"canvas",void 0),y(this,"gl",void 0),y(this,"config",void 0),y(this,"initState",!0),this.canvas=e;var r=e.getContext("webgl");if((0,s.isNull)(r))return this.initState=!1,void(this.config=null);this.gl=r,this.config=Reflect.apply(h,this,[])}));const w=(t=>{var e={};return i.d(e,t),e})({debounce:()=>e.debounce,enArr:()=>e.enArr,getRandomInt:()=>e.getRandomInt,getRandomString:()=>e.getRandomString});var R,T={imgUrl:"",resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0};function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function P(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,x(n.key),n)}}function x(t){var e=function(t){if("object"!=S(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==S(e)?e:e+""}function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,A(n.key),n)}}function A(t){var e=function(t){if("object"!=O(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}function I(t,e,r){return t.set(_(t,e),r),r}function D(t,e){return t.get(_(t,e))}function _(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}function F(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(t,e):void 0}}(t)||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 j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.freeze(T),new(function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(){};return Object.setPrototypeOf(e,this),Object.defineProperties(e,{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}}),e},(e=[{key:"clear",value:function(){}}])&&P(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}())({name:"earthnut",type:!1});var U=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e={list:[],diameter:48,radius:0,cells:0};e.diameter%2!=0&&e.diameter++;var r=e.diameter,n=e.list,i=r/2;e.radius=i,e.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 u=0;u<=i;u++)for(var l=u;l<=i;l++){var s=n[u][l],c=function(){return(0,w.getRandomInt)(255,190)};s[0]=c(),s[1]=c(),s[2]=c(),s[3]=Math.ceil(Math.sqrt(Math.pow(u,2)+Math.pow(l,2)))<=i?(0,w.getRandomInt)(120,180):(0,w.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 d=i;d<r;d++)for(var h=0;h<=i;h++)n[d][h]=n[r-d][h];for(var v=0;v<i;v++)for(var m=i;m<r;m++)n[v][m]=n[v][r-m];for(var g=i;g<r;g++)for(var y=i;y<r;y++)n[g][y]=n[g][r-y];var b=t%r;return e.list=[].concat(F(n.slice(b)),F(n.slice(0,b))),e},C=new(R=new WeakMap,function(){return t=function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,r){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}(this,R,1),e=this,r="data",n=U(),(r=A(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n},(e=[{key:"build",value:function(){D(R,this)>100&&I(R,this,0),this.data=U(I(R,this,D(R,this)+3))}}])&&k(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}());function N(t,e){var r=document.createElement("canvas"),n=document.createElement("canvas"),i=r.getContext("2d"),o=n.getContext("2d");return(0,s.isNull)(i)||(0,s.isNull)(o)?r:(r.width=n.width=t,r.height=n.height=e,i.clearRect(0,0,t,e),o.clearRect(0,0,t,e),i.globalAlpha=1,i.putImageData(function(t,e){Date.now();for(var r=new ImageData(t,e),n=r.data,i=C.data,o=i.diameter,a=i.list,u=t*o,l=0;l<n.length;l+=4){var s=l/4%u,c=s%t%o,f=Math.floor(s/t),p=a[c][f];n[l]=p[0],n[l+1]=p[1],n[l+2]=p[2],n[l+3]=p[3]}return r}(t,e),0,0),o.fillStyle="#ffffff",o.fillRect(0,0,t,e),o.drawImage(r,0,0,t,e),o.globalCompositeOperation="source-over",n)}function L(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.fadeData,r=e.backgroundInfo,n=e.toBeList,i=r.width,o=r.height,a=(0,w.getRandomString)({length:8,includeNumbers:!0,includeUppercaseLetters:!0});C.build(),n.push({resource:N(i,o),width:i,height:o,kind:"default",tag:a}),t&&e.run()}function B(){var t=this.renderData,e=this.fadeData,r=this.options;if((0,s.isNull)(t))return Reflect.apply(L,this,[]);var n=t.originStyle;if(p(n.backgroundColor)&&(!(0,s.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(L,this,[]);var i=document.createElement("canvas"),o=i.getContext("2d");if((0,s.isNull)(o))return Reflect.apply(L,this,[]);var a=e.backgroundInfo,u=a.width,l=a.height;i.width=u,i.height=l,o.clearRect(0,0,u,l);var c=(0,s.isArray)(r.imgUrl)&&1===r.imgUrl.length&&r.imgUrl[0]||n.backgroundColor;o.beginPath(),o.fillStyle=c,o.fillRect(0,0,u,l),o.fill(),e.isTransitioning?e.toBeList=[e.toBeList[0]]:e.toBeList=[];var f={resource:i,kind:"background-color",tag:c,width:u,height:l};e.toBeList.push(f),e.run()}function M(){var t=this.fadeData,e=this.renderData,r=this.options;if((0,s.isNull)(e))return Reflect.apply(B,this,[]);var n=e.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,s.isArray)(r.imgUrl))return Reflect.apply(B,this,[]);var i=(0,s.isArray)(r.imgUrl)&&r.imgUrl.length>1&&r.imgUrl||n.backgroundImage.replace(/^.*linear-gradient\((.*)\).*$/,"$1").split("),").map((function(t){return(t=t.trim()).endsWith(")")||(t+=")"),t})).filter((function(t){return t.startsWith("rgb")||t.startsWith("#")}));if(i.length<2)return Reflect.apply(B,this,[]);var o=document.createElement("canvas"),a=o.getContext("2d");if((0,s.isNull)(a))return Reflect.apply(B,this,[]);var u=t.backgroundInfo,l=u.width,c=u.height;o.width=l,o.height=c,a.fillStyle="#fff",a.fillRect(0,0,l,c);var f=a.createLinearGradient(0,0,0,c);i.forEach((function(t,e){return f.addColorStop(e/(i.length-1),t)})),a.fillStyle=f,a.fillRect(0,0,l,c),t.isTransitioning?t.toBeList=[t.toBeList[0]]:t.toBeList=[],t.toBeList.push({resource:o,kind:"linear-gradient",tag:i.join("_"),width:l,height:c}),t.run()}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function W(){var t=this,e=this.renderData,r=this.options,n=this.fadeData;if((0,s.isNull)(e))Reflect.apply(M,this,[]);else{var i,o,a=e.lastUseStyle,u=n.backgroundInfo,l=u.width,c=u.height,f=(0,s.isString)(r.imgUrl)&&r.imgUrl||(i=a.backgroundImage,o=/url\(["']?([^"']*)["']?\)/.exec(i),(0,s.isNull)(o)?null:o[1]);if(e.imageSource=f,f){var p=function(t,e,r){var n=new Image(e,r);return n.width=e,n.height=r,n.src=t,n}(f,l,c);p.onload=function(){var t;clearTimeout(n.transparentId),n.isTransitioning?n.toBeList=[n.toBeList[0]].concat(function(t){if(Array.isArray(t))return X(t)}(t=n.toBeList.slice(1).filter((function(t){return"image"===t.kind&&(Math.abs(t.width-l)>2||Math.abs(t.height-c)>2||t.tag!==f)})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return X(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X(t,e):void 0}}(t)||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.")}()):n.toBeList=[],n.toBeList.push({resource:p,width:l,height:c,kind:"image",tag:f}),n.run()},p.onerror=function(){Reflect.apply(M,t,[])},p.crossOrigin=r.crossOrigin}else Reflect.apply(M,this,[])}}function z(){var t=this.renderData;if(!(0,s.isNull)(t)){var e=t.parentElement;e&&[["background-image","none"],["background-color","transparent"]].forEach((function(t){return e.style.setProperty(t[0],t[1],"important")}))}}function G(t){var e=window.getComputedStyle(t),r=t.style;return{inlineBackground:r.background,inlineBackgroundColor:r.backgroundColor,inlineBackgroundImage:r.backgroundImage,backgroundColor:e.backgroundColor,backgroundImage:e.backgroundImage,backgroundSize:e.backgroundSize,backgroundPosition:e.backgroundPosition,backgroundRepeat:e.backgroundRepeat,backgroundClip:e.backgroundClip,backgroundOrigin:e.backgroundOrigin,backgroundAttachment:e.backgroundAttachment,position:e.position,width:parseInt(e.width),height:parseInt(e.height)}}function H(){var t=this.renderData;if(!(0,s.isNull)(t)){var e=t.parentElement,r=t.originStyle;e.style.setProperty("background-image",r.inlineBackgroundImage),e.style.setProperty("background-color",r.inlineBackgroundColor)}}function Y(t){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y(t)}function q(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z(n.key),n)}}function $(t,e,r){return(e=Z(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Z(t){var e=function(t){if("object"!=Y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Y(e)?e:e+""}var K=function(){return t=function t(e,r,n){var i,o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),$(this,"quad",null),$(this,"lastRaindropsFallTime",0),$(this,"parentElement",void 0),$(this,"mutationObserver",void 0),$(this,"resizeObserver",void 0),$(this,"renderProgram",void 0),$(this,"imageSource",""),$(this,"dropProgram",void 0),$(this,"updateProgram",void 0),$(this,"textures",[]),$(this,"backgroundTexture",[]),$(this,"textureDelta",void 0),$(this,"framebuffers",[]),$(this,"bufferWriteIndex",0),$(this,"bufferReadIndex",1),$(this,"originStyle",void 0),$(this,"lastUseStyle",void 0),$(this,"events",{}),$(this,"animationFrameId",0),this.parentElement=null!==(i=e.parentElement)&&void 0!==i?i:document.body,Reflect.apply(z,n,[]),this.originStyle=this.lastUseStyle=G(this.parentElement),this.mutationObserver=new MutationObserver((function(t){t.forEach((function(t){if(t.target===o.parentElement&&"attributes"===t.type&&n.options.visible){var e=Object.values(o.lastUseStyle),i=G(o.parentElement),a=Object.values(i);if((0,s.isEmptyArray)(w.enArr.difference(e,a)))return;var u=d(i.backgroundImage),l=p(i.backgroundColor);if(u&&l)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(t){t.forEach((function(t){if(t.target===o.parentElement){var e=G(o.parentElement);Math.abs(e.width-o.originStyle.width)<3&&Math.abs(e.height-o.originStyle.height)<3||Reflect.apply(r,n,[])}}))})),this.resizeObserver.observe(this.parentElement)},e=[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply(H,{renderData:this},[]),this.parentElement&&this.events){var t,e,r,n=this.parentElement,i=this.events;Object.keys(i).forEach((function(t){return n.removeEventListener&&n.removeEventListener(t,i[t])})),n.removeAttribute&&n.removeAttribute("data-ripples"),null===(t=this.mutationObserver)||void 0===t||t.takeRecords(),null===(e=this.mutationObserver)||void 0===e||e.disconnect(),this.mutationObserver=null,null===(r=this.resizeObserver)||void 0===r||r.disconnect(),this.resizeObserver=null}}}],e&&q(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function V(){var t=this.renderData,e=this.fadeData;if(!(0,s.isNull)(t)){var r,n,i,o=t.parentElement,a=window.getComputedStyle(o),u=a.backgroundSize,l=a.backgroundAttachment,c=a.backgroundPosition,f=/\s+/.test(r=c)?r.replace(/center/,"50%").replace(/top|left/,"0%").replace(/bottom/,"100%").replace(/\s+/," ").split(" "):J(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"===l?(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 d=e.backgroundInfo||{width:100,height:100},h=d.width,v=d.height;if("cover"===u){var m=Math.max(p.width/h,p.height/v);n=h*m,i=v*m}else if("contain"===u){var g=Math.min(p.width/h,p.height/v);n=h*g,i=v*g}else{var y=u.split(" ");n=y[0]||"",i=y[1]||n,J(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),J(i)?i=p.height*parseFloat(i)/100:"auto"!==i&&(i=parseFloat(i)),"auto"===n&&"auto"===i?(n=h,i=v):("auto"===n&&(n=h*(Number(i)/v)),"auto"===i&&(i=v*(Number(n)/h)))}var b=f&&f[0]||"0%",E=f&&f[1]||"0%";b=J(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),E=J(E)?(p.top+(p.height-Number(i))*parseFloat(E)/100).toString():(p.top+parseFloat(E)).toString(),t.renderProgram.uniforms.topLeft=new Float32Array([(o.offsetLeft-Number(b))/n,(o.offsetTop-Number(E))/i]),t.renderProgram.uniforms.bottomRight=new Float32Array([t.renderProgram.uniforms.topLeft[0]+o.clientWidth/n,t.renderProgram.uniforms.topLeft[1]+o.clientHeight/i]);var w=Math.max(this.canvas.width,this.canvas.height);t.renderProgram.uniforms.containerRatio=new Float32Array([this.canvas.width/w,this.canvas.height/w])}}function J(t){return t.endsWith("%")}function Q(){var t=this.gl,e=this.renderData;(0,s.isNull)(e)||(t.bindBuffer(t.ARRAY_BUFFER,e.quad),t.vertexAttribPointer(0,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLE_FAN,0,4))}function tt(){var t=this.gl,e=this.renderData,r=this.options;if(!(0,s.isNull)(e)){var n=e.textures,i=e.backgroundTexture,o=r.perturbance;t.bindFramebuffer(t.FRAMEBUFFER,null),t.viewport(0,0,this.canvas.width,this.canvas.height),t.enable(t.BLEND),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),t.useProgram(e.renderProgram.id),Reflect.apply(f,this,[i,0]),Reflect.apply(f,this,[n[0],1]),t.uniform1f(e.renderProgram.locations.perturbance,o),t.uniform2fv(e.renderProgram.locations.topLeft,e.renderProgram.uniforms.topLeft),t.uniform2fv(e.renderProgram.locations.bottomRight,e.renderProgram.uniforms.bottomRight),t.uniform2fv(e.renderProgram.locations.containerRatio,e.renderProgram.uniforms.containerRatio),t.uniform1i(e.renderProgram.locations.samplerBackground,0),t.uniform1i(e.renderProgram.locations.samplerRipples,1),Reflect.apply(Q,this,[]),t.disable(t.BLEND)}}function et(){var t=this.renderData;if(!(0,s.isNull)(t)){var e=t.bufferWriteIndex,r=t.bufferReadIndex;t.bufferWriteIndex=1-e,t.bufferReadIndex=1-r}}function rt(){var t=this.gl,e=this.renderData,r=this.options;if(!(0,s.isNull)(e)){var n=e.updateProgram,i=e.textures,o=e.framebuffers,a=e.bufferWriteIndex,u=e.bufferReadIndex,l=r.resolution;t.viewport(0,0,l,l),t.bindFramebuffer(t.FRAMEBUFFER,o[a]),Reflect.apply(f,this,[i[u]]),t.useProgram(n.id),Reflect.apply(Q,this,[]),Reflect.apply(et,this,[])}}function nt(){var t=this,e=this.renderData,r=this.options,n=this.fadeData;if(!(0,s.isNull)(e)){var i=e.parentElement,o=n.isTransitioning,a=r.running,u=r.idleFluctuations,l=r.lastRunningState,c=getComputedStyle(i);n.backgroundInfo={width:parseInt(c.width),height:parseInt(c.height)},Reflect.apply(V,this,[]),a?(l||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),o&&this.fade(),Reflect.apply(rt,this,[]),Reflect.apply(tt,this,[])):l&&(r.lastRunningState=!1,this.hide()),e.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(nt,t,[])}))}}function it(t,e,r){var n=this.renderData;if(!(0,s.isNull)(n)){var i=n.parentElement,o=window.getComputedStyle(i),a=parseInt(o.borderLeftWidth)||0,u=parseInt(o.borderTopWidth)||0,l=i.getBoundingClientRect(),c=t.clientX-l.left-a,f=t.clientY-l.top-u;this.drop(c,f,e,r)}}function ot(){var t=this,e=this.renderData,r=this.options;if(!(0,s.isNull)(e)){var n=e.parentElement,i=e.events,o=function(n){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.visible&&r.running&&r.interactive&&(e.lastRaindropsFallTime=Date.now(),Reflect.apply(it,t,[n,r.dropRadius*(i?1.5:1),i?.03:.01]))};i.mousemove=function(t){for(var e=r.accelerating;e--;)o(t)},i.touchmove=i.touchstart=function(t){for(var e=t.touches,r=0;r<e.length;r++)o(e[r])},i.mousedown=function(t){return o(t,!0)},Object.keys(i).forEach((function(t){return null==n?void 0:n.addEventListener(t,i[t],{passive:!0})}))}}var at="\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 ut(){var t=this.gl,e=this.renderData;if(!(0,s.isNull)(e)){var r=e.textureDelta;e.dropProgram=c(at,"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 }",t);var n=e.updateProgram=c(at,"\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);t.uniform2fv(n.locations.delta,r),e.renderProgram=c("\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 }",t),t.uniform2fv(e.renderProgram.locations.delta,r)}}function lt(){var t=this.gl,e=this.renderData;if(!(0,s.isNull)(e)){var r=e.backgroundTexture=t.createTexture();t.bindTexture(t.TEXTURE_2D,r),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,1),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR)}}function st(t){var e=this.gl,r=this.renderData,n=this.fadeData;if(!(0,s.isNull)(r)){var i=r.backgroundTexture,o=n.backgroundInfo,a=o.width,u=o.height,l=function(t){return(0,s.isZero)(t&t-1)},c=l(a)&&l(u)?e.REPEAT:e.CLAMP_TO_EDGE;e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,c),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,c),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t.resource)}}function ct(){var t=this,e=this.renderData,r=this.options,n=this.fadeData;if(!(0,s.isNull)(e)&&this.config){var i=e.textures,o=e.framebuffers,a=r.resolution,u=this.gl,l=1/a;e.textureDelta=new Float32Array([l,l]),this.config.extensions.forEach((function(t){return u.getExtension(t)}));for(var c=this.config.arrayType,f=c?new c(a*a*4):null,p=this.config,d=0;d<2;d++){var h=u.createTexture(),v=u.createFramebuffer();u.bindFramebuffer(u.FRAMEBUFFER,v),u.bindTexture(u.TEXTURE_2D,h),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,a,a,0,u.RGBA,p.type,f),u.framebufferTexture2D(u.FRAMEBUFFER,u.COLOR_ATTACHMENT0,u.TEXTURE_2D,h,0),i.push(h),o.push(v)}e.quad=u.createBuffer(),u.bindBuffer(u.ARRAY_BUFFER,e.quad),u.bufferData(u.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,-1,1]),u.STATIC_DRAW),Reflect.apply(ut,this,[]),Reflect.apply(lt,this,[]),Reflect.apply(W,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(ot,this,[]),Reflect.apply(st,this,[n.lastDrawImage]),e.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(nt,t,[])}))}}function ft(){var t=this.renderData,e=this.fadeData;if(!(0,s.isNull)(t)){var r=t.parentElement,n=e.backgroundInfo,i=r.offsetWidth,o=r.offsetHeight;this.canvas.width=n.width=i,this.canvas.height=n.height=o,Reflect.apply(W,this,[])}}function pt(){var t=this.renderData,e=this.fadeData;(0,s.isNull)(t)||(t.destroy(),Object.keys(t).forEach((function(e){return t[e]=null})),this.renderData=null),e.destroy(),Object.keys(e).forEach((function(t){return e[t]=null})),this.fadeData=null,this.gl&&(this.gl=null)}function dt(t,e,r,n){var i=this.renderData,o=this.options,a=this.gl;if(!(0,s.isNull)(i)){var u=i.parentElement,l=i.dropProgram,c=i.textures,p=i.framebuffers,d=i.bufferWriteIndex,h=i.bufferReadIndex,v=o.resolution,m=u.offsetWidth,g=u.offsetHeight,y=Math.max(m,g);r/=y;var b=new Float32Array([(2*t-m)/y,(g-2*e)/y]);a.viewport(0,0,v,v),a.bindFramebuffer(a.FRAMEBUFFER,p[d]),Reflect.apply(f,this,[c[h]]),a.useProgram(l.id),a.uniform2fv(l.locations.center,b),a.uniform1f(l.locations.radius,r),a.uniform1f(l.locations.strength,n),Reflect.apply(Q,this,[]),Reflect.apply(et,this,[])}}function ht(t){return ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ht(t)}function vt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,gt(n.key),n)}}function mt(t,e,r){return(e=gt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gt(t){var e=function(t){if("object"!=ht(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ht(e)?e:e+""}function yt(t,e,r){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}function bt(t,e){return t.get(wt(t,e))}function Et(t,e,r){return t.set(wt(t,e),r),r}function wt(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}var Rt=new WeakMap,Tt=new WeakMap,St=new WeakMap,Pt=new WeakMap,xt=new WeakMap,Ot=new WeakMap,kt=new WeakMap,At=function(){return t=function t(e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),yt(this,Rt,T.accelerating),yt(this,Tt,T.interactive),yt(this,St,T.resolution),yt(this,Pt,T.perturbance),yt(this,xt,T.dropRadius),mt(this,"imgUrl",T.imgUrl),yt(this,Ot,T.idleFluctuations),yt(this,kt,T.raindropsTimeInterval),mt(this,"crossOrigin","no-cors"),mt(this,"visible",!1),mt(this,"running",!1),mt(this,"lastRunningState",!1),this.perturbance=e.perturbance,this.resolution=e.resolution,this.raindropsTimeInterval=e.raindropsTimeInterval,this.accelerating=e.accelerating,this.interactive=e.interactive,this.dropRadius=e.dropRadius,this.imgUrl=e.imgUrl,this.idleFluctuations=e.idleFluctuations,this.running=Boolean(null===(r=e.playingState)||void 0===r||r),this.crossOrigin=e.crossOrigin},(e=[{key:"accelerating",get:function(){return bt(Rt,this)},set:function(t){t>100||t<2||Et(Rt,this,t)}},{key:"interactive",get:function(){return bt(Tt,this)},set:function(t){(0,s.isBoolean)(t)&&Et(Tt,this,t)}},{key:"resolution",get:function(){return bt(St,this)},set:function(t){t<100||t>550||Et(St,this,t)}},{key:"perturbance",get:function(){return bt(Pt,this)},set:function(t){t<1e-4||t>1||Et(Pt,this,t)}},{key:"dropRadius",get:function(){return bt(xt,this)},set:function(t){!isFinite(t)||t<10||Et(xt,this,t)}},{key:"idleFluctuations",get:function(){return bt(Ot,this)},set:function(t){(0,s.isBoolean)(t)&&Et(Ot,this,t)}},{key:"raindropsTimeInterval",get:function(){return bt(kt,this)},set:function(t){t<10||t>12e3||Et(kt,this,t)}},{key:"playingState",get:function(){return this.running},set:function(t){this.running=Boolean(null==t||t)}}])&&vt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function It(){var t=this,e=this.options,r=this.fadeData;r.transparentId=setTimeout((function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(It,t,[]);"image"!==r.lastDrawImage.kind&&r.run()}),2*e.raindropsTimeInterval)}function Dt(){var t=this.renderData,e=this.fadeData,r=this.options,n=e.toBeList;if((0,s.isNull)(t))return e.isTransitioning=!1,void Reflect.apply(It,this,[]);if((0,s.isEmptyArray)(n))return e.isTransitioning=!1,void Reflect.apply(It,this,[]);if(0===e.drawProgress&&n.forEach((function(t){})),e.drawProgress>1e3)if(e.isTransitioning=!1,e.lastDrawImage=n.shift(),Reflect.apply(st,this,[e.lastDrawImage]),(0,s.isEmptyArray)(n)){var i=t.lastUseStyle;(0,s.isNull)(r.imgUrl)&&p(i.backgroundColor)&&d(i.backgroundImage)&&(Reflect.apply(L,this,[!1]),Reflect.apply(It,this,[]))}else Reflect.apply(It,this,[]);else{var o=e.lastDrawImage,a=e.backgroundInfo;e.drawProgress+=18;var u=document.createElement("canvas"),l=u.getContext("2d");if(!((0,s.isNull)(l)||(0,s.isNull)(o.resource)||(0,s.isEmptyArray)(n))){var c=a.width,f=a.height;u.width=c,u.height=f,l.clearRect(0,0,c,f),l.drawImage(o.resource,0,0,c,f),l.globalAlpha=e.drawProgress/1e3,l.drawImage(n[0].resource,0,0,c,f),l.globalAlpha=1;var h={resource:u,width:c,height:f,kind:"mix",tag:"".concat(o.tag," >> ").concat(n[0].tag)};Reflect.apply(st,this,[h]),n.length>1&&(e.lastDrawImage=h,n.shift(),e.drawProgress=0)}}}function _t(t){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_t(t)}function Ft(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ut(n.key),n)}}function jt(t,e,r){return(e=Ut(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ut(t){var e=function(t){if("object"!=_t(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_t(e)?e:e+""}var Ct=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),jt(this,"backgroundInfo",{width:0,height:0}),jt(this,"transparentId",setTimeout(Boolean)),jt(this,"lastDrawImage",void 0),jt(this,"toBeList",[]),jt(this,"drawProgress",0),jt(this,"isTransitioning",!1);var r,n,i=e.renderData;if((0,s.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:N(r,n),width:r,height:n,kind:"default",tag:""}},(e=[{key:"run",value:function(){this.isTransitioning||(this.drawProgress=0,this.isTransitioning=!0)}},{key:"destroy",value:function(){this.transparentId&&clearTimeout(this.transparentId)}}])&&Ft(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Nt(t){return Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nt(t)}function Lt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lt(Object(r),!0).forEach((function(e){Gt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ht(n.key),n)}}function Xt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xt=function(){return!!t})()}function Wt(t){return Wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wt(t)}function zt(t,e){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zt(t,e)}function Gt(t,e,r){return(e=Ht(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ht(t){var e=function(t){if("object"!=Nt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nt(e)?e:e+""}var Yt=new WeakMap,qt=function(t){function e(t,r){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Gt(n=function(t,e,r){return e=Wt(e),function(t,e){if(e&&("object"==Nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Xt()?Reflect.construct(e,r||[],Wt(t).constructor):e.apply(t,r))}(this,e,[t]),"renderData",null),Gt(n,"options",void 0),Gt(n,"fadeData",void 0),Gt(n,"defaults",T),Gt(n,"initialized",!1),function(t,e,r){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,r)}(n,Yt,(0,w.debounce)(ft,{this:n})),Object.defineProperties(n,{defaults:{value:n.defaults,writable:!1,enumerable:!1,configurable:!1}}),n.options=new At(Bt(Bt({},n.defaults),r)),n.renderData=new K(t,n.reloadBackground,n),n.fadeData=new Ct(n),(0,s.isFalse)(n.initState)||(0,s.isNull)(t.parentElement)||(0,s.isNull)(n.config)||(0,s.isNull)(n.gl)?n.initState=!1:(function(t){var e=t.parentElement;t.width=e.clientWidth,t.height=e.clientHeight,(0,a.setStyle)(t,{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:-1,pointerEvents:"none"})}(t),Reflect.apply(ct,n,[])),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zt(t,e)}(e,t),r=e,n=[{key:"raindropsFall",value:function(){var t=this.renderData,e=this.options,r=this.fadeData;if(!(0,s.isNull)(t)){var n=r.backgroundInfo,i=t.lastRaindropsFallTime,o=e.raindropsTimeInterval,a=e.dropRadius,u=Date.now();if(!(u-i<o)){t.lastRaindropsFallTime=u;var l=function(t){return(0,w.getRandomInt)(t)},c=n.width,f=n.height;this.drop(l(c),l(f),a,.03)}}}},{key:"drop",value:function(t,e,r,n){Reflect.apply(dt,this,[t,e,r,n])}},{key:"fade",value:function(){Reflect.apply(Dt,this,[])}},{key:"reloadBackground",value:function(){var t,e;(t=Yt,e=this,t.get(function(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}(t,e))).call(this)}},{key:"destroy",value:function(){Reflect.apply(pt,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(H,this,[])}},{key:"pause",value:function(){this.options.running=!1}},{key:"play",value:function(){this.options.running=!0}},{key:"changePlayingState",value:function(){var t=this.options;t.running=!t.running}},{key:"set",value:function(t,e){"imgUrl"===t?(this.options.imgUrl=e,Reflect.apply(W,this,[])):this.options[t]=e}}],n&&Mt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(E);function $t(t,e){var r=(0,o.useRef)(null);return(0,o.useEffect)((function(){if(!(0,s.isNull)(t.current))return r.current=new qt(t.current,e&&e.option),function(){var t,e;return null!==(t=null===(e=r.current)||void 0===e?void 0:e.destroy())&&void 0!==t?t:void 0}}),[]),r}},109:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(601),i=r.n(n),o=r(314),a=r.n(o)()(i());a.push([t.id,".en-ripple-container{width:100%;height:100%;position:relative;top:0px;left:0px;z-index:1}",""]);const u=a},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",n=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),n&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),n&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,n,i,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var u=0;u<this.length;u++){var l=this[u][0];null!=l&&(a[l]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),i&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=i):c[4]="".concat(i)),e.push(c))}},e}},362:(t,e,n)=>{var i,o;t.exports=(i={isArray:()=>r.isArray,isBoolean:()=>r.isBoolean,isEmptyArray:()=>r.isEmptyArray,isFalse:()=>r.isFalse,isNull:()=>r.isNull,isString:()=>r.isString,isUndefined:()=>r.isUndefined,isZero:()=>r.isZero},o={},n.d(o,i),o)},411:(t,e,r)=>{var i,o;t.exports=(i={xcn:()=>n.xcn},o={},r.d(o,i),o)},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},601:t=>{t.exports=function(t){return t[1]}},649:(t,e,r)=>{var n,o;t.exports=(n={default:()=>i.default,forwardRef:()=>i.forwardRef,useEffect:()=>i.useEffect,useImperativeHandle:()=>i.useImperativeHandle,useRef:()=>i.useRef},o={},r.d(o,n),o)},659:t=>{var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}}},a={};function u(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={id:t,exports:{}};return o[t](r,r.exports,u),r.exports}u.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},u.d=(t,e)=>{for(var r in e)u.o(e,r)&&!u.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),u.nc=void 0;var l={};u.d(l,{z:()=>_});var s=u(649),c=u(78),f=u(362),p=u(411),d=u(72),h=u.n(d),v=u(825),m=u.n(v),g=u(659),y=u.n(g),b=u(56),E=u.n(b),w=u(540),R=u.n(w),T=u(113),S=u.n(T),P=u(109),x={};function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}x.styleTagTransform=S(),x.setAttributes=E(),x.insert=y().bind(null,"head"),x.domAPI=m(),x.insertStyleElement=R(),h()(P.A,x),P.A&&P.A.locals&&P.A.locals;var k=["children","style"];function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){D(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function D(t,e,r){return(e=function(t){var e=function(t){if("object"!=O(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _=(0,s.forwardRef)((function(t,e){var r=t.children,n=t.style,i=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,k),o=(0,s.useRef)(null),a=(0,c.n)(o,i);return function(t,e){(0,s.useEffect)((function(){if(e.option&&t.current){var r=e.option;Object.keys(t.current.defaults).forEach((function(e){!(0,f.isUndefined)(r[e])&&t.current&&t.current.set(e,r[e])}))}}),[e.option])}(a,i),(0,s.useImperativeHandle)(e,(function(){return{toggleState:function(){var t;null===(t=a.current)||void 0===t||t.changePlayingState()},get state(){var t,e;return null!==(t=null===(e=a.current)||void 0===e?void 0:e.options.playingState)&&void 0!==t&&t},pause:function(){var t;null===(t=a.current)||void 0===t||t.pause()},set:function(t){if(!(0,f.isUndefined)(t))for(var e=Object.keys(t),r=0,n=e.length;r<n;r++){var i,o=e[r];null===(i=a.current)||void 0===i||i.set(o,t[o])}}}})),s.default.createElement("div",{className:(0,p.xcn)("en-ripple-container"),style:I({backgroundRepeat:"round"},n)},s.default.createElement("canvas",{ref:o,"data-earthnut-ui":"canvas"}),r)}));_.displayName="en-background-ripple";const F=l.z;export{F as BackgroundRipple};
|
|
1
|
+
"use client";import*as e from"a-js-tools";import*as t from"a-type-of-js";import*as r from"react";import*as n from"a-element-inline-style";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,isEmptyArray:()=>t.isEmptyArray,isFalse:()=>t.isFalse,isNull:()=>t.isNull,isString:()=>t.isString,isUndefined:()=>t.isUndefined,isZero:()=>t.isZero})},502:()=>{function e(t){"@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(t)}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,r||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==e(r)?r:r+""}new(function(){return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),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})},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 V(e,t){for(;B()&&e+D!==57&&(e+D!==84||47!==L()););return"/*"+$(t,_-1)+"*"+m(47===e?e:B())}function Z(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(V(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+=Z(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 Ve(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ze(e,t,r){if(void 0===r&&(r=!1),!r&&!Ve(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Ze(e[n],t[n]);else if(Ve(t))for(var n in t)e[n]=Ze(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,";"):Ve(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]:Ve(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++)Ze(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)||Ve(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,n)=>{e.exports=(e=>{var t={};return n.d(t,e),t})({createElement:()=>r.createElement,default:()=>r.default,forwardRef:()=>r.forwardRef,useContext:()=>r.useContext,useEffect:()=>r.useEffect,useImperativeHandle:()=>r.useImperativeHandle,useMemo:()=>r.useMemo,useRef:()=>r.useRef,useState:()=>r.useState})},816:(e,t,r)=>{r.d(t,{n:()=>Ye});var i=r(649);const o=(e=>{var t={};return r.d(t,e),t})({setStyle:()=>n.setStyle});var a=r(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=r(161),b={imgUrl:"",resolution:360,dropRadius:12,perturbance:.01,interactive:!0,crossOrigin:"no-cors",playingState:!0,accelerating:1,raindropsTimeInterval:3600,idleFluctuations:!0};Object.freeze(b);var w;r(502);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)}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,R(n.key),n)}}function R(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+""}function P(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 T(e,t,r){return e.set(O(e,t),r),r}function x(e,t){return e.get(O(e,t))}function O(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 I(e){return function(e){if(Array.isArray(e))return k(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 k(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)?k(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 k(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 A=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(I(n.slice(w)),I(n.slice(0,w))),t},_=new(w=new WeakMap,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(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),P(this,w,1),function(e,t,r){(t=R(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"data",A())}),[{key:"build",value:function(){x(w,this)>100&&T(w,this,0),this.data=A(T(w,this,x(w,this)+3))}}])}());function D(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=_.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 C(){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});_.build(),n.push({resource:D(i,o),width:i,height:o,kind:"default",tag:a}),e&&t.run()}function j(){var e=this.renderData,t=this.fadeData,r=this.options;if((0,a.isNull)(e))return Reflect.apply(C,this,[]);var n=e.originStyle;if(c(n.backgroundColor)&&(!(0,a.isArray)(r.imgUrl)||1!==r.imgUrl.length))return Reflect.apply(C,this,[]);var i=document.createElement("canvas"),o=i.getContext("2d");if((0,a.isNull)(o))return Reflect.apply(C,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 F(){var e=this.fadeData,t=this.renderData,r=this.options;if((0,a.isNull)(t))return Reflect.apply(j,this,[]);var n=t.originStyle;if(!/linear-gradient\(.*\)/.test(n.backgroundImage)&&!(0,a.isArray)(r.imgUrl))return Reflect.apply(j,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(j,this,[]);var o=document.createElement("canvas"),s=o.getContext("2d");if((0,a.isNull)(s))return Reflect.apply(j,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 N(e){return function(e){if(Array.isArray(e))return U(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 U(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)?U(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 U(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 B(){var e=this,t=this.renderData,r=this.options,n=this.fadeData;if((0,a.isNull)(t))Reflect.apply(F,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(N(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(F,e,[])},p.crossOrigin=r.crossOrigin}else Reflect.apply(F,this,[])}}function L(){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 M(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 $(){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 z(e){"@babel/helpers - typeof";return z="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},z(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,G(n.key),n)}}function X(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"!=z(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==z(t)?t:t+""}var H=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(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),X(this,"quad",null),X(this,"lastRaindropsFallTime",0),X(this,"parentElement",void 0),X(this,"mutationObserver",void 0),X(this,"resizeObserver",void 0),X(this,"renderProgram",void 0),X(this,"imageSource",""),X(this,"dropProgram",void 0),X(this,"updateProgram",void 0),X(this,"textures",[]),X(this,"backgroundTexture",[]),X(this,"textureDelta",void 0),X(this,"framebuffers",[]),X(this,"bufferWriteIndex",0),X(this,"bufferReadIndex",1),X(this,"originStyle",void 0),X(this,"lastUseStyle",void 0),X(this,"events",{}),X(this,"animationFrameId",0),this.parentElement=null!==(i=t.parentElement)&&void 0!==i?i:document.body,Reflect.apply(L,n,[]),this.originStyle=this.lastUseStyle=M(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=M(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(L,n,[])}}))})),this.mutationObserver.observe(this.parentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),this.resizeObserver=new ResizeObserver((function(e){e.forEach((function(e){if(e.target===o.parentElement){var t=M(o.parentElement);Math.abs(t.width-o.originStyle.width)<3&&Math.abs(t.height-o.originStyle.height)<3||Reflect.apply(r,n,[])}}))})),this.resizeObserver.observe(this.parentElement)}),[{key:"destroy",value:function(){if(this.animationFrameId&&window.cancelAnimationFrame(this.animationFrameId),Reflect.apply($,{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 Y(){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(" "):q(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,q(n)?n=p.width*parseFloat(n)/100:"auto"!==n&&(n=parseFloat(n)),q(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=q(b)?(p.left+(p.width-Number(n))*parseFloat(b)/100).toString():(p.left+parseFloat(b)).toString(),w=q(w)?(p.top+(p.height-Number(i))*parseFloat(w)/100).toString():(p.top+parseFloat(w)).toString(),e.renderProgram.uniforms.topLeft=new Float32Array([(o.offsetLeft-Number(b))/n,(o.offsetTop-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 q(e){return e.endsWith("%")}function V(){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 Z(){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(V,this,[]),e.disable(e.BLEND)}}function K(){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 J(){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(V,this,[]),Reflect.apply(K,this,[])}}function Q(){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(Y,this,[]),s?(c||(r.lastRunningState=!0,this.show()),u&&this.raindropsFall(),o&&this.fade(),Reflect.apply(J,this,[]),Reflect.apply(Z,this,[])):c&&(r.lastRunningState=!1,this.hide()),t.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(Q,e,[])}))}}function ee(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 te(){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(ee,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 re="\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 ne(){var e=this.gl,t=this.renderData;if(!(0,a.isNull)(t)){var r=t.textureDelta;t.dropProgram=s(re,"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(re,"\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 ie(){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 oe(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.a=e.tag,t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e.resource)}}function ae(){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(ne,this,[]),Reflect.apply(ie,this,[]),Reflect.apply(B,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(te,this,[]),Reflect.apply(oe,this,[n.lastDrawImage]),t.animationFrameId=requestAnimationFrame((function(){return Reflect.apply(Q,e,[])}))}}function se(){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(B,this,[])}}function ue(){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 ce(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(V,this,[]),Reflect.apply(K,this,[])}}function le(e){"@babel/helpers - typeof";return le="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},le(e)}function fe(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 pe(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"!=le(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}function de(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){return e.get(ve(e,t))}function me(e,t,r){return e.set(ve(e,t),r),r}function ve(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 ye=new WeakMap,be=new WeakMap,we=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Re=new WeakMap,Pe=new WeakMap,Te=function(){return function(e,t,r){return t&&fe(e.prototype,t),r&&fe(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),de(this,ye,b.accelerating),de(this,be,b.interactive),de(this,we,b.resolution),de(this,Se,b.perturbance),de(this,Ee,b.dropRadius),pe(this,"imgUrl",b.imgUrl),de(this,Re,b.idleFluctuations),de(this,Pe,b.raindropsTimeInterval),pe(this,"crossOrigin","no-cors"),pe(this,"visible",!1),pe(this,"running",!1),pe(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 ge(ye,this)},set:function(e){e>100||e<2||me(ye,this,e)}},{key:"interactive",get:function(){return ge(be,this)},set:function(e){(0,a.isBoolean)(e)&&me(be,this,e)}},{key:"resolution",get:function(){return ge(we,this)},set:function(e){e<100||e>550||me(we,this,e)}},{key:"perturbance",get:function(){return ge(Se,this)},set:function(e){e<1e-4||e>1||me(Se,this,e)}},{key:"dropRadius",get:function(){return ge(Ee,this)},set:function(e){!isFinite(e)||e<10||me(Ee,this,e)}},{key:"idleFluctuations",get:function(){return ge(Re,this)},set:function(e){(0,a.isBoolean)(e)&&me(Re,this,e)}},{key:"raindropsTimeInterval",get:function(){return ge(Pe,this)},set:function(e){e<10||e>12e3||me(Pe,this,e)}},{key:"playingState",get:function(){return this.running},set:function(e){this.running=Boolean(null==e||e)}}])}();function xe(){var e=this,t=this.options,r=this.fadeData;r.transparentId=setTimeout((function(){if(clearTimeout(r.transparentId),r.isTransitioning)return Reflect.apply(xe,e,[]);"image"!==r.lastDrawImage.kind&&r.run()}),2*t.raindropsTimeInterval)}function Oe(){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(xe,this,[]);if((0,a.isEmptyArray)(n))return t.isTransitioning=!1,void Reflect.apply(xe,this,[]);if(0===t.drawProgress&&n.forEach((function(e){})),t.drawProgress>1e3)if(t.isTransitioning=!1,t.lastDrawImage=n.shift(),Reflect.apply(oe,this,[t.lastDrawImage]),(0,a.isEmptyArray)(n)){var i=e.lastUseStyle;(0,a.isNull)(r.imgUrl)&&c(i.backgroundColor)&&l(i.backgroundImage)&&(Reflect.apply(C,this,[!1]),Reflect.apply(xe,this,[]))}else Reflect.apply(xe,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(oe,this,[d]),n.length>1&&(t.lastDrawImage=d,n.shift(),t.drawProgress=0)}}}function Ie(e){"@babel/helpers - typeof";return Ie="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},Ie(e)}function ke(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 Ae(e,t,r){return(t=_e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e){var t=function(e,t){if("object"!=Ie(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ie(t)?t:t+""}var De=function(){return function(e,t,r){return t&&ke(e.prototype,t),r&&ke(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),Ae(this,"backgroundInfo",{width:0,height:0}),Ae(this,"transparentId",setTimeout(Boolean)),Ae(this,"lastDrawImage",void 0),Ae(this,"toBeList",[]),Ae(this,"drawProgress",0),Ae(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:D(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 Ce(e){"@babel/helpers - typeof";return Ce="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},Ce(e)}function je(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 Fe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){ze(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ne(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,We(n.key),n)}}function Ue(e,t,r){return t=Le(t),function(e,t){if(t&&("object"==Ce(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,Be()?Reflect.construct(t,r||[],Le(e).constructor):t.apply(e,r))}function Be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Be=function(){return!!e})()}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}function $e(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 ze(e,t,r){return(t=We(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function We(e){var t=function(e,t){if("object"!=Ce(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ce(t)?t:t+""}function Xe(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 Ge=new WeakMap,He=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),ze(n=Ue(this,t,[e]),"renderData",null),ze(n,"options",void 0),ze(n,"fadeData",void 0),ze(n,"defaults",b),ze(n,"initialized",!1),$e(n,Ge,(0,y.debounce)(se,{this:n})),Object.defineProperties(n,{defaults:{value:n.defaults,writable:!1,enumerable:!1,configurable:!1}}),n.options=new Te(Fe(Fe({},n.defaults),r)),n.renderData=new H(e,n.reloadBackground,n),n.fadeData=new De(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(ae,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&&Me(e,t)}(t,e),function(e,t,r){return t&&Ne(e.prototype,t),r&&Ne(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(ce,this,[e,t,r,n])}},{key:"fade",value:function(){Reflect.apply(Oe,this,[])}},{key:"reloadBackground",value:function(){Xe(Ge,this).call(this)}},{key:"destroy",value:function(){Reflect.apply(ue,this,[])}},{key:"show",value:function(){this.options.visible=!0,this.canvas.style.visibility="visible",Reflect.apply(L,this,[])}},{key:"hide",value:function(){this.options.visible=!1,this.canvas.style.visibility="hidden",Reflect.apply($,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(B,this,[])):this.options[e]=t}}])}(v);function Ye(e,t){var r=(0,i.useRef)(null);return(0,i.useEffect)((function(){if(!(0,a.isNull)(e.current))return r.current=new He(e.current,t&&t.option),function(){var e,t;return null!==(e=null===(t=r.current)||void 0===t?void 0:t.destroy())&&void 0!==e?e:void 0}}),[]),r}},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(816),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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={56:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},72:e=>{var t=[];function r(e){for(var r=-1,a=0;a<t.length;a++)if(t[a].identifier===e){r=a;break}return r}function a(e,a){for(var o={},i=[],l=0;l<e.length;l++){var u=e[l],c=a.base?u[0]+a.base:u[0],s=o[c]||0,d="".concat(c," ").concat(s);o[c]=s+1;var y=r(d),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==y)t[y].references++,t[y].updater(h);else{var f=n(h,a);a.byIndex=l,t.splice(l,0,{identifier:d,updater:f,references:1})}i.push(d)}return i}function n(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,n){var o=a(e=e||[],n=n||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var l=r(o[i]);t[l].references--}for(var u=a(e,n),c=0;c<o.length;c++){var s=r(o[c]);0===t[s].references&&(t[s].updater(),t.splice(s,1))}o=u}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",a=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),a&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),a&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,a,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(a)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(i[u]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);a&&i[s[0]]||(void 0!==o&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=o),r&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=r):s[2]=r),n&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=n):s[4]="".concat(n)),t.push(s))}},t}},384:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(601),n=r.n(a),o=r(314),i=r.n(o)()(n());i.push([e.id,'.LcdTDTWWkxGZFXQc8XNV{width:var(--layout-width);height:var(--layout-height);overflow-x:hidden;overflow-y:auto}.CxCt7n1zXeDfFdmgQAme{grid-area:header;position:sticky;top:0px;left:0px;z-index:10;height:var(--layout-header-height);box-shadow:0 4px 13px -3px rgba(0,0,0,.1019607843);overflow:hidden}.E2socS6t6fugHzd2ATQy{position:sticky;left:0;z-index:8;grid-area:side;overflow-x:hidden;overflow-y:auto}.k2yu7eCpEzToH_ynBglg{grid-area:content}.zWuykaXyereS6ELF7SHy{grid-area:footer;height:var(--layout-footer-height);box-shadow:0 -1px 13px 0px rgba(0,0,0,.1019607843);overflow:hidden}.O6AnGNbL5r3nPmEFEv73>.CxCt7n1zXeDfFdmgQAme{position:relative;z-index:2}.O6AnGNbL5r3nPmEFEv73.ognI7wqsq0lXqSVkJ0cj>.r_iQ4e7myBc0DSPRkp2u>.E2socS6t6fugHzd2ATQy,.O6AnGNbL5r3nPmEFEv73.Sax5A5AqDPokwTlrUZu5>.r_iQ4e7myBc0DSPRkp2u>.E2socS6t6fugHzd2ATQy{top:0;min-height:calc(var(--layout-height) - var(--layout-footer-height) - var(--layout-header-height));max-height:var(--layout-height)}.O6AnGNbL5r3nPmEFEv73.Wz4q5vQzeOw8RbDr0rOF>.E2socS6t6fugHzd2ATQy,.O6AnGNbL5r3nPmEFEv73.GkLVEZcHiQyvuSh0RLU5>.E2socS6t6fugHzd2ATQy{top:0;min-height:calc(var(--layout-height) - var(--layout-footer-height));max-height:var(--layout-height)}.rZPYzoPjyQP7sDeJbPjp>.E2socS6t6fugHzd2ATQy{top:0;height:var(--layout-height)}.ognI7wqsq0lXqSVkJ0cj>.r_iQ4e7myBc0DSPRkp2u,.Sax5A5AqDPokwTlrUZu5>.r_iQ4e7myBc0DSPRkp2u{display:grid;grid-template-rows:calc(var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height)) auto;min-height:calc(100% - var(--layout-header-height) - var(--layout-footer-height))}.ognI7wqsq0lXqSVkJ0cj>.r_iQ4e7myBc0DSPRkp2u>.E2socS6t6fugHzd2ATQy,.Sax5A5AqDPokwTlrUZu5>.r_iQ4e7myBc0DSPRkp2u>.E2socS6t6fugHzd2ATQy{top:var(--layout-header-height);min-height:calc(var(--layout-height) - var(--layout-header-height) - var(--layout-footer-height));max-height:calc(var(--layout-height) - var(--layout-header-height))}.ognI7wqsq0lXqSVkJ0cj>.r_iQ4e7myBc0DSPRkp2u,.UhPmIL0kNAGv5201kGbo>.r_iQ4e7myBc0DSPRkp2u{grid-template-columns:var(--layout-side-bar-width) auto;grid-template-areas:"side content" ". content"}.Sax5A5AqDPokwTlrUZu5>.r_iQ4e7myBc0DSPRkp2u,.Nkg7pjNAPCenCQZY8gLg>.r_iQ4e7myBc0DSPRkp2u{grid-template-columns:auto var(--layout-side-bar-width);grid-template-areas:"content side" "content ."}.XRYEv9hWhdcl2OHap6fQ,.SmA7SjLAZLofOenJZAWg{display:grid;grid-template-rows:var(--layout-header-height) auto var(--layout-footer-height);gap:0px}.XRYEv9hWhdcl2OHap6fQ{grid-template-columns:var(--layout-side-bar-width) auto;grid-template-areas:"side header" "side content" "side footer"}.SmA7SjLAZLofOenJZAWg{grid-template-columns:auto var(--layout-side-bar-width);grid-template-areas:"header side" "content side" "footer side"}.UhPmIL0kNAGv5201kGbo>.r_iQ4e7myBc0DSPRkp2u,.Nkg7pjNAPCenCQZY8gLg>.r_iQ4e7myBc0DSPRkp2u{display:grid;grid-template-rows:auto}.UhPmIL0kNAGv5201kGbo>.r_iQ4e7myBc0DSPRkp2u>.E2socS6t6fugHzd2ATQy,.Nkg7pjNAPCenCQZY8gLg>.r_iQ4e7myBc0DSPRkp2u>.E2socS6t6fugHzd2ATQy{top:0;min-height:calc(var(--layout-height) - var(--layout-footer-height));max-height:var(--layout-height)}.UT3CcVcTx9pLwV2GGFGi,.tzvYxycvFA9rcOf26LP7{display:grid;grid-template-rows:auto var(--layout-footer-height);gap:0px}.UT3CcVcTx9pLwV2GGFGi{grid-template-columns:var(--layout-side-bar-width) auto;grid-template-areas:"side content" "side footer"}.tzvYxycvFA9rcOf26LP7{grid-template-columns:auto var(--layout-side-bar-width);grid-template-areas:"content side" "footer side"}.Wz4q5vQzeOw8RbDr0rOF,.GkLVEZcHiQyvuSh0RLU5{display:grid;grid-template-rows:var(--layout-header-height) auto;min-height:calc(100% - var(--layout-header-height));gap:0px}.Wz4q5vQzeOw8RbDr0rOF>.E2socS6t6fugHzd2ATQy,.GkLVEZcHiQyvuSh0RLU5>.E2socS6t6fugHzd2ATQy{top:var(--layout-header-height);height:calc(var(--layout-height) - var(--layout-header-height))}.Wz4q5vQzeOw8RbDr0rOF{grid-template-columns:var(--layout-side-bar-width) auto;grid-template-areas:"header header" "side content" ". content"}.GkLVEZcHiQyvuSh0RLU5{grid-template-columns:auto var(--layout-side-bar-width);grid-template-areas:"header header" "content side" "content ."}.cFlRZr9kGWMtc0nRYCWE,.DzmD_4Su8YXCKKIwXjG1{display:grid;grid-template-rows:var(--layout-header-height) auto;gap:0px}.cFlRZr9kGWMtc0nRYCWE>.k2yu7eCpEzToH_ynBglg,.DzmD_4Su8YXCKKIwXjG1>.k2yu7eCpEzToH_ynBglg{min-height:calc(var(--layout-height) - var(--layout-header-height))}.cFlRZr9kGWMtc0nRYCWE{grid-template-columns:var(--layout-side-bar-width) auto;grid-template-areas:"side header" "side content"}.DzmD_4Su8YXCKKIwXjG1{grid-template-columns:auto var(--layout-side-bar-width);grid-template-areas:"header side" "content side"}.sm5xSKZmdrGS3a6b5rcN{display:grid;grid-template-rows:auto var(--layout-footer-height);grid-template-columns:1fr;gap:0px;grid-template-areas:"content" "footer"}.qxhkwYH_Y7uyvMDH8JyZ{display:grid;grid-template-rows:var(--layout-header-height) auto;grid-template-columns:1fr;gap:0px;grid-template-areas:"header" "content"}.sAEoDcBqMzkziXXvgv8X,.jxy4KSYJK23WN2rx2CDS,.wVTitTPpRyG8XfbxJGhy,.mKVYywd6gr5_u2naW5_u{display:grid;grid-template-rows:100%;grid-template-columns:var(--layout-side-bar-width) auto;gap:0px;grid-template-areas:"side content" ". content"}.mKVYywd6gr5_u2naW5_u,.jxy4KSYJK23WN2rx2CDS{grid-template-areas:"content side" "content .";grid-template-columns:auto var(--layout-side-bar-width)}',""]),i.locals={"en-layout":"LcdTDTWWkxGZFXQc8XNV","en-layout-header":"CxCt7n1zXeDfFdmgQAme","en-layout-side":"E2socS6t6fugHzd2ATQy","en-layout-main":"k2yu7eCpEzToH_ynBglg","en-layout-footer":"zWuykaXyereS6ELF7SHy","en-layout-header-no-sticky":"O6AnGNbL5r3nPmEFEv73","en-layout-simple-all":"ognI7wqsq0lXqSVkJ0cj","en-layout-content":"r_iQ4e7myBc0DSPRkp2u","en-layout-side-right-all":"Sax5A5AqDPokwTlrUZu5","en-layout-simple-no-footer":"Wz4q5vQzeOw8RbDr0rOF","en-layout-side-right-no-footer":"GkLVEZcHiQyvuSh0RLU5","en-layout-side-full":"rZPYzoPjyQP7sDeJbPjp","en-layout-simple-no-header":"UhPmIL0kNAGv5201kGbo","en-layout-side-right-no-header":"Nkg7pjNAPCenCQZY8gLg","en-layout-side-full-all":"XRYEv9hWhdcl2OHap6fQ","en-layout-side-right-full-all":"SmA7SjLAZLofOenJZAWg","en-layout-side-full-no-header":"UT3CcVcTx9pLwV2GGFGi","en-layout-side-right-full-no-header":"tzvYxycvFA9rcOf26LP7","en-layout-side-full-no-footer":"cFlRZr9kGWMtc0nRYCWE","en-layout-side-right-full-no-footer":"DzmD_4Su8YXCKKIwXjG1","en-layout-only-footer":"sm5xSKZmdrGS3a6b5rcN","en-layout-only-header":"qxhkwYH_Y7uyvMDH8JyZ","en-layout-simple-only-side":"sAEoDcBqMzkziXXvgv8X","en-layout-side-right-only-side":"jxy4KSYJK23WN2rx2CDS","en-layout-side-full-only-side":"wVTitTPpRyG8XfbxJGhy","en-layout-side-right-full-only-side":"mKVYywd6gr5_u2naW5_u"};const l=i},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},570:e=>{e.exports=require("a-type-of-js")},601:e=>{e.exports=function(e){return e[1]}},659:e=>{var t={};e.exports=function(e,r){var a=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(r)}},763:e=>{e.exports=require("xcn")},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var a="";r.supports&&(a+="@supports (".concat(r.supports,") {")),r.media&&(a+="@media ".concat(r.media," {"));var n=void 0!==r.layer;n&&(a+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),a+=r.css,n&&(a+="}"),r.media&&(a+="}"),r.supports&&(a+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(a,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},953:e=>{e.exports=require("react")}},t={};function r(a){var n=t[a];if(void 0!==n)return n.exports;var o=t[a]={id:a,exports:{}};return e[a](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 a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},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 a={};r.r(a),r.d(a,{EnLayout:()=>q,EnLayoutContent:()=>N,EnLayoutFooter:()=>T,EnLayoutHeader:()=>P,EnLayoutSideBar:()=>j,Layout:()=>q,LayoutContent:()=>N,LayoutFooter:()=>T,LayoutHeader:()=>P,LayoutSideBar:()=>j});var n=r(953),o=r.n(n),i=r(763),l=r(72),u=r.n(l),c=r(825),s=r.n(c),d=r(659),y=r.n(d),h=r(56),f=r.n(h),p=r(540),g=r.n(p),m=r(113),v=r.n(m),b=r(384),w={};w.styleTagTransform=v(),w.setAttributes=f(),w.insert=y().bind(null,"head"),w.domAPI=s(),w.insertStyleElement=g(),u()(b.A,w);const S=b.A&&b.A.locals?b.A.locals:void 0;var O=["className","children","height","noSticky"];function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},x.apply(null,arguments)}var P=o().forwardRef((function(e,t){var r=e.className,a=e.children,n=(e.height,e.noSticky,function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,O));return o().createElement("div",x({ref:t,className:(0,i.xcn)(S["en-layout-header"],r)},n,{"data-earthnut-ui":"layout-header"}),a)}));P.displayName="LayoutHeader";var E=["className","width","right","full"];function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},k.apply(null,arguments)}var j=o().forwardRef((function(e,t){var r=e.className,a=(e.width,e.right,e.full,function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,E));return o().createElement("div",k({className:(0,i.xcn)(S["en-layout-side"],r),ref:t},a,{"data-earthnut-ui":"layout-side-bar"}))}));j.displayName="LayoutSideBar";var A=["className"];function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},L.apply(null,arguments)}var N=o().forwardRef((function(e,t){var r=e.className,a=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,A);return o().createElement("main",L({ref:t,className:(0,i.xcn)(S["en-layout-main"],r)},a,{"data-earthnut-ui":"layout-content"}))}));N.displayName="LayoutContent";var D=["className","height"];function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Q.apply(null,arguments)}var T=o().forwardRef((function(e,t){var r=e.className,a=(e.height,function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,D));return o().createElement("div",Q({ref:t},a,{className:(0,i.xcn)(S["en-layout-footer"],r),"data-earthnut-ui":"layout-footer"}))}));T.displayName="LayoutFooter";var z=r(570);function R(e){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)}var C=["className","children","style","width","height"];function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},G.apply(null,arguments)}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _(e,t,r){return(t=function(e){var t=function(e){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var q=n.forwardRef((function(e,t){var r,a,o,l,u=e.className,c=e.children,s=e.style,d=e.width,y=void 0===d?"100vw":d,h=e.height,f=void 0===h?"100vh":h,p=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,C),g="simple",m="",v=!1,b=!1,w=!1,O=!1,x=150,E="2.8rem",k="2rem",A=!1;n.Children.forEach(c,(function(e){if(n.isValidElement(e))if(v||e.type!==P)if(b||e.type!==j)w||e.type!==N?w||e.type!==q?O||e.type!==T||(k=e.props.height||k,l=e,O=!0):(o=n.createElement("main",{"data-earthnut-ui":"layout-content",className:(0,i.xcn)(S["en-layout-main"])},e),w=!0):(o=e,w=!0);else{var t=e.props;x=t.width||x,g=t.right&&t.full?"side-right-full":t.right?"side-right":t.full?"side-full":"simple",A=(0,z.isTrue)(t.full),a=e,b=!0}else{var u=e.props;E=u.height||E,m=u.noSticky?S["en-layout-header-no-sticky"]:"",r=e,v=!0}}));var L=v&&b&&w&&O&&S["en-layout-".concat(g,"-all")]||v&&w&&b&&S["en-layout-".concat(g,"-no-footer")]||b&&w&&O&&S["en-layout-".concat(g,"-no-header")]||w&&O&&S["en-layout-only-footer"]||w&&v&&S["en-layout-only-header"]||w&&b&&(A=!0)&&S["en-layout-".concat(g,"-only-side")]||"";return n.createElement("div",G({ref:t,className:(0,i.xcn)(S["en-layout"],A&&S["en-layout-side-full"],L,m,u),style:H({"--layout-width":X(y),"--layout-height":X(f),"--layout-side-bar-width":X(x),"--layout-header-height":X(E),"--layout-footer-height":X(k)},s)},p,{"data-earthnut-ui":"layout"}),/side.*full/.test(g)?n.createElement(n.Fragment,null,a,r,o,l):n.createElement(n.Fragment,null,r,O?n.createElement("div",{className:(0,i.xcn)(S["en-layout-content"]),"data-earthnut-ui":"layout-with-foot-content"},a,o):n.createElement(n.Fragment,null,a,o),l))}));function X(e){return(0,z.isNumber)(e)||parseInt(e)===Number(e)?e+"px":e||0}q.displayName="Layout",module.exports.earthnut=a})();
|
|
1
|
+
"use client";(()=>{var e={502:()=>{"use strict";function e(t){"@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(t)}function t(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}function n(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}new(function(){return function(e,n,r){return n&&t(e.prototype,n),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);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})},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 o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.create;function o(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var a=n(953),i=n.n(a),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 N=1,I=1,C=0,k=0,T=0,R="";function _(e,t,n,r,o,a,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:N,column:I,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 T=k>0?x(R,--k):0,I--,10===T&&(I=1,N--),T}function L(){return T=k<C?x(R,k++):0,I++,10===T&&(I=1,N++),T}function F(){return x(R,k)}function B(){return k}function G(e,t){return P(R,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 N=I=1,C=j(R=e),k=0,[]}function Y(e){return R="",e}function q(e){return b(G(k-1,Z(91===e?e+2:40===e?e+1:e)))}function U(e){for(;(T=F())&&T<33;)L();return M(e)>2||M(T)>3?"":" "}function V(e,t){for(;--t&&L()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return G(e,B()+(t<6&&32==F()&&32==L()))}function Z(e){for(;L();)switch(T){case e:return k;case 34:case 39:34!==e&&39!==e&&Z(T);break;case 40:41===e&&Z(e);break;case 92:L()}return k}function J(e,t){for(;L()&&e+T!==57&&(e+T!==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,o,a,i,s){return u+n+":"+r+s+(o?u+n+"-span:"+(a?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,o,a,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="",$=o,E=a,N=r,I=P;v;)switch(h=w,w=L()){case 40:if(108!=h&&58==x(I,f-1)){-1!=O(I+=S(q(w),"&","&\f"),"&\f",g(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:I+=q(w);break;case 9:case 10:case 13:case 32:I+=U(h);break;case 92:I+=V(B()-1,7);continue;case 47:switch(F()){case 42:case 47:A(ae(J(L(),B()),t,n,c),c);break;default:I+="/"}break;case 123*y:s[u++]=j(I)*b;case 125*y:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+l:-1==b&&(I=S(I,/\f/g,"")),p>0&&j(I)-f&&A(p>32?ie(I+";",r,n,f-1,c):ie(S(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(A(N=oe(I,t,n,u,l,o,s,P,$=[],E=[],f,a),a),123===w)if(0===l)re(I,t,N,N,$,a,f,s,E);else switch(99===d&&110===x(I,3)?100:d){case 100:case 108:case 109:case 115:re(e,N,N,r&&A(oe(e,N,N,0,0,o,s,P,o,$=[],f,E),E),o,E,f,s,r?$:E);break;default:re(I,N,N,N,[""],E,0,s,E)}}u=l=p=0,y=b=1,P=I="",f=i;break;case 58:f=1+j(I),p=h;default:if(y<1)if(123==w)--y;else if(125==w&&0==y++&&125==D())continue;switch(I+=m(w),w*y){case 38:b=l>0?1:(I+="\f",-1);break;case 44:s[u++]=(j(I)-1)*b,b=1;break;case 64:45===F()&&(I+=q(L())),d=F(),l=f=j(P=I+=K(B())),w++;break;case 45:45===h&&2==j(I)&&(y=0)}}return a}function oe(e,t,n,r,o,a,i,s,c,u,l,f){for(var d=o-1,h=0===o?a:[""],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===o?p:s,c,u,l,f)}function ae(e,t,n,r){return _(e,t,n,d,m(T),P(e,2,-2),0,r)}function ie(e,t,n,r,o){return _(e,t,n,h,P(e,0,r),P(e,r+1,-1),r,o)}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 Ne(e){return e.displayName||e.name||"Component"}function Ie(e){return"string"==typeof e&&!0}var Ce="function"==typeof Symbol&&Symbol.for,ke=Ce?Symbol.for("react.memo"):60115,Te=Ce?Symbol.for("react.forward_ref"):60112,Re={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={})[Te]={$$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]:Re;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 o=Fe(t);Be&&(o=o.concat(Be(t)));for(var a=De(e),i=De(t),s=0;s<o.length;++s){var c=o[s];if(!(c in _e||n&&n[c]||i&&c in i||a&&c in a)){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,o=r;e>=o;)if((o<<=1)<0)throw Xe(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a<o;a++)this.groupSizes[a]=0}for(var i=this.indexOfGroup(e+1),s=(a=0,t.length);a<s;a++)this.tag.insertRule(i,t[a])&&(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 o=n;o<r;o++)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),o=r+n,a=r;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(de);return t},e}(),tt=new Map,nt=new Map,rt=1,ot=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},at=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,o=n.split(","),a=0,i=o.length;a<i;a++)(r=o[a])&&e.registerName(t,r)},ut=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(de),o=[],a=0,i=r.length;a<i;a++){var s=r[a].trim();if(s){var c=s.match(st);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(at(l,u),ct(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},lt=function(e){for(var t=document.querySelectorAll(it),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ce)!==ue&&(ut(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ft(){return n.nc}var dt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ce,"]")));return t[t.length-1]}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(ce,ue),r.setAttribute(le,fe);var i=ft();return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),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 o=t[n];if(o.ownerNode===e)return o}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 o=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="",o=function(n){var o=function(e){return nt.get(e)}(n);if(void 0===o)return"continue";var a=e.names.get(o),i=t.getGroup(n);if(void 0===a||!a.size||0===i.length)return"continue";var s="".concat(ce,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),r+="".concat(i).concat(s,'{content:"').concat(c,'"}').concat(de)},a=0;a<n;a++)o(a);return r}(o)}))}return e.registerId=function(e){return ot(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(ot(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(ot(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ot(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,o=void 0===e?ge:e,a=o.options,i=void 0===a?ge:a,s=o.plugins,c=void 0===s?ye:s,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.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,o,a,s){void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(wt,""),u=ne(a||o?"".concat(a," ").concat(o," { ").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 o="",a=0;a<d;a++)o+=f[a](e,t,n,r)||"";return o})),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,a.useContext)(jt)}function Et(e){var t=(0,a.useState)(e.stylisPlugins),n=t[0],r=t[1],o=At().styleSheet,s=(0,a.useMemo)((function(){var t=o;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,o]),u=(0,a.useMemo)((function(){return Ot({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,a.useEffect)((function(){c()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=(0,a.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 Nt=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}(),It=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;It(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var kt=function(e){return null==e||!1===e||""===e},Tt=function(e){var t,n,r=[];for(var a in e){var i=e[a];e.hasOwnProperty(a)&&!kt(i)&&(Array.isArray(i)&&i.isCss||qe(i)?r.push("".concat(Ct(a),":"),i,";"):Je(i)?r.push.apply(r,o(o(["".concat(a," {")],Tt(i),!1),["}"],!1)):r.push("".concat(Ct(a),": ").concat((t=a,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 Rt(e,t,n,r){return kt(e)?[]:Ue(e)?[".".concat(e.styledComponentId)]:qe(e)?!qe(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Rt(e(t),t,n,r):e instanceof Nt?n?(e.inject(n,r),[e.getName(r)]):[e]:Je(e)?Tt(e):Array.isArray(e)?Array.prototype.concat.apply(ye,e.map((function(e){return Rt(e,t,n,r)}))):[e.toString()];var o}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 o=Ze(Rt(this.rules,e,t,n)),a=Pe($e(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,a)){var i=n(o,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,i)}r=Ve(r,a),this.staticRulesId=a}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(Rt(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 o=Ue(e),s=e,c=!Ie(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 Ie(e)?"styled.".concat(e):"Styled(".concat(Ne(e),")")}(e):p,y=t.displayName&&t.componentId?"".concat(Se(t.displayName),"-").concat(t.componentId):t.componentId||d,g=o&&s.attrs?s.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(o&&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,o?s.componentStyle:void 0);function S(e,t){return function(e,t,n){var o=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 o,a=r(r({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var s=qe(o=e[i])?o(a):o;for(var c in s)a[c]="className"===c?Ve(a[c],s[c]):"style"===c?r(r({},a[c]),s[c]):s[c]}return t.className&&(a.className=Ve(a.className,t.className)),a}(o,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[Ie(m)&&!ve.has(m)?"class":"className"]=S,n&&(v.ref=n),(0,a.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=o?Ve(s.foldedComponentIds,s.styledComponentId):"",O.styledComponentId=y,O.target=o?s.target:e,Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ke(e,o[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,o=t.length;r<o;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(Rt(Bt(ye,o([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Rt(r):Gt(Rt(Bt(r,t)))}function Wt(e,t,n){if(void 0===n&&(n=ge),!t)throw Xe(1,t);var a=function(r){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return e(t,n,Mt.apply(void 0,o([r],a,!1)))};return a.attrs=function(o){return Wt(e,t,r(r({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},a.withConfig=function(o){return Wt(e,t,r(r({},n),o))},a}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 o=r(Ze(Rt(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,o)},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 o=((t={})[ce]="",t[le]=fe,t.dangerouslySetInnerHTML={__html:n},t),a=ft();return a&&(o.nonce=a),[i().createElement("style",r({},o,{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 o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var u=a[c];if(!s(u))return!1;var l=e[u],f=t[u];if(!1===(o=n?n.call(r,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},953:e=>{"use strict";e.exports=require("react")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.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 o=require("xcn");var a,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(a||(a=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,a=e.children,i=(e.height,e.noSticky,function(e,t){if(null==e)return{};var n,r,o=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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s));return t().createElement(u,c({ref:n,className:(0,o.xcn)(["en-layout-header"],r)},i,{"data-earthnut-ui":"layout-header"}),a)}));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,a=(e.width,e.right,e.full,function(e,t){if(null==e)return{};var n,r,o=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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,d));return t().createElement(h,p({className:(0,o.xcn)("en-layout-side",r),ref:n},a,{"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,a=function(e,t){if(null==e)return{};var n,r,o=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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,m);return t().createElement(b,v({ref:n,className:(0,o.xcn)("en-layout-main",r)},a,{"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,a=(e.height,function(e,t){if(null==e)return{};var n,r,o=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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,O));return t().createElement(P,x({ref:n},a,{className:(0,o.xcn)("en-layout-footer",r),"data-earthnut-ui":"layout-footer"}))}));j.displayName="LayoutFooter";var $,A,E,N,I,C,k,T,R,_,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,o=e.$content,a=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 "])),o,a),("simple-no-footer"===r||"side-right-no-footer"===r)&&(0,i.AH)(N||(N=Q(["\n & > ."," {\n top: 0;\n min-height: calc(var(--layout-height) - var(--layout-footer-height));\n max-height: var(--layout-height);\n }\n "])),a))}),(function(e){var t=e.$layoutType,n=e.$sidebar;return"side-full"===t&&(0,i.AH)(I||(I=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)(T||(T=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)(R||(R=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})}n(502);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 oe,ae=["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(oe||(oe=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,a,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,o=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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,ae),b="simple",S=!1,O=!1,x=!1,P=!1,$=!1,A=150,E="2.8rem",N="2rem",I=!1,C=ne("header"),k=ne("content"),T=ne("main"),R=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;N=n.props.height||N,s=e.cloneElement(n,{className:(0,o.xcn)(_,n.props.className)}),$=!0}}else{var c=t;i=e.createElement(le,{"data-earthnut-ui":"layout-content",className:(0,o.xcn)(T,"en-layout-main")},c),P=!0}else{var u=t;i=e.cloneElement(u,{className:(0,o.xcn)(T,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",I=(0,K.isTrue)(d.full),a=e.cloneElement(f,{className:(0,o.xcn)(R,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,o.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&&(I=!0)&&"".concat(b,"-only-side")||"simple",H=ce({layoutHeight:p,layoutWith:g,sideBarWidth:A,headerHeight:E,footerHeight:N},v.theme||{}),D=/side.*full/.test(b);return e.createElement(X,ie({ref:n,$headerNoSticky:S,$layoutType:z,$header:C,$sidebar:R,$main:T,$content:k,$footer:_,className:(0,o.xcn)(I&&"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(N)},f),theme:H},v,{"data-earthnut-ui":"layout"}),D?e.createElement(e.Fragment,null,a,r,i,s):e.createElement(e.Fragment,null,r,$?e.createElement("div",{className:(0,o.xcn)(k),"data-earthnut-ui":"layout-with-foot-content"},a,i):e.createElement(e.Fragment,null,a,i),s))}));fe.displayName="Layout"})(),module.exports.earthnut=r})();
|