UNPKG

kxd-react-route-cache

Version:

change color from react-route-cache for my project

15 lines 239 kB
import*as e from"react";import t,{useState as n,useEffect as r,createContext as o,useContext as i,useRef as a,version as c,isValidElement as s,useCallback as l,useLayoutEffect as u,useMemo as f,forwardRef as d,useImperativeHandle as p,useId as h}from"react";import v,{createPortal as g}from"react-dom";import{useLocation as m,useMatches as y,useNavigate as b}from"react-router-dom";function w(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 x=({show:e,children:t,to:o,style:i})=>{const[a]=n((()=>document.createElement("div")));return r((()=>{a.style.cssText="",Object.keys(i||{}).forEach((e=>{a.style[e]=i[e]}))}),[i]),r((()=>{var t;e&&(null===(t=o.current)||void 0===t||t.replaceChildren(a))}),[e]),g(t,a)},E=o({activateds:{},deactivateds:{}});E.displayName="KeepAliveContext";const k=({mode:e="path",nameKey:o="name",children:i})=>{const{pathname:a,search:c}=m(),s=y(),[l,u]=n({}),[f,d]=n({}),[p,h]=n(""),[v,g]=n([]),[b,w]=n([]);return r((()=>{var t,n;const r="path"===e?a:a+c;h((e=>{var t;return(null===(t=f[e])||void 0===t?void 0:t.length)&&(f[e]=f[e].filter((e=>(e(),!e.__shouldRemove))),d(Object.assign({},f))),r})),(null===(t=l[r])||void 0===t?void 0:t.length)&&l[r].forEach((e=>{const t=e();t&&(t.__shouldRemove=!0,f[r]||(f[r]=[]),f[r].push(t),d(Object.assign({},f)))}));v.find((e=>e.key===r))||g([...v,{key:r,label:null===(n=s[s.length-1].handle)||void 0===n?void 0:n[o]}])}),[a,c,e]),t.createElement(E.Provider,{value:{activateds:l,setActivateds:u,deactivateds:f,setDeactivateds:d,active:p,setActive:h,tabs:v,setTabs:g,caches:b,setCaches:w}},i)},O=()=>{const e=i(E);if(!e)throw new Error("useKeepAlive必须在KeepAliveContext中使用");return e},C=e=>{var n,o,{children:i,exclude:c,include:s,max:l=10,style:u,className:f,styles:d}=e,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","exclude","include","max","style","className","styles"]);const h=a(null),{active:v,tabs:g,caches:m,setCaches:b}=O(),w=y(),E=null===(o=null===(n=w[w.length-1].handle)||void 0===n?void 0:n.cache)||void 0===o||o;return r((()=>{if(!v||!E)return;let e=m;e.find((e=>e.name===v))||(e.push({name:v,ele:i}),m.length>=l&&e.shift()),e=e.filter((e=>g.some((t=>t.key===e.name)))),(c||s)&&(e=e.filter((({name:e})=>(!c||!c.includes(e))&&(!s||s.includes(e))))),b([...e])}),[i,v,c,l,s,g]),t.createElement(t.Fragment,null,E&&t.createElement("div",Object.assign({ref:h,style:Object.assign(Object.assign({},u),null==d?void 0:d.wrapper),className:f},p)),!E&&i,m.map((({name:e,ele:n})=>t.createElement(x,{key:e,show:e===v,to:h,style:null==d?void 0:d.content},n))))};var S=o({});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)}function F(e){if(Array.isArray(e))return e}function M(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 A(e,t){if(e){if("string"==typeof e)return M(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)?M(e,t):void 0}}function N(){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 j(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)||A(e,t)||N()}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function $(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}function R(e,t,n){return(t=$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(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 V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var L={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}()}(L);var D=V(L.exports);function I(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 z(e){return Math.min(1,Math.max(0,e))}function H(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function B(e){return e<=1?"".concat(100*Number(e),"%"):e}function W(e){return 1===e.length?"0"+e:String(e)}function q(e,t,n){e=I(e,255),t=I(t,255),n=I(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 X(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 G(e,t,n){e=I(e,255),t=I(t,255),n=I(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 U(e,t,n,r){var o=[W(Math.round(e).toString(16)),W(Math.round(t).toString(16)),W(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 Y(e){return K(e)/255}function K(e){return parseInt(e,16)}var Z={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 Q(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(Z[e])e=Z[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=ne.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=ne.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=ne.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=ne.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=ne.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=ne.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=ne.hex8.exec(e),n)return{r:K(n[1]),g:K(n[2]),b:K(n[3]),a:Y(n[4]),format:t?"name":"hex8"};if(n=ne.hex6.exec(e),n)return{r:K(n[1]),g:K(n[2]),b:K(n[3]),format:t?"name":"hex"};if(n=ne.hex4.exec(e),n)return{r:K(n[1]+n[1]),g:K(n[2]+n[2]),b:K(n[3]+n[3]),a:Y(n[4]+n[4]),format:t?"name":"hex8"};if(n=ne.hex3.exec(e),n)return{r:K(n[1]+n[1]),g:K(n[2]+n[2]),b:K(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(re(e.r)&&re(e.g)&&re(e.b)?(t=e.r,n=e.g,r=e.b,o={r:255*I(t,255),g:255*I(n,255),b:255*I(r,255)},l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):re(e.h)&&re(e.s)&&re(e.v)?(a=B(e.s),c=B(e.v),o=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(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"):re(e.h)&&re(e.s)&&re(e.l)&&(a=B(e.s),s=B(e.l),o=function(e,t,n){var r,o,i;if(e=I(e,360),t=I(t,100),n=I(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=X(c,a,e+1/3),o=X(c,a,e),i=X(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=H(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 J="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),ee="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),te="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),ne={CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+ee),rgba:new RegExp("rgba"+te),hsl:new RegExp("hsl"+ee),hsla:new RegExp("hsla"+te),hsv:new RegExp("hsv"+ee),hsva:new RegExp("hsva"+te),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 re(e){return Boolean(ne.CSS_UNIT.exec(String(e)))}var oe=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=Q(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=H(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=G(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=G(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=q(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=q(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),U(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=[W(Math.round(e).toString(16)),W(Math.round(t).toString(16)),W(Math.round(n).toString(16)),W((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*I(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*I(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="#"+U(this.r,this.g,this.b,!1),t=0,n=Object.entries(Z);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=z(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=z(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=z(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=z(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}(),ie=[{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 ae(e){var t=G(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function ce(e){var t=e.r,n=e.g,r=e.b;return"#".concat(U(t,n,r,!1))}function se(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 le(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 ue(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function fe(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Q(e),o=5;o>0;o-=1){var i=ae(r),a=ce(Q({h:se(i,o,!0),s:le(i,o,!0),v:ue(i,o,!0)}));n.push(a)}n.push(ce(r));for(var c=1;c<=4;c+=1){var s=ae(r),l=ce(Q({h:se(s,c),s:le(s,c),v:ue(s,c)}));n.push(l)}return"dark"===t.theme?ie.map((function(e){var r,o,i,a=e.index,c=e.opacity;return ce((r=Q(t.backgroundColor||"#141414"),o=Q(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 de={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"},pe=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pe.primary=pe[5];var he=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];he.primary=he[5];var ve=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ve.primary=ve[5];var ge=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ge.primary=ge[5];var me=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];me.primary=me[5];var ye=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ye.primary=ye[5];var be=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];be.primary=be[5];var we=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];we.primary=we[5];var xe=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];xe.primary=xe[5];var Ee=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ee.primary=Ee[5];var ke=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ke.primary=ke[5];var Oe=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Oe.primary=Oe[5];var Ce=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ce.primary=Ce[5];var Se={red:pe,volcano:he,orange:ve,gold:ge,yellow:me,lime:ye,green:be,cyan:we,blue:xe,geekblue:Ee,purple:ke,magenta:Oe,grey:Ce};function Pe(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?Pe(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Ae="data-rc-order",Ne="data-rc-priority",je=new Map;function _e(){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 $e(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Re(e){return Array.from((je.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Me())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(Ae,a),c&&i&&s.setAttribute(Ne,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var l=$e(t),u=l.firstChild;if(r){if(c){var f=(t.styles||Re(l)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ae)))return!1;var t=Number(e.getAttribute(Ne)||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 Ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=$e(t);return(t.styles||Re(n)).find((function(n){return n.getAttribute(_e(t))===e}))}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ve(e,t);n&&$e(t).removeChild(n)}function De(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$e(n),o=Re(r),i=Fe(Fe({},n),{},{styles:o});!function(e,t){var n=je.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=Te("",t),o=r.parentNode;je.set(e,o),e.removeChild(r)}}(r,i);var a=Ve(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=Te(e,i);return u.setAttribute(_e(i),t),u}function Ie(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function ze(e){return function(e){return Ie(e)instanceof ShadowRoot}(e)?Ie(e):null}var He={},Be=[];function We(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Be.reduce((function(e,t){return t(null!=e?e:"","warning")}),t);n&&console.error("Warning: ".concat(n))}}function qe(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){var n=Be.reduce((function(e,t){return t(null!=e?e:"","note")}),t);n&&console.warn("Note: ".concat(n))}}function Xe(){He={}}function Ge(e,t,n){t||He[n]||(e(!1,n),He[n]=!0)}function Ue(e,t){Ge(We,e,t)}function Ye(e){return"object"===_(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===_(e.icon)||"function"==typeof e.icon)}function Ke(){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 Ze(e,n,r){return r?t.createElement(e.tag,Fe(Fe({key:n},Ke(e.attrs)),r),(e.children||[]).map((function(t,r){return Ze(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))):t.createElement(e.tag,Fe({key:n},Ke(e.attrs)),(e.children||[]).map((function(t,r){return Ze(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})))}function Qe(e){return fe(e)[0]}function Je(e){return e?Array.isArray(e)?e:[e]:[]}Ue.preMessage=function(e){Be.push(e)},Ue.resetWarned=Xe,Ue.noteOnce=function(e,t){Ge(qe,e,t)};var et=["icon","className","onClick","style","primaryColor","secondaryColor"],tt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var nt=function(t){var n,o,a,c,s,l,u,f=t.icon,d=t.className,p=t.onClick,h=t.style,v=t.primaryColor,g=t.secondaryColor,m=T(t,et),y=e.useRef(),b=tt;if(v&&(b={primaryColor:v,secondaryColor:g||Qe(v)}),n=y,o=i(S),a=o.csp,c=o.prefixCls,s="\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",c&&(s=s.replace(/anticon/g,c)),r((function(){var e=ze(n.current);De(s,"@ant-design-icons",{prepend:!0,csp:a,attachTo:e})}),[]),l=Ye(f),u="icon should be icon definiton, but got ".concat(f),Ue(l,"[@ant-design/icons] ".concat(u)),!Ye(f))return null;var w=f;return w&&"function"==typeof w.icon&&(w=Fe(Fe({},w),{},{icon:w.icon(b.primaryColor,b.secondaryColor)})),Ze(w.icon,"svg-".concat(w.name),Fe(Fe({className:d,onClick:p,style:h,"data-icon":w.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{},{ref:y}))};function rt(e){var t=j(Je(e),2),n=t[0],r=t[1];return nt.setTwoToneColors({primaryColor:n,secondaryColor:r})}nt.displayName="IconReact",nt.getTwoToneColors=function(){return Fe({},tt)},nt.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;tt.primaryColor=t,tt.secondaryColor=n||Qe(t),tt.calculated=!!n};var ot=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];rt(xe.primary);var it=e.forwardRef((function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,c=t.tabIndex,s=t.onClick,l=t.twoToneColor,u=T(t,ot),f=e.useContext(S),d=f.prefixCls,p=void 0===d?"anticon":d,h=f.rootClassName,v=D(h,p,R(R({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),g=c;void 0===g&&s&&(g=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=j(Je(l),2),b=y[0],w=y[1];return e.createElement("span",P({role:"img","aria-label":o.name},u,{ref:n,tabIndex:g,onClick:s,className:v}),e.createElement(nt,{icon:o,primaryColor:b,secondaryColor:w,style:m}))}));it.displayName="AntdIcon",it.getTwoToneColor=function(){var e=nt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},it.setTwoToneColor=rt;var at={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"},ct=function(t,n){return e.createElement(it,P({},t,{ref:n,icon:at}))},st=e.forwardRef(ct);"production"!==process.env.NODE_ENV&&(st.displayName="CloseCircleOutlined");var lt={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"},ut=function(t,n){return e.createElement(it,P({},t,{ref:n,icon:lt}))},ft=e.forwardRef(ut);"production"!==process.env.NODE_ENV&&(ft.displayName="CloseOutlined");var dt={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"},pt=function(t,n){return e.createElement(it,P({},t,{ref:n,icon:dt}))},ht=e.forwardRef(pt);"production"!==process.env.NODE_ENV&&(ht.displayName="LeftOutlined");var vt={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"},gt=function(t,n){return e.createElement(it,P({},t,{ref:n,icon:vt}))},mt=e.forwardRef(gt);"production"!==process.env.NODE_ENV&&(mt.displayName="RightOutlined");var yt,bt={exports:{}},wt={};var xt,Et={}; /** * @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?bt.exports=function(){if(yt)return wt;yt=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"),wt.ContextConsumer=c,wt.ContextProvider=a,wt.Element=t,wt.ForwardRef=l,wt.Fragment=r,wt.Lazy=p,wt.Memo=d,wt.Portal=n,wt.Profiler=i,wt.StrictMode=o,wt.Suspense=u,wt.SuspenseList=f,wt.isAsyncMode=function(){return!1},wt.isConcurrentMode=function(){return!1},wt.isContextConsumer=function(e){return v(e)===c},wt.isContextProvider=function(e){return v(e)===a},wt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},wt.isForwardRef=function(e){return v(e)===l},wt.isFragment=function(e){return v(e)===r},wt.isLazy=function(e){return v(e)===p},wt.isMemo=function(e){return v(e)===d},wt.isPortal=function(e){return v(e)===n},wt.isProfiler=function(e){return v(e)===i},wt.isStrictMode=function(e){return v(e)===o},wt.isSuspense=function(e){return v(e)===u},wt.isSuspenseList=function(e){return v(e)===f},wt.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)},wt.typeOf=v,wt}():bt.exports=(xt||(xt=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,O=i,C=o,S=u,P=f,F=!1,M=!1;Et.ContextConsumer=g,Et.ContextProvider=m,Et.Element=y,Et.ForwardRef=b,Et.Fragment=w,Et.Lazy=x,Et.Memo=E,Et.Portal=k,Et.Profiler=O,Et.StrictMode=C,Et.Suspense=S,Et.SuspenseList=P,Et.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Et.isConcurrentMode=function(e){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Et.isContextConsumer=function(e){return v(e)===c},Et.isContextProvider=function(e){return v(e)===a},Et.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Et.isForwardRef=function(e){return v(e)===l},Et.isFragment=function(e){return v(e)===r},Et.isLazy=function(e){return v(e)===p},Et.isMemo=function(e){return v(e)===d},Et.isPortal=function(e){return v(e)===n},Et.isProfiler=function(e){return v(e)===i},Et.isStrictMode=function(e){return v(e)===o},Et.isSuspense=function(e){return v(e)===u},Et.isSuspenseList=function(e){return v(e)===f},Et.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)},Et.typeOf=v}()),Et);var kt=bt.exports;function Ot(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}var Ct=function(e,t){"function"==typeof e?e(t):"object"===_(e)&&e&&"current"in e&&(e.current=t)},St=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){Ct(t,e)}))}},Pt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ot((function(){return St.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=kt.isMemo(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===kt.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===kt.ForwardRef)};Number(c.split(".")[0]);var Mt=function(e){return"function"==typeof e},At="development"===process.env.NODE_ENV||"test"===process.env.NODE_ENV;function Nt(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 jt=function(e){At&&(Mt(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t,n,o=((n=a(t=e)).current=t,n);r((function(){return function(){o.current()}}),[])},_t=!("undefined"==typeof window||!window.document||!window.document.createElement);function $t(e,t){if(_t)return e?Mt(e)?e():"current"in e?e.current:e:t}var Rt=function(e){return function(t,n,r){var o=a(!1),i=a([]),c=a([]),s=a();e((function(){var e,a=(Array.isArray(r)?r:[r]).map((function(e){return $t(e)}));if(!o.current)return o.current=!0,i.current=a,c.current=n,void(s.current=t());a.length===i.current.length&&Nt(i.current,a)&&Nt(c.current,n)||(null===(e=s.current)||void 0===e||e.call(s),i.current=a,c.current=n,s.current=t())})),jt((function(){var e;null===(e=s.current)||void 0===e||e.call(s),o.current=!1}))}},Tt=Rt(r);var Vt=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}()}(),Lt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Dt="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),It="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Dt):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var zt=["top","right","bottom","left","width","height","size","weight"],Ht="undefined"!=typeof MutationObserver,Bt=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(){It(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(){Lt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ht?(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(){Lt&&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;zt.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}(),Wt=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},qt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Dt},Xt=Qt(0,0,0,0);function Gt(e){return parseFloat(e)||0}function Ut(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Gt(e["border-"+n+"-width"])}),0)}function Yt(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Xt;var r=qt(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]=Gt(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,c=Gt(r.width),s=Gt(r.height);if("border-box"===r.boxSizing&&(Math.round(c+i)!==t&&(c-=Ut(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Ut(r,"top","bottom")+a)),!function(e){return e===qt(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 Qt(o.left,o.top,c,s)}var Kt="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof qt(e).SVGGraphicsElement}:function(e){return e instanceof qt(e).SVGElement&&"function"==typeof e.getBBox};function Zt(e){return Lt?Kt(e)?function(e){var t=e.getBBox();return Qt(0,0,t.width,t.height)}(e):Yt(e):Xt}function Qt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Jt=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Qt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Zt(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}(),en=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),Wt(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);Wt(this,{target:e,contentRect:l})},tn=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Vt,"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 qt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Jt(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 qt(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 en(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}(),nn="undefined"!=typeof WeakMap?new WeakMap:new Vt,rn=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=Bt.getInstance(),r=new tn(t,n,this);nn.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){rn.prototype[e]=function(){var t;return(t=nn.get(this))[e].apply(t,arguments)}}));var on=void 0!==Dt.ResizeObserver?Dt.ResizeObserver:rn,an=Rt(u),cn=_t?an:Tt;function sn(e){var t=w(function(e){var t=a(0),r=w(n(e),2),o=r[0],i=r[1],c=l((function(e){cancelAnimationFrame(t.current),t.current=requestAnimationFrame((function(){i(e)}))}),[]);return jt((function(){cancelAnimationFrame(t.current)})),[o,c]}((function(){var t=$t(e);return t?{width:t.clientWidth,height:t.clientHeight}:void 0})),2),r=t[0],o=t[1];return cn((function(){var t=$t(e);if(t){var n=new on((function(e){e.forEach((function(e){var t=e.target,n=t.clientWidth,r=t.clientHeight;o({width:n,height:r})}))}));return n.observe(t),function(){n.disconnect()}}}),[],e),r}function ln(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(ln(e)):kt.isFragment(e)&&e.props?r=r.concat(ln(e.props.children,n)):r.push(e))})),r}function un(e){return e instanceof HTMLElement||e instanceof SVGElement}function fn(e){var n,r=function(e){return e&&"object"===_(e)&&un(e.nativeElement)?e.nativeElement:un(e)?e:null}(e);return r||(e instanceof t.Component?null===(n=v.findDOMNode)||void 0===n?void 0:n.call(v,e):null)}var dn=e.createContext(null);var pn=new Map;function hn(e){e.forEach((function(e){var t,n=e.target;null===(t=pn.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}var vn=new on(hn);function gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mn(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,$(r.key),r)}}function yn(e,t,n){return t&&mn(e.prototype,t),n&&mn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bn(e,t){return bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__prot