kxd-react-route-cache
Version:
change color from react-route-cache for my project
15 lines • 239 kB
JavaScript
"use strict";var e=require("react"),t=require("react-dom"),n=require("react-router-dom");function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=r(e);function i(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;const a=({show:n,children:r,to:o,style:i})=>{const[a]=e.useState((()=>document.createElement("div")));return e.useEffect((()=>{a.style.cssText="",Object.keys(i||{}).forEach((e=>{a.style[e]=i[e]}))}),[i]),e.useEffect((()=>{var e;n&&(null===(e=o.current)||void 0===e||e.replaceChildren(a))}),[n]),t.createPortal(r,a)},c=e.createContext({activateds:{},deactivateds:{}});c.displayName="KeepAliveContext";const s=()=>{const t=e.useContext(c);if(!t)throw new Error("useKeepAlive必须在KeepAliveContext中使用");return t};var l=e.createContext({});function u(){return u=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},u.apply(null,arguments)}function f(e){if(Array.isArray(e))return e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){return f(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||p(e,t)||h()}function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}function y(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(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(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x={exports:{}};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var i in e)t.call(e,i)&&e[i]&&(r=o(r,i));return r}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(x);var E=w(x.exports);function k(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function C(e){return Math.min(1,Math.max(0,e))}function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function S(e){return e<=1?"".concat(100*Number(e),"%"):e}function P(e){return 1===e.length?"0"+e:String(e)}function F(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,c=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=c>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:a,l:c}}function M(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function A(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,c=r-o,s=0===r?0:c/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4}i/=6}return{h:i,s:s,v:a}}function j(e,t,n,r){var o=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function N(e){return _(e)/255}function _(e){return parseInt(e,16)}var $={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function R(e){var t,n,r,o={r:0,g:0,b:0},i=1,a=null,c=null,s=null,l=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if($[e])e=$[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=D.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=D.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=D.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=D.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=D.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=D.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=D.hex8.exec(e),n)return{r:_(n[1]),g:_(n[2]),b:_(n[3]),a:N(n[4]),format:t?"name":"hex8"};if(n=D.hex6.exec(e),n)return{r:_(n[1]),g:_(n[2]),b:_(n[3]),format:t?"name":"hex"};if(n=D.hex4.exec(e),n)return{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),a:N(n[4]+n[4]),format:t?"name":"hex8"};if(n=D.hex3.exec(e),n)return{r:_(n[1]+n[1]),g:_(n[2]+n[2]),b:_(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(I(e.r)&&I(e.g)&&I(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*k(t,255),g:255*k(n,255),b:255*k(r,255)},l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):I(e.h)&&I(e.s)&&I(e.v)?(a=S(e.s),c=S(e.v),o=function(e,t,n){e=6*k(e,360),t=k(t,100),n=k(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),c=n*(1-(1-o)*t),s=r%6;return{r:255*[n,a,i,i,c,n][s],g:255*[c,n,n,a,i,i][s],b:255*[i,i,c,n,n,a][s]}}(e.h,a,c),l=!0,u="hsv"):I(e.h)&&I(e.s)&&I(e.l)&&(a=S(e.s),s=S(e.l),o=function(e,t,n){var r,o,i;if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=M(c,a,e+1/3),o=M(c,a,e),i=M(c,a,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=O(i),{ok:l,format:e.format||u,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:i}}var T="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),V="[\\s|\\(]+(".concat(T,")[,|\\s]+(").concat(T,")[,|\\s]+(").concat(T,")\\s*\\)?"),L="[\\s|\\(]+(".concat(T,")[,|\\s]+(").concat(T,")[,|\\s]+(").concat(T,")[,|\\s]+(").concat(T,")\\s*\\)?"),D={CSS_UNIT:new RegExp(T),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+L),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+L),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+L),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function I(e){return Boolean(D.CSS_UNIT.exec(String(e)))}var z=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=R(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=O(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=A(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=A(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=F(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=F(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),j(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var i,a=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16)),P((i=r,Math.round(255*parseFloat(i)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*k(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*k(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+j(this.r,this.g,this.b,!1),t=0,n=Object.entries($);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=C(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=C(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=C(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=C(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),H=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function B(e){var t=A(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function W(e){var t=e.r,n=e.g,r=e.b;return"#".concat(j(t,n,r,!1))}function q(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function X(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function G(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function U(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=R(e),o=5;o>0;o-=1){var i=B(r),a=W(R({h:q(i,o,!0),s:X(i,o,!0),v:G(i,o,!0)}));n.push(a)}n.push(W(r));for(var c=1;c<=4;c+=1){var s=B(r),l=W(R({h:q(s,c),s:X(s,c),v:G(s,c)}));n.push(l)}return"dark"===t.theme?H.map((function(e){var r,o,i,a=e.index,c=e.opacity;return W((r=R(t.backgroundColor||"#141414"),o=R(n[a]),i=100*c/100,{r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b}))})):n}var Y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},K=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];K.primary=K[5];var Z=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Z.primary=Z[5];var Q=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Q.primary=Q[5];var J=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];J.primary=J[5];var ee=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];ee.primary=ee[5];var te=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];te.primary=te[5];var ne=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ne.primary=ne[5];var re=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];re.primary=re[5];var oe=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];oe.primary=oe[5];var ie=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ie.primary=ie[5];var ae=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ae.primary=ae[5];var ce=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ce.primary=ce[5];var se=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];se.primary=se[5];var le={red:K,volcano:Z,orange:Q,gold:J,yellow:ee,lime:te,green:ne,cyan:re,blue:oe,geekblue:ie,purple:ae,magenta:ce,grey:se};function ue(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 fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var pe="data-rc-order",he="data-rc-priority",ve=new Map;function ge(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function me(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ye(e){return Array.from((ve.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!de())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),c="prependQueue"===a,s=document.createElement("style");s.setAttribute(pe,a),c&&i&&s.setAttribute(he,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=me(t),u=l.firstChild;if(r){if(c){var f=(t.styles||ye(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(pe)))return!1;var t=Number(e.getAttribute(he)||0);return i>=t}));if(f.length)return l.insertBefore(s,f[f.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=me(t);return(t.styles||ye(n)).find((function(n){return n.getAttribute(ge(t))===e}))}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=we(e,t);n&&me(t).removeChild(n)}function Ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=me(n),o=ye(r),i=fe(fe({},n),{},{styles:o});!function(e,t){var n=ve.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=be("",t),o=r.parentNode;ve.set(e,o),e.removeChild(r)}}(r,i);var a=we(t,i);if(a){var c,s,l;if(null!==(c=i.csp)&&void 0!==c&&c.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(l=i.csp)||void 0===l?void 0:l.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=be(e,i);return u.setAttribute(ge(i),t),u}function ke(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ce(e){return function(e){return ke(e)instanceof ShadowRoot}(e)?ke(e):null}var Oe={},Se=[];function Pe(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Se.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function Fe(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Se.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function Me(){Oe={}}function Ae(e,t,n){t||Oe[n]||(e(!1,n),Oe[n]=!0)}function je(e,t){Ae(Pe,e,t)}function Ne(e){return"object"===g(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===g(e.icon)||"function"==typeof e.icon)}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function $e(t,n,r){return r?e.createElement(t.tag,fe(fe({key:n},_e(t.attrs)),r),(t.children||[]).map((function(e,r){return $e(e,"".concat(n,"-").concat(t.tag,"-").concat(r))}))):e.createElement(t.tag,fe({key:n},_e(t.attrs)),(t.children||[]).map((function(e,r){return $e(e,"".concat(n,"-").concat(t.tag,"-").concat(r))})))}function Re(e){return U(e)[0]}function Te(e){return e?Array.isArray(e)?e:[e]:[]}je.preMessage=function(e){Se.push(e)},je.resetWarned=Me,je.noteOnce=function(e,t){Ae(Fe,e,t)};var Ve=["icon","className","onClick","style","primaryColor","secondaryColor"],Le={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var De=function(t){var n,r,i,a,c,s,u,f=t.icon,d=t.className,p=t.onClick,h=t.style,v=t.primaryColor,g=t.secondaryColor,m=b(t,Ve),y=o.useRef(),w=Le;if(v&&(w={primaryColor:v,secondaryColor:g||Re(v)}),n=y,r=e.useContext(l),i=r.csp,a=r.prefixCls,c="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",a&&(c=c.replace(/anticon/g,a)),e.useEffect((function(){var e=Ce(n.current);Ee(c,"@ant-design-icons",{prepend:!0,csp:i,attachTo:e})}),[]),s=Ne(f),u="icon should be icon definiton, but got ".concat(f),je(s,"[@ant-design/icons] ".concat(u)),!Ne(f))return null;var x=f;return x&&"function"==typeof x.icon&&(x=fe(fe({},x),{},{icon:x.icon(w.primaryColor,w.secondaryColor)})),$e(x.icon,"svg-".concat(x.name),fe(fe({className:d,onClick:p,style:h,"data-icon":x.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:y}))};function Ie(e){var t=v(Te(e),2),n=t[0],r=t[1];return De.setTwoToneColors({primaryColor:n,secondaryColor:r})}De.displayName="IconReact",De.getTwoToneColors=function(){return fe({},Le)},De.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Le.primaryColor=t,Le.secondaryColor=n||Re(t),Le.calculated=!!n};var ze=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Ie(oe.primary);var He=o.forwardRef((function(e,t){var n=e.className,r=e.icon,i=e.spin,a=e.rotate,c=e.tabIndex,s=e.onClick,f=e.twoToneColor,d=b(e,ze),p=o.useContext(l),h=p.prefixCls,g=void 0===h?"anticon":h,m=p.rootClassName,w=E(m,g,y(y({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!i||"loading"===r.name),n),x=c;void 0===x&&s&&(x=-1);var k=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,C=v(Te(f),2),O=C[0],S=C[1];return o.createElement("span",u({role:"img","aria-label":r.name},d,{ref:t,tabIndex:x,onClick:s,className:w}),o.createElement(De,{icon:r,primaryColor:O,secondaryColor:S,style:k}))}));He.displayName="AntdIcon",He.getTwoToneColor=function(){var e=De.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},He.setTwoToneColor=Ie;var Be={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},We=function(e,t){return o.createElement(He,u({},e,{ref:t,icon:Be}))},qe=o.forwardRef(We);"production"!==process.env.NODE_ENV&&(qe.displayName="CloseCircleOutlined");var Xe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},Ge=function(e,t){return o.createElement(He,u({},e,{ref:t,icon:Xe}))},Ue=o.forwardRef(Ge);"production"!==process.env.NODE_ENV&&(Ue.displayName="CloseOutlined");var Ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ke=function(e,t){return o.createElement(He,u({},e,{ref:t,icon:Ye}))},Ze=o.forwardRef(Ke);"production"!==process.env.NODE_ENV&&(Ze.displayName="LeftOutlined");var Qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Je=function(e,t){return o.createElement(He,u({},e,{ref:t,icon:Qe}))},et=o.forwardRef(Je);"production"!==process.env.NODE_ENV&&(et.displayName="RightOutlined");var tt,nt={exports:{}},rt={};var ot,it={};
/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/"production"===process.env.NODE_ENV?nt.exports=function(){if(tt)return rt;tt=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case s:case c:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),rt.ContextConsumer=c,rt.ContextProvider=a,rt.Element=t,rt.ForwardRef=l,rt.Fragment=r,rt.Lazy=p,rt.Memo=d,rt.Portal=n,rt.Profiler=i,rt.StrictMode=o,rt.Suspense=u,rt.SuspenseList=f,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(e){return v(e)===c},rt.isContextProvider=function(e){return v(e)===a},rt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},rt.isForwardRef=function(e){return v(e)===l},rt.isFragment=function(e){return v(e)===r},rt.isLazy=function(e){return v(e)===p},rt.isMemo=function(e){return v(e)===d},rt.isPortal=function(e){return v(e)===n},rt.isProfiler=function(e){return v(e)===i},rt.isStrictMode=function(e){return v(e)===o},rt.isSuspense=function(e){return v(e)===u},rt.isSuspenseList=function(e){return v(e)===f},rt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},rt.typeOf=v,rt}():nt.exports=(ot||(ot=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var v=e.type;switch(v){case r:case i:case o:case u:case f:return v;default:var g=v&&v.$$typeof;switch(g){case s:case c:case l:case p:case d:case a:return g;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var g=c,m=a,y=t,b=l,w=r,x=p,E=d,k=n,C=i,O=o,S=u,P=f,F=!1,M=!1;it.ContextConsumer=g,it.ContextProvider=m,it.Element=y,it.ForwardRef=b,it.Fragment=w,it.Lazy=x,it.Memo=E,it.Portal=k,it.Profiler=C,it.StrictMode=O,it.Suspense=S,it.SuspenseList=P,it.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},it.isConcurrentMode=function(e){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},it.isContextConsumer=function(e){return v(e)===c},it.isContextProvider=function(e){return v(e)===a},it.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},it.isForwardRef=function(e){return v(e)===l},it.isFragment=function(e){return v(e)===r},it.isLazy=function(e){return v(e)===p},it.isMemo=function(e){return v(e)===d},it.isPortal=function(e){return v(e)===n},it.isProfiler=function(e){return v(e)===i},it.isStrictMode=function(e){return v(e)===o},it.isSuspense=function(e){return v(e)===u},it.isSuspenseList=function(e){return v(e)===f},it.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},it.typeOf=v}()),it);var at=nt.exports;function ct(e,t,n){var r=o.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var st=function(e,t){"function"==typeof e?e(t):"object"===g(e)&&e&&"current"in e&&(e.current=t)},lt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){st(t,e)}))}},ut=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ct((function(){return lt.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))},ft=function(e){var t,n,r=at.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===at.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===at.ForwardRef)};Number(e.version.split(".")[0]);var dt=function(e){return"function"==typeof e},pt="development"===process.env.NODE_ENV||"test"===process.env.NODE_ENV;function ht(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var vt=function(t){pt&&(dt(t)||console.error("useUnmount expected parameter is a function, got ".concat(typeof t)));var n,r,o=(n=t,(r=e.useRef(n)).current=n,r);e.useEffect((function(){return function(){o.current()}}),[])},gt=!("undefined"==typeof window||!window.document||!window.document.createElement);function mt(e,t){if(gt)return e?dt(e)?e():"current"in e?e.current:e:t}var yt=function(t){return function(n,r,o){var i=e.useRef(!1),a=e.useRef([]),c=e.useRef([]),s=e.useRef();t((function(){var e,t=(Array.isArray(o)?o:[o]).map((function(e){return mt(e)}));if(!i.current)return i.current=!0,a.current=t,c.current=r,void(s.current=n());t.length===a.current.length&&ht(a.current,t)&&ht(c.current,r)||(null===(e=s.current)||void 0===e||e.call(s),a.current=t,c.current=r,s.current=n())})),vt((function(){var e;null===(e=s.current)||void 0===e||e.call(s),i.current=!1}))}},bt=yt(e.useEffect);var wt=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),xt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Et="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),kt="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Et):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ct=["top","right","bottom","left","width","height","size","weight"],Ot="undefined"!=typeof MutationObserver,St=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&c()}function a(){kt(i)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){xt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ot?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){xt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ct.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pt=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Ft=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Et},Mt=Rt(0,0,0,0);function At(e){return parseFloat(e)||0}function jt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+At(e["border-"+n+"-width"])}),0)}function Nt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Mt;var r=Ft(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=At(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=At(r.width),s=At(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=jt(r,"left","right")+i),Math.round(s+a)!==n&&(s-=jt(r,"top","bottom")+a)),!function(e){return e===Ft(e).document.documentElement}(e)){var l=Math.round(c+i)-t,u=Math.round(s+a)-n;1!==Math.abs(l)&&(c-=l),1!==Math.abs(u)&&(s-=u)}return Rt(o.left,o.top,c,s)}var _t="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Ft(e).SVGGraphicsElement}:function(e){return e instanceof Ft(e).SVGElement&&"function"==typeof e.getBBox};function $t(e){return xt?_t(e)?function(e){var t=e.getBBox();return Rt(0,0,t.width,t.height)}(e):Nt(e):Mt}function Rt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Tt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Rt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=$t(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Vt=function(e,t){var n,r,o,i,a,c,s,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,c="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(c.prototype),Pt(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);Pt(this,{target:e,contentRect:l})},Lt=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new wt,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ft(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Tt(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ft(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Vt(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Dt="undefined"!=typeof WeakMap?new WeakMap:new wt,It=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=St.getInstance(),r=new Lt(t,n,this);Dt.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){It.prototype[e]=function(){var t;return(t=Dt.get(this))[e].apply(t,arguments)}}));var zt=void 0!==Et.ResizeObserver?Et.ResizeObserver:It,Ht=yt(e.useLayoutEffect),Bt=gt?Ht:bt;function Wt(t){var n=i(function(t){var n=e.useRef(0),r=i(e.useState(t),2),o=r[0],a=r[1],c=e.useCallback((function(e){cancelAnimationFrame(n.current),n.current=requestAnimationFrame((function(){a(e)}))}),[]);return vt((function(){cancelAnimationFrame(n.current)})),[o,c]}((function(){var e=mt(t);return e?{width:e.clientWidth,height:e.clientHeight}:void 0})),2),r=n[0],o=n[1];return Bt((function(){var e=mt(t);if(e){var n=new zt((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;o({width:n,height:r})}))}));return n.observe(e),function(){n.disconnect()}}}),[],t),r}function qt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.Children.forEach(t,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(qt(e)):at.isFragment(e)&&e.props?r=r.concat(qt(e.props.children,n)):r.push(e))})),r}function Xt(e){return e instanceof HTMLElement||e instanceof SVGElement}function Gt(n){var r,o=function(e){return e&&"object"===g(e)&&Xt(e.nativeElement)?e.nativeElement:Xt(e)?e:null}(n);return o||(n instanceof e.Component?null===(r=t.findDOMNode)||void 0===r?void 0:r.call(t,n):null)}var Ut=o.createContext(null);var Yt=new Map;function Kt(e){e.forEach((function(e){var t,n=e.target;null===(t=Yt.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var Zt=new zt(Kt);function Qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function en(e,t,n){return t&&Jt(e.prototype,t),n&&Jt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tn(e,t){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tn(e,t)}function nn(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&&tn(e,t)}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function on(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(on=function(){return!!e})()}function an(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cn(e){var t=on();return function(){var n,r=rn(e);if(t){var o=rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return an(e)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var sn=function(){nn(t,o.Component);var e=cn(t);function t(){return Qt(this,t),e.apply(this,arguments)}return en(t,[{key:"render",value:function(){return this.props.children}}]),t}();function ln(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),c=o.useContext(Ut),s="function"==typeof n,l=s?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&o.isValidElement(l)&&ft(l),d=f?l.ref:null,p=ut(d,i),h=function(){var e;return Gt(i.current)||(i.current&&"object"===g(i.current)?Gt(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||Gt(a.current)};o.useImperativeHandle(t,(function(){return h()}));var v=o.useRef(e);v.current=e;var m=o.useCallback((function(e){var t=v.current,n=t