karaoke-eternal 2.0.0-beta.5 → 2.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- /*! See licenses in licenses.txt */(self.webpackChunkkaraoke_eternal=self.webpackChunkkaraoke_eternal||[]).push([[718],{1865:e=>{"use strict";e.exports=JSON.parse('{"p":"ABAOAAAAAADQjQAAAd4HIfjtnG2oFUUYxx/1nHu29OolvKRSZIIQghSSEFJwwj4YWdzoFcoQyriBHwz8YHDBiSKDLG9YKSEiUX4IFQ0FCaRLoFmUb9mLBqJ+EDOIsAgpjf7b7nCnOTO7M7szu8frPPBjZufleZ6ZeWZm73pwYALRk2ApGAQMvC6UlU2HwUbwDthk0P5DsC2jfifYC0bAQXAE/AhOgXNCu1/A7+ASoAZRD5gMekE/mAFmge1gN9jbSPrOSdPPkM4DX4AvwVFwApwBZ8EFcBH8Bf4GE5pEUXP0uQ/5ac2k/UyktzWT/ncgPYj0rmZip91M6hc1R/U/hPzj4BnwPBgECwT7cb8VKFsZJflVyK9O9cW8gvwb6fM6pO+l+c1It4Lt4Hah/R7k94H94BuhPGZDNMqWlK1gf4rYNovthu1c8x3G8xOYmhKXnUH6c5pf0/h/+8Uo/1Wagz+bev1X0rpGD9GkniS/FjRTvVNRdiO4BcwGc8H8tN3dabqwp1Pv/Sh7WFHOGU4pOz9vws/1qa+PCuXxGHZmjDtQAdL6n1DEgAs7NwnrvCQj5gKBQCAQCAQCgUAgEOgGnsPfrlOE7zlvG3y/WI4+K4W/eYciotVgCGWv8u85SNeDjVHyPXAj8tORbknrtyLdAT5Jnz9Fehnp5zl/S3+F+kPQeRgcAUfBMfAtOB6FulAX6kJdqHNdtwPsAQei+u+sQCAwdjnk+d9TNk0Y/Xd1mUFFmfh+vKHhxycbRnoTaDLR0t582mg3oGg7LJWN4JmmoD1YNSUp24b0NJjWR3QnGAT3TcT7Pzh7HdGt1xNF4xKeFvIiu9D25ER1nczqVMeMSUS7kX8M6bvgMKBeMx2BQCAQGJv8gXuhEd8nLaJ/cB+2cCdPaiW/E2ojvyi9oyOkN6B8Df5mmZbW34x0QLjDZ7eS707i/Rr/ZmRua/R3ZPORv6eV1C2MU/R/MP1O9gCeH2mN9n0K+Wdb+rt7EHUrhPpVreS7GH9mQt1ryL+VoWt9Rl3MEuhdJr2vvI8+H4CPwQuo25XqeLHAe81ewf4I8gckf77G80up3uM5voqcRNuX0e800vMW/XwyBH7rEl9EZiC2n6jQ3masyxzY/EHxnXjeVfptIP797rAAkxjO4KNGZ/trjTJz/33O33rTpXPpVBf+1u4cfLqg8Wuxo9+Dnk/1XzQc/6W03RWhrD+dSzI4x+K/eS914Xnnisvp2MY7OrP2ldAToe86MFnQ0X+VnqU2xOfnrCh5f3Oha0GUpPciXQQGrqY5hK9LBX+nK/aebaweS8+AZSXnIa9/v4MzTh7b2jH6O/rlJdfiZBeMoUFmjBfy4wz7mBCkPgnz7y6Oq4x/l+sWXeO4lKrsdJvUvYZF111MdfmxLm0NpmI7591853Tj+VJVDGaNoZ3TRtahautDRL/qkm6KlW6Wa2EeXI3N5Ry0SX+e26xJ27K9K5iijNJyjvwsnllZ4mKeZbuy72I5F5VvNr6o+hcVbredoVc3/y7vN/keke0ywS6T6tqOfOE2mQKS8rJ/3A8mpHWfZVl7qq0oV0lbQ9m9bOszt+lb5LWsU8TxN8j9+LnOPnL3Pc73tz4X31fy7mVdDObZcnHfdev3VNV86ebRtF1VUsSui7U0OQ/rEvE8Jsp+j1H5Lbfnecrpa+Nf1XEi2mZUz/qIe4b7oJtDXi8/m85bN69HJOXr2i9Z+0PVVuW36n5x6V8Z/Yw640s+t5nQlpGfOPAdX2XPI5d+iP6wDJ8YFdvfRc/bOkR31jKpXHx2eb7J91kd7yaMOseb9w6Vp7PO9YyFUWeMM6pvfC7mhBXoI78z1SnyfDPLvqoyRp1nmNieZeAqRlUxV+Ssz3vvdSWm/paJ87ruuipsyTGmssfI3X4zWSMVTFNOlD1PNjbK+OeKsmI6b/J4mdTWp+TZ8jkfRXXEwgz0lPXZx9z7PruqOhdNYlqMZR2qeHe1N33OQdYYVeWyiG3l/rKeKteS2/UhXDdP885CMaWcPqbzaBJTOt1ViqnPjOqJmSzxcbfWtQ6iMNLPv6tx5om8fxh1niUu/GA5mMalq3lQnQ+25PmtspnlDxdRrwupaw/7WCvb9VLpynrWlbkURp17zrcPjNT7rSopsr9cnX95+861PRN/bM8Y1/YZmd0//Fmnp0oxvRvk5yJ2TNqwArpdiY+Y4Kk8b1nzWGSOGZnFF29nK1ynHAuiraK6XUudPlRh2+ZM1d3xJnp9S9H3Op2OKu4Xn7qrfn9gVO+Za3oe6vrq7vWq3z24Py6Fkf59Qjd2VzZ0dnXC62x89iGi7xwuumebc8ZUZFum81BlvKoka+19+cLIPGZU7fizT3GlP29+xfEwKa864+oUk3OCkXp9maJtFeLaJqNisctTG9HFRh13XZaoxmd6T7sWRuZz5Ssus3zgIseI2F7WVbWYzFsVsWZzT5veHWVE1qWaj7w4cyWma6TyMW8cTJP37bvchqQ6Gx+YAlkfL/exPqIt0b5r4brz5lPVzqfo9GfZLRrTNmMx1cfIz5z5Pkd9ntfyvilCnv6y/tr2q+ouM/WhbPyX2UNFdPqSqs6pLLuucWXLZAw24/UlOt9dzqELn1z5Zrtv8uz6EF82ZlaEK2FU7vtpXcIsydJRhbCa+e8/D60bUcbXTMMzfRK24nKssvgYr+x71lh8iO/1tBl/LPGlIseAT6q2J8m/"}')},5338:(e,t,n)=>{"use strict";var r=n(40961);t.H=r.createRoot,r.hydrateRoot},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function S(e){if(g=!1,w(e),!m)if(null!==r(u))m=!0,T(E);else{var t=r(c);null!==t&&N(S,t.startTime-e)}}function E(e,n){m=!1,g&&(g=!1,v(O),O=-1),h=!0;var i=p;try{for(w(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!A());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),w(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&N(S,d.startTime-n),l=!1}return l}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,C=!1,k=null,O=-1,_=5,P=-1;function A(){return!(t.unstable_now()-P<_)}function R(){if(null!==k){var e=t.unstable_now();P=e;var n=!0;try{n=k(!0,e)}finally{n?x():(C=!1,k=null)}}else C=!1}if("function"==typeof b)x=function(){b(R)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,D=I.port2;I.port1.onmessage=R,x=function(){D.postMessage(null)}}else x=function(){y(R,0)};function T(e){k=e,C||(C=!0,x())}function N(e,n){O=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,T(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(v(O),O=-1):g=!0,N(S,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,T(E))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},8127:function(e,t,n){"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g&&n.g,e.exports=function(){"use strict";var e="3.7.8",t=e,n="function"==typeof Buffer,r="function"==typeof TextDecoder?new TextDecoder:void 0,o="function"==typeof TextEncoder?new TextEncoder:void 0,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=Array.prototype.slice.call(i),s=function(e){var t={};return e.forEach(function(e,n){return t[e]=n}),t}(a),l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,u=String.fromCharCode.bind(String),c="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},d=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,function(e){return"+"==e?"-":"_"})},f=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},p=function(e){for(var t,n,r,o,i="",s=e.length%3,l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(r=e.charCodeAt(l++))>255||(o=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");i+=a[(t=n<<16|r<<8|o)>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},h="function"==typeof btoa?function(e){return btoa(e)}:n?function(e){return Buffer.from(e,"binary").toString("base64")}:p,m=n?function(e){return Buffer.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,o=e.length;r<o;r+=t)n.push(u.apply(null,e.subarray(r,r+t)));return h(n.join(""))},g=function(e,t){return void 0===t&&(t=!1),t?d(m(e)):m(e)},y=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,b=function(e){return e.replace(v,y)},w=n?function(e){return Buffer.from(e,"utf8").toString("base64")}:o?function(e){return m(o.encode(e))}:function(e){return h(b(e))},S=function(e,t){return void 0===t&&(t=!1),t?d(w(e)):w(e)},E=function(e){return S(e,!0)},x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return u((t>>>10)+55296)+u(56320+(1023&t));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k=function(e){return e.replace(x,C)},O=function(e){if(e=e.replace(/\s+/g,""),!l.test(e))throw new TypeError("malformed base64.");var t,n,r;e+="==".slice(2-(3&e.length));for(var o=[],i=0;i<e.length;)t=s[e.charAt(i++)]<<18|s[e.charAt(i++)]<<12|(n=s[e.charAt(i++)])<<6|(r=s[e.charAt(i++)]),64===n?o.push(u(t>>16&255)):64===r?o.push(u(t>>16&255,t>>8&255)):o.push(u(t>>16&255,t>>8&255,255&t));return o.join("")},_="function"==typeof atob?function(e){return atob(f(e))}:n?function(e){return Buffer.from(e,"base64").toString("binary")}:O,P=n?function(e){return c(Buffer.from(e,"base64"))}:function(e){return c(_(e).split("").map(function(e){return e.charCodeAt(0)}))},A=function(e){return P(I(e))},R=n?function(e){return Buffer.from(e,"base64").toString("utf8")}:r?function(e){return r.decode(P(e))}:function(e){return k(_(e))},I=function(e){return f(e.replace(/[-_]/g,function(e){return"-"==e?"+":"/"}))},D=function(e){return R(I(e))},T=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},N=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,T(t))};e("fromBase64",function(){return D(this)}),e("toBase64",function(e){return S(this,e)}),e("toBase64URI",function(){return S(this,!0)}),e("toBase64URL",function(){return S(this,!0)}),e("toUint8Array",function(){return A(this)})},M=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,T(t))};e("toBase64",function(e){return g(this,e)}),e("toBase64URI",function(){return g(this,!0)}),e("toBase64URL",function(){return g(this,!0)})},L=function(){N(),M()},B={version:e,VERSION:t,atob:_,atobPolyfill:O,btoa:h,btoaPolyfill:p,fromBase64:D,toBase64:S,encode:S,encodeURI:E,encodeURL:E,utob:b,btou:k,decode:D,isValid:function(e){if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:g,toUint8Array:A,extendString:N,extendUint8Array:M,extendBuiltins:L,Base64:{}};return Object.keys(B).forEach(function(e){return B.Base64[e]=B[e]}),B}()},9934:(e,t,n)=>{"use strict";t.yi=t.wd=t.tH=t.cJ=t.Q=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(88979),i=t.Q="@@optimist/BEGIN",a=t.cJ="@@optimist/COMMIT",s=t.tH="@@optimist/REVERT",l=function(e){return e&&3===Object.keys(e).length&&e.hasOwnProperty("beforeState")&&e.hasOwnProperty("history")&&e.hasOwnProperty("current")},u=t.wd=function(e){return l(e)?e.current:e},c=function(e,t,n){var i=e.history;if(0===t){var a=i.slice(1),s=(0,o.findIndex)(a,function(e){return e.meta&&e.meta.optimistic&&!e.meta.optimistic.isNotOptimistic&&e.meta.optimistic.id});if(-1===s)return r({},e,{history:[],beforeState:void 0});var l=a.slice(s),u=i.reduce(function(e,t,r){return r<=s?n(e,t):e},e.beforeState);return r({},e,{history:l,beforeState:u})}var c=i[t],d=Object.assign({},c,{meta:Object.assign({},c.meta,{optimistic:null})}),f=e.history.slice();return f.splice(t,1,d),r({},e,{history:f})},d=function(e,t,n){var i=e.beforeState,a=e.history,s=void 0;if(0===t){var l=a.slice(1),u=(0,o.findIndex)(l,function(e){return e.meta&&e.meta.optimistic&&!e.meta.optimistic.isNotOptimistic&&e.meta.optimistic.id});if(-1===u)return r({},e,{history:[],current:l.reduce(function(e,t){return n(e,t)},i),beforeState:void 0});s=l.slice(u)}else(s=a.slice()).splice(t,1);var c=s.reduce(function(e,t){return n(e,t)},i);return r({},e,{history:s,current:c,beforeState:i})};t.yi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({maxHistory:100},t);return function(t,f){void 0!==t&&l(t)||(t=function(e){return{beforeState:void 0,history:[],current:e}}(e(u(t),{})));var p=t.history.length,h=f.meta&&f.meta.optimistic||{},m=h.type,g=h.id;if(p){if(m!==a&&m!==s)return p>n.maxHistory&&console.error("@@optimist: Possible memory leak detected.\n Verify all actions result in a commit or revert and\n don't use optimistic-UI for long-running server fetches"),r({},t,{history:t.history.concat([f]),current:e(t.current,f)});var y=(0,o.findIndex)(t.history,function(e){return e.meta&&e.meta.optimistic&&e.meta.optimistic.id===g});if(-1===y)throw new Error("@@optimist: Failed to "+(m===a?"commit":"revert")+". Transaction #"+g+" does not exist!");f.meta.optimistic.isNotOptimistic=!0;var v=r({},t,{history:t.history.concat([f]),current:e(t.current,f)});return(m===a?c:d)(v,y,e)}return r({},t,m===i?{history:t.history.concat([f]),current:e(t.current,f),beforeState:t.current}:{current:e(t.current,f)})}}},10188:(e,t,n)=>{"use strict";n.d(t,{uh:()=>y});var r=n(96540);const o="Left",i="Right",a="Up",s="Down",l={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},u={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},c="mousemove",d="mouseup",f="touchend",p="touchmove",h="touchstart";function m(e,t){if(0===t)return e;const n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function g(e,t){const n=t=>{const n="touches"in t;n&&t.touches.length>1||e((e,o)=>{o.trackMouse&&!n&&(document.addEventListener(c,r),document.addEventListener(d,y));const{clientX:i,clientY:a}=n?t.touches[0]:t,s=m([i,a],o.rotationAngle);return o.onTouchStartOrOnMouseDown&&o.onTouchStartOrOnMouseDown({event:t}),Object.assign(Object.assign(Object.assign({},e),u),{initial:s.slice(),xy:s,start:t.timeStamp||0})})},r=t=>{e((e,n)=>{const r="touches"in t;if(r&&t.touches.length>1)return e;if(t.timeStamp-e.start>n.swipeDuration)return e.swiping?Object.assign(Object.assign({},e),{swiping:!1}):e;const{clientX:u,clientY:c}=r?t.touches[0]:t,[d,f]=m([u,c],n.rotationAngle),p=d-e.xy[0],h=f-e.xy[1],g=Math.abs(p),y=Math.abs(h),v=(t.timeStamp||0)-e.start,b=Math.sqrt(g*g+y*y)/(v||1),w=[p/(v||1),h/(v||1)],S=function(e,t,n,r){return e>t?n>0?i:o:r>0?s:a}(g,y,p,h),E="number"==typeof n.delta?n.delta:n.delta[S.toLowerCase()]||l.delta;if(g<E&&y<E&&!e.swiping)return e;const x={absX:g,absY:y,deltaX:p,deltaY:h,dir:S,event:t,first:e.first,initial:e.initial,velocity:b,vxvy:w};x.first&&n.onSwipeStart&&n.onSwipeStart(x),n.onSwiping&&n.onSwiping(x);let C=!1;return(n.onSwiping||n.onSwiped||n[`onSwiped${S}`])&&(C=!0),C&&n.preventScrollOnSwipe&&n.trackTouch&&t.cancelable&&t.preventDefault(),Object.assign(Object.assign({},e),{first:!1,eventData:x,swiping:!0})})},g=t=>{e((e,n)=>{let r;if(e.swiping&&e.eventData){if(t.timeStamp-e.start<n.swipeDuration){r=Object.assign(Object.assign({},e.eventData),{event:t}),n.onSwiped&&n.onSwiped(r);const o=n[`onSwiped${r.dir}`];o&&o(r)}}else n.onTap&&n.onTap({event:t});return n.onTouchEndOrOnMouseUp&&n.onTouchEndOrOnMouseUp({event:t}),Object.assign(Object.assign(Object.assign({},e),u),{eventData:r})})},y=e=>{document.removeEventListener(c,r),document.removeEventListener(d,y),g(e)},v=(e,t)=>{let o=()=>{};if(e&&e.addEventListener){const i=Object.assign(Object.assign({},l.touchEventOptions),t.touchEventOptions),a=[[h,n,i],[p,r,Object.assign(Object.assign({},i),t.preventScrollOnSwipe?{passive:!1}:{})],[f,g,i]];a.forEach(([t,n,r])=>e.addEventListener(t,n,r)),o=()=>a.forEach(([t,n])=>e.removeEventListener(t,n))}return o},b={ref:t=>{null!==t&&e((e,n)=>{if(e.el===t)return e;const r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),n.trackTouch&&t&&(r.cleanUpTouch=v(t,n)),Object.assign(Object.assign(Object.assign({},e),{el:t}),r)})}};return t.trackMouse&&(b.onMouseDown=n),[b,v]}function y(e){const{trackMouse:t}=e,n=r.useRef(Object.assign({},u)),o=r.useRef(Object.assign({},l)),i=r.useRef(Object.assign({},o.current));let a;for(a in i.current=Object.assign({},o.current),o.current=Object.assign(Object.assign({},l),e),l)void 0===o.current[a]&&(o.current[a]=l[a]);const[s,c]=r.useMemo(()=>g(e=>n.current=e(n.current,o.current),{trackMouse:t}),[t]);return n.current=function(e,t,n,r){return t.trackTouch&&e.el?e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)}):(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0}))}(n.current,o.current,i.current,c),s}},11215:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=(0,o.default)(e);return{getItem:function(e){return new Promise(function(n,r){n(t.getItem(e))})},setItem:function(e,n){return new Promise(function(r,o){r(t.setItem(e,n))})},removeItem:function(e){return new Promise(function(n,r){n(t.removeItem(e))})}}};var r,o=(r=n(60449))&&r.__esModule?r:{default:r}},11234:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(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 u(e,t){if(e){if("string"==typeof e)return l(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)?l(e,t):void 0}}function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){return function(e){if(Array.isArray(e))return e}(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,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,{A:()=>Z});var f=n(46942),p=n.n(f),h=n(96540);function m(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return n}var g="undefined"!=typeof window&&window.document&&window.document.createElement?h.useLayoutEffect:h.useEffect,y=function(e,t){var n=h.useRef(!0);g(function(){return e(n.current)},t),g(function(){return n.current=!1,function(){n.current=!0}},[])},v=function(e,t){y(function(t){if(!t)return e()},t)};const b=y;function w(e){var t=h.useRef(!1),n=d(h.useState(e),2),r=n[0],o=n[1];return h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[r,function(e,n){n&&t.current||o(e)}]}function S(e){return void 0!==e}var E={},x=[];function C(e,t){}function k(e,t){}function O(e,t,n){t||E[n]||(e(!1,n),E[n]=!0)}function _(e,t){O(C,e,t)}_.preMessage=function(e){x.push(e)},_.resetWarned=function(){E={}},_.noteOnce=function(e,t){O(k,e,t)};const P=_;const A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=o.has(t);if(P(!s,"Warning: There may be circular references"),s)return!1;if(t===i)return!0;if(n&&a>1)return!1;o.add(t);var l=a+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],i[u],l))return!1;return!0}if(t&&i&&"object"===r(t)&&"object"===r(i)){var c=Object.keys(t);return c.length===Object.keys(i).length&&c.every(function(n){return e(t[n],i[n],l)})}return!1}(e,t)};var R=n(58168),I=n(98587);function D(e,t){if(null==e)return{};var n,r,o=(0,I.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var T=n(40961);function N(e,t,n){return(e-t)/(n-t)}function M(e,t,n,r){var o=N(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function L(e,t){return Array.isArray(e)?e[t]:e}var B={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=B.F1&&t<=B.F12)return!1;switch(t){case B.ALT:case B.CAPS_LOCK:case B.CONTEXT_MENU:case B.CTRL:case B.DOWN:case B.END:case B.ESC:case B.HOME:case B.INSERT:case B.LEFT:case B.MAC_FF_META:case B.META:case B.NUMLOCK:case B.NUM_CENTER:case B.PAGE_DOWN:case B.PAGE_UP:case B.PAUSE:case B.PRINT_SCREEN:case B.RIGHT:case B.SHIFT:case B.UP:case B.WIN_KEY:case B.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=B.ZERO&&e<=B.NINE)return!0;if(e>=B.NUM_ZERO&&e<=B.NUM_MULTIPLY)return!0;if(e>=B.A&&e<=B.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case B.SPACE:case B.QUESTION_MARK:case B.NUM_PLUS:case B.NUM_MINUS:case B.NUM_PERIOD:case B.NUM_DIVISION:case B.SEMICOLON:case B.DASH:case B.EQUALS:case B.COMMA:case B.PERIOD:case B.SLASH:case B.APOSTROPHE:case B.SINGLE_QUOTE:case B.OPEN_SQUARE_BRACKET:case B.BACKSLASH:case B.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const F=B;const j=h.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var z=h.createContext({}),U=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"];const H=h.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.value,a=e.valueIndex,l=e.onStartMove,u=e.onDelete,c=e.style,d=e.render,f=e.dragging,m=e.draggingDelete,g=e.onOffsetChange,y=e.onChangeComplete,v=e.onFocus,b=e.onMouseEnter,w=D(e,U),S=h.useContext(j),E=S.min,x=S.max,C=S.direction,k=S.disabled,O=S.keyboard,_=S.range,P=S.tabIndex,A=S.ariaLabelForHandle,I=S.ariaLabelledByForHandle,T=S.ariaRequired,N=S.ariaValueTextFormatterForHandle,B=S.styles,z=S.classNames,H="".concat(r,"-handle"),W=function(e){k||l(e,a)},V=M(C,o,E,x),$={};null!==a&&($={tabIndex:k?null:L(P,a),role:"slider","aria-valuemin":E,"aria-valuemax":x,"aria-valuenow":o,"aria-disabled":k,"aria-label":L(A,a),"aria-labelledby":L(I,a),"aria-required":L(T,a),"aria-valuetext":null===(n=L(N,a))||void 0===n?void 0:n(o),"aria-orientation":"ltr"===C||"rtl"===C?"horizontal":"vertical",onMouseDown:W,onTouchStart:W,onFocus:function(e){null==v||v(e,a)},onMouseEnter:function(e){b(e,a)},onKeyDown:function(e){if(!k&&O){var t=null;switch(e.which||e.keyCode){case F.LEFT:t="ltr"===C||"btt"===C?-1:1;break;case F.RIGHT:t="ltr"===C||"btt"===C?1:-1;break;case F.UP:t="ttb"!==C?1:-1;break;case F.DOWN:t="ttb"!==C?-1:1;break;case F.HOME:t="min";break;case F.END:t="max";break;case F.PAGE_UP:t=2;break;case F.PAGE_DOWN:t=-2;break;case F.BACKSPACE:case F.DELETE:null==u||u(a)}null!==t&&(e.preventDefault(),g(t,a))}},onKeyUp:function(e){switch(e.which||e.keyCode){case F.LEFT:case F.RIGHT:case F.UP:case F.DOWN:case F.HOME:case F.END:case F.PAGE_UP:case F.PAGE_DOWN:null==y||y()}}});var G=h.createElement("div",(0,R.A)({ref:t,className:p()(H,i(i(i({},"".concat(H,"-").concat(a+1),null!==a&&_),"".concat(H,"-dragging"),f),"".concat(H,"-dragging-delete"),m),z.handle),style:s(s(s({},V),c),B.handle)},$,w));return d&&(G=d(G,{index:a,prefixCls:r,value:o,dragging:f,draggingDelete:m})),G});var W=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"];const V=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,l=e.handleRender,u=e.activeHandleRender,c=e.draggingIndex,f=e.draggingDelete,p=e.onFocus,m=D(e,W),g=h.useRef({}),y=d(h.useState(!1),2),v=y[0],b=y[1],w=d(h.useState(-1),2),S=w[0],E=w[1],x=function(e){E(e),b(!0)};h.useImperativeHandle(t,function(){return{focus:function(e){var t;null===(t=g.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,T.flushSync)(function(){b(!1)})}}});var C=s({prefixCls:n,onStartMove:o,onOffsetChange:i,render:l,onFocus:function(e,t){x(t),null==p||p(e)},onMouseEnter:function(e,t){x(t)}},m);return h.createElement(h.Fragment,null,a.map(function(e,t){var n=c===t;return h.createElement(H,(0,R.A)({ref:function(e){e?g.current[t]=e:delete g.current[t]},dragging:n,draggingDelete:n&&f,style:L(r,t),key:t,value:e,valueIndex:t},C))}),u&&v&&h.createElement(H,(0,R.A)({key:"a11y"},C,{value:a[S],valueIndex:null,dragging:-1!==c,draggingDelete:f,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const $=function(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,l=h.useContext(j),u=l.min,c=l.max,d=l.direction,f=l.includedStart,m=l.includedEnd,g=l.included,y="".concat(t,"-text"),v=M(d,o,u,c);return h.createElement("span",{className:p()(y,i({},"".concat(y,"-active"),g&&f<=o&&o<=m)),style:s(s({},v),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(o)}},r)};const G=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?h.createElement("div",{className:o},n.map(function(e){var t=e.value,n=e.style,i=e.label;return h.createElement($,{key:t,prefixCls:o,style:n,value:t,onClick:r},i)})):null};const q=function(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=h.useContext(j),l=a.min,u=a.max,c=a.direction,d=a.included,f=a.includedStart,m=a.includedEnd,g="".concat(t,"-dot"),y=d&&f<=n&&n<=m,v=s(s({},M(c,n,l,u)),"function"==typeof r?r(n):r);return y&&(v=s(s({},v),"function"==typeof o?o(n):o)),h.createElement("span",{className:p()(g,i({},"".concat(g,"-active"),y)),style:v})};const Q=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,i=e.activeStyle,a=h.useContext(j),s=a.min,l=a.max,u=a.step,c=h.useMemo(function(){var e=new Set;if(n.forEach(function(t){e.add(t.value)}),r&&null!==u)for(var t=s;t<=l;)e.add(t),t+=u;return Array.from(e)},[s,l,u,r,n]);return h.createElement("div",{className:"".concat(t,"-step")},c.map(function(e){return h.createElement(q,{prefixCls:t,key:e,value:e,style:o,activeStyle:i})}))};const K=function(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,l=e.onStartMove,u=e.replaceCls,c=h.useContext(j),d=c.direction,f=c.min,m=c.max,g=c.disabled,y=c.range,v=c.classNames,b="".concat(t,"-track"),w=N(r,f,m),S=N(o,f,m),E=function(e){!g&&l&&l(e,-1)},x={};switch(d){case"rtl":x.right="".concat(100*w,"%"),x.width="".concat(100*S-100*w,"%");break;case"btt":x.bottom="".concat(100*w,"%"),x.height="".concat(100*S-100*w,"%");break;case"ttb":x.top="".concat(100*w,"%"),x.height="".concat(100*S-100*w,"%");break;default:x.left="".concat(100*w,"%"),x.width="".concat(100*S-100*w,"%")}var C=u||p()(b,i(i({},"".concat(b,"-").concat(a+1),null!==a&&y),"".concat(t,"-track-draggable"),l),v.track);return h.createElement("div",{className:C,style:s(s({},x),n),onMouseDown:E,onTouchStart:E})};const Y=function(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,i=e.onStartMove,a=h.useContext(j),l=a.included,u=a.range,c=a.min,d=a.styles,f=a.classNames,m=h.useMemo(function(){if(!u){if(0===r.length)return[];var e=null!=o?o:c,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],i=0;i<r.length-1;i+=1)n.push({start:r[i],end:r[i+1]});return n},[r,u,o,c]);if(!l)return null;var g=null!=m&&m.length&&(f.tracks||d.tracks)?h.createElement(K,{index:null,prefixCls:t,start:m[0].start,end:m[m.length-1].end,replaceCls:p()(f.tracks,"".concat(t,"-tracks")),style:d.tracks}):null;return h.createElement(h.Fragment,null,g,m.map(function(e,r){var o=e.start,a=e.end;return h.createElement(K,{index:r,prefixCls:t,style:s(s({},L(n,r)),d.track),start:o,end:a,key:r,onStartMove:i})}))};function X(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const J=function(e,t,n,r,o,i,a,s,l,u,f){var p=d(h.useState(null),2),g=p[0],y=p[1],v=d(h.useState(-1),2),w=v[0],S=v[1],E=d(h.useState(!1),2),x=E[0],C=E[1],k=d(h.useState(n),2),O=k[0],_=k[1],P=d(h.useState(n),2),A=P[0],R=P[1],I=h.useRef(null),D=h.useRef(null),T=h.useRef(null),N=h.useContext(z),M=N.onDragStart,L=N.onDragChange;b(function(){-1===w&&_(n)},[n,w]),h.useEffect(function(){return function(){document.removeEventListener("mousemove",I.current),document.removeEventListener("mouseup",D.current),T.current&&(T.current.removeEventListener("touchmove",I.current),T.current.removeEventListener("touchend",D.current))}},[]);var B=function(e,t,n){void 0!==t&&y(t),_(e);var r=e;n&&(r=e.filter(function(e,t){return t!==w})),a(r),L&&L({rawValues:e,deleteIndex:n?w:-1,draggingIndex:w,draggingValue:t})},F=m(function(e,t,n){if(-1===e){var a=A[0],s=A[A.length-1],u=r-a,d=o-s,f=t*(o-r);f=Math.max(f,u),f=Math.min(f,d);var p=i(a+f);f=p-a;var h=A.map(function(e){return e+f});B(h)}else{var m=(o-r)*t,g=c(O);g[e]=A[e];var y=l(g,m,e,"dist");B(y.values,y.value,n)}}),j=h.useMemo(function(){var e=c(n).sort(function(e,t){return e-t}),t=c(O).sort(function(e,t){return e-t}),r={};t.forEach(function(e){r[e]=(r[e]||0)+1}),e.forEach(function(e){r[e]=(r[e]||0)-1});var o=u?1:0;return Object.values(r).reduce(function(e,t){return e+Math.abs(t)},0)<=o?O:n},[n,O,u]);return[w,g,x,j,function(r,o,i){r.stopPropagation();var a=i||n,l=a[o];S(o),y(l),R(a),_(a),C(!1);var c=X(r),d=c.pageX,p=c.pageY,h=!1;M&&M({rawValues:a,draggingIndex:o,draggingValue:l});var m=function(n){n.preventDefault();var r,i,a=X(n),s=a.pageX,l=a.pageY,c=s-d,m=l-p,g=e.current.getBoundingClientRect(),y=g.width,v=g.height;switch(t){case"btt":r=-m/v,i=c;break;case"ttb":r=m/v,i=c;break;case"rtl":r=-c/y,i=m;break;default:r=c/y,i=m}h=!!u&&(Math.abs(i)>130&&f<O.length),C(h),F(o,r,h)},g=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",m),T.current&&(T.current.removeEventListener("touchmove",I.current),T.current.removeEventListener("touchend",D.current)),I.current=null,D.current=null,T.current=null,s(h),S(-1),C(!1)};document.addEventListener("mouseup",g),document.addEventListener("mousemove",m),r.currentTarget.addEventListener("touchend",g),r.currentTarget.addEventListener("touchmove",m),I.current=m,D.current=g,T.current=r.currentTarget}]};const Z=h.forwardRef(function(e,t){var n=e.prefixCls,o=void 0===n?"rc-slider":n,a=e.className,l=e.style,u=e.classNames,f=e.styles,g=e.id,y=e.disabled,b=void 0!==y&&y,E=e.keyboard,x=void 0===E||E,C=e.autoFocus,k=e.onFocus,O=e.onBlur,_=e.min,R=void 0===_?0:_,I=e.max,D=void 0===I?100:I,T=e.step,N=void 0===T?1:T,M=e.value,L=e.defaultValue,B=e.range,F=e.count,z=e.onChange,U=e.onBeforeChange,H=e.onAfterChange,W=e.onChangeComplete,$=e.allowCross,q=void 0===$||$,K=e.pushable,X=void 0!==K&&K,Z=e.reverse,ee=e.vertical,te=e.included,ne=void 0===te||te,re=e.startPoint,oe=e.trackStyle,ie=e.handleStyle,ae=e.railStyle,se=e.dotStyle,le=e.activeDotStyle,ue=e.marks,ce=e.dots,de=e.handleRender,fe=e.activeHandleRender,pe=e.track,he=e.tabIndex,me=void 0===he?0:he,ge=e.ariaLabelForHandle,ye=e.ariaLabelledByForHandle,ve=e.ariaRequired,be=e.ariaValueTextFormatterForHandle,we=h.useRef(null),Se=h.useRef(null),Ee=h.useMemo(function(){return ee?Z?"ttb":"btt":Z?"rtl":"ltr"},[Z,ee]),xe=function(e){return(0,h.useMemo)(function(){if(!0===e||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack;return[!0,t,!t&&n,e.minCount||0,e.maxCount]},[e])}(B),Ce=d(xe,5),ke=Ce[0],Oe=Ce[1],_e=Ce[2],Pe=Ce[3],Ae=Ce[4],Re=h.useMemo(function(){return isFinite(R)?R:0},[R]),Ie=h.useMemo(function(){return isFinite(D)?D:100},[D]),De=h.useMemo(function(){return null!==N&&N<=0?1:N},[N]),Te=h.useMemo(function(){return"boolean"==typeof X?!!X&&De:X>=0&&X},[X,De]),Ne=h.useMemo(function(){return Object.keys(ue||{}).map(function(e){var t=ue[e],n={value:Number(e)};return t&&"object"===r(t)&&!h.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(function(e){var t=e.label;return t||"number"==typeof t}).sort(function(e,t){return e.value-t.value})},[ue]),Me=function(e,t,n,r,o,i){var a=h.useCallback(function(n){return Math.max(e,Math.min(t,n))},[e,t]),s=h.useCallback(function(r){if(null!==n){var o=e+Math.round((a(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},s=Math.max(i(n),i(t),i(e)),l=Number(o.toFixed(s));return e<=l&&l<=t?l:null}return null},[n,e,t,a]),l=h.useCallback(function(o){var i=a(o),l=r.map(function(e){return e.value});null!==n&&l.push(s(o)),l.push(e,t);var u=l[0],c=t-e;return l.forEach(function(e){var t=Math.abs(i-e);t<=c&&(u=e,c=t)}),u},[e,t,r,n,a,s]),u=function o(i,a,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var d,f=i[l],p=f+a,h=[];r.forEach(function(e){h.push(e.value)}),h.push(e,t),h.push(s(f));var m=a>0?1:-1;"unit"===u?h.push(s(f+m*n)):h.push(s(p)),h=h.filter(function(e){return null!==e}).filter(function(e){return a<0?e<=f:e>=f}),"unit"===u&&(h=h.filter(function(e){return e!==f}));var g="unit"===u?f:p;d=h[0];var y=Math.abs(d-g);if(h.forEach(function(e){var t=Math.abs(e-g);t<y&&(d=e,y=t)}),void 0===d)return a<0?e:t;if("dist"===u)return d;if(Math.abs(a)>1){var v=c(i);return v[l]=d,o(v,a-m,l,u)}return d}return"min"===a?e:"max"===a?t:void 0},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=u(e,t,n,r);return{value:i,changed:i!==o}},f=function(e){return null===i&&0===e||"number"==typeof i&&e<i};return[l,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(l),s=a[n],c=u(a,t,n,r);if(a[n]=c,!1===o){var p=i||0;n>0&&a[n-1]!==s&&(a[n]=Math.max(a[n],a[n-1]+p)),n<a.length-1&&a[n+1]!==s&&(a[n]=Math.min(a[n],a[n+1]-p))}else if("number"==typeof i||null===i){for(var h=n+1;h<a.length;h+=1)for(var m=!0;f(a[h]-a[h-1])&&m;){var g=d(a,1,h);a[h]=g.value,m=g.changed}for(var y=n;y>0;y-=1)for(var v=!0;f(a[y]-a[y-1])&&v;){var b=d(a,-1,y-1);a[y-1]=b.value,v=b.changed}for(var w=a.length-1;w>0;w-=1)for(var S=!0;f(a[w]-a[w-1])&&S;){var E=d(a,-1,w-1);a[w-1]=E.value,S=E.changed}for(var x=0;x<a.length-1;x+=1)for(var C=!0;f(a[x+1]-a[x])&&C;){var k=d(a,1,x+1);a[x+1]=k.value,C=k.changed}}return{value:a[n],values:a}}]}(Re,Ie,De,Ne,q,Te),Le=d(Me,2),Be=Le[0],Fe=Le[1],je=function(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=d(w(function(){return S(o)?o:S(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),2),l=s[0],u=s[1],c=void 0!==o?o:l,f=a?a(c):c,p=m(i),h=d(w([c]),2),g=h[0],y=h[1];return v(function(){var e=g[0];l!==e&&p(l,e)},[g]),v(function(){S(o)||u(o)},[o]),[f,m(function(e,t){u(e,t),y([c],t)})]}(L,{value:M}),ze=d(je,2),Ue=ze[0],He=ze[1],We=h.useMemo(function(){var e=null==Ue?[]:Array.isArray(Ue)?Ue:[Ue],t=d(e,1)[0],n=null===Ue?[]:[void 0===t?Re:t];if(ke){if(n=c(e),F||void 0===Ue){var r=F>=0?F+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:Re)}}n.sort(function(e,t){return e-t})}return n.forEach(function(e,t){n[t]=Be(e)}),n},[Ue,ke,Re,F,Be]),Ve=function(e){return ke?e:e[0]},$e=m(function(e){var t=c(e).sort(function(e,t){return e-t});z&&!A(t,We,!0)&&z(Ve(t)),He(t)}),Ge=m(function(e){e&&we.current.hideHelp();var t=Ve(We);null==H||H(t),P(!H,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==W||W(t)}),qe=d(J(Se,Ee,We,Re,Ie,Be,$e,Ge,Fe,Oe,Pe),5),Qe=qe[0],Ke=qe[1],Ye=qe[2],Xe=qe[3],Je=qe[4],Ze=function(e,t){if(!b){var n=c(We),r=0,o=0,i=Ie-Re;We.forEach(function(t,n){var a=Math.abs(e-t);a<=i&&(i=a,r=n),t<e&&(o=n)});var a=r;Oe&&0!==i&&(!Ae||We.length<Ae)?(n.splice(o+1,0,e),a=o+1):n[r]=e,ke&&!We.length&&void 0===F&&n.push(e);var s,l,u=Ve(n);if(null==U||U(u),$e(n),t)null===(s=document.activeElement)||void 0===s||null===(l=s.blur)||void 0===l||l.call(s),we.current.focus(a),Je(t,a,n);else null==H||H(u),P(!H,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null==W||W(u)}},et=d(h.useState(null),2),tt=et[0],nt=et[1];h.useEffect(function(){if(null!==tt){var e=We.indexOf(tt);e>=0&&we.current.focus(e)}nt(null)},[tt]);var rt=h.useMemo(function(){return(!_e||null!==De)&&_e},[_e,De]),ot=m(function(e,t){Je(e,t),null==U||U(Ve(We))}),it=-1!==Qe;h.useEffect(function(){if(!it){var e=We.lastIndexOf(Ke);we.current.focus(e)}},[it]);var at=h.useMemo(function(){return c(Xe).sort(function(e,t){return e-t})},[Xe]),st=d(h.useMemo(function(){return ke?[at[0],at[at.length-1]]:[Re,at[0]]},[at,ke,Re]),2),lt=st[0],ut=st[1];h.useImperativeHandle(t,function(){return{focus:function(){we.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=Se.current)&&void 0!==e&&e.contains(t)&&(null==t||t.blur())}}}),h.useEffect(function(){C&&we.current.focus(0)},[]);var ct=h.useMemo(function(){return{min:Re,max:Ie,direction:Ee,disabled:b,keyboard:x,step:De,included:ne,includedStart:lt,includedEnd:ut,range:ke,tabIndex:me,ariaLabelForHandle:ge,ariaLabelledByForHandle:ye,ariaRequired:ve,ariaValueTextFormatterForHandle:be,styles:f||{},classNames:u||{}}},[Re,Ie,Ee,b,x,De,ne,lt,ut,ke,me,ge,ye,ve,be,f,u]);return h.createElement(j.Provider,{value:ct},h.createElement("div",{ref:Se,className:p()(o,a,i(i(i(i({},"".concat(o,"-disabled"),b),"".concat(o,"-vertical"),ee),"".concat(o,"-horizontal"),!ee),"".concat(o,"-with-marks"),Ne.length)),style:l,onMouseDown:function(e){e.preventDefault();var t,n=Se.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,s=n.bottom,l=n.right,u=e.clientX,c=e.clientY;switch(Ee){case"btt":t=(s-c)/o;break;case"ttb":t=(c-a)/o;break;case"rtl":t=(l-u)/r;break;default:t=(u-i)/r}Ze(Be(Re+t*(Ie-Re)),e)},id:g},h.createElement("div",{className:p()("".concat(o,"-rail"),null==u?void 0:u.rail),style:s(s({},ae),null==f?void 0:f.rail)}),!1!==pe&&h.createElement(Y,{prefixCls:o,style:oe,values:We,startPoint:re,onStartMove:rt?ot:void 0}),h.createElement(Q,{prefixCls:o,marks:Ne,dots:ce,style:se,activeStyle:le}),h.createElement(V,{ref:we,prefixCls:o,style:ie,values:Xe,draggingIndex:Qe,draggingDelete:Ye,onStartMove:ot,onOffsetChange:function(e,t){if(!b){var n=Fe(We,e,t);null==U||U(Ve(We)),$e(n.values),nt(n.value)}},onFocus:k,onBlur:O,handleRender:de,activeHandleRender:fe,onChangeComplete:Ge,onDelete:Oe?function(e){if(!(b||!Oe||We.length<=Pe)){var t=c(We);t.splice(e,1),null==U||U(Ve(t)),$e(t);var n=Math.max(0,e-1);we.current.hideHelp(),we.current.focus(n)}}:void 0}),h.createElement(G,{prefixCls:o,marks:Ne,onClick:Ze})))})},13937:(e,t,n)=>{"use strict";var r;n.d(t,{BV:()=>hn,C5:()=>dn,N_:()=>Xn,RQ:()=>Lt,Ys:()=>qn,k2:()=>Jn,pg:()=>ln,qh:()=>fn,zy:()=>Mt});var o,i=n(96540),a=e=>{throw TypeError(e)},s=(e,t,n)=>(((e,t,n)=>{t.has(e)||a("Cannot "+n)})(e,t,"read from private field"),n?n.call(e):t.get(e)),l="popstate";function u(e={}){return g(function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:h(t)},null,e)}function c(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?m(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function h({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",u=null,c=d();function d(){return(a.state||{idx:null}).idx}function h(){s="POP";let e=d(),t=null==e?null:e-c;c=e,u&&u({action:s,location:g.location,delta:t})}function m(e){return y(e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let g={get action(){return s},get location(){return e(o,a)},listen(e){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(l,h),u=e,()=>{o.removeEventListener(l,h),u=null}},createHref:e=>t(o,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=p(g.location,e,t);n&&n(r,e),c=d()+1;let l=f(r,c),h=g.createHref(r);try{a.pushState(l,"",h)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(h)}i&&u&&u({action:s,location:g.location,delta:1})},replace:function(e,t){s="REPLACE";let r=p(g.location,e,t);n&&n(r,e),c=d();let o=f(r,c),l=g.createHref(r);a.replaceState(o,"",l),i&&u&&u({action:s,location:g.location,delta:0})},go:e=>a.go(e)};return g}function y(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),c(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var v=class{constructor(e){var t,n,r;if(t=this,n=o,r=new Map,n.has(t)?a("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),e)for(let[t,n]of e)this.set(t,n)}get(e){if(s(this,o).has(e))return s(this,o).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){s(this,o).set(e,t)}};o=new WeakMap;var b=new Set(["lazy","caseSensitive","path","id","index","children"]);var w=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function S(e){return w.has(e)}function E(e,t,n=[],r={},o=!1){return e.map((e,i)=>{let a=[...n,String(i)],s="string"==typeof e.id?e.id:a.join("-");if(c(!0!==e.index||!e.children,"Cannot specify children on an index route"),c(o||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),function(e){return!0===e.index}(e)){let n={...e,id:s};return r[s]=x(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=x(n,t(n)),e.children&&(n.children=E(e.children,t,a,r,o)),n}})}function x(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function C(e,t,n="/"){return k(e,t,n,!1)}function k(e,t,n,r){let o=U(("string"==typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let i=_(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=z(o);a=B(i[e],t,r)}return a}function O(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function _(e,t=[],n=[],r="",o=!1){let i=(e,i,a=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;c(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let u=K([r,l.relativePath]),d=n.concat(l);e.children&&e.children.length>0&&(c(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),_(e.children,t,d,u,a)),(null!=e.path||e.index)&&t.push({path:u,score:L(u,e.index),routesMeta:d})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of P(e.path))i(e,t,!0,n);else i(e,t)}),t}function P(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=P(r.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var A=/^:[\w-]+$/,R=3,I=2,D=1,T=10,N=-2,M=e=>"*"===e;function L(e,t){let n=e.split("/"),r=n.length;return n.some(M)&&(r+=N),t&&(r+=I),n.filter(e=>!M(e)).reduce((e,t)=>e+(A.test(t)?R:""===t?D:T),r)}function B(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=F({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),d=s.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=F({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:K([i,c.pathname]),pathnameBase:Y(K([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=K([i,c.pathnameBase]))}return a}function F(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=j(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function j(e,t=!1,n=!0){d("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function z(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return d(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function U(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var H=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,W=e=>H.test(e);function V(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function $(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function G(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function q(e){let t=G(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Q(e,t,n,r=!1){let o;"string"==typeof e?o=m(e):(o={...e},c(!o.pathname||!o.pathname.includes("?"),$("?","pathname","search",o)),c(!o.pathname||!o.pathname.includes("#"),$("#","pathname","hash",o)),c(!o.search||!o.search.includes("#"),$("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?m(e):e;if(r)if(W(r))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),d(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${r}`)}n=r.startsWith("/")?V(r.substring(1),"/"):V(r,t)}else n=t;return{pathname:n,search:X(o),hash:J(i)}}(o,i),u=s&&"/"!==s&&s.endsWith("/"),f=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!f||(l.pathname+="/"),l}var K=e=>e.join("/").replace(/\/\/+/g,"/"),Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",J=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Z=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function ee(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function te(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ne=Symbol("Uninstrumented");function re(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=oe(n.lazy,t.lazy,()=>{});e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let o=e[t],i=n[`lazy.${t}`];if("function"==typeof o&&i.length>0){let e=oe(i,o,()=>{});e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[ne]??o,i=oe(n[e],t,(...e)=>ae(e[0]));i&&(i[ne]=t,r[e]=i)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[ne]??e,r=oe(n.middleware,t,(...e)=>ae(e[0]));return r?(r[ne]=t,r):e})),r}function oe(e,t,n){return 0===e.length?null:async(...r)=>{let o=await ie(e,n(...r),()=>t(...r),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function ie(e,t,n,r){let o,i=e[r];if(i){let a,s=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=ie(e,t,n,r-1),o=await a,c(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await i(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await s(),await a}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ae(e){let{request:t,context:n,params:r,unstable_pattern:o}=e;return{request:le(t),params:{...r},unstable_pattern:o,context:ue(n)}}function se(e,t){return{currentUrl:h(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function le(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function ue(e){if(function(e){if(null===e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===ce}(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var ce=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var de=["POST","PUT","PATCH","DELETE"],fe=new Set(de),pe=["GET",...de],he=new Set(pe),me=new Set([301,302,303,307,308]),ge=new Set([307,308]),ye={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ve={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},be={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},we=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Se="remix-router-transitions",Ee=Symbol("ResetLoaderData");function xe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;c(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||we,i=o;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;i=e=>({...o(e),...re(t.map(e=>e.route).filter(Boolean),e)})}let a,s={},l=E(e.routes,i,void 0,s),u=e.basename||"/";u.startsWith("/")||(u=`/${u}`);let f,m,g=e.dataStrategy||Le,b={...e.future},w=null,S=new Set,x=null,_=null,P=null,A=null!=e.hydrationData,R=C(l,e.history.location,u),I=!1,D=null;if(null!=R||e.patchRoutesOnNavigation){if(R&&!e.hydrationData){Ke(R,l,e.history.location.pathname).active&&(R=null)}if(R)if(R.some(e=>e.route.lazy))f=!1;else if(R.some(e=>_e(e.route))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=R.findIndex(e=>void 0!==n[e.route.id]);f=R.slice(0,e+1).every(e=>!Pe(e.route,t,n))}else f=R.every(e=>!Pe(e.route,t,n))}else f=!0;else{f=!1,R=[];let t=Ke(null,l,e.history.location.pathname);t.active&&t.matches&&(I=!0,R=t.matches)}}else{let t=rt(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=nt(l);f=!0,R=n,D={[r.id]:t}}let T,N,M={historyAction:e.history.action,location:e.history.location,matches:R,initialized:f,navigation:ye,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},L="POP",B=null,F=!1,j=!1,z=new Map,H=null,V=!1,$=!1,G=new Set,q=new Map,Q=0,K=-1,Y=new Map,X=new Set,J=new Map,Z=new Map,te=new Set,ie=new Map,ae=null;function le(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=s[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e})),M={...M,...e};let n=[],r=[];M.fetchers.forEach((e,t)=>{"idle"===e.state&&(te.has(t)?n.push(t):r.push(t))}),te.forEach(e=>{M.fetchers.has(e)||q.has(e)||n.push(e)}),[...S].forEach(r=>r(M,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),n.forEach(e=>Ie(e)),r.forEach(e=>M.fetchers.delete(e))}function ue(t,n,{flushSync:r}={}){let o,i=null!=M.actionData&&null!=M.navigation.formMethod&&mt(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?M.actionData:null;let s=n.loaderData?Ze(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,u=M.blockers;u.size>0&&(u=new Map(u),u.forEach((e,t)=>u.set(t,be)));let c,d=!V&&Ve(t,n.matches||M.matches),f=!0===F||null!=M.navigation.formMethod&&mt(M.navigation.formMethod)&&!0!==t.state?._isRedirect;if(a&&(l=a,a=void 0),V||"POP"===L||("PUSH"===L?e.history.push(t,t.state):"REPLACE"===L&&e.history.replace(t,t.state)),"POP"===L){let e=z.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:z.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(j){let e=z.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}le({...n,actionData:o,loaderData:s,historyAction:L,location:t,initialized:!0,navigation:ye,revalidation:"idle",restoreScrollPosition:d,preventScrollReset:f,blockers:u},{viewTransitionOpts:c,flushSync:!0===r}),L="POP",F=!1,j=!1,V=!1,$=!1,B?.resolve(),B=null,ae?.resolve(),ae=null}async function ce(t,n,o){T&&T.abort(),T=null,L=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(x&&P){let n=Ue(e,t);x[n]=P()}}(M.location,M.matches),F=!0===(o&&o.preventScrollReset),j=!0===(o&&o.enableViewTransition);let c=a||l,d=o&&o.overrideNavigation,f=o?.initialHydration&&M.matches&&M.matches.length>0&&!I?M.matches:C(c,n,u),p=!0===(o&&o.flushSync);if(f&&M.initialized&&!$&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(M.location,n)&&!(o&&o.submission&&mt(o.submission.formMethod)))return void ue(n,{matches:f},{flushSync:p});let h=Ke(f,c,n.pathname);if(h.active&&h.matches&&(f=h.matches),!f){let{error:e,notFoundMatches:t,route:r}=ze(n.pathname);return void ue(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:p})}T=new AbortController;let m,g=Qe(e.history,n,T.signal,o&&o.submission),y=e.getContext?await e.getContext():new v;if(o&&o.pendingError)m=[tt(f).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&mt(o.submission.formMethod)){let t=await async function(e,t,n,o,a,c,d,f={}){me();let p,h=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);if(le({navigation:h},{flushSync:!0===f.flushSync}),c){let n=await Ye(o,t.pathname,e.signal);if("aborted"===n.type)return{shortCircuited:!0};if("error"===n.type){if(0===n.partialMatches.length){let{matches:e,route:t}=nt(l);return{matches:e,pendingActionResult:[t.id,{type:"error",error:n.error}]}}let e=tt(n.partialMatches).route.id;return{matches:n.partialMatches,pendingActionResult:[e,{type:"error",error:n.error}]}}if(!n.matches){let{notFoundMatches:e,error:n,route:r}=ze(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:n}]}}o=n.matches}let m=yt(o,t);if(m.route.action||m.route.lazy){let t=He(i,s,e,o,m,d?[]:r,a),n=await pe(e,t,a,null);if(p=n[m.route.id],!p)for(let e of o)if(n[e.route.id]){p=n[e.route.id];break}if(e.signal.aborted)return{shortCircuited:!0}}else p={type:"error",error:rt(405,{method:e.method,pathname:t.pathname,routeId:m.route.id})};if(dt(p)){let t;if(f&&null!=f.replace)t=f.replace;else{t=qe(p.response.headers.get("Location"),new URL(e.url),u)===M.location.pathname+M.location.search}return await fe(e,p,!0,{submission:n,replace:t}),{shortCircuited:!0}}if(ct(p)){let e=tt(o,m.route.id);return!0!==(f&&f.replace)&&(L="PUSH"),{matches:o,pendingActionResult:[e.route.id,p,m.route.id]}}return{matches:o,pendingActionResult:[m.route.id,p]}}(g,n,o.submission,f,y,h.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:p});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ct(r)&&ee(r.error)&&404===r.error.status)return T=null,void ue(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}f=t.matches||f,m=t.pendingActionResult,d=bt(n,o.submission),p=!1,h.active=!1,g=Qe(e.history,g.url,g.signal)}let{shortCircuited:b,matches:w,loaderData:S,errors:E}=await async function(t,n,o,c,d,f,p,h,m,g,y,v){let b=f||bt(n,p),w=p||h||vt(b),S=!V&&!g;if(d){if(S){let e=de(v);le({navigation:b,...void 0!==e?{actionData:e}:{}},{flushSync:y})}let e=await Ye(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=nt(l);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=tt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=ze(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let E=a||l,{dsMatches:x,revalidatingFetchers:C}=Oe(t,c,i,s,e.history,M,o,w,n,g?[]:r,!0===g,$,G,te,J,X,E,u,null!=e.patchRoutesOnNavigation,v);if(K=++Q,!e.dataStrategy&&!x.some(e=>e.shouldLoad)&&!x.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===C.length){let e=Ne();return ue(n,{matches:o,loaderData:{},errors:v&&ct(v[1])?{[v[0]]:v[1].error}:null,...et(v),...e?{fetchers:new Map(M.fetchers)}:{}},{flushSync:y}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=de(v);void 0!==t&&(e.actionData=t)}C.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=M.fetchers.get(e.key),n=wt(void 0,t?t.data:void 0);M.fetchers.set(e.key,n)}),new Map(M.fetchers)}(C)),le(e,{flushSync:y})}C.forEach(e=>{De(e.key),e.controller&&q.set(e.key,e.controller)});let k=()=>C.forEach(e=>De(e.key));T&&T.signal.addEventListener("abort",k);let{loaderResults:O,fetcherResults:_}=await he(x,C,t,c);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",k);C.forEach(e=>q.delete(e.key));let P=ot(O);if(P)return await fe(t,P.result,!0,{replace:m}),{shortCircuited:!0};if(P=ot(_),P)return X.add(P.key),await fe(t,P.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:A,errors:R}=Je(M,o,O,v,C,_);g&&M.errors&&(R={...M.errors,...R});let I=Ne(),D=Me(K),N=I||D||C.length>0;return{matches:o,loaderData:A,errors:R,...N?{fetchers:new Map(M.fetchers)}:{}}}(g,n,f,y,h.active,d,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,p,m);b||(T=null,ue(n,{matches:w||f,...et(m),loaderData:S,errors:E}))}function de(e){return e&&!ct(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function fe(e,r,o,{submission:i,fetcherSubmission:a,preventScrollReset:s,replace:l}={}){o||(B?.resolve(),B=null),r.response.headers.has("X-Remix-Revalidate")&&($=!0);let d=r.response.headers.get("Location");c(d,"Expected a Location header on the redirect Response"),d=qe(d,new URL(e.url),u);let f=p(M.location,d,{_isRedirect:!0});if(n){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(W(d)){const n=y(d,!0);e=n.origin!==t.location.origin||null==U(n.pathname,u)}if(e)return void(l?t.location.replace(d):t.location.assign(d))}T=null;let h=!0===l||r.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:m,formAction:g,formEncType:v}=M.navigation;!i&&!a&&m&&g&&v&&(i=vt(M.navigation));let b=i||a;if(ge.has(r.response.status)&&b&&mt(b.formMethod))await ce(h,f,{submission:{...b,formAction:d},preventScrollReset:s||F,enableViewTransition:o?j:void 0});else{let e=bt(f,i);await ce(h,f,{overrideNavigation:e,fetcherSubmission:a,preventScrollReset:s||F,enableViewTransition:o?j:void 0})}}async function pe(e,t,n,r){let o,i={};try{o=await We(g,e,t,r,n,!1)}catch(e){return t.filter(e=>e.shouldLoad).forEach(t=>{i[t.route.id]={type:"error",error:e}}),i}if(e.signal.aborted)return i;for(let[n,r]of Object.entries(o))if(ut(r)){let o=r.result;i[n]={type:"redirect",response:Ge(o,e,n,t,u)}}else i[n]=await $e(r);return i}async function he(e,t,n,r){let o=pe(n,e,r,null),i=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await pe(e.request,e.matches,r,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:rt(404,{pathname:e.path})}})}));return{loaderResults:await o,fetcherResults:(await i).reduce((e,t)=>Object.assign(e,t),{})}}function me(){$=!0,J.forEach((e,t)=>{q.has(t)&&G.add(t),De(t)})}function Ee(e,t,n={}){M.fetchers.set(e,t),le({fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function xe(e,t,n,r={}){let o=tt(M.matches,t);Ie(e),le({errors:{[o.route.id]:n},fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ae(e){return Z.set(e,(Z.get(e)||0)+1),te.has(e)&&te.delete(e),M.fetchers.get(e)||ve}function Ie(e){let t=M.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&Y.has(e)||De(e),J.delete(e),Y.delete(e),X.delete(e),te.delete(e),G.delete(e),M.fetchers.delete(e)}function De(e,t){let n=q.get(e);n&&(n.abort(t),q.delete(e))}function Te(e){for(let t of e){let e=St(Ae(t).data);M.fetchers.set(t,e)}}function Ne(){let e=[],t=!1;for(let n of X){let r=M.fetchers.get(n);c(r,`Expected fetcher: ${n}`),"loading"===r.state&&(X.delete(n),e.push(n),t=!0)}return Te(e),t}function Me(e){let t=[];for(let[n,r]of Y)if(r<e){let e=M.fetchers.get(n);c(e,`Expected fetcher: ${n}`),"loading"===e.state&&(De(n),Y.delete(n),t.push(n))}return Te(t),t.length>0}function Be(e){M.blockers.delete(e),ie.delete(e)}function Fe(e,t){let n=M.blockers.get(e)||be;c("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(M.blockers);r.set(e,t),le({blockers:r})}function je({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ie.size)return;ie.size>1&&d(!1,"A router only supports one blocker at a time");let r=Array.from(ie.entries()),[o,i]=r[r.length-1],a=M.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function ze(e){let t=rt(404,{pathname:e}),n=a||l,{matches:r,route:o}=nt(n);return{notFoundMatches:r,route:o,error:t}}function Ue(e,t){if(_){return _(e,t.map(e=>O(e,M.loaderData)))||e.key}return e.key}function Ve(e,t){if(x){let n=Ue(e,t),r=x[n];if("number"==typeof r)return r}return null}function Ke(t,n,r){if(e.patchRoutesOnNavigation){if(!t){return{active:!0,matches:k(n,r,u,!0)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:k(n,r,u,!0)}}}return{active:!1,matches:null}}async function Ye(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let c=t;for(;;){let t=null==a,d=a||l,f=s;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:c,fetcherKey:o,patch:(e,t)=>{r.aborted||Re(e,t,d,f,i,!1)}})}catch(e){return{type:"error",error:e,partialMatches:c}}finally{t&&!r.aborted&&(l=[...l])}if(r.aborted)return{type:"aborted"};let p=C(d,n,u),h=null;if(p){if(0===Object.keys(p[0].params).length)return{type:"success",matches:p};if(h=k(d,n,u,!0),!(h&&c.length<h.length&&Xe(c,h.slice(0,c.length))))return{type:"success",matches:p}}if(h||(h=k(d,n,u,!0)),!h||Xe(c,h))return{type:"success",matches:null};c=h}}function Xe(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}return m={get basename(){return u},get future(){return b},get state(){return M},get routes(){return l},get window(){return t},initialize:function(){if(w=e.history.listen(({action:t,location:n,delta:r})=>{if(N)return N(),void(N=void 0);d(0===ie.size||null!=r,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=je({currentLocation:M.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise(e=>{N=e});return e.history.go(-1*r),Fe(o,{state:"blocked",location:n,proceed(){Fe(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(M.blockers);e.set(o,be),le({blockers:e})}}),B?.resolve(),void(B=null)}return ce(t,n)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(Se);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,z);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Se,JSON.stringify(n))}catch(e){d(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,z);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return M.initialized||ce("POP",M.location,{initialHydration:!0}),m},subscribe:function(e){return S.add(e),()=>S.delete(e)},enableScrollRestoration:function(e,t,n){if(x=e,P=t,_=n||null,!A&&M.navigation===ye){A=!0;let e=Ve(M.location,M.matches);null!=e&&le({restoreScrollPosition:e})}return()=>{x=null,P=null,_=null}},navigate:async function t(n,r){if(B?.resolve(),B=null,"number"==typeof n){B||(B=Et());let t=B.promise;return e.history.go(n),t}let o=Ce(M.location,M.matches,u,n,r?.fromRouteId,r?.relative),{path:i,submission:a,error:s}=ke(!1,o,r),l=M.location,c=p(M.location,i,r&&r.state);c={...c,...e.history.encodeLocation(c)};let d=r&&null!=r.replace?r.replace:void 0,f="PUSH";!0===d?f="REPLACE":!1===d||null!=a&&mt(a.formMethod)&&a.formAction===M.location.pathname+M.location.search&&(f="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=je({currentLocation:l,nextLocation:c,historyAction:f});g?Fe(g,{state:"blocked",location:c,proceed(){Fe(g,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(n,r)},reset(){let e=new Map(M.blockers);e.set(g,be),le({blockers:e})}}):await ce(f,c,{submission:a,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})},fetch:async function(t,n,o,d){De(t);let f=!0===(d&&d.flushSync),p=a||l,h=Ce(M.location,M.matches,u,o,n,d?.relative),m=C(p,h,u),g=Ke(m,p,h);if(g.active&&g.matches&&(m=g.matches),!m)return void xe(t,n,rt(404,{pathname:h}),{flushSync:f});let{path:y,submission:b,error:w}=ke(!0,h,d);if(w)return void xe(t,n,w,{flushSync:f});let S=e.getContext?await e.getContext():new v,E=!0===(d&&d.preventScrollReset);b&&mt(b.formMethod)?await async function(t,n,o,d,f,p,h,m,g){me(),J.delete(t);let y=M.fetchers.get(t);Ee(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(g,y),{flushSync:h});let v=new AbortController,b=Qe(e.history,o,v.signal,g);if(p){let e=await Ye(d,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void xe(t,n,e.error,{flushSync:h});if(!e.matches)return void xe(t,n,rt(404,{pathname:o}),{flushSync:h});d=e.matches}let w=yt(d,o);if(!w.route.action&&!w.route.lazy){let e=rt(405,{method:g.formMethod,pathname:o,routeId:n});return void xe(t,n,e,{flushSync:h})}q.set(t,v);let S=Q,E=He(i,s,b,d,w,r,f),x=await pe(b,E,f,t),k=x[w.route.id];if(!k)for(let e of E)if(x[e.route.id]){k=x[e.route.id];break}if(b.signal.aborted)return void(q.get(t)===v&&q.delete(t));if(te.has(t)){if(dt(k)||ct(k))return void Ee(t,St(void 0))}else{if(dt(k))return q.delete(t),K>S?void Ee(t,St(void 0)):(X.add(t),Ee(t,wt(g)),fe(b,k,!1,{fetcherSubmission:g,preventScrollReset:m}));if(ct(k))return void xe(t,n,k.error)}let O=M.navigation.location||M.location,_=Qe(e.history,O,v.signal),P=a||l,A="idle"!==M.navigation.state?C(P,M.navigation.location,u):M.matches;c(A,"Didn't find any matches after fetcher action");let R=++Q;Y.set(t,R);let I=wt(g,k.data);M.fetchers.set(t,I);let{dsMatches:D,revalidatingFetchers:N}=Oe(_,f,i,s,e.history,M,A,g,O,r,!1,$,G,te,J,X,P,u,null!=e.patchRoutesOnNavigation,[w.route.id,k]);N.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=M.fetchers.get(t),r=wt(void 0,n?n.data:void 0);M.fetchers.set(t,r),De(t),e.controller&&q.set(t,e.controller)}),le({fetchers:new Map(M.fetchers)});let B=()=>N.forEach(e=>De(e.key));v.signal.addEventListener("abort",B);let{loaderResults:F,fetcherResults:j}=await he(D,N,_,f);if(v.signal.aborted)return;if(v.signal.removeEventListener("abort",B),Y.delete(t),q.delete(t),N.forEach(e=>q.delete(e.key)),M.fetchers.has(t)){let e=St(k.data);M.fetchers.set(t,e)}let z=ot(F);if(z)return fe(_,z.result,!1,{preventScrollReset:m});if(z=ot(j),z)return X.add(z.key),fe(_,z.result,!1,{preventScrollReset:m});let{loaderData:U,errors:H}=Je(M,A,F,void 0,N,j);Me(R),"loading"===M.navigation.state&&R>K?(c(L,"Expected pending action"),T&&T.abort(),ue(M.navigation.location,{matches:A,loaderData:U,errors:H,fetchers:new Map(M.fetchers)})):(le({errors:H,loaderData:Ze(M.loaderData,U,A,H),fetchers:new Map(M.fetchers)}),$=!1)}(t,n,y,m,S,g.active,f,E,b):(J.set(t,{routeId:n,path:y}),await async function(t,n,o,a,l,u,c,d,f){let p=M.fetchers.get(t);Ee(t,wt(f,p?p.data:void 0),{flushSync:c});let h=new AbortController,m=Qe(e.history,o,h.signal);if(u){let e=await Ye(a,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void xe(t,n,e.error,{flushSync:c});if(!e.matches)return void xe(t,n,rt(404,{pathname:o}),{flushSync:c});a=e.matches}let g=yt(a,o);q.set(t,h);let y=Q,v=He(i,s,m,a,g,r,l),b=await pe(m,v,l,t),w=b[g.route.id];q.get(t)===h&&q.delete(t);if(m.signal.aborted)return;if(te.has(t))return void Ee(t,St(void 0));if(dt(w))return K>y?void Ee(t,St(void 0)):(X.add(t),void await fe(m,w,!1,{preventScrollReset:d}));if(ct(w))return void xe(t,n,w.error);Ee(t,St(w.data))}(t,n,y,m,S,g.active,f,E,b))},revalidate:function(){ae||(ae=Et()),me(),le({revalidation:"loading"});let e=ae.promise;return"submitting"===M.navigation.state?e:"idle"===M.navigation.state?(ce(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(ce(L||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===j}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ae,resetFetcher:function(e,t){De(e,t?.reason),Ee(e,St(null))},deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),te.add(e)):Z.set(e,t),le({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),H&&H(),S.clear(),T&&T.abort(),M.fetchers.forEach((e,t)=>Ie(t)),M.blockers.forEach((e,t)=>Be(t))},getBlocker:function(e,t){let n=M.blockers.get(e)||be;return ie.get(e)!==t&&ie.set(e,t),n},deleteBlocker:Be,patchRoutes:function(e,t,n=!1){let r=null==a;Re(e,t,a||l,s,i,n),r&&(l=[...l],le({}))},_internalFetchControllers:q,_internalSetRoutes:function(e){s={},a=E(e,i,void 0,s)},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){le(e)}},e.unstable_instrumentations&&(m=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[ne]??e.navigate,r=oe(n.navigate,t,(...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?h(n):".",...se(e,r??{})}});r&&(r[ne]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[ne]??e.fetch,r=oe(n.fetch,t,(...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...se(e,o??{})}});r&&(r[ne]=t,e.fetch=r)}return e}(m,e.unstable_instrumentations.map(e=>e.router).filter(Boolean))),m}function Ce(e,t,n,r,o,i){let a,s;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){s=e;break}}else a=t,s=t[t.length-1];let l=Q(r||".",q(a),U(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(l.search=e.search,l.hash=e.hash),(null==r||""===r||"."===r)&&s){let e=gt(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();l.search=n?`?${n}`:""}}return"/"!==n&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:K([e,t])}({basename:n,pathname:l.pathname})),h(l)}function ke(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!ht(n.formMethod))return{path:t,error:rt(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:rt(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=it(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!mt(a))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!mt(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(c("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Ke(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Ke(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Ye(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Ye(r)}catch(e){return i()}let l={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(mt(l.formMethod))return{path:t,submission:l};let u=m(t);return e&&u.search&&gt(u.search)&&r.append("index",""),u.search=`?${r}`,{path:h(u),submission:l}}function Oe(e,t,n,r,o,i,a,s,l,u,c,d,f,p,h,m,g,y,v,b){let w,S=b?ct(b[1])?b[1].error:b[1].data:void 0,E=o.createURL(i.location),x=o.createURL(l);if(c&&i.errors){let e=Object.keys(i.errors)[0];w=a.findIndex(t=>t.route.id===e)}else if(b&&ct(b[1])){let e=b[0];w=a.findIndex(t=>t.route.id===e)-1}let k=b?b[1].statusCode:void 0,O=k&&k>=400,_={currentUrl:E,currentParams:i.matches[0]?.params||{},nextUrl:x,nextParams:a[0].params,...s,actionResult:S,actionStatus:k},P=te(a),A=a.map((o,a)=>{let{route:s}=o,l=null;if(null!=w&&a>w?l=!1:s.lazy?l=!0:_e(s)?c?l=Pe(s,i.loaderData,i.errors):function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}(i.loaderData,i.matches[a],o)&&(l=!0):l=!1,null!==l)return Ue(n,r,e,P,o,u,t,l);let f=!O&&(d||E.pathname+E.search===x.pathname+x.search||E.search!==x.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(i.matches[a],o)),p={..._,defaultShouldRevalidate:f},h=Ae(o,p);return Ue(n,r,e,P,o,u,t,h,p)}),R=[];return h.forEach((e,s)=>{if(c||!a.some(t=>t.route.id===e.routeId)||p.has(s))return;let l=i.fetchers.get(s),h=l&&"idle"!==l.state&&void 0===l.data,b=C(g,e.path,y);if(!b){if(v&&h)return;return void R.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(s))return;let w=yt(b,e.path),S=new AbortController,E=Qe(o,e.path,S.signal),x=null;if(f.has(s))f.delete(s),x=He(n,r,E,b,w,u,t);else if(h)d&&(x=He(n,r,E,b,w,u,t));else{let e={..._,defaultShouldRevalidate:!O&&d};Ae(w,e)&&(x=He(n,r,E,b,w,u,t,e))}x&&R.push({key:s,routeId:e.routeId,path:e.path,matches:x,match:w,request:E,controller:S})}),{dsMatches:A,revalidatingFetchers:R}}function _e(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function Pe(e,t,n){if(e.lazy)return!0;if(!_e(e))return!1;let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];return!(!r&&o)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!o)}function Ae(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function Re(e,t,n,r,o,i){let a;if(e){let t=r[e];c(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n;let s=[],l=[];if(t.forEach(e=>{let t=a.find(t=>Ie(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=E(s,o,[e||"_","patch",String(a?.length||"0")],r);a.push(...t)}if(i&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:n}=l[e],r=t,[i]=E([n],o,[],{},!0);Object.assign(r,{element:i.element?i.element:r.element,errorElement:i.errorElement?i.errorElement:r.errorElement,hydrateFallbackElement:i.hydrateFallbackElement?i.hydrateFallbackElement:r.hydrateFallbackElement})}}function Ie(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,n)=>t.children?.some(t=>Ie(e,t))))}var De=new WeakMap,Te=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(c(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=De.get(o);a||(a={},De.set(o,a));let s=a[e];if(s)return s;let l=(async()=>{let t=function(e){return b.has(e)}(e),n=void 0!==o[e]&&"hasErrorBoundary"!==e;if(t)d(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(n)d(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await i();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every(e=>void 0===e)&&(o.lazy=void 0))})();return a[e]=l,l},Ne=new WeakMap;async function Me(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Le(e){return e.matches.some(e=>e.route.middleware)?Be(e,()=>Me(e)):Me(e)}function Be(e,t){return Fe(e,t,e=>e,st,function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),i=tt(r,r[o].route.id).route.id;return Promise.resolve({[i]:{type:"error",result:t}})}})}async function Fe(e,t,n,r,o){let{matches:i,request:a,params:s,context:l,unstable_pattern:u}=e,c=i.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await je({request:a,params:s,context:l,unstable_pattern:u},c,t,n,r,o)}async function je(e,t,n,r,o,i,a=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??new Error(`Request aborted: ${s.method} ${s.url}`);let l=t[a];if(!l){return await n()}let u,[c,d]=l,f=async()=>{if(u)throw new Error("You may only call `next()` once per middleware");try{let s=await je(e,t,n,r,o,i,a+1);return u={value:s},u.value}catch(e){return u={value:await i(e,c,u)},u.value}};try{let t=await d(e,f),n=null!=t?r(t):void 0;return o(n)?n:u?n??u.value:(u={value:await f()},u.value)}catch(e){return await i(e,c,u)}}function ze(e,t,n,r,o){let i=Te({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=function(e,t,n,r,o){let i=n[e.id];if(c(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=Ne.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{c("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let o=S(e),a=void 0!==i[e]&&"hasErrorBoundary"!==e;o?d(!o,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):a?d(!a,`Route "${i.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(i,n),Object.assign(i,{...r(i),lazy:void 0})})();return Ne.set(i,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let a,s=Object.keys(e.lazy),l=[];for(let i of s){if(o&&o.includes(i))continue;let s=Te({key:i,route:e,manifest:n,mapRouteProperties:r});s&&(l.push(s),i===t&&(a=s))}let u=l.length>0?Promise.all(l).then(()=>{}):void 0;return u?.catch(()=>{}),a?.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:a}}(r.route,mt(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function Ue(e,t,n,r,o,i,a,s,l=null){let u=!1,c=ze(e,t,n,o,i);return{...o,_lazyPromises:c,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(u=!0,l?Ae(o,"boolean"==typeof e?{...l,defaultShouldRevalidate:e}:l):s),resolve(e){let{lazy:t,loader:i,middleware:l}=o.route,d=u||s||e&&!mt(n.method)&&(t||i),f=l&&l.length>0&&!i&&!t;return!d||!mt(n.method)&&f?Promise.resolve({type:"data",result:void 0}):async function({request:e,unstable_pattern:t,match:n,lazyHandlerPromise:r,lazyRoutePromise:o,handlerOverride:i,scopedContext:a}){let s,l,u=mt(e.method),c=u?"action":"loader",d=r=>{let o,s=new Promise((e,t)=>o=t);l=()=>o(),e.signal.addEventListener("abort",l);let u=o=>"function"!=typeof r?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${n.route.id}]`)):r({request:e,unstable_pattern:t,params:n.params,context:a},...void 0!==o?[o]:[]),d=(async()=>{try{return{type:"data",result:await(i?i(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,s])};try{let t=u?n.route.action:n.route.loader;if(r||o)if(t){let e,[n]=await Promise.all([d(t).catch(t=>{e=t}),r,o]);if(void 0!==e)throw e;s=n}else{await r;let t=u?n.route.action:n.route.loader;if(!t){if("action"===c){let t=new URL(e.url),r=t.pathname+t.search;throw rt(405,{method:e.method,pathname:r,routeId:n.route.id})}return{type:"data",result:void 0}}[s]=await Promise.all([d(t),o])}else{if(!t){let t=new URL(e.url);throw rt(404,{pathname:t.pathname+t.search})}s=await d(t)}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}({request:n,unstable_pattern:r,match:o,lazyHandlerPromise:c?.handler,lazyRoutePromise:c?.route,handlerOverride:e,scopedContext:a})}}}function He(e,t,n,r,o,i,a,s=null){return r.map(l=>l.route.id!==o.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:ze(e,t,n,l,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Ue(e,t,n,te(r),l,i,a,!0,s))}async function We(e,t,n,r,o,i){n.some(e=>e._lazyPromises?.middleware)&&await Promise.all(n.map(e=>e._lazyPromises?.middleware));let a={request:t,unstable_pattern:te(n),params:n[0].params,context:o,matches:n},s=i?()=>{throw new Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=a;return Be(t,()=>e({...t,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...a,fetcherKey:r,runClientMiddleware:s});try{await Promise.all(n.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return l}async function Ve(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function $e(e){let{result:t,type:n}=e;if(pt(t)){let e;try{e=await Ve(t)}catch(e){return{type:"error",error:e}}return"error"===n?{type:"error",error:new Z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}return"error"===n?ft(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:at(t),statusCode:ee(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:ee(t)?t.status:void 0}:ft(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ge(e,t,n,r,o){let i=e.headers.get("Location");if(c(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!W(i)){let a=r.slice(0,r.findIndex(e=>e.route.id===n)+1);i=Ce(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function qe(e,t,n){if(W(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=U(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Qe(e,t,n,r){let o=e.createURL(it(t)).toString(),i={signal:n};if(r&&mt(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Ke(r.formData):i.body=r.formData}return new Request(o,i)}function Ke(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Ye(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Xe(e,t,n,r=!1,o=!1){let i,a={},s=null,l=!1,u={},d=n&&ct(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(c(!dt(p),"Cannot handle redirect results in processLoaderData"),ct(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),s=s||{},o)s[f]=t;else{let n=tt(e,f);null==s[n.route.id]&&(s[n.route.id]=t)}r||(a[f]=Ee),l||(l=!0,i=ee(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else a[f]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(i=p.statusCode),p.headers&&(u[f]=p.headers)}),void 0!==d&&n&&(s={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:i||200,loaderHeaders:u}}function Je(e,t,n,r,o,i){let{loaderData:a,errors:s}=Xe(t,n,r);return o.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let a=i[n];if(c(a,"Did not find corresponding fetcher result"),ct(a)){let t=tt(e.matches,r?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:a.error}),e.fetchers.delete(n)}else if(dt(a))c(!1,"Unhandled fetcher revalidation redirect");else{let t=St(a.data);e.fetchers.set(n,t)}}),{loaderData:a,errors:s}}function Ze(e,t,n,r){let o=Object.entries(t).filter(([,e])=>e!==Ee).reduce((e,[t,n])=>(e[t]=n,e),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function et(e){return e?ct(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function tt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function nt(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function rt(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",s=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Z(e||500,a,new Error(s),!0)}function ot(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(dt(r))return{key:n,result:r}}}function it(e){return h({..."string"==typeof e?m(e):e,hash:""})}function at(e){return new Z(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function st(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&lt(t))}function lt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function ut(e){return pt(e.result)&&me.has(e.result.status)}function ct(e){return"error"===e.type}function dt(e){return"redirect"===(e&&e.type)}function ft(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function pt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ht(e){return he.has(e.toUpperCase())}function mt(e){return fe.has(e.toUpperCase())}function gt(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function yt(e,t){let n="string"==typeof t?m(t).search:t.search;if(e[e.length-1].route.index&&gt(n||""))return e[e.length-1];let r=G(e);return r[r.length-1]}function vt(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function bt(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function wt(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function St(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Et(){let e,t,n=new Promise((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}});return{promise:n,resolve:e,reject:t}}var xt=i.createContext(null);xt.displayName="DataRouter";var Ct=i.createContext(null);Ct.displayName="DataRouterState";var kt=i.createContext(!1);var Ot=i.createContext({isTransitioning:!1});Ot.displayName="ViewTransition";var _t=i.createContext(new Map);_t.displayName="Fetchers";var Pt=i.createContext(null);Pt.displayName="Await";var At=i.createContext(null);At.displayName="Navigation";var Rt=i.createContext(null);Rt.displayName="Location";var It=i.createContext({outlet:null,matches:[],isDataRoute:!1});It.displayName="Route";var Dt=i.createContext(null);Dt.displayName="RouteError";var Tt=!0;function Nt(){return null!=i.useContext(Rt)}function Mt(){return c(Nt(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(Rt).location}function Lt(e){c(Nt(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Mt();return i.useMemo(()=>F(e,z(t)),[t,e])}var Bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ft(e){i.useContext(At).static||i.useLayoutEffect(e)}function jt(){let{isDataRoute:e}=i.useContext(It);return e?function(){let{router:e}=Qt("useNavigate"),t=Yt("useNavigate"),n=i.useRef(!1);return Ft(()=>{n.current=!0}),i.useCallback(async(r,o={})=>{d(n.current,Bt),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}():function(){c(Nt(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(xt),{basename:t,navigator:n}=i.useContext(At),{matches:r}=i.useContext(It),{pathname:o}=Mt(),a=JSON.stringify(q(r)),s=i.useRef(!1);return Ft(()=>{s.current=!0}),i.useCallback((r,i={})=>{if(d(s.current,Bt),!s.current)return;if("number"==typeof r)return void n.go(r);let l=Q(r,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:K([t,l.pathname])),(i.replace?n.replace:n.push)(l,i.state,i)},[t,n,a,o,e])}()}i.createContext(null);function zt(e,{relative:t}={}){let{matches:n}=i.useContext(It),{pathname:r}=Mt(),o=JSON.stringify(q(n));return i.useMemo(()=>Q(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function Ut(e,t,n,r,o){c(Nt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(At),{matches:s}=i.useContext(It),l=s[s.length-1],u=l?l.params:{},f=l?l.pathname:"/",p=l?l.pathnameBase:"/",h=l&&l.route;if(Tt){let e=h&&h.path||"";Zt(f,!h||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let g,y=Mt();if(t){let e="string"==typeof t?m(t):t;c("/"===p||e.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`),g=e}else g=y;let v=g.pathname||"/",b=v;if("/"!==p){let e=p.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=C(e,{pathname:b});Tt&&(d(h||null!=w,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),d(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`));let S=Gt(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:K([p,a.encodeLocation?a.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:K([p,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,n,r,o);return t&&S?i.createElement(Rt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},S):S}function Ht(){let e=Xt(),t=ee(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return Tt&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:a},"ErrorBoundary")," or"," ",i.createElement("code",{style:a},"errorElement")," prop on your route."))),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,s)}var Wt=i.createElement(Ht,null),Vt=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return void 0!==this.state.error?i.createElement(It.Provider,{value:this.props.routeContext},i.createElement(Dt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $t({routeContext:e,match:t,children:n}){let r=i.useContext(xt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(It.Provider,{value:e},n)}function Gt(e,t=[],n=null,r=null,o=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,s=n?.errors;if(null!=s){let e=a.findIndex(e=>e.route.id&&void 0!==s?.[e.route.id]);c(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,u=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){l=!0,a=u>=0?a.slice(0,u+1):[a[0]];break}}}let d=n&&r?(e,t)=>{r(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:te(n.matches),errorInfo:t})}:void 0;return a.reduceRight((e,r,o)=>{let c,f=!1,p=null,h=null;n&&(c=s&&r.route.id?s[r.route.id]:void 0,p=r.route.errorElement||Wt,l&&(u<0&&0===o?(Zt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):u===o&&(f=!0,h=r.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,o+1)),g=()=>{let t;return t=c?p:f?h:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement($t,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(Vt,{location:n.location,revalidation:n.revalidation,component:p,error:c,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:d}):g()},null)}function qt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qt(e){let t=i.useContext(xt);return c(t,qt(e)),t}function Kt(e){let t=i.useContext(Ct);return c(t,qt(e)),t}function Yt(e){let t=function(e){let t=i.useContext(It);return c(t,qt(e)),t}(e),n=t.matches[t.matches.length-1];return c(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Xt(){let e=i.useContext(Dt),t=Kt("useRouteError"),n=Yt("useRouteError");return void 0!==e?e:t.errors?.[n]}var Jt={};function Zt(e,t,n){t||Jt[e]||(Jt[e]=!0,d(!1,n))}var en={};function tn(e,t){e||en[t]||(en[t]=!0,console.warn(t))}var nn=(r||(r=n.t(i,2))).useOptimistic,rn=()=>{};function on(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(Tt&&e.element&&d(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:i.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(Tt&&e.hydrateFallbackElement&&d(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(Tt&&e.errorElement&&d(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var an=["HydrateFallback","hydrateFallbackElement"];var sn=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function ln({router:e,flushSync:t,unstable_onError:n,unstable_useTransitions:r}){let[o,a]=i.useState(e.state),[s,l]=(u=o,nn?nn(u):[u,rn]);var u;let[c,d]=i.useState(),[f,p]=i.useState({isTransitioning:!1}),[h,m]=i.useState(),[g,y]=i.useState(),[v,b]=i.useState(),w=i.useRef(new Map),S=i.useCallback((o,{deletedFetchers:s,newErrors:u,flushSync:c,viewTransitionOpts:f})=>{u&&n&&Object.values(u).forEach(e=>n(e,{location:o.location,params:o.matches[0]?.params??{},unstable_pattern:te(o.matches)})),o.fetchers.forEach((e,t)=>{void 0!==e.data&&w.current.set(t,e.data)}),s.forEach(e=>w.current.delete(e)),tn(!1===c||null!=t,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let v=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(tn(null==f||v,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),f&&v){if(t&&c){t(()=>{g&&(h?.resolve(),g.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:f.currentLocation,nextLocation:f.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(o))});return n.finished.finally(()=>{t(()=>{m(void 0),y(void 0),d(void 0),p({isTransitioning:!1})})}),void t(()=>y(n))}g?(h?.resolve(),g.skipTransition(),b({state:o,currentLocation:f.currentLocation,nextLocation:f.nextLocation})):(d(o),p({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}))}else t&&c?t(()=>a(o)):!1===r?a(o):i.startTransition(()=>{!0===r&&l(e=>un(e,o)),a(o)})},[e.window,t,g,h,r,l,n]);i.useLayoutEffect(()=>e.subscribe(S),[e,S]),i.useEffect(()=>{f.isTransitioning&&!f.flushSync&&m(new sn)},[f]),i.useEffect(()=>{if(h&&c&&e.window){let t=c,n=h.promise,o=e.window.document.startViewTransition(async()=>{!1===r?a(t):i.startTransition(()=>{!0===r&&l(e=>un(e,t)),a(t)}),await n});o.finished.finally(()=>{m(void 0),y(void 0),d(void 0),p({isTransitioning:!1})}),y(o)}},[c,h,e.window,r,l]),i.useEffect(()=>{h&&c&&s.location.key===c.location.key&&h.resolve()},[h,g,s.location,c]),i.useEffect(()=>{!f.isTransitioning&&v&&(d(v.state),p({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),b(void 0))},[f.isTransitioning,v]);let E=i.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||"/",C=i.useMemo(()=>({router:e,navigator:E,static:!1,basename:x,unstable_onError:n}),[e,E,x,n]);return i.createElement(i.Fragment,null,i.createElement(xt.Provider,{value:C},i.createElement(Ct.Provider,{value:s},i.createElement(_t.Provider,{value:w.current},i.createElement(Ot.Provider,{value:f},i.createElement(pn,{basename:x,location:s.location,navigationType:s.historyAction,navigator:E,unstable_useTransitions:!0===r},i.createElement(cn,{routes:e.routes,future:e.future,state:s,unstable_onError:n})))))),null)}function un(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var cn=i.memo(function({routes:e,future:t,state:n,unstable_onError:r}){return Ut(e,void 0,n,r,t)});function dn({to:e,replace:t,state:n,relative:r}){c(Nt(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=i.useContext(At);d(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(It),{pathname:s}=Mt(),l=jt(),u=Q(e,q(a),s,"path"===r),f=JSON.stringify(u);return i.useEffect(()=>{l(JSON.parse(f),{replace:t,state:n,relative:r})},[l,f,r,t,n]),null}function fn(e){c(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function pn({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1,unstable_useTransitions:s}){c(!Nt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=i.useMemo(()=>({basename:l,navigator:o,static:a,unstable_useTransitions:s,future:{}}),[l,o,a,s]);"string"==typeof n&&(n=m(n));let{pathname:f="/",search:p="",hash:h="",state:g=null,key:y="default"}=n,v=i.useMemo(()=>{let e=U(f,l);return null==e?null:{location:{pathname:e,search:p,hash:h,state:g,key:y},navigationType:r}},[l,f,p,h,g,y,r]);return d(null!=v,`<Router basename="${l}"> is not able to match the URL "${f}${p}${h}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:i.createElement(At.Provider,{value:u},i.createElement(Rt.Provider,{children:t,value:v}))}function hn({children:e,location:t}){return Ut(mn(e),t)}i.Component;function mn(e,t=[]){let n=[];return i.Children.forEach(e,(e,r)=>{if(!i.isValidElement(e))return;let o=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,mn(e.props.children,o));c(e.type===fn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),c(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=mn(e.props.children,o)),n.push(a)}),n}var gn="get",yn="application/x-www-form-urlencoded";function vn(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var bn=null;var wn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sn(e){return null==e||wn.has(e)?e:(d(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yn}"`),null)}function En(e,t){let n,r,o,i,a;if(vn(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?U(a,t):null,n=e.getAttribute("method")||gn,o=Sn(e.getAttribute("enctype"))||yn,i=new FormData(e)}else if(function(e){return vn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return vn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?U(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||gn,o=Sn(e.getAttribute("formenctype"))||Sn(a.getAttribute("enctype"))||yn,i=new FormData(a,e),!function(){if(null===bn)try{new FormData(document.createElement("form"),0),bn=!1}catch(e){bn=!0}return bn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(vn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=gn,r=null,o=yn,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis;function xn(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Cn(e,t,n){let r="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===r.pathname?r.pathname=`_root.${n}`:t&&"/"===U(r.pathname,t)?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function kn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function On(e){return null!=e&&"string"==typeof e.page}function _n(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Pn(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function An(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1),[...new Set(r)];var r}function Rn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,o)=>{if(t&&!On(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e},[])}function In(e,t){return"lazy"===e.mode&&!0===t}function Dn(){let e=i.useContext(xt);return xn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Tn(){let e=i.useContext(Ct);return xn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Nn=i.createContext(void 0);function Mn(){let e=i.useContext(Nn);return xn(e,"You must render this element inside a <HydratedRouter> element"),e}function Ln(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Bn(e,t,n){if(n&&!Un)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}Nn.displayName="FrameworkContext";function Fn({page:e,...t}){let{router:n}=Dn(),r=i.useMemo(()=>C(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?i.createElement(zn,{page:e,matches:r,...t}):null}function jn(e){let{manifest:t,routeModules:n}=Mn(),[r,o]=i.useState([]);return i.useEffect(()=>{let r=!1;return async function(e,t,n){return Rn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await kn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(_n).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}function zn({page:e,matches:t,...n}){let r=Mt(),{manifest:o,routeModules:a}=Mn(),{basename:s}=Dn(),{loaderData:l,matches:u}=Tn(),c=i.useMemo(()=>Pn(e,t,u,o,r,"data"),[e,t,u,o,r]),d=i.useMemo(()=>Pn(e,t,u,o,r,"assets"),[e,t,u,o,r]),f=i.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,i=!1;if(t.forEach(e=>{let t=o.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in l&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?i=!0:n.add(e.route.id))}),0===n.size)return[];let u=Cn(e,s,"data");return i&&n.size>0&&u.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[s,l,r,o,c,t,e,a]),p=i.useMemo(()=>An(d,o),[d,o]),h=jn(d);return i.createElement(i.Fragment,null,f.map(e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),p.map(e=>i.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>i.createElement("link",{key:e,nonce:n.nonce,...t})))}var Un=!1;function Hn(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:a,ssr:s}=Mn(),{router:l,static:u,staticContext:c}=Dn(),{matches:d}=Tn(),f=i.useContext(kt),p=In(a,s);o&&(o.didRenderScripts=!0);let h=Bn(d,null,r);i.useEffect(()=>{Un=!0},[]);let m=i.useMemo(()=>{if(f)return null;let r=c?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];xn(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:u}=o,c=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...l?[{module:l,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===c.length?`import * as ${r} from ${JSON.stringify(u)};`:[c.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${r} = {${c.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),o=n.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach(e=>{let t=C(n.routes,e,n.basename);t&&t.forEach(e=>r.add(e.route.id))});let a=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:a,sri:!!e||void 0}}(t,l),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return i.createElement(i.Fragment,null,i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),g=Un||f?[]:(y=t.entry.imports.concat(An(h,t,{includeHydrateFallback:!0})),[...new Set(y)]);var y;let v="object"==typeof t.sri?t.sri:{};return tn(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Un||f?null:i.createElement(i.Fragment,null,"object"==typeof t.sri?i.createElement("script",{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,p?null:i.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],suppressHydrationWarning:!0}),g.map(t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],suppressHydrationWarning:!0})),m)}function Wn(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}i.Component;function Vn({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=i.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(ee(e))return i.createElement($n,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),Tt?r:null);if(e instanceof Error)n=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);n=new Error(t)}return i.createElement($n,{title:"Application Error!",isOutsideRemixApp:t},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function $n({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=Mn();return o.root?.Layout&&!n?r:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,e)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?i.createElement(Hn,null):null)))}var Gn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Gn&&(window.__reactRouterVersion="7.10.1")}catch(e){}function qn(e,t){return xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:u({window:t?.window}),hydrationData:t?.hydrationData||Qn(),routes:e,mapRouteProperties:on,hydrationRouteProperties:an,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function Qn(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Kn(e.errors)}),e}function Kn(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new Z(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}var Yn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xn=i.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f,viewTransition:p,...m},g){let y,{basename:v,unstable_useTransitions:b}=i.useContext(At),w="string"==typeof u&&Yn.test(u),S=!1;if("string"==typeof u&&w&&(y=u,Gn))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=U(t.pathname,v);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:S=!0}catch(e){d(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let E=function(e,{relative:t}={}){c(Nt(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=i.useContext(At),{hash:o,pathname:a,search:s}=zt(e,{relative:t}),l=a;return"/"!==n&&(l="/"===a?n:K([n,a])),r.createHref({pathname:l,search:s,hash:o})}(u,{relative:r}),[x,C,k]=function(e,t){let n=i.useContext(Nn),[r,o]=i.useState(!1),[a,s]=i.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,p=i.useRef(null);i.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),i.useEffect(()=>{if(r){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[r]);let h=()=>{o(!0)},m=()=>{o(!1),s(!1)};return n?"intent"!==e?[a,p,{}]:[a,p,{onFocus:Ln(l,h),onBlur:Ln(u,m),onMouseEnter:Ln(c,h),onMouseLeave:Ln(d,m),onTouchStart:Ln(f,h)}]:[!1,p,{}]}(n,m),O=function(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:a,viewTransition:s,unstable_useTransitions:l}={}){let u=jt(),c=Mt(),d=zt(e,{relative:a});return i.useCallback(f=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(f,t)){f.preventDefault();let t=void 0!==n?n:h(c)===h(d),p=()=>u(e,{replace:t,state:r,preventScrollReset:o,relative:a,viewTransition:s});l?i.startTransition(()=>p()):p()}},[c,u,d,n,r,t,e,o,a,s,l])}(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:r,viewTransition:p,unstable_useTransitions:b});let _=i.createElement("a",{...m,...k,href:y||E,onClick:S||o?e:function(t){e&&e(t),t.defaultPrevented||O(t)},ref:Wn(g,C),target:l,"data-discover":w||"render"!==t?void 0:"true"});return x&&!w?i.createElement(i.Fragment,null,_,i.createElement(Fn,{page:E})):_});Xn.displayName="Link";var Jn=i.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:a,viewTransition:s,children:l,...u},d){let f=zt(a,{relative:u.relative}),p=Mt(),h=i.useContext(Ct),{navigator:m,basename:g}=i.useContext(At),y=null!=h&&function(e,{relative:t}={}){let n=i.useContext(Ot);c(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=tr("useViewTransitionState"),o=zt(e,{relative:t});if(!n.isTransitioning)return!1;let a=U(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=U(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=F(o.pathname,s)||null!=F(o.pathname,a)}(f)&&!0===s,v=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=p.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&g&&(w=U(w,g)||w);const S="/"!==v&&v.endsWith("/")?v.length-1:v.length;let E,x=b===v||!r&&b.startsWith(v)&&"/"===b.charAt(S),C=null!=w&&(w===v||!r&&w.startsWith(v)&&"/"===w.charAt(v.length)),k={isActive:x,isPending:C,isTransitioning:y},O=x?e:void 0;E="function"==typeof n?n(k):[n,x?"active":null,C?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof o?o(k):o;return i.createElement(Xn,{...u,"aria-current":O,className:E,ref:d,style:_,to:a,viewTransition:s},"function"==typeof l?l(k):l)});Jn.displayName="NavLink";var Zn=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:a,method:s=gn,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:p,...m},g)=>{let{unstable_useTransitions:y}=i.useContext(At),v=or(),b=function(e,{relative:t}={}){let{basename:n}=i.useContext(At),r=i.useContext(It);c(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...zt(e||".",{relative:t})},s=Mt();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();a.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:K([n,a.pathname]));return h(a)}(l,{relative:d}),w="get"===s.toLowerCase()?"get":"post",S="string"==typeof l&&Yn.test(l);return i.createElement("form",{ref:g,method:w,action:b,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||s,c=()=>v(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:o,state:a,relative:d,preventScrollReset:f,viewTransition:p});y&&!1!==n?i.startTransition(()=>c()):c()},...m,"data-discover":S||"render"!==e?void 0:"true"})});function er(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tr(e){let t=i.useContext(xt);return c(t,er(e)),t}Zn.displayName="Form";var nr=0,rr=()=>`__${String(++nr)}__`;function or(){let{router:e}=tr("useSubmit"),{basename:t}=i.useContext(At),n=Yt("useRouteId"),r=e.fetch,o=e.navigate;return i.useCallback(async(e,i={})=>{let{action:a,method:s,encType:l,formData:u,body:c}=En(e,t);if(!1===i.navigate){let e=i.fetcherKey||rr();await r(e,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:u,body:c,formMethod:i.method||s,formEncType:i.encType||l,flushSync:i.flushSync})}else await o(i.action||a,{preventScrollReset:i.preventScrollReset,formData:u,body:c,formMethod:i.method||s,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,o,t,n])}},14644:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>u,Qd:()=>s,Tw:()=>p,Zz:()=>f,ve:()=>h,y$:()=>l,zH:()=>d});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function s(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,u=t,c=new Map,d=c,f=0,p=!1;function h(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function m(){if(p)throw new Error(r(3));return u}function g(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),c=null}}}function y(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,u=i(u,e)}finally{p=!1}return(c=d).forEach(e=>{e()}),e}y({type:a.INIT});return{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,y({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))})}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],u=n[l],c=e[l],d=u(c,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==c}return a=a||o.length!==Object.keys(e).length,a?s:e}}function c(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=c(o,t))}return n}function f(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function p(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map(e=>e(s));return a=f(...l)(i.dispatch),{...i,dispatch:a}}}function h(e){return s(e)&&"type"in e&&"string"==typeof e.type}},15287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var S=Array.isArray,E=Object.prototype.hasOwnProperty,x={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!C.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:x.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function A(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+P(l,0):i,S(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),A(a,t,o,"",function(e){return e})):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",S(e))for(var u=0;u<e.length;u++){var c=i+P(s=e[u],u);l+=A(s,t,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=A(s=s.value,t,o,c=i+P(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function R(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",function(e){return t.call(n,e,o++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},T={transition:null},N={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:T,ReactCurrentOwner:x};function M(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=M,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=x.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)E.call(t,u)&&!C.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},t.unstable_act=M,t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.3.1"},15452:(e,t,n)=>{"use strict";n.d(t,{fP:()=>qe,U1:()=>Oe,VP:()=>ve,zD:()=>Be,vy:()=>Pe});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var s=Object,l=s.getPrototypeOf,u="constructor",c="prototype",d="configurable",f="enumerable",p="writable",h="value",m=e=>!!e&&!!e[i];function g(e){return!!e&&(b(e)||k(e)||!!e[o]||!!e[u]?.[o]||O(e)||_(e))}var y=s[c][u].toString(),v=new WeakMap;function b(e){if(!e||!P(e))return!1;const t=l(e);if(null===t||t===s[c])return!0;const n=s.hasOwnProperty.call(t,u)&&t[u];if(n===Object)return!0;if(!A(n))return!1;let r=v.get(n);return void 0===r&&(r=Function.toString.call(n),v.set(n,r)),r===y}function w(e,t,n=!0){if(0===S(e)){(n?Reflect.ownKeys(e):s.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,r)=>t(r,n,e))}function S(e){const t=e[i];return t?t.type_:k(e)?1:O(e)?2:_(e)?3:0}var E=(e,t,n=S(e))=>2===n?e.has(t):s[c].hasOwnProperty.call(e,t),x=(e,t,n=S(e))=>2===n?e.get(t):e[t],C=(e,t,n,r=S(e))=>{2===r?e.set(t,n):3===r?e.add(n):e[t]=n};var k=Array.isArray,O=e=>e instanceof Map,_=e=>e instanceof Set,P=e=>"object"==typeof e,A=e=>"function"==typeof e,R=e=>"boolean"==typeof e,I=e=>e.copy_||e.base_,D=e=>e.modified_?e.copy_:e.base_;function T(e,t){if(O(e))return new Map(e);if(_(e))return new Set(e);if(k(e))return Array[c].slice.call(e);const n=b(e);if(!0===t||"class_only"===t&&!n){const t=s.getOwnPropertyDescriptors(e);delete t[i];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i[p]&&(i[p]=!0,i[d]=!0),(i.get||i.set)&&(t[o]={[d]:!0,[p]:!0,[f]:i[f],[h]:e[o]})}return s.create(l(e),t)}{const t=l(e);if(null!==t&&n)return{...e};const r=s.create(t);return s.assign(r,e)}}function N(e,t=!1){return L(e)||m(e)||!g(e)||(S(e)>1&&s.defineProperties(e,{set:M,add:M,clear:M,delete:M}),s.freeze(e),t&&w(e,(e,t)=>{N(t,!0)},!1)),e}var M={[h]:function(){a(2)}};function L(e){return null===e||!P(e)||s.isFrozen(e)}var B="MapSet",F="Patches",j={};function z(e){const t=j[e];return t||a(0),t}var U;var H=()=>U;function W(e,t){t&&(e.patchPlugin_=z(F),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function V(e){$(e),e.drafts_.forEach(q),e.drafts_=null}function $(e){e===U&&(U=e.parent_)}var G=e=>{return U={drafts_:[],parent_:U,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:(t=B,j[t]?z(B):void 0)};var t};function q(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Q(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[i].modified_&&(V(t),a(4)),g(e)&&(e=K(t,e));const{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[i].base_,e,t)}else e=K(t,n);return function(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&N(t,n)}(t,e,!0),V(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function K(e,t){if(L(t))return t;const n=t[i];if(!n){return te(t,e.handledSet_,e)}if(!X(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:t}=n;if(t)for(;t.length>0;){t.pop()(e)}ee(n,e)}return n.copy_}function Y(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var X=(e,t)=>e.scope_===t,J=[];function Z(e,t,n,r){const o=I(e),i=e.type_;if(void 0!==r){if(x(o,r,i)===t)return void C(o,r,n,i)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;w(o,(e,n)=>{if(m(n)){const r=t.get(n)||[];r.push(e),t.set(n,r)}})}const a=e.draftLocations_.get(t)??J;for(const e of a)C(o,e,n,i)}function ee(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Y(e)}}function te(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||m(e)||t.has(e)||!g(e)||L(e)||(t.add(e),w(e,(r,o)=>{if(m(o)){const t=o[i];if(X(t,n)){const n=D(t);C(e,r,n,e.type_),Y(t)}}else g(o)&&te(o,t,n)})),e}var ne={get(e,t){if(t===i)return e;const n=I(e);if(!E(n,t,e.type_))return function(e,t,n){const r=ie(t,n);return r?h in r?r[h]:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];if(e.finalized_||!g(r))return r;if(r===oe(e.base_,t)){se(e);const n=1===e.type_?+t:t,o=le(e.scope_,r,e,n);return e.copy_[n]=o}return r},has:(e,t)=>t in I(e),ownKeys:e=>Reflect.ownKeys(I(e)),set(e,t,n){const r=ie(I(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=oe(I(e),t),s=r?.[i];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(((o=n)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)&&(void 0!==n||E(e.base_,t,e.type_)))return!0;se(e),ae(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),function(e,t,n){const{scope_:r}=e;if(m(n)){const o=n[i];X(o,r)&&o.callbacks_.push(function(){se(e);const r=D(o);Z(e,n,r,t)})}else g(n)&&e.callbacks_.push(function(){const o=I(e);x(o,t,e.type_)===n&&r.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&te(x(e.copy_,t,e.type_),r.handledSet_,r)})}(e,t,n)),!0},deleteProperty:(e,t)=>(se(e),void 0!==oe(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),ae(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=I(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{[p]:!0,[d]:1!==e.type_||"length"!==t,[f]:r[f],[h]:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){a(12)}},re={};function oe(e,t){const n=e[i];return(n?I(n):e)[t]}function ie(e,t){if(!(t in e))return;let n=l(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=l(n)}}function ae(e){e.modified_||(e.modified_=!0,e.parent_&&ae(e.parent_))}function se(e){e.copy_||(e.assigned_=new Map,e.copy_=T(e.base_,e.scope_.immer_.useStrictShallowCopy_))}w(ne,(e,t)=>{re[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}),re.deleteProperty=function(e,t){return re.set.call(this,e,t,void 0)},re.set=function(e,t,n){return ne.set.call(this,e[0],t,n,e[0])};function le(e,t,n,r){const[o,i]=O(t)?z(B).proxyMap_(t,n):_(t)?z(B).proxySet_(t,n):function(e,t){const n=k(e),r={type_:n?1:0,scope_:t?t.scope_:H(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,i=ne;n&&(o=[r],i=re);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,[s,r]}(t,n);return(n?.scope_??H()).drafts_.push(o),i.callbacks_=n?.callbacks_??[],i.key_=r,n&&void 0!==r?function(e,t,n){e.callbacks_.push(function(r){const o=t;if(!o||!X(o,r))return;r.mapSetPlugin_?.fixSetContents(o);const i=D(o);Z(e,o.draft_??o,i,n),ee(o,r)})}(n,i,r):i.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:t}=e;i.modified_&&t&&t.generatePatches_(i,[],e)}),o}function ue(e){if(!g(e)||L(e))return e;const t=e[i];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=T(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=T(e,!0);return w(n,(e,t)=>{C(n,e,ue(t))},r),t&&(t.finalized_=!1),n}var ce=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(A(e)&&!A(t)){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let o;if(A(t)||a(6),void 0===n||A(n)||a(7),g(e)){const r=G(this),i=le(r,e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?V(r):$(r)}return W(r,n),Q(o,r)}if(!e||!P(e)){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&N(o,!0),n){const t=[],r=[];z(F).generateReplacementPatches_(e,o,{patches_:t,inversePatches_:r}),n(t,r)}return o}a(1)},this.produceWithPatches=(e,t)=>{if(A(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},R(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),R(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),R(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){g(e)||a(8),m(e)&&(e=function(e){m(e)||a(10);return ue(e)}(e));const t=G(this),n=le(t,e,void 0);return n[i].isManual_=!0,$(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return W(r,t),Q(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=z(F).applyPatches_;return m(e)?r(e,t):this.produce(e,e=>r(e,t))}},de=ce.produce,fe=n(14644);function pe(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var he=pe(),me=pe,ge="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?fe.Zz:fe.Zz.apply(null,arguments)},ye=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"==typeof e.match);function ve(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(Qe(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,fe.ve)(t)&&t.type===e,n}var be=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function we(e){return g(e)?de(e,()=>{}):e}function Se(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var Ee=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new be;return t&&("boolean"==typeof t?i.push(he):i.push(me(t.extraArgument))),i},xe="RTK_autoBatch",Ce=e=>t=>{setTimeout(t,e)},ke=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new be(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Ce(10):"callback"===e.type?e.queueNotification:Ce(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.[xe],i=!o,i&&(a||(a=!0,l(u))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function Oe(e){const t=Ee(),{reducer:n,middleware:r,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a,enhancers:s}=e||{};let l,u;if("function"==typeof n)l=n;else{if(!(0,fe.Qd)(n))throw new Error(Qe(1));l=(0,fe.HY)(n)}u="function"==typeof r?r(t):t();let c=fe.Zz;o&&(c=ge({trace:!1,..."object"==typeof o&&o}));const d=(0,fe.Tw)(...u),f=ke(d);const p=c(..."function"==typeof s?s(f):f());return(0,fe.y$)(l,a,p)}function _e(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Qe(28));if(r in t)throw new Error(Qe(29));return t[r]=n,o},addAsyncThunk:(e,r)=>(r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),o),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}function Pe(e,t){let n,[r,o,i]=_e(t);if("function"==typeof e)n=()=>we(e());else{const t=we(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,n)=>{if(n){if(m(e)){const r=n(e,t);return void 0===r?e:r}if(g(e))return de(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return a.getInitialState=n,a}var Ae=(e,t)=>ye(e)?e.match(t):e(t);function Re(...e){return t=>e.some(e=>Ae(e,t))}var Ie=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},De=["name","message","stack","code"],Te=class{constructor(e,t){this.payload=e,this.meta=t}_type},Ne=class{constructor(e,t){this.payload=e,this.meta=t}_type},Me=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of De)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},Le="External signal was aborted",Be=(()=>{function e(e,t,n){const r=ve(e+"/fulfilled",(e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}})),o=ve(e+"/pending",(e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}})),i=ve(e+"/rejected",(e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||Me)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e,{signal:a}={}){return(s,l,u)=>{const c=n?.idGenerator?n.idGenerator(e):Ie(),d=new AbortController;let f,p;function h(e){p=e,d.abort()}a&&(a.aborted?h(Le):a.addEventListener("abort",()=>h(Le),{once:!0}));const m=async function(){let a;try{let i=n?.condition?.(e,{getState:l,extra:u});if(null!==(m=i)&&"object"==typeof m&&"function"==typeof m.then&&(i=await i),!1===i||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise((e,t)=>{f=()=>{t({name:"AbortError",message:p||"Aborted"})},d.signal.addEventListener("abort",f)});s(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:l,extra:u}))),a=await Promise.race([g,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:c,signal:d.signal,abort:h,rejectWithValue:(e,t)=>new Te(e,t),fulfillWithValue:(e,t)=>new Ne(e,t)})).then(t=>{if(t instanceof Te)throw t;return t instanceof Ne?r(t.payload,c,e,t.meta):r(t,c,e)})])}catch(t){a=t instanceof Te?i(null,c,e,t.payload,t.meta):i(t,c,e)}finally{f&&d.signal.removeEventListener("abort",f)}var m;return n&&!n.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a}();return Object.assign(m,{abort:h,requestId:c,arg:e,unwrap:()=>m.then(Fe)})}},{pending:o,rejected:i,fulfilled:r,settled:Re(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function Fe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var{assign:je}=Object,ze=e=>e.flatMap(e=>{return"reducerPath"in(t=e)&&"string"==typeof t.reducerPath?[[e.reducerPath,e.reducer]]:Object.entries(e);var t}),Ue=Symbol.for("rtk-state-proxy-original"),He=new WeakMap,We=(e,t,n)=>Se(He,e,()=>new Proxy(e,{get:(e,r,o)=>{if(r===Ue)return e;const i=Reflect.get(e,r,o);if(void 0===i){const e=n[r];if(void 0!==e)return e;const o=t[r];if(o){const e=o(void 0,{type:Ie()});if(void 0===e)throw new Error(Qe(24));return n[r]=e,e}}return i}})),Ve=e=>{if(!(t=e)||!t[Ue])throw new Error(Qe(25));var t;return e[Ue]},$e={},Ge=(e=$e)=>e;function qe(...e){const t=Object.fromEntries(ze(e)),n=()=>Object.keys(t).length?(0,fe.HY)(t):Ge;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const i={},a=Object.assign(function(e,n){return function(r,...o){return e(We(n?n(r,...o):r,t,i),...o)}},{original:Ve});return Object.assign(o,{inject:(e,a={})=>{const{reducerPath:s,reducer:l}=e,u=t[s];return!a.overrideExisting&&u&&u!==l||(a.overrideExisting&&u!==l&&delete i[s],t[s]=l,r=n()),o},selector:a})}function Qe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},20181:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function w(){var e=h();if(b(e))return S(e);s=setTimeout(w,function(e){var n=t-(e-l);return d?p(n,i-(e-u)):n}(e))}function S(e){return s=void 0,y&&r?v(e):(r=o=void 0,a)}function E(){var e=h(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(w,t),c?v(e):a}(l);if(d)return s=setTimeout(w,t),v(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=g(t)||0,m(n)&&(c=!!n.leading,i=(d="maxWait"in n)?f(g(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},E.flush=function(){return void 0===s?a:S(h())},E}},21020:(e,t,n)=>{"use strict";var r=n(96540),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.jsx=u},22172:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556),n(34743)],void 0===(i="function"==typeof(r=function(e){var t=e.ExifMap.prototype;t.tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",34665:{36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",36880:"OffsetTime",36881:"OffsetTimeOriginal",36882:"OffsetTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber"},34853:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},40965:{1:"InteroperabilityIndex"}},t.tags.ifd1=t.tags,t.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"Original",2:"Horizontal flip",3:"Rotate 180° CCW",4:"Vertical flip",5:"Vertical flip + Rotate 90° CW",6:"Rotate 90° CW",7:"Horizontal flip + Rotate 90° CW",8:"Rotate 90° CCW"}},t.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":if(!t)return;return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":if(!t)return;return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":if(!t)return;return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},t.getAll=function(){var e,t,n,r={};for(e in this)Object.prototype.hasOwnProperty.call(this,e)&&((t=this[e])&&t.getAll?r[this.ifds[e].name]=t.getAll():(n=this.tags[e])&&(r[n]=this.getText(n)));return r},t.getName=function(e){var t=this.tags[e];return"object"==typeof t?this.ifds[e].name:t},function(){var e,n,r,o=t.tags;for(e in o)if(Object.prototype.hasOwnProperty.call(o,e))if(n=t.ifds[e])for(e in r=o[e])Object.prototype.hasOwnProperty.call(r,e)&&(n.map[r[e]]=Number(e));else t.map[o[e]]=Number(e)}()})?r.apply(t,o):r)||(e.exports=i)}()},22551:(e,t,n)=>{"use strict";var r=n(96540),o=n(69982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y,v);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.element"),E=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),_=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var L,B=Object.assign;function F(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var j=!1;function z(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case E:return"Portal";case k:return"Profiler";case C:return"StrictMode";case A:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function ie(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ge=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var be=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,xe=null;function Ce(e){if(e=go(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=vo(t),Se(e.stateNode,e.type,t))}}function ke(e){Ee?xe?xe.push(e):xe=[e]:Ee=e}function Oe(){if(Ee){var e=Ee,t=xe;if(xe=Ee=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function _e(e,t){return e(t)}function Pe(){}var Ae=!1;function Re(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return _e(e,t,n)}finally{Ae=!1,(null!==Ee||null!==xe)&&(Pe(),Oe())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=vo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var De=!1;if(c)try{var Te={};Object.defineProperty(Te,"passive",{get:function(){De=!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch(e){De=!1}function Ne(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,Be=!1,Fe=null,je={onError:function(e){Me=!0,Le=e}};function ze(e,t,n,r,o,i,a,s,l){Me=!1,Le=null,Ne.apply(je,arguments)}function Ue(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Ue(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,Ze=o.unstable_UserBlockingPriority,et=o.unstable_NormalPriority,tt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,rt=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/st|0)|0},at=Math.log,st=Math.LN2;var lt=64,ut=4194304;function ct(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ct(s):0!==(i&=a)&&(r=ct(i))}else 0!==(a=n&~o)?r=ct(a):0!==i&&(r=ct(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=lt;return!(4194240&(lt<<=1))&&(lt=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function bt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,Et,xt,Ct,kt=!1,Ot=[],_t=null,Pt=null,At=null,Rt=new Map,It=new Map,Dt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=go(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=mo(e.target);if(null!==t){var n=Ue(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=He(n)))return e.blockedOn=t,void Ct(e.priority,function(){Et(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=go(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Ft(e,t,n){Bt(e)&&n.delete(t)}function jt(){kt=!1,null!==_t&&Bt(_t)&&(_t=null),null!==Pt&&Bt(Pt)&&(Pt=null),null!==At&&Bt(At)&&(At=null),Rt.forEach(Ft),It.forEach(Ft)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,jt)))}function Ut(e){function t(t){return zt(t,e)}if(0<Ot.length){zt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&zt(_t,e),null!==Pt&&zt(Pt,e),null!==At&&zt(At,e),Rt.forEach(t),It.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var Ht=w.ReactCurrentBatchConfig,Wt=!0;function Vt(e,t,n,r){var o=vt,i=Ht.transition;Ht.transition=null;try{vt=1,Gt(e,t,n,r)}finally{vt=o,Ht.transition=i}}function $t(e,t,n,r){var o=vt,i=Ht.transition;Ht.transition=null;try{vt=4,Gt(e,t,n,r)}finally{vt=o,Ht.transition=i}}function Gt(e,t,n,r){if(Wt){var o=Qt(e,t,n,r);if(null===o)zr(e,t,r,qt,n),Nt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return _t=Mt(_t,e,t,n,r,o),!0;case"dragenter":return Pt=Mt(Pt,e,t,n,r,o),!0;case"mouseover":return At=Mt(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,Mt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==o;){var i=go(o);if(null!==i&&wt(i),null===(i=Qt(e,t,n,r))&&zr(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else zr(e,t,r,null,n)}}var qt=null;function Qt(e,t,n,r){if(qt=null,null!==(e=mo(e=we(r))))if(null===(t=Ue(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case Ze:return 4;case et:case tt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Jt=null;function Zt(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function en(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tn(){return!0}function nn(){return!1}function rn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?tn:nn,this.isPropagationStopped=nn,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tn)},persist:function(){},isPersistent:tn}),t}var on,an,sn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=rn(ln),cn=B({},ln,{view:0,detail:0}),dn=rn(cn),fn=B({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,an=e.screenY-sn.screenY):an=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:an}}),pn=rn(fn),hn=rn(B({},fn,{dataTransfer:0})),mn=rn(B({},cn,{relatedTarget:0})),gn=rn(B({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=rn(B({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),vn=rn(B({},ln,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function xn(){return En}var Cn=rn(B({},cn,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=en(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xn,charCode:function(e){return"keypress"===e.type?en(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?en(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),kn=rn(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=rn(B({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xn})),_n=rn(B({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=rn(B({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Rn=c&&"CompositionEvent"in window,In=null;c&&"documentMode"in document&&(In=document.documentMode);var Dn=c&&"TextEvent"in window&&!In,Tn=c&&(!Rn||In&&8<In&&11>=In),Nn=String.fromCharCode(32),Mn=!1;function Ln(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Hr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Wn=null;function Vn(e){Nr(e,0)}function $n(e){if(q(yo(e)))return e}function Gn(e,t){if("change"===e)return t}var qn=!1;if(c){var Qn;if(c){var Kn="oninput"in document;if(!Kn){var Yn=document.createElement("div");Yn.setAttribute("oninput","return;"),Kn="function"==typeof Yn.oninput}Qn=Kn}else Qn=!1;qn=Qn&&(!document.documentMode||9<document.documentMode)}function Xn(){Hn&&(Hn.detachEvent("onpropertychange",Jn),Wn=Hn=null)}function Jn(e){if("value"===e.propertyName&&$n(Wn)){var t=[];Un(t,Wn,e,we(e)),Re(Vn,t)}}function Zn(e,t,n){"focusin"===e?(Xn(),Wn=n,(Hn=t).attachEvent("onpropertychange",Jn)):"focusout"===e&&Xn()}function er(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Wn)}function tr(e,t){if("click"===e)return $n(t)}function nr(e,t){if("input"===e||"change"===e)return $n(t)}var rr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(rr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!rr(e[o],t[o]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ar(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function lr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function cr(e){var t=lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&ur(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ar(n,i);var a=ar(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var dr=c&&"documentMode"in document&&11>=document.documentMode,fr=null,pr=null,hr=null,mr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mr||null==fr||fr!==Q(r)||("selectionStart"in(r=fr)&&ur(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&or(hr,r)||(hr=r,0<(r=Hr(pr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vr={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionend:yr("Transition","TransitionEnd")},br={},wr={};function Sr(e){if(br[e])return br[e];if(!vr[e])return e;var t,n=vr[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return br[e]=n[t];return e}c&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);var Er=Sr("animationend"),xr=Sr("animationiteration"),Cr=Sr("animationstart"),kr=Sr("transitionend"),Or=new Map,_r="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){Or.set(e,t),l(t,[e])}for(var Ar=0;Ar<_r.length;Ar++){var Rr=_r[Ar];Pr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Pr(Er,"onAnimationEnd"),Pr(xr,"onAnimationIteration"),Pr(Cr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(kr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if(ze.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,Be||(Be=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Nr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Tr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Tr(o,s,u),i=l}}}if(Be)throw e=Fe,Be=!1,Fe=null,e}function Mr(e,t){var n=t[fo];void 0===n&&(n=t[fo]=new Set);var r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}function Lr(e,t,n){var r=0;t&&(r|=4),jr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Br]){e[Br]=!0,a.forEach(function(t){"selectionchange"!==t&&(Dr.has(t)||Lr(t,!1,e),Lr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Lr("selectionchange",!1,t))}}function jr(e,t,n,r){switch(Kt(t)){case 1:var o=Vt;break;case 4:o=$t;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function zr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=mo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=we(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var l=un,u=e;switch(e){case"keypress":if(0===en(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case Er:case xr:case Cr:l=gn;break;case kr:l=_n;break;case"scroll":l=dn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=kn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ie(h,f))&&c.push(Ur(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!mo(u)&&!u[co])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?mo(u):null)&&(u!==(d=Ue(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=kn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:yo(l),p=null==u?s:yo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,mo(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Wr(p))h++;for(p=0,m=f;m;m=Wr(m))p++;for(;0<h-p;)c=Wr(c),h--;for(;0<p-h;)f=Wr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Wr(c),f=Wr(f)}c=null}else c=null;null!==l&&Vr(a,s,l,c,!1),null!==u&&null!==d&&Vr(a,d,u,c,!0)}if("select"===(l=(s=r?yo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Gn;else if(zn(s))if(qn)g=nr;else{g=er;var y=Zn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=tr);switch(g&&(g=g(e,r))?Un(a,g,n,o):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?yo(r):window,e){case"focusin":(zn(y)||"true"===y.contentEditable)&&(fr=y,pr=r,hr=null);break;case"focusout":hr=pr=fr=null;break;case"mousedown":mr=!0;break;case"contextmenu":case"mouseup":case"dragend":mr=!1,gr(a,n,o);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":gr(a,n,o)}var v;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fn?Ln(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Tn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Fn&&(v=Zt()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Fn=!0)),0<(y=Hr(r,b)).length&&(b=new vn(b,e,null,n,o),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Bn(n))&&(b.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Mn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Rn&&Ln(e,t)?(e=Zt(),Jt=Xt=Yt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Tn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Hr(r,"onBeforeInput")).length&&(o=new vn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Nr(a,t)})}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=Ie(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Vr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Ie(n,i))&&a.unshift(Ur(n,l,s)):o||null!=(l=Ie(n,i))&&a.push(Ur(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var $r=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function qr(e){return("string"==typeof e?e:""+e).replace($r,"\n").replace(Gr,"")}function Qr(e,t,n){if(t=qr(t),qr(e)!==t&&n)throw Error(i(425))}function Kr(){}var Yr=null,Xr=null;function Jr(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zr="function"==typeof setTimeout?setTimeout:void 0,eo="function"==typeof clearTimeout?clearTimeout:void 0,to="function"==typeof Promise?Promise:void 0,no="function"==typeof queueMicrotask?queueMicrotask:void 0!==to?function(e){return to.resolve(null).then(e).catch(ro)}:Zr;function ro(e){setTimeout(function(){throw e})}function oo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ut(t)}function io(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ao(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),lo="__reactFiber$"+so,uo="__reactProps$"+so,co="__reactContainer$"+so,fo="__reactEvents$"+so,po="__reactListeners$"+so,ho="__reactHandles$"+so;function mo(e){var t=e[lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[co]||n[lo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ao(e);null!==e;){if(n=e[lo])return n;e=ao(e)}return t}n=(e=n).parentNode}return null}function go(e){return!(e=e[lo]||e[co])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function yo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function vo(e){return e[uo]||null}var bo=[],wo=-1;function So(e){return{current:e}}function Eo(e){0>wo||(e.current=bo[wo],bo[wo]=null,wo--)}function xo(e,t){wo++,bo[wo]=e.current,e.current=t}var Co={},ko=So(Co),Oo=So(!1),_o=Co;function Po(e,t){var n=e.type.contextTypes;if(!n)return Co;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ao(e){return null!=(e=e.childContextTypes)}function Ro(){Eo(Oo),Eo(ko)}function Io(e,t,n){if(ko.current!==Co)throw Error(i(168));xo(ko,t),xo(Oo,n)}function Do(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return B({},n,r)}function To(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Co,_o=ko.current,xo(ko,e),xo(Oo,Oo.current),!0}function No(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Do(e,t,_o),r.__reactInternalMemoizedMergedChildContext=e,Eo(Oo),Eo(ko),xo(ko,e)):Eo(Oo),xo(Oo,n)}var Mo=null,Lo=!1,Bo=!1;function Fo(e){null===Mo?Mo=[e]:Mo.push(e)}function jo(){if(!Bo&&null!==Mo){Bo=!0;var e=0,t=vt;try{var n=Mo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Mo=null,Lo=!1}catch(t){throw null!==Mo&&(Mo=Mo.slice(e+1)),Ge(Je,jo),t}finally{vt=t,Bo=!1}}return null}var zo=[],Uo=0,Ho=null,Wo=0,Vo=[],$o=0,Go=null,qo=1,Qo="";function Ko(e,t){zo[Uo++]=Wo,zo[Uo++]=Ho,Ho=e,Wo=t}function Yo(e,t,n){Vo[$o++]=qo,Vo[$o++]=Qo,Vo[$o++]=Go,Go=e;var r=qo;e=Qo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var i=32-it(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,qo=1<<32-it(t)+o|n<<o|r,Qo=i+e}else qo=1<<i|n<<o|r,Qo=e}function Xo(e){null!==e.return&&(Ko(e,1),Yo(e,1,0))}function Jo(e){for(;e===Ho;)Ho=zo[--Uo],zo[Uo]=null,Wo=zo[--Uo],zo[Uo]=null;for(;e===Go;)Go=Vo[--$o],Vo[$o]=null,Qo=Vo[--$o],Vo[$o]=null,qo=Vo[--$o],Vo[$o]=null}var Zo=null,ei=null,ti=!1,ni=null;function ri(e,t){var n=_u(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Zo=e,ei=io(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Zo=e,ei=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:qo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=_u(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Zo=e,ei=null,!0);default:return!1}}function ii(e){return!(!(1&e.mode)||128&e.flags)}function ai(e){if(ti){var t=ei;if(t){var n=t;if(!oi(e,t)){if(ii(e))throw Error(i(418));t=io(n.nextSibling);var r=Zo;t&&oi(e,t)?ri(r,n):(e.flags=-4097&e.flags|2,ti=!1,Zo=e)}}else{if(ii(e))throw Error(i(418));e.flags=-4097&e.flags|2,ti=!1,Zo=e}}}function si(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Zo=e}function li(e){if(e!==Zo)return!1;if(!ti)return si(e),ti=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Jr(e.type,e.memoizedProps)),t&&(t=ei)){if(ii(e))throw ui(),Error(i(418));for(;t;)ri(e,t),t=io(t.nextSibling)}if(si(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ei=io(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ei=null}}else ei=Zo?io(e.stateNode.nextSibling):null;return!0}function ui(){for(var e=ei;e;)e=io(e.nextSibling)}function ci(){ei=Zo=null,ti=!1}function di(e){null===ni?ni=[e]:ni.push(e)}var fi=w.ReactCurrentBatchConfig;function pi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function hi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mi(e){return(0,e._init)(e._payload)}function gi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Tu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===D&&mi(i)===t.type)?((r=o(t,n.props)).ref=pi(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=pi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Tu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=pi(e,null,t),n.return=e,n;case E:return(t=Nu(t,e.mode,n)).return=e,t;case D:return f(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Iu(t,e.mode,n,null)).return=e,t;hi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?u(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null;case D:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||M(n))return null!==o?null:d(e,t,n,r,null);hi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);hi(t,r)}return null}function m(o,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=p(o,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),i=a(y,i,m),null===c?u=y:c.sibling=y,c=y,d=g}if(m===s.length)return n(o,d),ti&&Ko(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ti&&Ko(o,m),u}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(o,e)}),ti&&Ko(o,m),u}function g(o,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(o,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=y}if(v.done)return n(o,m),ti&&Ko(o,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=f(o,v.value,u))&&(s=a(v,s,g),null===d?c=v:d.sibling=v,d=v);return ti&&Ko(o,g),c}for(m=r(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(o,e)}),ti&&Ko(o,g),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===x&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case S:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===x){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===D&&mi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=pi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===x?((i=Iu(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Ru(a.type,a.key,a.props,null,r.mode,l)).ref=pi(r,i,a),l.return=r,r=l)}return s(r);case E:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Nu(a,r.mode,l)).return=r,r=i}return s(r);case D:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(M(a))return g(r,i,a,l);hi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Tu(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var yi=gi(!0),vi=gi(!1),bi=So(null),wi=null,Si=null,Ei=null;function xi(){Ei=Si=wi=null}function Ci(e){var t=bi.current;Eo(bi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){wi=e,Ei=Si=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ms=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Si){if(null===wi)throw Error(i(308));Si=e,wi.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Pi=null;function Ai(e){null===Pi?Pi=[e]:Pi.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ai(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Di=!1;function Ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ni(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Cl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Ai(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ji(e,t,n,r){var o=e.updateQueue;Di=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=B({},d,f);break e;case 2:Di=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Dl|=a,e.lanes=a,e.memoizedState=d}}function zi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Ui={},Hi=So(Ui),Wi=So(Ui),Vi=So(Ui);function $i(e){if(e===Ui)throw Error(i(174));return e}function Gi(e,t){switch(xo(Vi,t),xo(Wi,e),xo(Hi,Ui),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Eo(Hi),xo(Hi,t)}function qi(){Eo(Hi),Eo(Wi),Eo(Vi)}function Qi(e){$i(Vi.current);var t=$i(Hi.current),n=le(t,e.type);t!==n&&(xo(Wi,e),xo(Hi,n))}function Ki(e){Wi.current===e&&(Eo(Hi),Eo(Wi))}var Yi=So(0);function Xi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ji=[];function Zi(){for(var e=0;e<Ji.length;e++)Ji[e]._workInProgressVersionPrimary=null;Ji.length=0}var ea=w.ReactCurrentDispatcher,ta=w.ReactCurrentBatchConfig,na=0,ra=null,oa=null,ia=null,aa=!1,sa=!1,la=0,ua=0;function ca(){throw Error(i(321))}function da(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rr(e[n],t[n]))return!1;return!0}function fa(e,t,n,r,o,a){if(na=a,ra=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ea.current=null===e||null===e.memoizedState?Ka:Ya,e=n(r,o),sa){a=0;do{if(sa=!1,la=0,25<=a)throw Error(i(301));a+=1,ia=oa=null,t.updateQueue=null,ea.current=Xa,e=n(r,o)}while(sa)}if(ea.current=Qa,t=null!==oa&&null!==oa.next,na=0,ia=oa=ra=null,aa=!1,t)throw Error(i(300));return e}function pa(){var e=0!==la;return la=0,e}function ha(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ia?ra.memoizedState=ia=e:ia=ia.next=e,ia}function ma(){if(null===oa){var e=ra.alternate;e=null!==e?e.memoizedState:null}else e=oa.next;var t=null===ia?ra.memoizedState:ia.next;if(null!==t)ia=t,oa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(oa=e).memoizedState,baseState:oa.baseState,baseQueue:oa.baseQueue,queue:oa.queue,next:null},null===ia?ra.memoizedState=ia=e:ia=ia.next=e}return ia}function ga(e,t){return"function"==typeof t?t(e):t}function ya(e){var t=ma(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=oa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((na&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,ra.lanes|=d,Dl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,rr(r,t.memoizedState)||(ms=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ra.lanes|=a,Dl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function va(e){var t=ma(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);rr(a,t.memoizedState)||(ms=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ba(){}function wa(e,t){var n=ra,r=ma(),o=t(),a=!rr(r.memoizedState,o);if(a&&(r.memoizedState=o,ms=!0),r=r.queue,Da(xa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ia&&1&ia.memoizedState.tag){if(n.flags|=2048,_a(9,Ea.bind(null,n,r,o,t),void 0,null),null===kl)throw Error(i(349));30&na||Sa(n,t,o)}return o}function Sa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ra.updateQueue)?(t={lastEffect:null,stores:null},ra.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ea(e,t,n,r){t.value=n,t.getSnapshot=r,Ca(t)&&ka(e)}function xa(e,t,n){return n(function(){Ca(t)&&ka(e)})}function Ca(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rr(e,n)}catch(e){return!0}}function ka(e){var t=Ii(e,1);null!==t&&Jl(t,e,1,-1)}function Oa(e){var t=ha();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t.queue=e,e=e.dispatch=Va.bind(null,ra,e),[t.memoizedState,e]}function _a(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ra.updateQueue)?(t={lastEffect:null,stores:null},ra.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ma().memoizedState}function Aa(e,t,n,r){var o=ha();ra.flags|=e,o.memoizedState=_a(1|t,n,void 0,void 0===r?null:r)}function Ra(e,t,n,r){var o=ma();r=void 0===r?null:r;var i=void 0;if(null!==oa){var a=oa.memoizedState;if(i=a.destroy,null!==r&&da(r,a.deps))return void(o.memoizedState=_a(t,n,i,r))}ra.flags|=e,o.memoizedState=_a(1|t,n,i,r)}function Ia(e,t){return Aa(8390656,8,e,t)}function Da(e,t){return Ra(2048,8,e,t)}function Ta(e,t){return Ra(4,2,e,t)}function Na(e,t){return Ra(4,4,e,t)}function Ma(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function La(e,t,n){return n=null!=n?n.concat([e]):null,Ra(4,4,Ma.bind(null,t,e),n)}function Ba(){}function Fa(e,t){var n=ma();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&da(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ja(e,t){var n=ma();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&da(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function za(e,t,n){return 21&na?(rr(n,t)||(n=ht(),ra.lanes|=n,Dl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ms=!0),e.memoizedState=n)}function Ua(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=ta.transition;ta.transition={};try{e(!1),t()}finally{vt=n,ta.transition=r}}function Ha(){return ma().memoizedState}function Wa(e,t,n){var r=Xl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$a(e))Ga(t,n);else if(null!==(n=Ri(e,t,n,r))){Jl(n,e,r,Yl()),qa(n,t,r)}}function Va(e,t,n){var r=Xl(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($a(e))Ga(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,rr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ai(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(Jl(n,e,r,o=Yl()),qa(n,t,r))}}function $a(e){var t=e.alternate;return e===ra||null!==t&&t===ra}function Ga(e,t){sa=aa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qa(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Qa={readContext:_i,useCallback:ca,useContext:ca,useEffect:ca,useImperativeHandle:ca,useInsertionEffect:ca,useLayoutEffect:ca,useMemo:ca,useReducer:ca,useRef:ca,useState:ca,useDebugValue:ca,useDeferredValue:ca,useTransition:ca,useMutableSource:ca,useSyncExternalStore:ca,useId:ca,unstable_isNewReconciler:!1},Ka={readContext:_i,useCallback:function(e,t){return ha().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Aa(4194308,4,Ma.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=ha();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ha();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wa.bind(null,ra,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ha().memoizedState=e},useState:Oa,useDebugValue:Ba,useDeferredValue:function(e){return ha().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Ua.bind(null,e[1]),ha().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ra,o=ha();if(ti){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===kl)throw Error(i(349));30&na||Sa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ia(xa.bind(null,r,a,e),[e]),r.flags|=2048,_a(9,Ea.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ha(),t=kl.identifierPrefix;if(ti){var n=Qo;t=":"+t+"R"+(n=(qo&~(1<<32-it(qo)-1)).toString(32)+n),0<(n=la++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ua++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ya={readContext:_i,useCallback:Fa,useContext:_i,useEffect:Da,useImperativeHandle:La,useInsertionEffect:Ta,useLayoutEffect:Na,useMemo:ja,useReducer:ya,useRef:Pa,useState:function(){return ya(ga)},useDebugValue:Ba,useDeferredValue:function(e){return za(ma(),oa.memoizedState,e)},useTransition:function(){return[ya(ga)[0],ma().memoizedState]},useMutableSource:ba,useSyncExternalStore:wa,useId:Ha,unstable_isNewReconciler:!1},Xa={readContext:_i,useCallback:Fa,useContext:_i,useEffect:Da,useImperativeHandle:La,useInsertionEffect:Ta,useLayoutEffect:Na,useMemo:ja,useReducer:va,useRef:Pa,useState:function(){return va(ga)},useDebugValue:Ba,useDeferredValue:function(e){var t=ma();return null===oa?t.memoizedState=e:za(t,oa.memoizedState,e)},useTransition:function(){return[va(ga)[0],ma().memoizedState]},useMutableSource:ba,useSyncExternalStore:wa,useId:Ha,unstable_isNewReconciler:!1};function Ja(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Za(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var es={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Yl(),o=Xl(e),i=Mi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(Jl(t,e,o,r),Bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Yl(),o=Xl(e),i=Mi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(Jl(t,e,o,r),Bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Yl(),r=Xl(e),o=Mi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Li(e,o,r))&&(Jl(t,e,r,n),Bi(t,e,r))}};function ts(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(o,i))}function ns(e,t,n){var r=!1,o=Co,i=t.contextType;return"object"==typeof i&&null!==i?i=_i(i):(o=Ao(t)?_o:ko.current,i=(r=null!=(r=t.contextTypes))?Po(e,o):Co),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=es,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function rs(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&es.enqueueReplaceState(t,t.state,null)}function os(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ti(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_i(i):(i=Ao(t)?_o:ko.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Za(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&es.enqueueReplaceState(o,o.state,null),ji(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function is(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function as(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ss(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=Mi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zl||(zl=!0,Ul=r),ss(0,t)},n}function cs(e,t,n){(n=Mi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ss(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ss(0,t),"function"!=typeof r&&(null===Hl?Hl=new Set([this]):Hl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ds(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ls;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Su.bind(null,e,t,n),t.then(e,e))}function fs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ps(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Mi(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e)}var hs=w.ReactCurrentOwner,ms=!1;function gs(e,t,n,r){t.child=null===e?vi(t,null,n,r):yi(t,e.child,n,r)}function ys(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=fa(e,t,n,r,i,o),n=pa(),null===e||ms?(ti&&n&&Xo(t),t.flags|=1,gs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zs(e,t,o))}function vs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,bs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:or)(a,r)&&e.ref===t.ref)return zs(e,t,o)}return t.flags|=1,(e=Au(i,r)).ref=t.ref,e.return=t,t.child=e}function bs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(or(i,r)&&e.ref===t.ref){if(ms=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,zs(e,t,o);131072&e.flags&&(ms=!0)}}return Es(e,t,n,r,o)}function ws(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xo(Al,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,xo(Al,Pl),Pl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xo(Al,Pl),Pl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,xo(Al,Pl),Pl|=r;return gs(e,t,o,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Ao(n)?_o:ko.current;return i=Po(t,i),Oi(t,o),n=fa(e,t,n,r,i,o),r=pa(),null===e||ms?(ti&&r&&Xo(t),t.flags|=1,gs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,zs(e,t,o))}function xs(e,t,n,r,o){if(Ao(n)){var i=!0;To(t)}else i=!1;if(Oi(t,o),null===t.stateNode)js(e,t),ns(t,n,r),os(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=_i(u):u=Po(t,u=Ao(n)?_o:ko.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&rs(t,a,r,u),Di=!1;var f=t.memoizedState;a.state=f,ji(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Oo.current||Di?("function"==typeof c&&(Za(t,n,c,r),l=t.memoizedState),(s=Di||ts(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ni(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ja(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=_i(l):l=Po(t,l=Ao(n)?_o:ko.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&rs(t,a,r,l),Di=!1,f=t.memoizedState,a.state=f,ji(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Oo.current||Di?("function"==typeof p&&(Za(t,n,p,r),h=t.memoizedState),(u=Di||ts(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,i,o)}function Cs(e,t,n,r,o,i){Ss(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&No(t,n,!1),zs(e,t,i);r=t.stateNode,hs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=yi(t,e.child,null,i),t.child=yi(t,null,s,i)):gs(e,t,s,i),t.memoizedState=r.state,o&&No(t,n,!0),t.child}function ks(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Gi(e,t.containerInfo)}function Os(e,t,n,r,o){return ci(),di(o),t.flags|=256,gs(e,t,n,r),t.child}var _s,Ps,As,Rs,Is={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ts(e,t,n){var r,o=t.pendingProps,a=Yi.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),xo(Yi,1&a),null===e)return ai(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Du(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Is,e):Ns(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Ms(e,t,s,r=as(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Du({mode:"visible",children:r.children},o,0,null),(a=Iu(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&yi(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Is,a);if(!(1&t.mode))return Ms(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ms(e,t,s,r=as(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),ms||l){if(null!==(r=kl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ii(e,o),Jl(r,e,o,-1))}return du(),Ms(e,t,s,r=as(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=xu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,ei=io(o.nextSibling),Zo=t,ti=!0,ni=null,null!==e&&(Vo[$o++]=qo,Vo[$o++]=Qo,Vo[$o++]=Go,qo=e.id,Qo=e.overflow,Go=t),t=Ns(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Au(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=Au(r,s):(s=Iu(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ds(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Au(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ns(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ms(e,t,n,r){return null!==r&&di(r),yi(t,e.child,null,n),(e=Ns(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ls(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function Bs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Fs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(gs(e,t,r.children,n),2&(r=Yi.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ls(e,n,t);else if(19===e.tag)Ls(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xo(Yi,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Xi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Xi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function js(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Au(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Au(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Us(e,t){if(!ti)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Hs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,n){var r=t.pendingProps;switch(Jo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hs(t),null;case 1:case 17:return Ao(t.type)&&Ro(),Hs(t),null;case 3:return r=t.stateNode,qi(),Eo(Oo),Eo(ko),Zi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(li(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ni&&(nu(ni),ni=null))),Ps(e,t),Hs(t),null;case 5:Ki(t);var o=$i(Vi.current);if(n=t.type,null!==e&&null!=t.stateNode)As(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Hs(t),null}if(e=$i(Hi.current),li(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[lo]=t,r[uo]=a,e=!!(1&t.mode),n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)Mr(Ir[o],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":Y(r,a),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Mr("invalid",r);break;case"textarea":oe(r,a),Mr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Mr("scroll",r)}switch(n){case"input":G(r),Z(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Kr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[lo]=t,e[uo]=r,_s(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),o=r;break;case"iframe":case"object":case"embed":Mr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)Mr(Ir[o],e);o=r;break;case"source":Mr("error",e),o=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),o=r;break;case"details":Mr("toggle",e),o=r;break;case"input":Y(e,r),o=K(e,r),Mr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=B({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Mr("invalid",e)}for(a in ye(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?me(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&ce(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Mr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":G(e),Z(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Kr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Hs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=$i(Vi.current),$i(Hi.current),li(t)){if(r=t.stateNode,n=t.memoizedProps,r[lo]=t,(a=r.nodeValue!==n)&&null!==(e=Zo))switch(e.tag){case 3:Qr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[lo]=t,t.stateNode=r}return Hs(t),null;case 13:if(Eo(Yi),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ti&&null!==ei&&1&t.mode&&!(128&t.flags))ui(),ci(),t.flags|=98560,a=!1;else if(a=li(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[lo]=t}else ci(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hs(t),a=!1}else null!==ni&&(nu(ni),ni=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Yi.current?0===Rl&&(Rl=3):du())),null!==t.updateQueue&&(t.flags|=4),Hs(t),null);case 4:return qi(),Ps(e,t),null===e&&Fr(t.stateNode.containerInfo),Hs(t),null;case 10:return Ci(t.type._context),Hs(t),null;case 19:if(Eo(Yi),null===(a=t.memoizedState))return Hs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)Us(a,!1);else{if(0!==Rl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=Xi(e))){for(t.flags|=128,Us(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xo(Yi,1&Yi.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Fl&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Xi(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Us(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ti)return Hs(t),null}else 2*Ye()-a.renderingStartTime>Fl&&1073741824!==n&&(t.flags|=128,r=!0,Us(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=Yi.current,xo(Yi,r?1&n|2:1&n),t):(Hs(t),null);case 22:case 23:return su(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Pl)&&(Hs(t),6&t.subtreeFlags&&(t.flags|=8192)):Hs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Vs(e,t){switch(Jo(t),t.tag){case 1:return Ao(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return qi(),Eo(Oo),Eo(ko),Zi(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ki(t),null;case 13:if(Eo(Yi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));ci()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Eo(Yi),null;case 4:return qi(),null;case 10:return Ci(t.type._context),null;case 22:case 23:return su(),null;default:return null}}_s=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},As=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,$i(Hi.current);var i,a=null;switch(n){case"input":o=K(e,o),r=K(e,r),a=[];break;case"select":o=B({},o,{value:void 0}),r=B({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Kr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Mr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var $s=!1,Gs=!1,qs="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Ks(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){wu(e,t,n)}else n.current=null}function Ys(e,t,n){try{n()}catch(n){wu(e,t,n)}}var Xs=!1;function Js(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Ys(t,n,i)}o=o.next}while(o!==r)}}function Zs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function el(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function tl(e){var t=e.alternate;null!==t&&(e.alternate=null,tl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[lo],delete t[uo],delete t[fo],delete t[po],delete t[ho])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nl(e){return 5===e.tag||3===e.tag||4===e.tag}function rl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||nl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ol(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Kr));else if(4!==r&&null!==(e=e.child))for(ol(e,t,n),e=e.sibling;null!==e;)ol(e,t,n),e=e.sibling}function il(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(il(e,t,n),e=e.sibling;null!==e;)il(e,t,n),e=e.sibling}var al=null,sl=!1;function ll(e,t,n){for(n=n.child;null!==n;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(rt,n)}catch(e){}switch(n.tag){case 5:Gs||Ks(n,t);case 6:var r=al,o=sl;al=null,ll(e,t,n),sl=o,null!==(al=r)&&(sl?(e=al,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):al.removeChild(n.stateNode));break;case 18:null!==al&&(sl?(e=al,n=n.stateNode,8===e.nodeType?oo(e.parentNode,n):1===e.nodeType&&oo(e,n),Ut(e)):oo(al,n.stateNode));break;case 4:r=al,o=sl,al=n.stateNode.containerInfo,sl=!0,ll(e,t,n),al=r,sl=o;break;case 0:case 11:case 14:case 15:if(!Gs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Ys(n,t,a),o=o.next}while(o!==r)}ll(e,t,n);break;case 1:if(!Gs&&(Ks(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){wu(n,t,e)}ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,ll(e,t,n),Gs=r):ll(e,t,n);break;default:ll(e,t,n)}}function cl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new qs),t.forEach(function(t){var r=Cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function dl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:al=l.stateNode,sl=!1;break e;case 3:case 4:al=l.stateNode.containerInfo,sl=!0;break e}l=l.return}if(null===al)throw Error(i(160));ul(a,s,o),al=null,sl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){wu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)fl(t,e),t=t.sibling}function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dl(t,e),pl(e),4&r){try{Js(3,e,e.return),Zs(3,e)}catch(t){wu(e,e.return,t)}try{Js(5,e,e.return)}catch(t){wu(e,e.return,t)}}break;case 1:dl(t,e),pl(e),512&r&&null!==n&&Ks(n,n.return);break;case 5:if(dl(t,e),pl(e),512&r&&null!==n&&Ks(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){wu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&X(o,a),ve(l,s);var c=ve(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?ce(o,f):"children"===d?de(o,f):b(o,d,f,c)}switch(l){case"input":J(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[uo]=a}catch(t){wu(e,e.return,t)}}break;case 6:if(dl(t,e),pl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){wu(e,e.return,t)}}break;case 3:if(dl(t,e),pl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){wu(e,e.return,t)}break;case 4:default:dl(t,e),pl(e);break;case 13:dl(t,e),pl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bl=Ye())),4&r&&cl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Gs=(c=Gs)||d,dl(t,e),Gs=c):dl(t,e),pl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(h=(p=Qs).child,p.tag){case 0:case 11:case 14:case 15:Js(4,p,p.return);break;case 1:Ks(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){wu(r,n,e)}}break;case 5:Ks(p,p.return);break;case 22:if(null!==p.memoizedState){yl(f);continue}}null!==h?(h.return=p,Qs=h):yl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=he("display",s))}catch(t){wu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){wu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:dl(t,e),pl(e),4&r&&cl(e);case 21:}}function pl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(nl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),il(e,rl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ol(e,rl(e),a);break;default:throw Error(i(161))}}catch(t){wu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function hl(e,t,n){Qs=e,ml(e,t,n)}function ml(e,t,n){for(var r=!!(1&e.mode);null!==Qs;){var o=Qs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||$s;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=$s;var u=Gs;if($s=a,(Gs=l)&&!u)for(Qs=o;null!==Qs;)l=(a=Qs).child,22===a.tag&&null!==a.memoizedState?vl(o):null!==l?(l.return=a,Qs=l):vl(o);for(;null!==i;)Qs=i,ml(i,t,n),i=i.sibling;Qs=o,$s=s,Gs=u}gl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Qs=i):gl(e)}}function gl(e){for(;null!==Qs;){var t=Qs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Gs||Zs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Gs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ja(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ut(f)}}}break;default:throw Error(i(163))}Gs||512&t.flags&&el(t)}catch(e){wu(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function yl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function vl(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zs(4,t)}catch(e){wu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){wu(t,o,e)}}var i=t.return;try{el(t)}catch(e){wu(t,i,e)}break;case 5:var a=t.return;try{el(t)}catch(e){wu(t,a,e)}}}catch(e){wu(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var bl,wl=Math.ceil,Sl=w.ReactCurrentDispatcher,El=w.ReactCurrentOwner,xl=w.ReactCurrentBatchConfig,Cl=0,kl=null,Ol=null,_l=0,Pl=0,Al=So(0),Rl=0,Il=null,Dl=0,Tl=0,Nl=0,Ml=null,Ll=null,Bl=0,Fl=1/0,jl=null,zl=!1,Ul=null,Hl=null,Wl=!1,Vl=null,$l=0,Gl=0,ql=null,Ql=-1,Kl=0;function Yl(){return 6&Cl?Ye():-1!==Ql?Ql:Ql=Ye()}function Xl(e){return 1&e.mode?2&Cl&&0!==_l?_l&-_l:null!==fi.transition?(0===Kl&&(Kl=ht()),Kl):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function Jl(e,t,n,r){if(50<Gl)throw Gl=0,ql=null,Error(i(185));gt(e,n,r),2&Cl&&e===kl||(e===kl&&(!(2&Cl)&&(Tl|=n),4===Rl&&ru(e,_l)),Zl(e,r),1===n&&0===Cl&&!(1&t.mode)&&(Fl=Ye()+500,Lo&&jo()))}function Zl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-it(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ft(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===kl?_l:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Lo=!0,Fo(e)}(ou.bind(null,e)):Fo(ou.bind(null,e)),no(function(){!(6&Cl)&&jo()}),n=null;else{switch(bt(r)){case 1:n=Je;break;case 4:n=Ze;break;case 16:default:n=et;break;case 536870912:n=nt}n=ku(n,eu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function eu(e,t){if(Ql=-1,Kl=0,6&Cl)throw Error(i(327));var n=e.callbackNode;if(vu()&&e.callbackNode!==n)return null;var r=dt(e,e===kl?_l:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=fu(e,r);else{t=r;var o=Cl;Cl|=2;var a=cu();for(kl===e&&_l===t||(jl=null,Fl=Ye()+500,lu(e,t));;)try{hu();break}catch(t){uu(e,t)}xi(),Sl.current=a,Cl=o,null!==Ol?t=0:(kl=null,_l=0,t=Rl)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=tu(e,o))),1===t)throw n=Il,lu(e,0),ru(e,r),Zl(e,Ye()),n;if(6===t)ru(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!rr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=fu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=tu(e,a))),1!==t)))throw n=Il,lu(e,0),ru(e,r),Zl(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:yu(e,Ll,jl);break;case 3:if(ru(e,r),(130023424&r)===r&&10<(t=Bl+500-Ye())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Yl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Zr(yu.bind(null,e,Ll,jl),t);break}yu(e,Ll,jl);break;case 4:if(ru(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-it(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wl(r/1960))-r)){e.timeoutHandle=Zr(yu.bind(null,e,Ll,jl),r);break}yu(e,Ll,jl);break;default:throw Error(i(329))}}}return Zl(e,Ye()),e.callbackNode===n?eu.bind(null,e):null}function tu(e,t){var n=Ml;return e.current.memoizedState.isDehydrated&&(lu(e,t).flags|=256),2!==(e=fu(e,t))&&(t=Ll,Ll=n,null!==t&&nu(t)),e}function nu(e){null===Ll?Ll=e:Ll.push.apply(Ll,e)}function ru(e,t){for(t&=~Nl,t&=~Tl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function ou(e){if(6&Cl)throw Error(i(327));vu();var t=dt(e,0);if(!(1&t))return Zl(e,Ye()),null;var n=fu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=tu(e,r))}if(1===n)throw n=Il,lu(e,0),ru(e,t),Zl(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yu(e,Ll,jl),Zl(e,Ye()),null}function iu(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Fl=Ye()+500,Lo&&jo())}}function au(e){null!==Vl&&0===Vl.tag&&!(6&Cl)&&vu();var t=Cl;Cl|=1;var n=xl.transition,r=vt;try{if(xl.transition=null,vt=1,e)return e()}finally{vt=r,xl.transition=n,!(6&(Cl=t))&&jo()}}function su(){Pl=Al.current,Eo(Al)}function lu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,eo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(Jo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ro();break;case 3:qi(),Eo(Oo),Eo(ko),Zi();break;case 5:Ki(r);break;case 4:qi();break;case 13:case 19:Eo(Yi);break;case 10:Ci(r.type._context);break;case 22:case 23:su()}n=n.return}if(kl=e,Ol=e=Au(e.current,null),_l=Pl=t,Rl=0,Il=null,Nl=Tl=Dl=0,Ll=Ml=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function uu(e,t){for(;;){var n=Ol;try{if(xi(),ea.current=Qa,aa){for(var r=ra.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}aa=!1}if(na=0,ia=oa=ra=null,sa=!1,la=0,El.current=null,null===n||null===n.return){Rl=1,Il=t,Ol=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=_l,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=fs(s);if(null!==h){h.flags&=-257,ps(h,s,l,0,t),1&h.mode&&ds(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ds(a,c,t),du();break e}u=Error(i(426))}else if(ti&&1&l.mode){var y=fs(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ps(y,s,l,0,t),di(is(u,l));break e}}a=u=is(u,l),4!==Rl&&(Rl=2),null===Ml?Ml=[a]:Ml.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,us(0,u,t));break e;case 1:l=u;var v=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Hl&&Hl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,cs(a,l,t));break e}}a=a.return}while(null!==a)}gu(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function cu(){var e=Sl.current;return Sl.current=Qa,null===e?Qa:e}function du(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===kl||!(268435455&Dl)&&!(268435455&Tl)||ru(kl,_l)}function fu(e,t){var n=Cl;Cl|=2;var r=cu();for(kl===e&&_l===t||(jl=null,lu(e,t));;)try{pu();break}catch(t){uu(e,t)}if(xi(),Cl=n,Sl.current=r,null!==Ol)throw Error(i(261));return kl=null,_l=0,Rl}function pu(){for(;null!==Ol;)mu(Ol)}function hu(){for(;null!==Ol&&!Qe();)mu(Ol)}function mu(e){var t=bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?gu(e):Ol=t,El.current=null}function gu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Vs(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return Rl=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ws(n,t,Pl)))return void(Ol=n);if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Rl&&(Rl=5)}function yu(e,t,n){var r=vt,o=xl.transition;try{xl.transition=null,vt=1,function(e,t,n,r){do{vu()}while(null!==Vl);if(6&Cl)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===kl&&(Ol=kl=null,_l=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Wl||(Wl=!0,ku(et,function(){return vu(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=xl.transition,xl.transition=null;var s=vt;vt=1;var l=Cl;Cl|=4,El.current=null,function(e,t){if(Yr=Wt,ur(e=lr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xr={focusedElem:e,selectionRange:n},Wt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ja(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(e){wu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=Xs,Xs=!1}(e,n),fl(n,e),cr(Xr),Wt=!!Yr,Xr=Yr=null,e.current=n,hl(n,e,o),Ke(),Cl=l,vt=s,xl.transition=a}else e.current=n;if(Wl&&(Wl=!1,Vl=e,$l=o),a=e.pendingLanes,0===a&&(Hl=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(rt,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),Zl(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(zl)throw zl=!1,e=Ul,Ul=null,e;!!(1&$l)&&0!==e.tag&&vu(),a=e.pendingLanes,1&a?e===ql?Gl++:(Gl=0,ql=e):Gl=0,jo()}(e,t,n,r)}finally{xl.transition=o,vt=r}return null}function vu(){if(null!==Vl){var e=bt($l),t=xl.transition,n=vt;try{if(xl.transition=null,vt=16>e?16:e,null===Vl)var r=!1;else{if(e=Vl,Vl=null,$l=0,6&Cl)throw Error(i(331));var o=Cl;for(Cl|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(16&Qs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Qs=c;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:Js(8,d,a)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var p=(d=Qs).sibling,h=d.return;if(tl(d),d===c){Qs=null;break}if(null!==p){p.return=h,Qs=p;break}Qs=h}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Qs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(2048&(a=Qs).flags)switch(a.tag){case 0:case 11:case 15:Js(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Qs=v;break e}Qs=a.return}}var b=e.current;for(Qs=b;null!==Qs;){var w=(s=Qs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Qs=w;else e:for(s=b;null!==Qs;){if(2048&(l=Qs).flags)try{switch(l.tag){case 0:case 11:case 15:Zs(9,l)}}catch(e){wu(l,l.return,e)}if(l===s){Qs=null;break e}var S=l.sibling;if(null!==S){S.return=l.return,Qs=S;break e}Qs=l.return}}if(Cl=o,jo(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(rt,e)}catch(e){}r=!0}return r}finally{vt=n,xl.transition=t}}return!1}function bu(e,t,n){e=Li(e,t=us(0,t=is(n,t),1),1),t=Yl(),null!==e&&(gt(e,1,t),Zl(e,t))}function wu(e,t,n){if(3===e.tag)bu(e,e,n);else for(;null!==t;){if(3===t.tag){bu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hl||!Hl.has(r))){t=Li(t,e=cs(t,e=is(n,e),1),1),e=Yl(),null!==t&&(gt(t,1,e),Zl(t,e));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Yl(),e.pingedLanes|=e.suspendedLanes&n,kl===e&&(_l&n)===n&&(4===Rl||3===Rl&&(130023424&_l)===_l&&500>Ye()-Bl?lu(e,0):Nl|=n),Zl(e,t)}function Eu(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=Yl();null!==(e=Ii(e,t))&&(gt(e,t,n),Zl(e,n))}function xu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Cu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Eu(e,n)}function ku(e,t){return Ge(e,t)}function Ou(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _u(e,t,n,r){return new Ou(e,t,n,r)}function Pu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=_u(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Pu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Iu(n.children,o,a,t);case C:s=8,o|=8;break;case k:return(e=_u(12,n,t,2|o)).elementType=k,e.lanes=a,e;case A:return(e=_u(13,n,t,o)).elementType=A,e.lanes=a,e;case R:return(e=_u(19,n,t,o)).elementType=R,e.lanes=a,e;case T:return Du(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case _:s=9;break e;case P:s=11;break e;case I:s=14;break e;case D:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=_u(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Iu(e,t,n,r){return(e=_u(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=_u(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Tu(e,t,n){return(e=_u(6,e,null,t)).lanes=n,e}function Nu(e,t,n){return(t=_u(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Lu(e,t,n,r,o,i,a,s,l){return e=new Mu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=_u(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ti(i),e}function Bu(e){if(!e)return Co;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ao(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ao(n))return Do(e,n,t)}return t}function Fu(e,t,n,r,o,i,a,s,l){return(e=Lu(n,r,!0,e,0,i,0,s,l)).context=Bu(null),n=e.current,(i=Mi(r=Yl(),o=Xl(n))).callback=null!=t?t:null,Li(n,i,o),e.current.lanes=o,gt(e,o,r),Zl(e,r),e}function ju(e,t,n,r){var o=t.current,i=Yl(),a=Xl(o);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Mi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Li(o,t,a))&&(Jl(e,o,a,i),Bi(e,o,a)),a}function zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Hu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}bl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)ms=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ms=!1,function(e,t,n){switch(t.tag){case 3:ks(t),ci();break;case 5:Qi(t);break;case 1:Ao(t.type)&&To(t);break;case 4:Gi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;xo(bi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xo(Yi,1&Yi.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ts(e,t,n):(xo(Yi,1&Yi.current),null!==(e=zs(e,t,n))?e.sibling:null);xo(Yi,1&Yi.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Fs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),xo(Yi,Yi.current),r)break;return null;case 22:case 23:return t.lanes=0,ws(e,t,n)}return zs(e,t,n)}(e,t,n);ms=!!(131072&e.flags)}else ms=!1,ti&&1048576&t.flags&&Yo(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;js(e,t),e=t.pendingProps;var o=Po(t,ko.current);Oi(t,n),o=fa(null,t,r,e,o,n);var a=pa();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ao(r)?(a=!0,To(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ti(t),o.updater=es,t.stateNode=o,o._reactInternals=t,os(t,r,e,n),t=Cs(null,t,r,!0,a,n)):(t.tag=0,ti&&a&&Xo(t),gs(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(js(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Pu(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===I)return 14}return 2}(r),e=Ja(r,e),o){case 0:t=Es(null,t,r,e,n);break e;case 1:t=xs(null,t,r,e,n);break e;case 11:t=ys(null,t,r,e,n);break e;case 14:t=vs(null,t,r,Ja(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Es(e,t,r,o=t.elementType===r?o:Ja(r,o),n);case 1:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:Ja(r,o),n);case 3:e:{if(ks(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Ni(e,t),ji(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Os(e,t,r,n,o=is(Error(i(423)),t));break e}if(r!==o){t=Os(e,t,r,n,o=is(Error(i(424)),t));break e}for(ei=io(t.stateNode.containerInfo.firstChild),Zo=t,ti=!0,ni=null,n=vi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ci(),r===o){t=zs(e,t,n);break e}gs(e,t,r,n)}t=t.child}return t;case 5:return Qi(t),null===e&&ai(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,Jr(r,o)?s=null:null!==a&&Jr(r,a)&&(t.flags|=32),Ss(e,t),gs(e,t,s,n),t.child;case 6:return null===e&&ai(t),null;case 13:return Ts(e,t,n);case 4:return Gi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=yi(t,null,r,n):gs(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ys(e,t,r,o=t.elementType===r?o:Ja(r,o),n);case 7:return gs(e,t,t.pendingProps,n),t.child;case 8:case 12:return gs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,xo(bi,r._currentValue),r._currentValue=s,null!==a)if(rr(a.value,s)){if(a.children===o.children&&!Oo.current){t=zs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Mi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),ki(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),ki(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}gs(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=_i(o)),t.flags|=1,gs(e,t,r,n),t.child;case 14:return o=Ja(r=t.type,t.pendingProps),vs(e,t,r,o=Ja(r.type,o),n);case 15:return bs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ja(r,o),js(e,t),t.tag=1,Ao(r)?(e=!0,To(t)):e=!1,Oi(t,n),ns(t,r,o),os(t,r,o,n),Cs(null,t,r,!0,e,n);case 19:return Fs(e,t,n);case 22:return ws(e,t,n)}throw Error(i(156,t.tag))};var Wu="function"==typeof reportError?reportError:function(e){console.error(e)};function Vu(e){this._internalRoot=e}function $u(e){this._internalRoot=e}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(){}function Ku(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=zu(a);s.call(e)}}ju(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=zu(a);i.call(e)}}var a=Fu(t,r,e,0,null,!1,0,"",Qu);return e._reactRootContainer=a,e[co]=a.current,Fr(8===e.nodeType?e.parentNode:e),au(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=zu(l);s.call(e)}}var l=Lu(e,0,!1,null,0,!1,0,"",Qu);return e._reactRootContainer=l,e[co]=l.current,Fr(8===e.nodeType?e.parentNode:e),au(function(){ju(t,l,n,r)}),l}(n,t,e,o,r);return zu(a)}$u.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));ju(e,t,null,null)},$u.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;au(function(){ju(null,e,null,null)}),t[co]=null}},$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ct(t.pendingLanes);0!==n&&(yt(t,1|n),Zl(t,Ye()),!(6&Cl)&&(Fl=Ye()+500,jo()))}break;case 13:au(function(){var t=Ii(e,1);if(null!==t){var n=Yl();Jl(t,e,1,n)}}),Hu(e,1)}},St=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)Jl(t,e,134217728,Yl());Hu(e,134217728)}},Et=function(e){if(13===e.tag){var t=Xl(e),n=Ii(e,t);if(null!==n)Jl(n,e,t,Yl());Hu(e,t)}},xt=function(){return vt},Ct=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=vo(r);if(!o)throw Error(i(90));q(r),J(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},_e=iu,Pe=au;var Yu={usingClientEntryPoint:!1,Events:[go,yo,vo,ke,Oe,iu]},Xu={findFiberByHostInstance:mo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ju={bundleType:Xu.bundleType,version:Xu.version,rendererPackageName:Xu.rendererPackageName,rendererConfig:Xu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:Xu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{rt=Zu.inject(Ju),ot=Zu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Gu(e))throw Error(i(299));var n=!1,r="",o=Wu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Lu(e,1,!1,null,0,n,0,r,o),e[co]=t.current,Fr(8===e.nodeType?e.parentNode:e),new Vu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return au(e)},t.hydrate=function(e,t,n){if(!qu(t))throw Error(i(200));return Ku(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Wu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Fu(t,null,e,1,null!=n?n:null,o,0,a,s),e[co]=t.current,Fr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new $u(t)},t.render=function(e,t,n){if(!qu(t))throw Error(i(200));return Ku(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qu(e))throw Error(i(40));return!!e._reactRootContainer&&(au(function(){Ku(null,null,e,!1,function(){e._reactRootContainer=null,e[co]=null})}),!0)},t.unstable_batchedUpdates=iu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Ku(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},23257:(e,t,n)=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.activeClassName,n=void 0===t?"":t,o=e.activeIndex,s=void 0===o?-1:o,u=e.activeStyle,c=e.autoEscape,d=e.caseSensitive,f=void 0!==d&&d,p=e.className,h=e.findChunks,m=e.highlightClassName,g=void 0===m?"":m,y=e.highlightStyle,v=void 0===y?{}:y,b=e.highlightTag,w=void 0===b?"mark":b,S=e.sanitize,E=e.searchWords,x=e.textToHighlight,C=e.unhighlightTag,k=void 0===C?"span":C,O=e.unhighlightClassName,_=void 0===O?"":O,P=e.unhighlightStyle,A=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]),R=(0,i.findAll)({autoEscape:c,caseSensitive:f,findChunks:h,sanitize:S,searchWords:E,textToHighlight:x}),I=w,D=-1,T="",N=void 0,M=(0,l.default)(function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t});return(0,a.createElement)("span",r({className:p},A,{children:R.map(function(e,t){var r=x.substr(e.start,e.end-e.start);if(e.highlight){D++;var o=void 0;o="object"==typeof g?f?g[r]:(g=M(g))[r.toLowerCase()]:g;var i=D===+s;T=o+" "+(i?n:""),N=!0===i&&null!=u?Object.assign({},v,u):v;var l={children:r,className:T,key:t,style:N};return"string"!=typeof I&&(l.highlightIndex=D),(0,a.createElement)(I,l)}return(0,a.createElement)(k,{children:r,className:_,key:t,style:P})})}))};var o,i=n(3),a=n(4),s=n(5),l=(o=s)&&o.__esModule?o:{default:o};e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,l=void 0===s?r:s,u=e.sanitize,c=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:l({autoEscape:t,caseSensitive:a,sanitize:u,searchWords:c,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort(function(e,t){return e.start-t.start}).reduce(function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({start:n.start,end:r})}else e.push(n,t);return e},[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter(function(e){return e}).reduce(function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var l=a.index,u=i.lastIndex;u>l&&e.push({start:l,end:u}),a.index==i.lastIndex&&i.lastIndex++}return e},[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach(function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end}),o(i,n,!1)}return r};function i(e){return e}}])},function(e,t){e.exports=n(96540)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=void 0,o=[],i=void 0,a=!1,s=function(e,n){return t(e,o[n])};return function(){for(var t=arguments.length,n=Array(t),l=0;l<t;l++)n[l]=arguments[l];return a&&r===this&&n.length===o.length&&n.every(s)?i:(a=!0,r=this,o=n,i=e.apply(this,n))}}}])},23361:e=>{e.exports={Other:0,CR:1,LF:2,Control:4,Extend:8,ZWJ:16,Regional_Indicator:32,Prepend:64,SpacingMark:128,L:256,V:512,T:1024,LV:2048,LVT:4096,Extended_Pictographic:8192,InCB_Linker:16384,InCB_Consonant:32768,InCB_Extend:65536}},23508:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Oe});var r={};n.r(r),n.d(r,{Decoder:()=>ve,Encoder:()=>ge,PacketType:()=>me,protocol:()=>he});const o=Object.create(null);o.open="0",o.close="1",o.ping="2",o.pong="3",o.message="4",o.upgrade="5",o.noop="6";const i=Object.create(null);Object.keys(o).forEach(e=>{i[o[e]]=e});const a={type:"error",data:"parser error"},s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),l="function"==typeof ArrayBuffer,u=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,c=({type:e,data:t},n,r)=>s&&t instanceof Blob?n?r(t):d(t,r):l&&(t instanceof ArrayBuffer||u(t))?n?r(t):d(new Blob([t]),r):r(o[e]+(t||"")),d=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))},n.readAsDataURL(e)};function f(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let p;const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<64;e++)m[h.charCodeAt(e)]=e;const g="function"==typeof ArrayBuffer,y=(e,t)=>{if("string"!=typeof e)return{type:"message",data:b(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:v(e.substring(1),t)};return i[n]?e.length>1?{type:i[n],data:e.substring(1)}:{type:i[n]}:a},v=(e,t)=>{if(g){const n=(e=>{let t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);const u=new ArrayBuffer(a),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=m[e.charCodeAt(t)],r=m[e.charCodeAt(t+1)],o=m[e.charCodeAt(t+2)],i=m[e.charCodeAt(t+3)],c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|o>>2,c[l++]=(3&o)<<6|63&i;return u})(e);return b(n,t)}return{base64:!0,data:e}},b=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,w=String.fromCharCode(30);function S(){return new TransformStream({transform(e,t){!function(e,t){s&&e.data instanceof Blob?e.data.arrayBuffer().then(f).then(t):l&&(e.data instanceof ArrayBuffer||u(e.data))?t(f(e.data)):c(e,!1,e=>{p||(p=new TextEncoder),t(p.encode(e))})}(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const e=new DataView(o.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{o=new Uint8Array(9);const e=new DataView(o.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&"string"!=typeof e.data&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let E;function x(e){return e.reduce((e,t)=>e+t.length,0)}function C(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function k(e){if(e)return function(e){for(var t in k.prototype)e[t]=k.prototype[t];return e}(e)}k.prototype.on=k.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},k.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},k.prototype.off=k.prototype.removeListener=k.prototype.removeAllListeners=k.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},k.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},k.prototype.emitReserved=k.prototype.emit,k.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},k.prototype.hasListeners=function(e){return!!this.listeners(e).length};const O="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),_="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function P(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}const A=_.setTimeout,R=_.clearTimeout;function I(e,t){t.useNativeTimers?(e.setTimeoutFn=A.bind(_),e.clearTimeoutFn=R.bind(_)):(e.setTimeoutFn=_.setTimeout.bind(_),e.clearTimeoutFn=_.clearTimeout.bind(_))}function D(e){return"string"==typeof e?function(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}(e):Math.ceil(1.33*(e.byteLength||e.size))}function T(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class N extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class M extends k{constructor(e){super(),this.writable=!1,I(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new N(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=y(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}(e);return t.length?"?"+t:""}}class L extends M{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const n=e.split(w),r=[];for(let e=0;e<n.length;e++){const o=y(n[e],t);if(r.push(o),"error"===o.type)break}return r})(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((e,i)=>{c(e,!1,e=>{r[i]=e,++o===n&&t(r.join(w))})})})(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=T()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let B=!1;try{B="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const F=B;function j(){}class z extends L{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class U extends k{constructor(e,t,n){super(),this.createRequest=e,I(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=void 0!==n.data?n.data:null,this._create()}_create(){var e;const t=P(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&n.setRequestHeader(e,this._opts.extraHeaders[e])}}catch(e){}if("POST"===this._method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var e;3===n.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(n.getResponseHeader("set-cookie"))),4===n.readyState&&(200===n.status||1223===n.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof n.status?n.status:0)},0))},n.send(this._data)}catch(e){return void this.setTimeoutFn(()=>{this._onError(e)},0)}"undefined"!=typeof document&&(this._index=U.requestsCount++,U.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=j,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete U.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(U.requestsCount=0,U.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",H);else if("function"==typeof addEventListener){addEventListener("onpagehide"in _?"pagehide":"unload",H,!1)}function H(){for(let e in U.requests)U.requests.hasOwnProperty(e)&&U.requests[e].abort()}const W=function(){const e=V({xdomain:!1});return e&&null!==e.responseType}();function V(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||F))return new XMLHttpRequest}catch(e){}if(!t)try{return new(_[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}const $="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class G extends M{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=$?{}:P(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;c(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch(e){}r&&O(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=T()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const q=_.WebSocket||_.MozWebSocket;const Q={websocket:class extends G{createSocket(e,t,n){return $?new q(e,t,n):t?new q(e,t):new q(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends M{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=function(e,t){E||(E=new TextDecoder);const n=[];let r=0,o=-1,i=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(0===r){if(x(n)<1)break;const e=C(n,1);i=!(128&~e[0]),o=127&e[0],r=o<126?3:126===o?1:2}else if(1===r){if(x(n)<2)break;const e=C(n,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(2===r){if(x(n)<8)break;const e=C(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>Math.pow(2,21)-1){l.enqueue(a);break}o=i*Math.pow(2,32)+t.getUint32(4),r=3}else{if(x(n)<o)break;const e=C(n,o);l.enqueue(y(i?e:E.decode(e),t)),r=0}if(0===o||o>e){l.enqueue(a);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=S();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const o=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&O(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends z{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=W&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new U(V,this.uri(),e)}}},K=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Y=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function X(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");-1!=n&&-1!=r&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=K.exec(e||""),i={},a=14;for(;a--;)i[Y[a]]=o[a]||"";return-1!=n&&-1!=r&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=function(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||r.splice(0,1);"/"==t.slice(-1)&&r.splice(r.length-1,1);return r}(0,i.path),i.queryKey=function(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}(0,i.query),i}const J="function"==typeof addEventListener&&"function"==typeof removeEventListener,Z=[];J&&addEventListener("offline",()=>{Z.forEach(e=>e())},!1);class ee extends k{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){const n=X(e);t.hostname=n.host,t.secure="https"===n.protocol||"wss"===n.protocol,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=X(t.host).host);I(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{const t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},n=e.split("&");for(let e=0,r=n.length;e<r;e++){let r=n[e].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}(this.opts.query)),J&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Z.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);const e=this.opts.rememberUpgrade&&ee.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",ee.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){const n=this.writeBuffer[t].data;if(n&&(e+=D(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,O(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(ee.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),J&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const e=Z.indexOf(this._offlineEventListener);-1!==e&&Z.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}ee.protocol=4;class te extends ee{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;ee.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!n)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;ee.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}))};function o(){n||(n=!0,u(),t.close(),t=null)}const i=e=>{const n=new Error("probe error: "+e);n.transport=t.name,o(),this.emitReserved("upgradeError",n)};function a(){i("transport closed")}function s(){i("socket closed")}function l(e){t&&e.name!==t.name&&o()}const u=()=>{t.removeListener("open",r),t.removeListener("error",i),t.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};t.once("open",r),t.once("error",i),t.once("close",a),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}class ne extends te{constructor(e,t={}){const n="object"==typeof e?e:t;(!n.transports||n.transports&&"string"==typeof n.transports[0])&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(e=>Q[e]).filter(e=>!!e)),super(e,n)}}const re="function"==typeof ArrayBuffer,oe=Object.prototype.toString,ie="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===oe.call(Blob),ae="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===oe.call(File);function se(e){return re&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||ie&&e instanceof Blob||ae&&e instanceof File}function le(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(le(e[t]))return!0;return!1}if(se(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return le(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&le(e[t]))return!0;return!1}function ue(e){const t=[],n=e.data,r=e;return r.data=ce(n,t),r.attachments=t.length,{packet:r,buffers:t}}function ce(e,t){if(!e)return e;if(se(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=ce(e[r],t);return n}if("object"==typeof e&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=ce(e[r],t));return n}return e}function de(e,t){return e.data=fe(e.data,t),delete e.attachments,e}function fe(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=fe(e[n],t);else if("object"==typeof e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=fe(e[n],t));return e}const pe=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],he=5;var me;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(me||(me={}));class ge{constructor(e){this.replacer=e}encode(e){return e.type!==me.EVENT&&e.type!==me.ACK||!le(e)?[this.encodeAsString(e)]:this.encodeAsBinary({type:e.type===me.EVENT?me.BINARY_EVENT:me.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}encodeAsString(e){let t=""+e.type;return e.type!==me.BINARY_EVENT&&e.type!==me.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=ue(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function ye(e){return"[object Object]"===Object.prototype.toString.call(e)}class ve extends k{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===me.BINARY_EVENT;n||t.type===me.BINARY_ACK?(t.type=n?me.EVENT:me.ACK,this.reconstructor=new be(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else{if(!se(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===me[n.type])throw new Error("unknown packet type "+n.type);if(n.type===me.BINARY_EVENT||n.type===me.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const o=e.substring(r,t);if(o!=Number(o)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=this.tryParse(e.substr(t));if(!ve.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case me.CONNECT:return ye(t);case me.DISCONNECT:return void 0===t;case me.CONNECT_ERROR:return"string"==typeof t||ye(t);case me.EVENT:case me.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===pe.indexOf(t[0]));case me.ACK:case me.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class be{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=de(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function we(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Se=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ee extends k{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[we(e,"open",this.onopen.bind(this)),we(e,"packet",this.onpacket.bind(this)),we(e,"error",this.onerror.bind(this)),we(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,r,o;if(Se.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const i={type:me.EVENT,data:t,options:{}};if(i.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),i.id=e}const a=null===(r=null===(n=this.io.engine)||void 0===n?void 0:n.transport)||void 0===r?void 0:r.writable,s=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!a||(s?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var n;const r=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===r)return void(this.acks[e]=t);const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,new Error("operation has timed out"))},r),i=(...e)=>{this.io.clearTimeoutFn(o),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{const o=(e,t)=>e?r(e):n(t);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>{if(n!==this._queue[0])return;return null!==e?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...r)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:me.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){const t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case me.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case me.EVENT:case me.BINARY_EVENT:this.onevent(e);break;case me.ACK:case me.BINARY_ACK:this.onack(e);break;case me.DISCONNECT:this.ondisconnect();break;case me.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:me.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:me.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function xe(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}xe.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},xe.prototype.reset=function(){this.attempts=0},xe.prototype.setMin=function(e){this.ms=e},xe.prototype.setMax=function(e){this.max=e},xe.prototype.setJitter=function(e){this.jitter=e};class Ce extends k{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,I(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=t.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new xe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const o=t.parser||r;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ne(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=we(t,"open",function(){n.onopen(),e&&e()}),o=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},i=we(t,"error",o);if(!1!==this._timeout){const e=this._timeout,n=this.setTimeoutFn(()=>{r(),o(new Error("timeout")),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(we(e,"ping",this.onping.bind(this)),we(e,"data",this.ondata.bind(this)),we(e,"error",this.onerror.bind(this)),we(e,"close",this.onclose.bind(this)),we(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){O(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Ee(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),null===(n=this.engine)||void 0===n||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ke={};function Oe(e,t){"object"==typeof e&&(t=e,e=void 0);const n=function(e,t="",n){let r=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),r=X(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}(e,(t=t||{}).path||"/socket.io"),r=n.source,o=n.id,i=n.path,a=ke[o]&&i in ke[o].nsps;let s;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?s=new Ce(r,t):(ke[o]||(ke[o]=new Ce(r,t)),s=ke[o]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(Oe,{Manager:Ce,Socket:Ee,io:Oe,connect:Oe})},24740:(e,t,n)=>{const r=n(23361),o=n(1865).p,i=n(80700).p,a=n(42659).p,s=n(67667),l=n(8127).Base64,u=new s(l.toUint8Array(o)),c=new s(l.toUint8Array(i)),d=new s(l.toUint8Array(a));function f(e,t){return 0!==(e&t)}function p(e,t,n){const o=t.length;for(let i=n;i+1<o;i++){const o=t[i+0],a=t[i+1];switch(e.gb9c){case 0:f(o,r.InCB_Consonant)&&(e.gb9c=1);break;case 1:f(o,r.InCB_Extend)?e.gb9c=1:f(o,r.InCB_Linker)?e.gb9c=2:e.gb9c=f(o,r.InCB_Consonant)?1:0;break;case 2:f(o,r.InCB_Extend|r.InCB_Linker)?e.gb9c=2:e.gb9c=f(o,r.InCB_Consonant)?1:0}switch(e.gb11){case 0:f(o,r.Extended_Pictographic)&&(e.gb11=1);break;case 1:f(o,r.Extend)?e.gb11=1:f(o,r.ZWJ)?e.gb11=2:e.gb11=f(o,r.Extended_Pictographic)?1:0;break;case 2:e.gb11=f(o,r.Extended_Pictographic)?1:0}switch(e.gb12){case 0:f(o,r.Regional_Indicator)?e.gb12=1:e.gb12=-1;break;case 1:f(o,r.Regional_Indicator)?e.gb12=0:e.gb12=-1}switch(e.gb13){case 0:f(o,r.Regional_Indicator)||(e.gb13=1);break;case 1:f(o,r.Regional_Indicator)?e.gb13=2:e.gb13=1;break;case 2:e.gb13=1}if(!f(o,r.CR)||!f(a,r.LF)){if(f(o,r.Control|r.CR|r.LF))return i+1-n;if(f(a,r.Control|r.CR|r.LF))return i+1-n;if(!(f(o,r.L)&&f(a,r.L|r.V|r.LV|r.LVT)||f(o,r.LV|r.V)&&f(a,r.V|r.T)||f(o,r.LVT|r.T)&&f(a,r.T)||f(a,r.Extend|r.ZWJ)||f(a,r.SpacingMark)||f(o,r.Prepend)||f(a,r.InCB_Consonant)&&2===e.gb9c||f(a,r.Extended_Pictographic)&&2===e.gb11||f(a,r.Regional_Indicator)&&1===e.gb12||f(a,r.Regional_Indicator)&&2===e.gb13))return i+1-n}}return o-n}e.exports=function(e){const t=[],n=[0],r=[];for(let t=0;t<e.length;){const o=e.codePointAt(t);r.push(u.get(o)|c.get(o)|d.get(o)),t+=o>65535?2:1,n.push(t)}const o={gb9c:0,gb11:0,gb12:0,gb13:0};for(let i=0;i<r.length;){const a=p(o,r,i),s=n[i],l=n[i+a];t.push(e.slice(s,l)),i+=a}return t}},25508:(e,t,n)=>{"use strict";n.d(t,{Mz:()=>c});function r(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function i(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const n=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var a="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function s(){return{s:0,v:void 0,o:null,p:null}}function l(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:r}=t;let o,i=0;function l(){let t=n;const{length:l}=arguments;for(let e=0,n=l;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const r=e.get(n);void 0===r?(t=s(),e.set(n,t)):t=r}else{let e=t.p;null===e&&(t.p=e=new Map);const r=e.get(n);void 0===r?(t=s(),e.set(n,t)):t=r}}const u=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),i++,r){const e=o?.deref?.()??o;null!=e&&r(e,c)&&(c=e,0!==i&&i--);o="object"==typeof c&&null!==c||"function"==typeof c?new a(c):c}return u.s=1,u.v=c,c}return l.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function u(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,a=(...e)=>{let t,a=0,s=0,u={},c=e.pop();"object"==typeof c&&(u=c,c=e.pop()),r(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...n,...u},{memoize:f,memoizeOptions:p=[],argsMemoize:h=l,argsMemoizeOptions:m=[],devModeChecks:g={}}=d,y=o(p),v=o(m),b=i(e),w=f(function(){return a++,c.apply(null,arguments)},...y);const S=h(function(){s++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}(b,arguments);return t=w.apply(null,e),t},...v);return Object.assign(S,{resultFunc:c,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>t,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(a,{withTypes:()=>a}),a}var c=u(l),d=Object.assign((e,t=c)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>d})},25858:(e,t,n)=>{var r=n(20181);e.exports=function(e,t,n){var o,i,a=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i=typeof(o=n),!o||"object"!=i&&"function"!=i||(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},30269:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556)],void 0===(i="function"==typeof(r=function(e){var t=e.global;t.fetch&&t.Request&&t.Response&&t.Response.prototype.blob?e.fetchBlob=function(e,n,r){function o(e){return e.blob()}if(t.Promise&&"function"!=typeof n)return fetch(new Request(e,n)).then(o);fetch(new Request(e,r)).then(o).then(n).catch(function(e){n(null,e)})}:t.XMLHttpRequest&&""===(new XMLHttpRequest).responseType&&(e.fetchBlob=function(e,n,r){function o(t,n){r=r||{};var o=new XMLHttpRequest;o.open(r.method||"GET",e),r.headers&&Object.keys(r.headers).forEach(function(e){o.setRequestHeader(e,r.headers[e])}),o.withCredentials="include"===r.credentials,o.responseType="blob",o.onload=function(){t(o.response)},o.onerror=o.onabort=o.ontimeout=function(e){t===n?n(null,e):n(e)},o.send(r.body)}return t.Promise&&"function"!=typeof n?(r=n,new Promise(o)):o(n,n)})})?r.apply(t,o):r)||(e.exports=i)}()},34164:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},34743:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556),n(71832)],void 0===(i="function"==typeof(r=function(e){function t(e){e&&(Object.defineProperty(this,"map",{value:this.ifds[e].map}),Object.defineProperty(this,"tags",{value:this.tags&&this.tags[e]||{}}))}function n(t,n,r){if(r){if(!(n+r>t.byteLength))return new Blob([e.bufferSlice.call(t.buffer,n,n+r)],{type:"image/jpeg"});console.log("Invalid Exif data: Invalid thumbnail data.")}}t.prototype.map={Orientation:274,Thumbnail:"ifd1",Blob:513,Exif:34665,GPSInfo:34853,Interoperability:40965},t.prototype.ifds={ifd1:{name:"Thumbnail",map:t.prototype.map},34665:{name:"Exif",map:{}},34853:{name:"GPSInfo",map:{}},40965:{name:"Interoperability",map:{}}},t.prototype.get=function(e){return this[e]||this[this.map[e]]};var r={1:{getValue:function(e,t){return e.getUint8(t)},size:1},2:{getValue:function(e,t){return String.fromCharCode(e.getUint8(t))},size:1,ascii:!0},3:{getValue:function(e,t,n){return e.getUint16(t,n)},size:2},4:{getValue:function(e,t,n){return e.getUint32(t,n)},size:4},5:{getValue:function(e,t,n){return e.getUint32(t,n)/e.getUint32(t+4,n)},size:8},9:{getValue:function(e,t,n){return e.getInt32(t,n)},size:4},10:{getValue:function(e,t,n){return e.getInt32(t,n)/e.getInt32(t+4,n)},size:8}};function o(e,t,n,o,i,a){var s,l,u,c,d,f,p=r[o];if(p){if(!((l=(s=p.size*i)>4?t+e.getUint32(n+8,a):n+8)+s>e.byteLength)){if(1===i)return p.getValue(e,l,a);for(u=[],c=0;c<i;c+=1)u[c]=p.getValue(e,l+c*p.size,a);if(p.ascii){for(d="",c=0;c<u.length&&"\0"!==(f=u[c]);c+=1)d+=f;return d}return u}console.log("Invalid Exif data: Invalid data offset.")}else console.log("Invalid Exif data: Invalid tag type.")}function i(e,t,n){return(!e||e[n])&&(!t||!0!==t[n])}function a(e,t,n,r,a,s,l,u){var c,d,f,p,h,m;if(n+6>e.byteLength)console.log("Invalid Exif data: Invalid directory offset.");else{if(!((d=n+2+12*(c=e.getUint16(n,r)))+4>e.byteLength)){for(f=0;f<c;f+=1)p=n+2+12*f,i(l,u,h=e.getUint16(p,r))&&(m=o(e,t,p,e.getUint16(p+2,r),e.getUint32(p+4,r),r),a[h]=m,s&&(s[h]=p));return e.getUint32(d,r)}console.log("Invalid Exif data: Invalid directory size.")}}function s(e,n,r,o,i,s,l){var u=e.exif[n];u&&(e.exif[n]=new t(n),e.exifOffsets&&(e.exifOffsets[n]=new t(n)),a(r,o,o+u,i,e.exif[n],e.exifOffsets&&e.exifOffsets[n],s&&s[n],l&&l[n]))}r[7]=r[1],e.parseExifData=function(e,r,o,l,u){if(!u.disableExif){var c,d,f,p=u.includeExifTags,h=u.excludeExifTags||{34665:{37500:!0}},m=r+10;if(1165519206===e.getUint32(r+4))if(m+8>e.byteLength)console.log("Invalid Exif data: Invalid segment size.");else if(0===e.getUint16(r+8)){switch(e.getUint16(m)){case 18761:c=!0;break;case 19789:c=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}42===e.getUint16(m+2,c)?(d=e.getUint32(m+4,c),l.exif=new t,u.disableExifOffsets||(l.exifOffsets=new t,l.exifTiffOffset=m,l.exifLittleEndian=c),(d=a(e,m,m+d,c,l.exif,l.exifOffsets,p,h))&&i(p,h,"ifd1")&&(l.exif.ifd1=d,l.exifOffsets&&(l.exifOffsets.ifd1=m+d)),Object.keys(l.exif.ifds).forEach(function(t){s(l,t,e,m,c,p,h)}),(f=l.exif.ifd1)&&f[513]&&(f[513]=n(e,m+f[513],f[514]))):console.log("Invalid Exif data: Missing TIFF marker.")}else console.log("Invalid Exif data: Missing byte alignment offset.")}},e.metaDataParsers.jpeg[65505].push(e.parseExifData),e.exifWriters={274:function(e,t,n){var r=t.exifOffsets[274];return r?(new DataView(e,r+8,2).setUint16(0,n,t.exifLittleEndian),e):e}},e.writeExifData=function(t,n,r,o){return e.exifWriters[n.exif.map[r]](t,n,o)},e.ExifMap=t})?r.apply(t,o):r)||(e.exports=i)}()},35741:e=>{function t(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function n(e,n){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=n,this.destLen=0,this.ltree=new t,this.dtree=new t}var r=new t,o=new t,i=new Uint8Array(30),a=new Uint16Array(30),s=new Uint8Array(30),l=new Uint16Array(30),u=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=new t,d=new Uint8Array(320);function f(e,t,n,r){var o,i;for(o=0;o<n;++o)e[o]=0;for(o=0;o<30-n;++o)e[o+n]=o/n|0;for(i=r,o=0;o<30;++o)t[o]=i,i+=1<<e[o]}var p=new Uint16Array(16);function h(e,t,n,r){var o,i;for(o=0;o<16;++o)e.table[o]=0;for(o=0;o<r;++o)e.table[t[n+o]]++;for(e.table[0]=0,i=0,o=0;o<16;++o)p[o]=i,i+=e.table[o];for(o=0;o<r;++o)t[n+o]&&(e.trans[p[t[n+o]]++]=o)}function m(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}function g(e,t,n){if(!t)return n;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var r=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,r+n}function y(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=0,r=0,o=0,i=e.tag;do{r=2*r+(1&i),i>>>=1,++o,n+=t.table[o],r-=t.table[o]}while(r>=0);return e.tag=i,e.bitcount-=o,t.trans[n+r]}function v(e,t,n){var r,o,i,a,s,l;for(r=g(e,5,257),o=g(e,5,1),i=g(e,4,4),a=0;a<19;++a)d[a]=0;for(a=0;a<i;++a){var f=g(e,3,0);d[u[a]]=f}for(h(c,d,0,19),s=0;s<r+o;){var p=y(e,c);switch(p){case 16:var m=d[s-1];for(l=g(e,2,3);l;--l)d[s++]=m;break;case 17:for(l=g(e,3,3);l;--l)d[s++]=0;break;case 18:for(l=g(e,7,11);l;--l)d[s++]=0;break;default:d[s++]=p}}h(t,d,0,r),h(n,d,r,o)}function b(e,t,n){for(;;){var r,o,u,c,d=y(e,t);if(256===d)return 0;if(d<256)e.dest[e.destLen++]=d;else for(r=g(e,i[d-=257],a[d]),o=y(e,n),c=u=e.destLen-g(e,s[o],l[o]);c<u+r;++c)e.dest[e.destLen++]=e.dest[c]}}function w(e){for(var t,n;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return-3;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}!function(e,t){var n;for(n=0;n<7;++n)e.table[n]=0;for(e.table[7]=24,e.table[8]=152,e.table[9]=112,n=0;n<24;++n)e.trans[n]=256+n;for(n=0;n<144;++n)e.trans[24+n]=n;for(n=0;n<8;++n)e.trans[168+n]=280+n;for(n=0;n<112;++n)e.trans[176+n]=144+n;for(n=0;n<5;++n)t.table[n]=0;for(t.table[5]=32,n=0;n<32;++n)t.trans[n]=n}(r,o),f(i,a,4,3),f(s,l,2,1),i[28]=0,a[28]=258,e.exports=function(e,t){var i,a,s=new n(e,t);do{switch(i=m(s),g(s,2,0)){case 0:a=w(s);break;case 1:a=b(s,r,o);break;case 2:v(s,s.ltree,s.dtree),a=b(s,s.ltree,s.dtree);break;default:a=-3}if(0!==a)throw new Error("Data error")}while(!i);return s.destLen<s.dest.length?"function"==typeof s.dest.slice?s.dest.slice(0,s.destLen):s.dest.subarray(0,s.destLen):s.dest}},40400:(e,t,n)=>{"use strict";function r(e){if(e.constructor!==Array)throw new TypeError("Expected array.");if(16===e.length)return e;if(6===e.length){var t=o();return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}throw new RangeError("Expected array with either 6 or 16 values.")}function o(){for(var e=[],t=0;t<16;t++)t%5==0?e.push(1):e.push(0);return e}function i(e,t){for(var n=r(e),o=r(t),i=[],a=0;a<4;a++)for(var s=[n[a],n[a+4],n[a+8],n[a+12]],l=0;l<4;l++){var u=4*l,c=[o[u],o[u+1],o[u+2],o[u+3]],d=s[0]*c[0]+s[1]*c[1]+s[2]*c[2]+s[3]*c[3];i[a+u]=d}return i}n.d(t,{lf:()=>oe,ZI:()=>ee});var a=function(e){return"number"==typeof e},s=function(e){return"function"==typeof e},l=function(e){return"[object Object]"===Object.prototype.toString.call(e)},u=function(e){return Array.prototype.slice.apply(e)},c=function(e){var t=e.reduce(function(e,t){return e[t]=(e[t]||0)+1,e},{});return Object.keys(t).filter(function(e){return t[e]>1})};function d(e){return[].slice.call(arguments,1).forEach(function(t){if(t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}),e}var f,p=function(e,t,n){return e+(t-e)*n},h={__proto__:null,isNumber:a,isFunction:s,isObject:l,toArray:u,getDuplicateValsAsStrings:c,assign:d,tweenProp:p},m="data-flip-id",g="data-inverse-flip-id",y="data-portal-key",v="data-exit-container",b=m,w=g,S="data-flip-config",E=y,x={noWobble:{stiffness:200,damping:26},gentle:{stiffness:120,damping:14},veryGentle:{stiffness:130,damping:17},wobbly:{stiffness:180,damping:12},stiff:{stiffness:260,damping:26}},C=function(e){return l(e)?e:Object.keys(x).indexOf(e)>-1?x[e]:{}};"undefined"!=typeof window&&(f=window.requestAnimationFrame);var k=f=f||function(e){window.setTimeout(e,1e3/60)},O=Date.now(),_="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()-O};function P(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var A=function(){function e(){}return e.prototype.run=function(){var e=this;k(function(){e.springSystem.loop(_())})},e}(),R=function(){this.position=0,this.velocity=0},I=0,D=.001,T=function(){function e(e){this._id="s"+I++,this._springSystem=e,this.listeners=[],this._startValue=0,this._currentState=new R,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new R,this._restSpeedThreshold=.001,this._tempState=new R,this._timeAccumulator=0,this._wasAtRest=!0,this._cachedSpringConfig={}}var t=e.prototype;return t.getId=function(){return this._id},t.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.setSpringConfig=function(e){return this._springConfig=e,this},t.getCurrentValue=function(){return this._currentState.position},t.getDisplacementDistanceForState=function(e){return Math.abs(this._endValue-e.position)},t.setEndValue=function(e){if(e===this._endValue)return this;if(this.prevEndValue=e,this._endValue===e&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=e,this._springSystem.activateSpring(this.getId());for(var t=0,n=this.listeners.length;t<n;t++){var r=this.listeners[t].onSpringEndStateChange;r&&r(this)}return this},t.setVelocity=function(e){return e===this._currentState.velocity||(this._currentState.velocity=e,this._springSystem.activateSpring(this.getId())),this},t.setCurrentValue=function(e){this._startValue=e,this._currentState.position=e;for(var t=0,n=this.listeners.length;t<n;t++){var r=this.listeners[t];r.onSpringUpdate&&r.onSpringUpdate(this)}return this},t.setAtRest=function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},t.setOvershootClampingEnabled=function(e){return this._overshootClampingEnabled=e,this},t.isOvershooting=function(){var e=this._startValue,t=this._endValue;return this._springConfig.tension>0&&(e<t&&this.getCurrentValue()>t||e>t&&this.getCurrentValue()<t)},t.advance=function(e,t){var n=this.isAtRest();if(!n||!this._wasAtRest){var r=t;t>.064&&(r=.064),this._timeAccumulator+=r;for(var o,i,a,s,l,u,c=this._springConfig.tension,d=this._springConfig.friction,f=this._currentState.position,p=this._currentState.velocity,h=this._tempState.position,m=this._tempState.velocity;this._timeAccumulator>=D;)this._timeAccumulator-=D,this._timeAccumulator<D&&(this._previousState.position=f,this._previousState.velocity=p),i=c*(this._endValue-h)-d*p,s=c*(this._endValue-(h=f+(o=p)*D*.5))-d*(m=p+i*D*.5),u=c*(this._endValue-(h=f+(a=m)*D*.5))-d*(m=p+s*D*.5),h=f+(l=m)*D,f+=1/6*(o+2*(a+l)+(m=p+u*D))*D,p+=1/6*(i+2*(s+u)+(c*(this._endValue-h)-d*m))*D;this._tempState.position=h,this._tempState.velocity=m,this._currentState.position=f,this._currentState.velocity=p,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/D),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),n=!0);var g=!1;this._wasAtRest&&(this._wasAtRest=!1,g=!0);var y=!1;n&&(this._wasAtRest=!0,y=!0),this.notifyPositionUpdated(g,y)}},t.notifyPositionUpdated=function(e,t){var n=this;this.listeners.filter(Boolean).forEach(function(r){e&&r.onSpringActivate&&!n._onActivateCalled&&(r.onSpringActivate(n),n._onActivateCalled=!0),r.onSpringUpdate&&r.onSpringUpdate(n),t&&r.onSpringAtRest&&r.onSpringAtRest(n)})},t.systemShouldAdvance=function(){return!this.isAtRest()||!this.wasAtRest()},t.wasAtRest=function(){return this._wasAtRest},t.isAtRest=function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||0===this._springConfig.tension)},t._interpolate=function(e){this._currentState.position=this._currentState.position*e+this._previousState.position*(1-e),this._currentState.velocity=this._currentState.velocity*e+this._previousState.velocity*(1-e)},t.addListener=function(e){return this.listeners.push(e),this},t.addOneTimeListener=function(e){var t=this;return Object.keys(e).forEach(function(n){var r;e[n]=(r=e[n],function(){r.apply(void 0,[].slice.call(arguments)),t.removeListener(e)})}),this.listeners.push(e),this},t.removeListener=function(e){return P(this.listeners,e),this},e}(),N=function(){function e(e){this.looper=e||new A,this.looper.springSystem=this,this.listeners=[],this._activeSprings=[],this._idleSpringIndices=[],this._isIdle=!0,this._lastTimeMillis=-1,this._springRegistry={}}var t=e.prototype;return t.createSpring=function(e,t){return this.createSpringWithConfig({tension:e,friction:t})},t.createSpringWithConfig=function(e){var t=new T(this);return this.registerSpring(t),t.setSpringConfig(e),t},t.getIsIdle=function(){return this._isIdle},t.registerSpring=function(e){this._springRegistry[e.getId()]=e},t.deregisterSpring=function(e){P(this._activeSprings,e),delete this._springRegistry[e.getId()]},t.advance=function(e,t){for(var n=this;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(this._activeSprings.filter(Boolean).forEach(function(r){r.systemShouldAdvance()?r.advance(e/1e3,t/1e3):n._idleSpringIndices.push(n._activeSprings.indexOf(r))});this._idleSpringIndices.length>0;){var r=this._idleSpringIndices.pop();r>=0&&this._activeSprings.splice(r,1)}},t.loop=function(e){var t;-1===this._lastTimeMillis&&(this._lastTimeMillis=e-1);var n=e-this._lastTimeMillis;this._lastTimeMillis=e;var r=0,o=this.listeners.length;for(r=0;r<o;r++)(t=this.listeners[r]).onBeforeIntegrate&&t.onBeforeIntegrate(this);for(this.advance(e,n),0===this._activeSprings.length&&(this._isIdle=!0,this._lastTimeMillis=-1),r=0;r<o;r++)(t=this.listeners[r]).onAfterIntegrate&&t.onAfterIntegrate(this);this._isIdle||this.looper.run()},t.activateSpring=function(e){var t=this._springRegistry[e];-1===this._activeSprings.indexOf(t)&&this._activeSprings.push(t),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},e}(),M=new N,L=function(e){var t=e.springConfig,n=t.overshootClamping,r=e.getOnUpdateFunc,o=e.onAnimationEnd,i=e.onSpringActivate,a=M.createSpring(t.stiffness,t.damping);a.setOvershootClampingEnabled(!!n);var s={onSpringActivate:i,onSpringAtRest:function(){a.destroy(),o()},onSpringUpdate:r({spring:a,onAnimationEnd:o})};return a.addListener(s),a},B=function(e){var t=L(e);return t.setEndValue(1),t},F=function(e,t){if(void 0===t&&(t={}),e&&e.length){t.reverse&&e.reverse();var n,r="number"!=typeof(n=t.speed)?1.1:1+Math.min(Math.max(5*n,0),5),o=1/Math.max(Math.min(e.length,100),10),i=e.map(function(e,t){var n=e.getOnUpdateFunc;return e.getOnUpdateFunc=function(e){var a=n(e);return function(e){var n=e.getCurrentValue();(n=n<.01?0:n>.99?1:n)>=o&&i[t+1]&&i[t+1](Math.max(Math.min(n*r,1),0)),a(e)}},e}).map(function(e){var t=L(e);if(t)return t.setEndValue.bind(t)}).filter(Boolean);i[0]&&i[0](1)}},j=function(e){return[0,1,4,5,12,13].map(function(t){return e[t]})},z=function(e){return e.top<window.innerHeight&&e.bottom>0&&e.left<window.innerWidth&&e.right>0};function U(e){return JSON.parse(e.dataset.flipConfig||"{}")}var H=function(e,t){var n;return d(e,((n={})[t[0]]=t[1],n))},W=function(e,t){return u(t?document.querySelectorAll("["+y+'="'+t+'"]'):e.querySelectorAll("["+m+"]"))},V=function(e){return e.map(function(e){return[e,e.getBoundingClientRect()]})},$=!0,G=function(e){var t,n=e.cachedOrderedFlipIds,l=void 0===n?[]:n,f=e.inProgressAnimations,h=void 0===f?{}:f,v=e.flippedElementPositionsBeforeUpdate,b=void 0===v?{}:v,w=e.flipCallbacks,S=void 0===w?{}:w,E=e.containerEl,k=e.applyTransformOrigin,O=e.spring,_=e.debug,P=e.portalKey,A=e.staggerConfig,R=void 0===A?{}:A,I=e.decisionData,D=void 0===I?{}:I,T=e.handleEnterUpdateDelete,N=e.onComplete,M=e.onStart;if($&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches){var L,G=V(W((L={element:E,portalKey:P}).element,L.portalKey)).map(function(e){var t=e[0],n=e[1],r=window.getComputedStyle(t);return[t.dataset.flipId,{element:t,rect:n,opacity:parseFloat(r.opacity),transform:r.transform}]}).reduce(H,{}),q=function(e){var t=e.containerEl,n=e.portalKey;return n?function(e){return function(t){return u(document.querySelectorAll("["+y+'="'+e+'"]'+t))}}(n):t?function(e){var t=Math.random().toFixed(5);return e.dataset.flipperId=t,function(n){return u(e.querySelectorAll('[data-flipper-id="'+t+'"] '+n))}}(t):function(){return[]}}({containerEl:E,portalKey:P}),Q=(t=q,function(e){return t("["+m+'="'+e+'"]')[0]}),K=function(e){return b[e]&&G[e]},Y=Object.keys(b).concat(Object.keys(G)).filter(function(e){return!K(e)}),X={flipCallbacks:S,getElement:Q,flippedElementPositionsBeforeUpdate:b,flippedElementPositionsAfterUpdate:G,inProgressAnimations:h,decisionData:D},J=function(e){var t,n=e.unflippedIds,r=e.flipCallbacks,o=e.getElement,i=e.flippedElementPositionsBeforeUpdate,a=e.flippedElementPositionsAfterUpdate,s=e.inProgressAnimations,l=e.decisionData,u=n.filter(function(e){return a[e]}).filter(function(e){return r[e]&&r[e].onAppear}),c=n.filter(function(e){return i[e]&&r[e]&&r[e].onExit}),d=new Promise(function(e){t=e}),f=[],p=0,h=c.map(function(e,n){var o=i[e].domDataForExitAnimations,a=o.element,u=o.parent,c=o.childPosition,d=c.top,h=c.left,m=c.width,g=c.height;"static"===getComputedStyle(u).position&&(u.style.position="relative"),a.style.transform="matrix(1, 0, 0, 1, 0, 0)",a.style.position="absolute",a.style.top=d+"px",a.style.left=h+"px",a.style.height=g+"px",a.style.width=m+"px";var y=f.filter(function(e){return e[0]===u})[0];y||(y=[u,document.createDocumentFragment()],f.push(y)),y[1].appendChild(a),p+=1;var v=function(){try{u.removeChild(a)}catch(e){}finally{0==(p-=1)&&t()}};return s[e]={stop:v},function(){return r[e].onExit(a,n,v,l)}});return f.forEach(function(e){e[0].appendChild(e[1])}),h.length||t(),{hideEnteringElements:function(){u.forEach(function(e){var t=o(e);t&&(t.style.opacity="0")})},animateEnteringElements:function(){u.forEach(function(e,t){var n=o(e);n&&r[e].onAppear(n,t,l)})},animateExitingElements:function(){return h.forEach(function(e){return e()}),d}}}(d({},X,{unflippedIds:Y})),Z=J.hideEnteringElements,ee=J.animateEnteringElements,te=J.animateExitingElements,ne=d({},X,{containerEl:E,flippedIds:l.filter(K),applyTransformOrigin:k,spring:O,debug:_,staggerConfig:R,scopedSelector:q,onComplete:N});M&&M(E,D);var re=function(e){var t,n=e.flippedIds,l=e.flipCallbacks,f=e.inProgressAnimations,h=e.flippedElementPositionsBeforeUpdate,m=e.flippedElementPositionsAfterUpdate,y=e.applyTransformOrigin,v=e.spring,b=e.getElement,w=e.debug,S=e.staggerConfig,E=void 0===S?{}:S,k=e.decisionData,O=void 0===k?{}:k,_=e.onComplete,P=e.containerEl,A=new Promise(function(e){t=e});if(_&&A.then(function(){return _(P,O)}),!n.length)return function(){return t([]),A};var R=[],I=b(n[0]),D=I?I.ownerDocument.querySelector("body"):document.querySelector("body");c(n);var T=n.map(function(e){var n=h[e].rect,c=m[e].rect,b=h[e].opacity,w=m[e].opacity,S=c.width<1||c.height<1,E=m[e].element;if(!z(n)&&!z(c))return!1;if(!E)return!1;var k,_,P,A=U(E),I=(P=(_=void 0===(k={flipperSpring:v,flippedSpring:A.spring})?{}:k).flippedSpring,d({},x.noWobble,C(_.flipperSpring),C(P))),N=!0===A.stagger?"default":A.stagger,M={element:E,id:e,stagger:N,springConfig:I};if(l[e]&&l[e].shouldFlip&&!l[e].shouldFlip(O.previous,O.current))return!1;var L=Math.abs(n.left-c.left)+Math.abs(n.top-c.top),B=Math.abs(n.width-c.width)+Math.abs(n.height-c.height),F=Math.abs(w-b);if(0===n.height&&0===c.height||0===n.width&&0===c.width||L<.5&&B<.5&&F<.01)return!1;var H,W,V=function(e){if("string"==typeof e){var t=e.match(/matrix(3d)?\(([^)]+)\)/);if(t)return r(t[2].split(", ").map(parseFloat))}return o()}(m[e].transform),$={matrix:V},G={matrix:[]},q=[V];A.translate&&(q.push((H=n.left-c.left,(W=o())[12]=H,W)),q.push(function(e){var t=o();return t[13]=e,t}(n.top-c.top))),A.scale&&(q.push(function(e){var t=o();return t[0]=e,t}(Math.max(n.width,1)/Math.max(c.width,1))),q.push(function(e){var t=o();return t[5]=e,t}(Math.max(n.height,1)/Math.max(c.height,1)))),A.opacity&&(G.opacity=b,$.opacity=w);var Q=[];if(!l[e]||!l[e].shouldInvert||l[e].shouldInvert(O.previous,O.current)){var K=function(e,t){return u(e.querySelectorAll("["+g+'="'+t+'"]'))}(E,e);Q=K.map(function(e){return[e,U(e)]})}G.matrix=j(q.reduce(i)),$.matrix=j($.matrix);var Y,X=function(e){var t=e.element,n=e.invertedChildren,r=e.body;return function(e){var o=e.matrix,i=e.opacity,s=e.forceMinVals;if(a(i)&&(t.style.opacity=i+""),s&&(t.style.minHeight="1px",t.style.minWidth="1px"),o){var l=function(e){return"matrix("+e.join(", ")+")"}(o);t.style.transform=l,n&&function(e){var t=e.matrix,n=e.body;e.invertedChildren.forEach(function(e){var r=e[0],o=e[1];if(n.contains(r)){var i=t[0],a=t[3],s=t[5],l={translateX:0,translateY:0,scaleX:1,scaleY:1},u="";o.translate&&(l.translateX=-t[4]/i,l.translateY=-s/a,u+="translate("+l.translateX+"px, "+l.translateY+"px)"),o.scale&&(l.scaleX=1/i,l.scaleY=1/a,u+=" scale("+l.scaleX+", "+l.scaleY+")"),r.style.transform=u}})}({invertedChildren:n,matrix:o,body:r})}}}({element:E,invertedChildren:Q,body:D});if(l[e]&&l[e].onComplete){var J=l[e].onComplete;Y=function(){return J(E,O)}}var Z=a(G.opacity)&&a($.opacity)&&G.opacity!==$.opacity,ee=!1;return d({},M,{stagger:N,springConfig:I,getOnUpdateFunc:function(t){var n=t.spring,r=t.onAnimationEnd;return f[e]={destroy:n.destroy.bind(n),onAnimationEnd:r},function(t){l[e]&&l[e].onSpringUpdate&&l[e].onSpringUpdate(t.getCurrentValue()),ee||(ee=!0,l[e]&&l[e].onStart&&l[e].onStart(E,O));var n=t.getCurrentValue();if(D.contains(E)){var r={matrix:[]};r.matrix=G.matrix.map(function(e,t){return p(e,$.matrix[t],n)}),Z&&(r.opacity=p(G.opacity,$.opacity,n)),X(r)}else t.destroy()}},initializeFlip:function(){X({matrix:G.matrix,opacity:Z?G.opacity:void 0,forceMinVals:S}),l[e]&&l[e].onStartImmediate&&l[e].onStartImmediate(E,O),A.transformOrigin?E.style.transformOrigin=A.transformOrigin:y&&(E.style.transformOrigin="0 0"),Q.forEach(function(e){var t=e[0],n=e[1];n.transformOrigin?t.style.transformOrigin=n.transformOrigin:y&&(t.style.transformOrigin="0 0")})},onAnimationEnd:function(n){delete f[e],s(Y)&&Y(),E.style.transform="",Q.forEach(function(e){e[0].style.transform=""}),S&&E&&(E.style.minHeight="",E.style.minWidth=""),n||(R.push(e),R.length>=T.length&&t(R))},delayUntil:A.delayUntil})}).filter(Boolean);if(T.forEach(function(e){return(0,e.initializeFlip)()}),w)return function(){};var N=T.filter(function(e){return e.delayUntil&&(t=e.delayUntil,T.filter(function(e){return e.id===t}).length);var t}),M={},L={},H={};N.forEach(function(e){e.stagger?(H[e.stagger]=!0,L[e.delayUntil]?L[e.delayUntil].push(e.stagger):L[e.delayUntil]=[e.stagger]):M[e.delayUntil]?M[e.delayUntil].push(e):M[e.delayUntil]=[e]});var W=T.filter(function(e){return e.stagger}).reduce(function(e,t){return e[t.stagger]?e[t.stagger].push(t):e[t.stagger]=[t],e},{}),V=T.filter(function(e){return-1===N.indexOf(e)});return V.forEach(function(e){e.onSpringActivate=function(){M[e.id]&&M[e.id].forEach(B),L[e.id]&&Object.keys(L[e.id].reduce(function(e,t){var n;return d(e,((n={})[t]=!0,n))},{})).forEach(function(e){F(W[e],E[e])})}}),function(){return T.length||t([]),V.filter(function(e){return!e.stagger}).forEach(B),Object.keys(W).forEach(function(e){H[e]||F(W[e],E[e])}),A}}(ne);T?T({hideEnteringElements:Z,animateEnteringElements:ee,animateExitingElements:te,animateFlippedElements:re}):(Z(),te().then(ee),re())}},q=function(e){var t=e.element,n=e.flipCallbacks,r=void 0===n?{}:n,o=e.inProgressAnimations,i=void 0===o?{}:o,a=W(t,e.portalKey),s=u(t.querySelectorAll("["+g+"]")),l={},c=[],f={};a.filter(function(e){return r&&r[e.dataset.flipId]&&r[e.dataset.flipId].onExit}).forEach(function(e){var t=e.parentNode;if(e.closest){var n=e.closest("["+v+"]");n&&(t=n)}var r=c.findIndex(function(e){return e[0]===t});-1===r&&(c.push([t,t.getBoundingClientRect()]),r=c.length-1),l[e.dataset.flipId]=c[r][1],f[e.dataset.flipId]=t});var p=V(a),h=p.map(function(e){var t=e[0],n=e[1],o={};if(r&&r[t.dataset.flipId]&&r[t.dataset.flipId].onExit){var i=l[t.dataset.flipId];d(o,{element:t,parent:f[t.dataset.flipId],childPosition:{top:n.top-i.top,left:n.left-i.left,width:n.width,height:n.height}})}return[t.dataset.flipId,{rect:n,opacity:parseFloat(window.getComputedStyle(t).opacity||"1"),domDataForExitAnimations:o}]}).reduce(H,{});return function(e,t){Object.keys(e).forEach(function(t){e[t].destroy&&e[t].destroy(),e[t].onAnimationEnd&&e[t].onAnimationEnd(!0),delete e[t]}),t.forEach(function(e){e.style.transform="",e.style.opacity=""})}(i,a.concat(s)),{flippedElementPositions:h,cachedOrderedFlipIds:p.map(function(e){return e[0].dataset.flipId})}},Q=(new N,n(96540));function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}function X(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var J=(0,Q.createContext)({}),Z=(0,Q.createContext)("portal"),ee=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).inProgressAnimations={},t.flipCallbacks={},t.el=void 0,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Y(t,n);var o=r.prototype;return o.getSnapshotBeforeUpdate=function(e){return e.flipKey!==this.props.flipKey&&this.el?q({element:this.el,flipCallbacks:this.flipCallbacks,inProgressAnimations:this.inProgressAnimations,portalKey:this.props.portalKey}):null},o.componentDidUpdate=function(e,t,n){this.props.flipKey!==e.flipKey&&this.el&&G({flippedElementPositionsBeforeUpdate:n.flippedElementPositions,cachedOrderedFlipIds:n.cachedOrderedFlipIds,containerEl:this.el,inProgressAnimations:this.inProgressAnimations,flipCallbacks:this.flipCallbacks,applyTransformOrigin:this.props.applyTransformOrigin,spring:this.props.spring,debug:this.props.debug,portalKey:this.props.portalKey,staggerConfig:this.props.staggerConfig,handleEnterUpdateDelete:this.props.handleEnterUpdateDelete,decisionData:{previous:e.decisionData,current:this.props.decisionData},onComplete:this.props.onComplete,onStart:this.props.onStart})},o.render=function(){var e=this,t=this.props,n=t.portalKey,r=Q.createElement(J.Provider,{value:this.flipCallbacks},Q.createElement(t.element,{className:t.className,ref:function(t){return e.el=t}},this.props.children));return n&&(r=Q.createElement(Z.Provider,{value:n},r)),r},r}(Q.Component);ee.defaultProps={applyTransformOrigin:!0,element:"div"};var te=["children","flipId","inverseFlipId","portalKey"],ne=["children","flipId","shouldFlip","shouldInvert","onAppear","onStart","onStartImmediate","onComplete","onExit","onSpringUpdate"],re=function(e){var t,n=e.children,r=e.flipId,o=e.inverseFlipId,i=e.portalKey,a=X(e,te),s=n,l=function(e){return"function"==typeof e}(s);if(!l)try{s=Q.Children.only(n)}catch(e){throw new Error("Each Flipped component must wrap a single child")}a.scale||a.translate||a.opacity||h.assign(a,{translate:!0,scale:!0,opacity:!0});var u=((t={})[S]=JSON.stringify(a),t);return void 0!==r?u[b]=String(r):o&&(u[w]=String(o)),void 0!==i&&(u[E]=i),l?s(u):(0,Q.cloneElement)(s,u)},oe=function(e){var t=e.children,n=e.flipId,r=e.shouldFlip,o=e.shouldInvert,i=e.onAppear,a=e.onStart,s=e.onStartImmediate,l=e.onComplete,u=e.onExit,c=e.onSpringUpdate,d=X(e,ne);return t?d.inverseFlipId?Q.createElement(re,K({},d),t):Q.createElement(Z.Consumer,null,function(e){return Q.createElement(J.Consumer,null,function(f){return h.isObject(f)&&n&&(f[n]={shouldFlip:r,shouldInvert:o,onAppear:i,onStart:a,onStartImmediate:s,onComplete:l,onExit:u,onSpringUpdate:c}),Q.createElement(re,K({flipId:n},d,{portalKey:e}),t)})}):null};oe.displayName="Flipped"},40936:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(96540);function o(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function i(e){void 0===e&&(e={});var t=e.onResize,n=(0,r.useRef)(void 0);n.current=t;var i=e.round||Math.round,a=(0,r.useRef)(),s=(0,r.useState)({width:void 0,height:void 0}),l=s[0],u=s[1],c=(0,r.useRef)(!1);(0,r.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]);var d=(0,r.useRef)({width:void 0,height:void 0}),f=function(e,t){var n=(0,r.useRef)(null),o=(0,r.useRef)(null);o.current=t;var i=(0,r.useRef)(null);(0,r.useEffect)(function(){a()});var a=(0,r.useCallback)(function(){var t=i.current,r=o.current,a=t||(r?r instanceof Element?r:r.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})},[e]);return(0,r.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,r.useCallback)(function(e){i.current=e,a()},[a])}((0,r.useCallback)(function(t){return a.current&&a.current.box===e.box&&a.current.round===i||(a.current={box:e.box,round:i,instance:new ResizeObserver(function(t){var r=t[0],a="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",s=o(r,a,"inlineSize"),l=o(r,a,"blockSize"),f=s?i(s):void 0,p=l?i(l):void 0;if(d.current.width!==f||d.current.height!==p){var h={width:f,height:p};d.current.width=f,d.current.height=p,n.current?n.current(h):c.current||u(h)}})}),a.current.instance.observe(t,{box:e.box}),function(){a.current&&a.current.instance.unobserve(t)}},[e.box,i]),e.ref);return(0,r.useMemo)(function(){return{ref:f,width:l.width,height:l.height}},[f,l.width,l.height])}},40961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},42659:e=>{"use strict";e.exports=JSON.parse('{"p":"AAgOAAAAAABQfgAAAWMGnPntmm2IVUUYx+dyb2ezXXtBiSCLsKDIiKIIoYINciGwQHrRL2Ufii0qMsv7QVBuQkXhkmW5gksQRhRFSBslbkllHyy3L2XllkXrB3uhF0tQ0Kj+xzN3d3buzJx5PeesOw/8mDNvz/PMnOc8s/fs6asTcgu4A9wF+mjdV9kEa8FqsE5j/DPgeUX/JvASeBW8Bd4GO8CHYDcz7nPwFRgD4+An8Cf4AxwBx0G9QcjrYBt4p5HN/YDqGEF9F7gW3AC6wU1gCVgK5oDlYA8YBXvBGOgHD4FzwSo6fg24EDwBxsEB8Cu1N4ByI1gA/gbfo+0wyuO0vgW8DK5i+tN5tVOyMmUWrs9k6nNxPY/WL0B5Mb2+HOU14HrwY2Ny/CLUbwa3gzsZPT7ZGECnDvdiPQ+ARyhpWxPlWnr9JLfeAdS/43S8qNiTIdq3FeUb9HolOEj7h9H2LtgJPgHr0TZKx31Jy30C/T+g7aDCbpPiuj/fStrTNfQGioWIHr9z+z8iiAEfdg4zdo7Gex6JRCKRSCQSiUQikYrzL367HmLq8zV+yyYJIbOTzva5aJtH2y9CuYBebwdX4PoYyv107ELUe5PsPWBavzHJ3tMtFuhluTWnPxKJRCKRSCQy/TjQCKt/XX3y/+o6HPJs35XNszPO0WQf+FnQfsnpU+vLUN8MdgNyRtZ2Ncp7wBDYDn4D47MIOes0QpaADeDUWsYe5pql3k3IZd3iPp4H6bjnUI6Cf8B1PYQ0wWCPno5IJBKJnJx83eN2fi7NeYd0jKsvr+A7p3749KzkXd2Ap+9R7qfrflhz/ava45m2I7Rcw+lI3/WtAO+Bx5PsG6+nk+xbv7Q/fWe4gc7ZRPu3oNzK6Hktmfy2r036vc82On44yb4ZHKFzPkL5aZJ9f9hH7Y8y+nbheq9irWOpf0z/L8nUWPmL6TuK6/8Uuhpd6r3sRv8cbszZXZm981HOB5fS/itzdIlYyMzpTa85HYtRv422LTPQ/yjd+/SZudvCr1DcV5Iv6W+HFRXaB988Rte2ugJrHKTPW4vx5akK+MWzvoI++Sb9zvKFriy/m8wbwpxXQL/gDNs5Tb+zTPfiza6sHEa5A3w8jWLgM/j6BePvoOBcM33+v6Hj9zvuQ978lR5ihl/bedM0DvN4vwI+NOvy7/SbCkze51WVRfXaCaJEmdlSm+H4lKLsVE3Kvoe2950tZdcnu5T1rISQKuaHovZNZw26/aKxvn0tS6oUG1WWmbAPvtbGjzPU2WvgV4uoEc7PkQ77MhHoYu1K7YvOVhv7uuJ7/QpdLcKtX2ZPthc1A/tEcK/zbAW+/0rbnqRVAlPuk0gC5b5cv1Q+BbIp8kGnX2VjQmT7bLm/Hfp1RfZ3kAdpGZI3h2iMnZCC47ftj+351WJ06PTLxk6I7OxxWH8rd4RCRHHuKC1DbOaIdJyQAn4vuPpqS8d5HVJUfy+p2lXjihIbuya/L2wowkae3TJEZFfmjywnBshRSl9s9Je1v7z9kL7bPE9Fi+xMlf09Z3Ne2KxNFu8qf2x02ojMD9McrpOLivTX9j6F9l/HfmgbotKnfp9nJCHqffFho0hcxWRNhHTarUI8h94PGx28Pp2xrrZ8SehcFToPhvabvbZ5JkXx4etZd4lZfn0+pIz8oMoRunpsbPgUUZ4NaYu1qcr9vC+2MWsa8yHOPlOxfU7L9Fnkg0t+0dGdZ9O38PGr6nPxwzRWXUX0/JmSN09kU+WPyD8f4jM+ioo7lW1femzuv0iXqi5r8yGq/fBts+gca/M8+orLvOc0RJ7P88c0J/m2L/OFbzfVa5LrXc4WH2NsbJrulcsafa+T99lFVwgpwr7JMy47U3T0FiFF56uQuss4j3gfbOb68sUlB6vOjaLPtrbdkLp9nZmqffcpqnurk4NU+oq8rzIx2Xddv8tel+peydar+htBpIufH0J4O2XFCCu2z0GZayjyDMzLS6Z+yGK1Sjmk7RNbtq91zrXQfumeOb58MdGTtxdlngmyc09nTlmxqfMcmvij67OJXV3R3dOQsZznh6qfkOL80M3BuvtW1B7yY2R+FLG/MsnzVXd+aF9VuUk1xzWudPwy1edzz1x8t9UfyndbHTY2yxTdHOCa92zj3CR+Te6fjzX5Ftf9M/E1VC4yzVehROa77/h09cmXb6Zxm2c3pPjSH9bn/wE="}')},44063:(e,t,n)=>{"use strict";t.bO=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.Ay=function(){var e=arguments.length<=0||void 0===arguments[0]?300:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n={};return function(i){return function(i){return function(a){if(a.type===l)return c(n,a,"cancel"),i(a);if(a.type===u)return c(n,a,"flush"),i(a);var d=(a.meta||{}).throttle;if(!d)return i(a);if(n[a.type])return n[a.type](a);var f=e,p=t;return isNaN(d)||!0===d?"object"===(void 0===d?"undefined":o(d))&&(f=d.wait||e,p=r({},t,d)):f=d,n[a.type]=(0,s.default)(i,f,p),n[a.type](a)}}}};var i,a=n(25858),s=(i=a)&&i.__esModule?i:{default:i};var l=t.bO="redux-throttle/CANCEL",u="redux-throttle/FLUSH";function c(e,t,n){if(t.payload&&t.payload.type){var r=(i=t.payload.type,Array.isArray(i)||(i=[i]),Object.keys(e).filter(function(e){return i.includes(e)}).forEach(function(t){return e[t][n]()}),{v:void 0});if("object"===(void 0===r?"undefined":o(r)))return r.v}var i;Object.keys(e).forEach(function(t){return e[t][n]()})}},45041:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],o=(()=>{if("undefined"==typeof document)return!1;const e=r[0],t={};for(const n of r){const r=n?.[1];if(r in document){for(const[r,o]of n.entries())t[e[r]]=o;return t}}return!1})(),i={change:o.fullscreenchange,error:o.fullscreenerror};let a={request:(e=document.documentElement,t)=>new Promise((n,r)=>{const i=()=>{a.off("change",i),n()};a.on("change",i);const s=e[o.requestFullscreen](t);s instanceof Promise&&s.then(i).catch(r)}),exit:()=>new Promise((e,t)=>{if(!a.isFullscreen)return void e();const n=()=>{a.off("change",n),e()};a.on("change",n);const r=document[o.exitFullscreen]();r instanceof Promise&&r.then(n).catch(t)}),toggle:(e,t)=>a.isFullscreen?a.exit():a.request(e,t),onchange(e){a.on("change",e)},onerror(e){a.on("error",e)},on(e,t){const n=i[e];n&&document.addEventListener(n,t,!1)},off(e,t){const n=i[e];n&&document.removeEventListener(n,t,!1)},raw:o};Object.defineProperties(a,{isFullscreen:{get:()=>Boolean(document[o.fullscreenElement])},element:{enumerable:!0,get:()=>document[o.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[o.fullscreenEnabled])}}),o||(a={isEnabled:!1});const s=a},46942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},49079:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556),n(62835),n(71832)],void 0===(i="function"==typeof(r=function(e){var t=e.transform,n=e.requiresCanvas,r=e.requiresMetaData,o=e.transformCoordinates,i=e.getTransformedOptions;function a(t,n){var r=t&&t.orientation;return!0===r&&!e.orientation||1===r&&e.orientation||(!n||e.orientation)&&r>1&&r<9}function s(e,t){return e!==t&&(1===e&&t>1&&t<9||e>1&&e<9)}function l(e,t){if(t>1&&t<9)switch(e){case 2:case 4:return t>4;case 5:case 7:return t%2==0;case 6:case 8:return 2===t||4===t||5===t||7===t}return!1}(function(e){if(e.global.document){var t="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=",n=document.createElement("img");n.onload=function(){if(e.orientation=2===n.width&&3===n.height,e.orientation){var t=e.createCanvas(1,1,!0).getContext("2d");t.drawImage(n,1,1,1,1,0,0,1,1),e.orientationCropBug="255,255,255,255"!==t.getImageData(0,0,1,1).data.toString()}},n.src=t}})(e),e.requiresCanvas=function(t){return a(t)||n.call(e,t)},e.requiresMetaData=function(t){return a(t,!0)||r.call(e,t)},e.transform=function(n,r,o,i,a){t.call(e,n,r,function(t,n){if(n){var r=e.orientation&&n.exif&&n.exif.get("Orientation");if(r>4&&r<9){var i=n.originalWidth,a=n.originalHeight;n.originalWidth=a,n.originalHeight=i}}o(t,n)},i,a)},e.getTransformedOptions=function(t,n,r){var o=i.call(e,t,n),a=r.exif&&r.exif.get("Orientation"),u=o.orientation,c=e.orientation&&a;if(!0===u&&(u=a),!s(u,c))return o;var d=o.top,f=o.right,p=o.bottom,h=o.left,m={};for(var g in o)Object.prototype.hasOwnProperty.call(o,g)&&(m[g]=o[g]);if(m.orientation=u,(u>4&&!(c>4)||u<5&&c>4)&&(m.maxWidth=o.maxHeight,m.maxHeight=o.maxWidth,m.minWidth=o.minHeight,m.minHeight=o.minWidth,m.sourceWidth=o.sourceHeight,m.sourceHeight=o.sourceWidth),c>1){switch(c){case 2:f=o.left,h=o.right;break;case 3:d=o.bottom,f=o.left,p=o.top,h=o.right;break;case 4:d=o.bottom,p=o.top;break;case 5:d=o.left,f=o.bottom,p=o.right,h=o.top;break;case 6:d=o.left,f=o.top,p=o.right,h=o.bottom;break;case 7:d=o.right,f=o.top,p=o.left,h=o.bottom;break;case 8:d=o.right,f=o.bottom,p=o.left,h=o.top}if(l(u,c)){var y=d,v=f;d=p,f=h,p=y,h=v}}switch(m.top=d,m.right=f,m.bottom=p,m.left=h,u){case 2:m.right=h,m.left=f;break;case 3:m.top=p,m.right=h,m.bottom=d,m.left=f;break;case 4:m.top=p,m.bottom=d;break;case 5:m.top=h,m.right=p,m.bottom=f,m.left=d;break;case 6:m.top=f,m.right=p,m.bottom=h,m.left=d;break;case 7:m.top=f,m.right=d,m.bottom=h,m.left=p;break;case 8:m.top=h,m.right=d,m.bottom=f,m.left=p}return m},e.transformCoordinates=function(t,n,r){o.call(e,t,n,r);var i=n.orientation,a=e.orientation&&r.exif&&r.exif.get("Orientation");if(s(i,a)){var u=t.getContext("2d"),c=t.width,d=t.height,f=c,p=d;switch((i>4&&!(a>4)||i<5&&a>4)&&(t.width=d,t.height=c),i>4&&(f=d,p=c),a){case 2:u.translate(f,0),u.scale(-1,1);break;case 3:u.translate(f,p),u.rotate(Math.PI);break;case 4:u.translate(0,p),u.scale(1,-1);break;case 5:u.rotate(-.5*Math.PI),u.scale(-1,1);break;case 6:u.rotate(-.5*Math.PI),u.translate(-f,0);break;case 7:u.rotate(-.5*Math.PI),u.translate(-f,p),u.scale(1,-1);break;case 8:u.rotate(.5*Math.PI),u.translate(0,-p)}switch(l(i,a)&&(u.translate(f,p),u.rotate(Math.PI)),i){case 2:u.translate(c,0),u.scale(-1,1);break;case 3:u.translate(c,d),u.rotate(Math.PI);break;case 4:u.translate(0,d),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-d);break;case 7:u.rotate(.5*Math.PI),u.translate(c,-d),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-c,0)}}}})?r.apply(t,o):r)||(e.exports=i)}()},54638:(e,t,n)=>{"use strict";n.d(t,{W5:()=>T});var r=n(24740);const o=/^\s+$/,i=/^[`~!@#$%^&*()\-=_+{}[\]\|\\;':",./<>?]+$/,a="insertOrder",s="bestMatch",l={keySelector:e=>e,threshold:.6,ignoreCase:!0,ignoreSymbols:!0,normalizeWhitespace:!0,returnMatchData:!1,useDamerau:!0,useSellers:!0,useSeparatedUnicode:!1,sortBy:s},u=()=>{},c=e=>e instanceof Array?e:[e];function d(e,t){const n=t.ignoreCase?e.toLocaleLowerCase():e,a=[],s=[];let l=!0,u=0;const c=t.useSeparatedUnicode?n.normalize("NFKD").split(""):r(n);for(const e of c)o.lastIndex=0,i.lastIndex=0,t.normalizeWhitespace&&o.test(e)?l||(a.push(" "),s.push(u),l=!0):t.ignoreSymbols&&i.test(e)||(t.useSeparatedUnicode?a.push(e):a.push(e.normalize()),s.push(u),l=!1),u+=e.length;for(s.push(e.length);" "===a[a.length-1];)a.pop(),s.pop();return{original:e,normal:a,map:s}}function f(e,t){return{index:t[e.start],length:t[e.end+1]-t[e.start]}}function p(e,t){if(0===t)return{index:0,length:0};let n=t;for(let t=e.length-2;t>0&&n>1;t--){const r=e[t];n=r[n]<r[n-1]?n:n-1}return{start:n-1,end:t-1}}function h(){return{start:0,end:0}}const m=()=>!0,g=(e,t)=>e<t;function y(e,t){const n=new Array(e);for(let r=0;r<e;r++)n[r]=new Array(t),n[r][0]=r;for(let e=0;e<t;e++)n[0][e]=e;return n}function v(e,t){const n=new Array(e);n[0]=new Array(t).fill(0);for(let r=1;r<e;r++)n[r]=new Array(t),n[r][0]=r;return n}function b(e,t,n,r,o){const i=n[r],a=n[r+1],s=e[r]===t[o]?0:1;let l,u=a[o]+1;(l=i[o+1]+1)<u&&(u=l),(l=i[o]+s)<u&&(u=l),a[o+1]=u}function w(e,t,n,r){for(let o=0;o<e.length;o++)b(e,t,n,o,r)}function S(e,t,n,r){if(0!==r){e.length>0&&b(e,t,n,0,r);for(let o=1;o<e.length;o++){const i=n[o-1],a=n[o],s=n[o+1],l=e[o]===t[r]?0:1;let u,c=s[r]+1;(u=a[r+1]+1)<c&&(c=u),(u=a[r]+l)<c&&(c=u),e[o]===t[r-1]&&e[o-1]===t[r]&&(u=i[r-1]+l)<c&&(c=u),s[r+1]=c}}else w(e,t,n,r)}function E(e,t,n){let r=e;for(let e=0;e<t.length;e++){const n=t[e];null==r.children[n]&&(r.children[n]={children:{},candidates:[],depth:0}),r.depth=Math.max(r.depth,t.length-e),r=r.children[n]}r.candidates.push(n)}function x(e,t,n,r){for(const o of n){const n=c(r.keySelector(o)).map((e,n)=>({index:t,keyIndex:n,item:o,normalized:d(e,r)}));t++;for(const t of n)E(e,t.normalized.normal,t)}}function C(e,t){const n=t.score-e.score;if(0!==n)return n;const r=e.match.start-t.match.start;if(0!==r)return r;const o=e.keyIndex-t.keyIndex;if(0!==o)return o;const i=e.lengthDiff-t.lengthDiff;return 0!==i?i:k(e,t)}function k(e,t){return e.index-t.index}function O(e){switch(e){case s:return C;case a:return k;default:throw new Error(`unknown sortBy method ${e}`)}}function _(e,t,n,r,o,i,a){const s={item:n.item,normalized:n.normalized,score:r,match:o,index:n.index,keyIndex:n.keyIndex,lengthDiff:i};null==t[n.index]?(t[n.index]=e.length,e.push(s)):a(s,e[t[n.index]])<0&&(e[t[n.index]]=s)}const P=Math.max,A=e=>e;function R(e,t,n,r,o){const i=t+o,a=Math.min(n.length,t+e.depth+1),s=Math.ceil((i+a)/2);return 1-(s-a)/s>=r}function I(e,t,n,r,o,i){return 1-Math.min(o,i-(e.depth+1))/n.length>=r}function D(e,t,n){const r=n.useSellers?v:y,o={score:n.useDamerau?S:w,getLength:n.useSellers?A:P,shouldUpdateScore:n.useSellers?g:m,shouldContinue:n.useSellers?I:R,walkBack:n.useSellers?p:h,compareItems:O(n.sortBy)},i={},a=[],s=r(e.length+1,t.depth+1);if(n.threshold<=0||0===e.length)for(const n of t.candidates)_(a,i,n,0,{index:0,length:0},e.length,o.compareItems);!function(e,t,n,r,o,i,a){const s=[];for(const n in e.children){const r=e.children[n];s.push([r,1,n,0,t.length])}const l=new Array(e.depth);for(;0!==s.length;){const[e,u,c,d,f]=s.pop();l[u-1]=c,n.score(t,l,r,u-1);const h=u,m=r[r.length-1][h];let g=d,y=f;if(n.shouldUpdateScore(m,f)&&(g=h,y=m),e.candidates.length>0){const s=1-y/n.getLength(t.length,u);if(s>=a.threshold){const a=p(r,g),l=Math.abs(u-t.length);for(const t of e.candidates)_(o,i,t,s,a,l,n.compareItems)}}for(const r in e.children){const o=e.children[r];n.shouldContinue(o,u,t,a.threshold,y,m)&&s.push([o,u+1,r,g,y])}}}(t,e,o,s,a,i,n);const l=a.sort(o.compareItems);if(n.returnMatchData){const e=n.useSellers?f:u;return l.map(t=>({item:t.item,original:t.normalized.original,key:t.normalized.normal.join(""),score:t.score,match:e(t.match,t.normalized.map)}))}return l.map(e=>e.item)}class T{constructor(e,t){this.options=Object.assign({},l,t),this.trie={children:{},candidates:[],depth:0},x(this.trie,0,e,this.options),this.count=e.length}add(...e){x(this.trie,this.count,e,this.options),this.count+=e.length}search(e,t){return t=Object.assign({},this.options,t),D(d(e,this.options).normal,this.trie,t)}}},54669:(e,t,n)=>{"use strict";n.d(t,{HZ:()=>f});var r=n(96540),o=(e=>(e.Mouse="mouse",e.Touch="touch",e.Pointer="pointer",e))(o||{}),i=(e=>(e.CancelledByMovement="cancelled-by-movement",e.CancelledByRelease="cancelled-by-release",e.CancelledOutsideElement="cancelled-outside-element",e))(i||{});const a=["mousedown","mousemove","mouseup","mouseleave","mouseout"],s=["touchstart","touchmove","touchend","touchcancel"],l=["pointerdown","pointermove","pointerup","pointerleave","pointerout"];function u(e){var t;return s.includes(null==(t=null==e?void 0:e.nativeEvent)?void 0:t.type)||"touches"in e}function c(e){return function(e){var t;return a.includes(null==(t=null==e?void 0:e.nativeEvent)?void 0:t.type)}(e)||u(e)||function(e){const{nativeEvent:t}=e;return!!t&&(l.includes(null==t?void 0:t.type)||"pointerId"in t)}(e)}function d(e){var t;const n=u(e)?null==(t=null==e?void 0:e.touches)?void 0:t[0]:e;return function(e){return"object"==typeof e&&null!==e&&"pageX"in e&&"number"==typeof e.pageX&&"pageY"in e&&"number"==typeof e.pageY}(n)?{x:n.pageX,y:n.pageY}:null}function f(e,{threshold:t=400,captureEvent:n=!1,detect:a=o.Pointer,cancelOnMovement:s=!1,cancelOutsideElement:l=!0,filterEvents:u,onStart:f,onMove:p,onFinish:h,onCancel:m}={}){const g=(0,r.useRef)(!1),y=(0,r.useRef)(!1),v=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,r.useRef)(e),S=(0,r.useRef)(null),E=(0,r.useCallback)(e=>r=>{y.current||c(r)&&(void 0!==u&&!u(r)||(n&&r.persist(),null==f||f(r,{context:e}),S.current=d(r),y.current=!0,v.current=r.currentTarget,b.current=setTimeout(()=>{w.current&&(w.current(r,{context:e}),g.current=!0)},t)))},[n,u,f,t]),x=(0,r.useCallback)(e=>(t,r)=>{c(t)&&y.current&&(S.current=null,n&&t.persist(),g.current?null==h||h(t,{context:e}):y.current&&(null==m||m(t,{context:e,reason:r??i.CancelledByRelease})),g.current=!1,y.current=!1,void 0!==b.current&&clearTimeout(b.current))},[n,h,m]),C=(0,r.useCallback)(e=>t=>{if(c(t)&&(null==p||p(t,{context:e}),!1!==s&&S.current)){const n=d(t);if(n){const r=!0===s?25:s,o={x:Math.abs(n.x-S.current.x),y:Math.abs(n.y-S.current.y)};(o.x>r||o.y>r)&&x(e)(t,i.CancelledByMovement)}}},[x,s,p]),k=(0,r.useCallback)(t=>{if(null===e)return{};switch(a){case o.Mouse:{const e={onMouseDown:E(t),onMouseMove:C(t),onMouseUp:x(t)};return l&&(e.onMouseLeave=e=>{x(t)(e,i.CancelledOutsideElement)}),e}case o.Touch:return{onTouchStart:E(t),onTouchMove:C(t),onTouchEnd:x(t)};case o.Pointer:{const e={onPointerDown:E(t),onPointerMove:C(t),onPointerUp:x(t)};return l&&(e.onPointerLeave=e=>x(t)(e,i.CancelledOutsideElement)),e}}},[e,x,l,a,C,E]);return(0,r.useEffect)(()=>{function e(e){const t=function(e){return{target:e.target,currentTarget:e.currentTarget,nativeEvent:e,persist:()=>{}}}(e);x()(t)}return window.addEventListener("mouseup",e),window.addEventListener("touchend",e),window.addEventListener("pointerup",e),()=>{window.removeEventListener("mouseup",e),window.removeEventListener("touchend",e),window.removeEventListener("pointerup",e)}},[x]),(0,r.useEffect)(()=>()=>{void 0!==b.current&&clearTimeout(b.current)},[]),(0,r.useEffect)(()=>{w.current=e},[e]),k}},58168:(e,t,n)=>{"use strict";function r(){return r=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},r.apply(null,arguments)}n.d(t,{A:()=>r})},58202:(e,t,n)=>{e.exports=n(94556),n(62835),n(71832),n(30269),n(34743),n(22172),n(87905),n(82846),n(49079)},60449:(e,t)=>{"use strict";function n(e){return n="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},n(e)}function r(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"==typeof self?"undefined":n(self))||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch(e){return!1}return!0}(t)?self[t]:o};var o={getItem:r,setItem:r,removeItem:r}},62835:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556)],void 0===(i="function"==typeof(r=function(e){var t=e.transform;e.createCanvas=function(t,n,r){if(r&&e.global.OffscreenCanvas)return new OffscreenCanvas(t,n);var o=document.createElement("canvas");return o.width=t,o.height=n,o},e.transform=function(n,r,o,i,a){t.call(e,e.scale(n,r,a),r,o,i,a)},e.transformCoordinates=function(){},e.getTransformedOptions=function(e,t){var n,r,o,i,a=t.aspectRatio;if(!a)return t;for(r in n={},t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n.crop=!0,(o=e.naturalWidth||e.width)/(i=e.naturalHeight||e.height)>a?(n.maxWidth=i*a,n.maxHeight=i):(n.maxWidth=o,n.maxHeight=o/a),n},e.drawImage=function(e,t,n,r,o,i,a,s,l){var u=t.getContext("2d");return!1===l.imageSmoothingEnabled?(u.msImageSmoothingEnabled=!1,u.imageSmoothingEnabled=!1):l.imageSmoothingQuality&&(u.imageSmoothingQuality=l.imageSmoothingQuality),u.drawImage(e,n,r,o,i,0,0,a,s),u},e.requiresCanvas=function(e){return e.canvas||e.crop||!!e.aspectRatio},e.scale=function(t,n,r){n=n||{},r=r||{};var o,i,a,s,l,u,c,d,f,p,h,m,g=t.getContext||e.requiresCanvas(n)&&!!e.global.HTMLCanvasElement,y=t.naturalWidth||t.width,v=t.naturalHeight||t.height,b=y,w=v;function S(){var e=Math.max((a||b)/b,(s||w)/w);e>1&&(b*=e,w*=e)}function E(){var e=Math.min((o||b)/b,(i||w)/w);e<1&&(b*=e,w*=e)}if(g&&(c=(n=e.getTransformedOptions(t,n,r)).left||0,d=n.top||0,n.sourceWidth?(l=n.sourceWidth,void 0!==n.right&&void 0===n.left&&(c=y-l-n.right)):l=y-c-(n.right||0),n.sourceHeight?(u=n.sourceHeight,void 0!==n.bottom&&void 0===n.top&&(d=v-u-n.bottom)):u=v-d-(n.bottom||0),b=l,w=u),o=n.maxWidth,i=n.maxHeight,a=n.minWidth,s=n.minHeight,g&&o&&i&&n.crop?(b=o,w=i,(h=l/u-o/i)<0?(u=i*l/o,void 0===n.top&&void 0===n.bottom&&(d=(v-u)/2)):h>0&&(l=o*u/i,void 0===n.left&&void 0===n.right&&(c=(y-l)/2))):((n.contain||n.cover)&&(a=o=o||a,s=i=i||s),n.cover?(E(),S()):(S(),E())),g){if((f=n.pixelRatio)>1&&(!t.style.width||Math.floor(parseFloat(t.style.width,10))!==Math.floor(y/f))&&(b*=f,w*=f),e.orientationCropBug&&!t.getContext&&(c||d||l!==y||u!==v)&&(h=t,t=e.createCanvas(y,v,!0),e.drawImage(h,t,0,0,y,v,y,v,n)),(p=n.downsamplingRatio)>0&&p<1&&b<l&&w<u)for(;l*p>b;)m=e.createCanvas(l*p,u*p,!0),e.drawImage(t,m,c,d,l,u,m.width,m.height,n),c=0,d=0,l=m.width,u=m.height,t=m;return m=e.createCanvas(b,w),e.transformCoordinates(m,n,r),f>1&&(m.style.width=m.width/f+"px"),e.drawImage(t,m,c,d,l,u,b,w,n).setTransform(1,0,0,1,0,0),m}return t.width=b,t.height=w,t}})?r.apply(t,o):r)||(e.exports=i)}()},66248:(e,t,n)=>{"use strict";n.d(t,{JY:()=>Rr,sx:()=>qr,gL:()=>vo});var r=n(96540),o=n(40961),i=n(14644),a=n(71468),s="Invariant failed";var l=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},u=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},c=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},d={top:0,right:0,bottom:0,left:0},f=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?d:n,o=e.border,i=void 0===o?d:o,a=e.padding,s=void 0===a?d:a,f=l(u(t,r)),p=l(c(t,i)),h=l(c(p,s));return{marginBox:f,borderBox:l(t),paddingBox:p,contentBox:h,margin:r,border:i,padding:s}},p=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e){if(!e)throw new Error(s)}(!1),n},h=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,l=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return f({borderBox:l,border:i,margin:a,padding:s})},m=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),h(e,t)},g=function(e,t){var n={top:p(t.marginTop),right:p(t.marginRight),bottom:p(t.marginBottom),left:p(t.marginLeft)},r={top:p(t.paddingTop),right:p(t.paddingRight),bottom:p(t.paddingBottom),left:p(t.paddingLeft)},o={top:p(t.borderTopWidth),right:p(t.borderRightWidth),bottom:p(t.borderBottomWidth),left:p(t.borderLeftWidth)};return f({borderBox:e,margin:n,padding:r,border:o})},y=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return g(t,n)};const v=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame(function(){n=null,e.apply(void 0,t)}))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};var b=n(58168);function w(e,t){}w.bind(null,"warn"),w.bind(null,"error");function S(){}function E(e,t,n){const r=t.map(t=>{const r=function(e,t){return{...e,...t}}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}});return function(){r.forEach(e=>{e()})}}const x=!0,C="Invariant failed";class k extends Error{}function O(e,t){throw new k(x?C:`${C}: ${t||""}`)}k.prototype.toString=function(){return this.message};class _ extends r.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=S,this.onWindowError=e=>{const t=this.getCallbacks();t.isDragging()&&t.tryAbort();e.error instanceof k&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=E(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof k))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const P=e=>e+1,A=(e,t)=>{const n=e.droppableId===t.droppableId,r=P(e.index),o=P(t.index);return n?`\n You have moved the item from position ${r}\n to position ${o}\n `:`\n You have moved the item from position ${r}\n in list ${e.droppableId}\n to list ${t.droppableId}\n in position ${o}\n `},R=(e,t,n)=>t.droppableId===n.droppableId?`\n The item ${e}\n has been combined with ${n.draggableId}`:`\n The item ${e}\n in list ${t.droppableId}\n has been combined with ${n.draggableId}\n in list ${n.droppableId}\n `,I=e=>`\n The item has returned to its starting position\n of ${P(e.index)}\n`,D={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>`\n You have lifted an item in position ${P(e.source.index)}\n`,onDragUpdate:e=>{const t=e.destination;if(t)return A(e.source,t);const n=e.combine;return n?R(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return`\n Movement cancelled.\n ${I(e.source)}\n `;const t=e.destination,n=e.combine;return t?`\n You have dropped the item.\n ${A(e.source,t)}\n `:n?`\n You have dropped the item.\n ${R(e.draggableId,e.source,n)}\n `:`\n The item has been dropped while not over a drop area.\n ${I(e.source)}\n `}};function T(e,t){return e===t||!(!Number.isNaN(e)||!Number.isNaN(t))}function N(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!T(e[n],t[n]))return!1;return!0}function M(e,t){const n=(0,r.useState)(()=>({inputs:t,result:e()}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&N(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)(()=>{o.current=!1,i.current=a},[a]),a.result}function L(e,t){return M(()=>e,t)}const B={x:0,y:0},F=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),j=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),z=(e,t)=>e.x===t.x&&e.y===t.y,U=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),H=(e,t,n=0)=>"x"===e?{x:t,y:n}:{x:n,y:t},W=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),V=(e,t)=>Math.min(...t.map(t=>W(e,t))),$=e=>t=>({x:e(t.x),y:e(t.y)});const G=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),q=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Q=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=l({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):l(e);var K=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const o=((e,t)=>t?G(e,t.scroll.diff.displacement):e)(e.marginBox,r),i=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(o,n,t);return{page:e,withPlaceholder:t,active:Q(i,r)}},Y=(e,t)=>{e.frame||O();const n=e.frame,r=j(t,n.scroll.initial),o=U(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},a=K({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};function X(e,t=N){let n=null;function r(...r){if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;const o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}const J=X(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),Z=X(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),ee=X(e=>Object.values(e)),te=X(e=>Object.values(e));var ne=X((e,t)=>{const n=te(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index);return n});function re(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function oe(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var ie=X((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),ae=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const se={point:B,value:0},le={invisible:{},visible:{},all:[]},ue={displaced:le,displacedBy:se,at:null};var ce=(e,t)=>n=>e<=n&&n<=t,de=e=>{const t=ce(e.top,e.bottom),n=ce(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;const a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;if(a&&s)return!0;return a&&i||s&&o}},fe=e=>{const t=ce(e.top,e.bottom),n=ce(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const pe={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},he={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const me=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:o})=>{const i=r?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:B;return G(e,n)})(e,t):e;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(i,t,o)&&((e,t,n)=>n(t)(e))(i,n,o)},ge=e=>me({...e,isVisibleThroughFrameFn:fe});function ye({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:o,last:i}){return e.reduce(function(e,a){const s=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return l(u(n,r))}(a,n),c=a.descriptor.id;e.all.push(c);var d;if(!(d={target:s,destination:t,viewport:r,withDroppableDisplacement:!0},me({...d,isVisibleThroughFrameFn:de})))return e.invisible[a.descriptor.id]=!0,e;const f=((e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const i=o[e];return!i||i.shouldAnimate})(c,i,o),p={draggableId:c,shouldAnimate:f};return e.visible[c]=p,e},{all:[],visible:{},invisible:{}})}function ve({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const o=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(e,{inHomeList:t});return{displaced:le,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function be({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:o,last:i,index:a,forceShouldAnimate:s}){const l=ae(e,n);if(null==a)return ve({insideDestination:t,inHomeList:l,displacedBy:o,destination:n});const u=t.find(e=>e.descriptor.index===a);if(!u)return ve({insideDestination:t,inHomeList:l,displacedBy:o,destination:n});const c=ie(e,t),d=t.indexOf(u);return{displaced:ye({afterDragging:c.slice(d),destination:n,displacedBy:o,last:i,viewport:r.frame,forceShouldAnimate:s}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function we(e,t){return Boolean(t.effected[e])}var Se=({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:o,insideDestination:i,previousImpact:a,viewport:s,afterCritical:l})=>{const u=a.at;if(u||O(),"REORDER"===u.type){const r=(({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const o=r.index,i=e?o+1:o-1,a=n[0].descriptor.index,s=n[n.length-1].descriptor.index;return i<a||i>(t?s:s+1)?null:i})({isMovingForward:e,isInHomeList:t,location:u.destination,insideDestination:i});return null==r?null:be({draggable:n,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:r})}const c=(({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=r.draggableId,a=n[i].descriptor.index;return we(i,o)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:o,displaced:a.displaced,draggables:r,combine:u.combine,afterCritical:l});return null==c?null:be({draggable:n,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:c})},Ee=({afterCritical:e,impact:t,draggables:n})=>{const r=oe(t);r||O();const o=r.draggableId,i=n[o].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const o=Boolean(e.visible[n]||e.invisible[n]);return we(n,t)?o?B:U(r.point):o?r.point:B})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return F(i,a)};const xe=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Ce=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,ke=({axis:e,moveRelativeTo:t,isMoving:n})=>H(e.line,t.marginBox[e.end]+xe(e,n),Ce(e,t.marginBox,n)),Oe=({axis:e,moveRelativeTo:t,isMoving:n})=>H(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,n),Ce(e,t.marginBox,n));var _e=({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o})=>{const i=ne(r.descriptor.id,n),a=t.page,s=r.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:n})=>H(e.line,t.contentBox[e.start]+xe(e,n),Ce(e,t.contentBox,n)))({axis:s,moveInto:r.page,isMoving:a});const{displaced:l,displacedBy:u}=e,c=l.all[0];if(c){const e=n[c];if(we(c,o))return Oe({axis:s,moveRelativeTo:e.page,isMoving:a});const t=h(e.page,u.point);return Oe({axis:s,moveRelativeTo:t,isMoving:a})}const d=i[i.length-1];if(d.descriptor.id===t.descriptor.id)return a.borderBox.center;if(we(d.descriptor.id,o)){const e=h(d.page,U(o.displacedBy.point));return ke({axis:s,moveRelativeTo:e,isMoving:a})}return ke({axis:s,moveRelativeTo:d.page,isMoving:a})},Pe=(e,t)=>{const n=e.frame;return n?F(t,n.scroll.diff.displacement):t};var Ae=e=>{const t=(({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:o})=>{const i=t.page.borderBox.center,a=e.at;return n&&a?"REORDER"===a.type?_e({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o}):Ee({impact:e,draggables:r,afterCritical:o}):i})(e),n=e.droppable;return n?Pe(n,t):t},Re=(e,t)=>{const n=j(t,e.scroll.initial),r=U(n);return{frame:l({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Ie(e,t){return e.map(e=>t[e])}var De=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=((e,t)=>F(e.scroll.diff.displacement,t))(n,e),o=j(r,t.page.borderBox.center);return F(t.client.borderBox.center,o)},Te=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=j(n,e.page.borderBox.center),s={target:G(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:r};return i?(e=>{return me({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=ce(e.top,e.bottom),r=ce(e.left,e.right);return e=>t===pe?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(s):ge(s)},Ne=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!n.isEnabled)return null;const u=ne(n.descriptor.id,r),c=ae(t,n),d=(({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:o})=>{if(!n.isCombineEnabled)return null;if(!re(o))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...o,at:t}}const a=o.displaced.all,s=a.length?a[0]:null;if(e)return s?i(s):null;const l=ie(t,r);if(!s)return l.length?i(l[l.length-1].descriptor.id):null;const u=l.findIndex(e=>e.descriptor.id===s);-1===u&&O();const c=u-1;return c<0?null:i(l[c].descriptor.id)})({isMovingForward:e,draggable:t,destination:n,insideDestination:u,previousImpact:o})||Se({isMovingForward:e,isInHomeList:c,draggable:t,draggables:r,destination:n,insideDestination:u,previousImpact:o,viewport:i,afterCritical:l});if(!d)return null;const f=Ae({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:l});if(Te({draggable:t,destination:n,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:De({pageBorderBoxCenter:f,draggable:t,viewport:i}),impact:d,scrollJumpRequest:null}}const p=j(f,a),h=(({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:o})=>{const i=Re(t,F(t.scroll.current,o)),a=n.frame?Y(n,F(n.frame.scroll.current,o)):n,s=e.displaced,l=ye({afterDragging:Ie(s.all,r),destination:n,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),u=ye({afterDragging:Ie(s.all,r),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),c={},d={},f=[s,l,u];return s.all.forEach(e=>{const t=function(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}(e,f);t?d[e]=t:c[e]=!0}),{...e,displaced:{all:s.all,invisible:c,visible:d}}})({impact:d,viewport:i,destination:n,draggables:r,maxScrollChange:p});return{clientSelection:s,impact:h,scrollJumpRequest:p}};const Me=e=>{const t=e.subject.active;return t||O(),t};const Le=(e,t)=>{const n=e.page.borderBox.center;return we(e.descriptor.id,t)?j(n,t.displacedBy.point):n},Be=(e,t)=>{const n=e.page.borderBox;return we(e.descriptor.id,t)?G(n,U(t.displacedBy.point)):n};var Fe=X(function(e,t){const n=t[e.line];return{value:n,point:H(e.line,n)}});const je=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),ze=(e,t,n)=>{const r=e.frame;ae(t,e)&&O(),e.subject.withPlaceholder&&O();const o=Fe(e.axis,t.displaceBy).point,i=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return H(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],i=ne(e.descriptor.id,n).reduce((e,t)=>e+t.client.marginBox[r.size],0)+t[r.line]-o;return i<=0?null:H(r.line,i)})(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=K({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=i?F(r.scroll.max,i):r.scroll.max,l=je(r,s),u=K({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:u,frame:l}};var Ue=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:o,droppables:i,viewport:a,afterCritical:s})=>{const l=(({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:o})=>{const i=n.subject.active;if(!i)return null;const a=n.axis,s=ce(i[a.start],i[a.end]),l=ee(r).filter(e=>e!==n).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>de(o.frame)(Me(e))).filter(t=>{const n=Me(t);return e?i[a.crossAxisEnd]<n[a.crossAxisEnd]:n[a.crossAxisStart]<i[a.crossAxisStart]}).filter(e=>{const t=Me(e),n=ce(t[a.start],t[a.end]);return s(t[a.start])||s(t[a.end])||n(i[a.start])||n(i[a.end])}).sort((t,n)=>{const r=Me(t)[a.crossAxisStart],o=Me(n)[a.crossAxisStart];return e?r-o:o-r}).filter((e,t,n)=>Me(e)[a.crossAxisStart]===Me(n[0])[a.crossAxisStart]);if(!l.length)return null;if(1===l.length)return l[0];const u=l.filter(e=>ce(Me(e)[a.start],Me(e)[a.end])(t[a.line]));return 1===u.length?u[0]:u.length>1?u.sort((e,t)=>Me(e)[a.start]-Me(t)[a.start])[0]:l.sort((e,n)=>{const r=V(t,q(Me(e))),o=V(t,q(Me(n)));return r!==o?r-o:Me(e)[a.start]-Me(n)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:i,viewport:a});if(!l)return null;const u=ne(l.descriptor.id,o),c=(({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:o})=>{const i=r.filter(e=>ge({target:Be(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,r)=>{const i=W(e,Pe(n,Le(t,o))),a=W(e,Pe(n,Le(r,o)));return i<a?-1:a<i?1:t.descriptor.index-r.descriptor.index});return i[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:l,insideDestination:u,afterCritical:s}),d=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:o,destination:i,viewport:a,afterCritical:s})=>{if(!t){if(n.length)return null;const e={displaced:le,displacedBy:se,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=Ae({impact:e,draggable:r,droppable:i,draggables:o,afterCritical:s}),l=ae(r,i)?i:ze(i,r,o);return Te({draggable:r,destination:l,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const l=Boolean(e[i.axis.line]<=t.page.borderBox.center[i.axis.line]),u=(()=>{const e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||l?e:e+1})(),c=Fe(i.axis,r.displaceBy);return be({draggable:r,insideDestination:n,destination:i,viewport:a,displacedBy:c,last:le,index:u})})({previousPageBorderBoxCenter:t,destination:l,draggable:n,draggables:o,moveRelativeTo:c,insideDestination:u,viewport:a,afterCritical:s});if(!d)return null;const f=Ae({impact:d,draggable:n,droppable:l,draggables:o,afterCritical:s});return{clientSelection:De({pageBorderBoxCenter:f,draggable:n,viewport:a}),impact:d,scrollJumpRequest:null}},He=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var We=({state:e,type:t})=>{const n=((e,t)=>{const n=He(e);return n?t[n]:null})(e.impact,e.dimensions.droppables),r=Boolean(n),o=e.dimensions.droppables[e.critical.droppable.id],i=n||o,a=i.axis.direction,s="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(s&&!r)return null;const l="MOVE_DOWN"===t||"MOVE_RIGHT"===t,u=e.dimensions.draggables[e.critical.draggable.id],c=e.current.page.borderBoxCenter,{draggables:d,droppables:f}=e.dimensions;return s?Ne({isMovingForward:l,previousPageBorderBoxCenter:c,draggable:u,destination:i,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Ue({isMovingForward:l,previousPageBorderBoxCenter:c,draggable:u,isOver:i,draggables:d,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function Ve(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function $e(e){const t=ce(e.top,e.bottom),n=ce(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Ge({pageBorderBox:e,draggable:t,droppables:n}){const r=ee(n).filter(t=>{if(!t.isEnabled)return!1;const n=t.subject.active;if(!n)return!1;if(o=n,!((r=e).left<o.right&&r.right>o.left&&r.top<o.bottom&&r.bottom>o.top))return!1;var r,o;if($e(n)(e.center))return!0;const i=t.axis,a=n.center[i.crossAxisLine],s=e[i.crossAxisStart],l=e[i.crossAxisEnd],u=ce(n[i.crossAxisStart],n[i.crossAxisEnd]),c=u(s),d=u(l);return!c&&!d||(c?s<a:l>a)});return r.length?1===r.length?r[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,o=n.map(t=>{const n=t.axis,o=H(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:W(r,o)}}).sort((e,t)=>t.distance-e.distance);return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:r}):null}const qe=(e,t)=>l(G(e,t));function Qe({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Ke=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:o,viewport:i,afterCritical:a})=>{const s=qe(t.page.borderBox,e),l=Ge({pageBorderBox:s,draggable:t,droppables:r});if(!l)return ue;const u=r[l],c=ne(u.descriptor.id,n),d=((e,t)=>{const n=e.frame;return n?qe(t,n.scroll.diff.value):t})(u,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:o,afterCritical:i})=>{if(!r.isCombineEnabled)return null;const a=r.axis,s=Fe(r.axis,e.displaceBy),l=s.value,u=t[a.start],c=t[a.end],d=ie(e,o).find(e=>{const t=e.descriptor.id,r=e.page.borderBox,o=r[a.size]/4,s=we(t,i),d=Qe({displaced:n.displaced,id:t});return s?d?c>r[a.start]+o&&c<r[a.end]-o:u>r[a.start]-l+o&&u<r[a.end]-l-o:d?c>r[a.start]+l+o&&c<r[a.end]+l-o:u>r[a.start]+o&&u<r[a.end]-o});return d?{displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:r.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:o,destination:u,insideDestination:c,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:o,viewport:i,afterCritical:a})=>{const s=n.axis,l=Fe(n.axis,t.displaceBy),u=l.value,c=e[s.start],d=e[s.end],f=function({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:ie(t,r).find(e=>{const t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=we(t,a),i=Qe({displaced:o,id:t});return r?i?d<=n:c<n-u:i?d<=n+u:c<n})||null,inHomeList:ae(t,n)});return be({draggable:t,insideDestination:r,destination:n,viewport:i,last:o,displacedBy:l,index:f})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:u,insideDestination:c,last:o.displaced,viewport:i,afterCritical:a})},Ye=(e,t)=>({...e,[t.descriptor.id]:t});const Xe=({previousImpact:e,impact:t,droppables:n})=>{const r=He(e),o=He(t);if(!r)return n;if(r===o)return n;const i=n[r];if(!i.subject.withPlaceholder)return n;const a=(e=>{const t=e.subject.withPlaceholder;t||O();const n=e.frame;if(!n){const t=K({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||O();const o=je(n,r),i=K({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(i);return Ye(n,a)};var Je=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:o,scrollJumpRequest:i})=>{const a=r||e.viewport,s=n||e.dimensions,l=t||e.current.client.selection,u=j(l,e.initial.client.selection),c={offset:u,selection:l,borderBoxCenter:F(e.initial.client.borderBoxCenter,u)},d={selection:F(c.selection,a.scroll.current),borderBoxCenter:F(c.borderBoxCenter,a.scroll.current),offset:F(c.offset,a.scroll.diff.value)},f={client:c,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:f};const p=s.draggables[e.critical.draggable.id],h=o||Ke({pageOffset:d.offset,draggable:p,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:o})=>{const i=Xe({previousImpact:r,impact:o,droppables:n}),a=He(o);if(!a)return i;const s=n[a];if(ae(e,s))return i;if(s.subject.withPlaceholder)return i;const l=ze(s,e,t);return Ye(i,l)})({draggable:p,impact:h,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:m},impact:h,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}};var Ze=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:o})=>{const i=e.displaced,a=function(e,t){return e.map(e=>t[e])}(i.all,n),s=ye({afterDragging:a,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:s}},et=({impact:e,draggable:t,droppable:n,draggables:r,viewport:o,afterCritical:i})=>{const a=Ae({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i});return De({pageBorderBoxCenter:a,draggable:t,viewport:o})},tt=({state:e,dimensions:t,viewport:n})=>{"SNAP"!==e.movementMode&&O();const r=e.impact,o=n||e.viewport,i=t||e.dimensions,{draggables:a,droppables:s}=i,l=a[e.critical.draggable.id],u=He(r);u||O();const c=s[u],d=Ze({impact:r,viewport:o,destination:c,draggables:a}),f=et({impact:d,draggable:l,droppable:c,draggables:a,viewport:o,afterCritical:e.afterCritical});return Je({impact:d,clientSelection:f,state:e,dimensions:i,viewport:o})},nt=({draggable:e,home:t,draggables:n,viewport:r})=>{const o=Fe(t.axis,e.displaceBy),i=ne(t.descriptor.id,n),a=i.indexOf(e);-1===a&&O();const s=i.slice(a+1),l=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),u={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:l};var c;return{impact:{displaced:ye({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(c=e.descriptor,{index:c.index,droppableId:c.droppableId})}},afterCritical:u}};const rt=e=>{0},ot=e=>{0};var it=({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map(e=>{const o=e.descriptor.droppableId,i=(e=>{const t=e.frame;return t||O(),t})(t[o]),a=i.scroll.diff.value,s=(({draggable:e,offset:t,initialWindowScroll:n})=>{const r=h(e.client,t),o=m(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:o}})({draggable:e,offset:F(r,a),initialWindowScroll:n.scroll.initial});return s})};const at=e=>"SNAP"===e.movementMode,st=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:Ye(e.droppables,t)}))(e.dimensions,t);return!at(e)||n?Je({state:e,dimensions:r}):tt({state:e,dimensions:r})};function lt(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}const ut={phase:"IDLE",completed:null,shouldFlush:!1};var ct=(e=ut,t)=>{if("FLUSH"===t.type)return{...ut,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&O();const{critical:n,clientSelection:r,viewport:o,dimensions:i,movementMode:a}=t.payload,s=i.draggables[n.draggable.id],l=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:s.client.borderBox.center,offset:B},c={client:u,page:{selection:F(u.selection,o.scroll.initial),borderBoxCenter:F(u.selection,o.scroll.initial),offset:F(u.selection,o.scroll.diff.value)}},d=ee(i.droppables).every(e=>!e.isFixedOnPage),{impact:f,afterCritical:p}=nt({draggable:s,home:l,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&O();return{...e,phase:"COLLECTING"}}if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&O(),(({state:e,published:t})=>{rt();const n=t.modified.map(t=>{const n=e.dimensions.droppables[t.droppableId];return Y(n,t.scroll)}),r={...e.dimensions.droppables,...J(n)},o=Z(it({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach(e=>{delete i[e]});const a={droppables:r,draggables:i},s=He(e.impact),l=s?a.droppables[s]:null,u=a.draggables[e.critical.draggable.id],c=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:f}=nt({draggable:u,home:c,draggables:i,viewport:e.viewport}),p=l&&l.isCombineEnabled?e.impact:d,h=Ke({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:p,viewport:e.viewport,afterCritical:f});ot();const m={...e,phase:"DRAGGING",impact:h,onLiftImpact:d,dimensions:a,afterCritical:f,forceShouldAnimate:!1};return"COLLECTING"===e.phase?m:{...m,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}})({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Ve(e)||O();const{client:n}=t.payload;return z(n,e.current.client.selection)?e:Je({state:e,clientSelection:n,impact:at(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return lt(e);if("COLLECTING"===e.phase)return lt(e);Ve(e)||O();const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const i=Y(o,r);return st(e,i,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ve(e)||O();const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||O(),o.isEnabled===r&&O();const i={...o,isEnabled:r};return st(e,i,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ve(e)||O();const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||O(),o.isCombineEnabled===r&&O();const i={...o,isCombineEnabled:r};return st(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ve(e)||O(),e.isWindowScrollAllowed||O();const n=t.payload.newScroll;if(z(e.viewport.scroll.current,n))return lt(e);const r=Re(e.viewport,n);return at(e)?tt({state:e,viewport:r}):Je({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ve(e))return e;const n=t.payload.maxScroll;if(z(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&O();const n=We({state:e,type:t.type});return n?Je({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;"COLLECTING"!==e.phase&&O();return{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&O();return{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){const{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};function dt(e,t){return e instanceof Object&&"type"in e&&e.type===t}const ft=e=>({type:"LIFT",payload:e}),pt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),ht=()=>({type:"COLLECTION_STARTING",payload:null}),mt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),gt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),yt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),vt=e=>({type:"MOVE",payload:e}),bt=()=>({type:"MOVE_UP",payload:null}),wt=()=>({type:"MOVE_DOWN",payload:null}),St=()=>({type:"MOVE_RIGHT",payload:null}),Et=()=>({type:"MOVE_LEFT",payload:null}),xt=()=>({type:"FLUSH",payload:null}),Ct=e=>({type:"DROP_COMPLETE",payload:e}),kt=e=>({type:"DROP",payload:e}),Ot=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});const _t="cubic-bezier(.2,1,.1,1)",Pt={drop:0,combining:.7},At={drop:.75},Rt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},It=`${Rt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,Dt={fluid:`opacity ${It}`,snap:`transform ${It}, opacity ${It}`,drop:e=>{const t=`${e}s ${_t}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${It}`,placeholder:`height ${It}, width ${It}, margin ${It}`},Tt=e=>z(e,B)?void 0:`translate(${e.x}px, ${e.y}px)`,Nt=Tt,Mt=(e,t)=>{const n=Tt(e);if(n)return t?`${n} scale(${At.drop})`:n},{minDropTime:Lt,maxDropTime:Bt}=Rt,Ft=Bt-Lt;const jt=({getState:e,dispatch:t})=>n=>r=>{if(!dt(r,"DROP"))return void n(r);const o=e(),i=r.payload.reason;if("COLLECTING"===o.phase)return void t((e=>({type:"DROP_PENDING",payload:e}))({reason:i}));if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&O(),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&O();const a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:c}=(({draggables:e,reason:t,lastImpact:n,home:r,viewport:o,onLiftImpact:i})=>{if(!n.at||"DROP"!==t)return{impact:Ze({draggables:e,impact:i,destination:r,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:le},didDropInsideDroppable:!0}})({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=c?re(u):null,f=c?oe(u):null,p={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:l.descriptor.id,type:l.descriptor.type,source:p,reason:i,mode:o.movementMode,destination:d,combine:f},m=(({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:o})=>{const{draggables:i,droppables:a}=n,s=He(e),l=s?a[s]:null,u=a[t.descriptor.droppableId],c=et({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:l||u,viewport:r});return j(c,t.client.borderBox.center)})({impact:u,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:u};if(!(!z(o.current.client.offset,m)||Boolean(h.combine)))return void t(Ct({completed:g}));const y=(({current:e,destination:t,reason:n})=>{const r=W(e,t);if(r<=0)return Lt;if(r>=1500)return Bt;const o=Lt+Ft*(r/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:m,reason:i});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:m,dropDuration:y,completed:g}))};var zt=()=>({x:window.pageXOffset,y:window.pageYOffset});function Ut({onWindowScroll:e}){const t=v(function(){e(zt())}),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let r=S;function o(){return r!==S}return{start:function(){o()&&O(),r=E(window,[n])},stop:function(){o()||O(),t.cancel(),r(),r=S},isActive:o}}const Ht=e=>{const t=Ut({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{!t.isActive()&&dt(n,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>dt(e,"DROP_COMPLETE")||dt(e,"DROP_ANIMATE")||dt(e,"FLUSH"))(n)&&t.stop(),e(n)}};var Wt=()=>{const e=[];return{add:t=>{const n=setTimeout(()=>(t=>{const n=e.findIndex(e=>e.timerId===t);-1===n&&O();const[r]=e.splice(n,1);r.callback()})(n)),r={timerId:n,callback:t};e.push(r)},flush:()=>{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};const Vt=(e,t)=>{rt(),t(),ot()},$t=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Gt(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var qt=(e,t)=>{const n=((e,t)=>{const n=Wt();let r=null;const o=n=>{r||O(),r=null,Vt(0,()=>Gt(e().onDragEnd,n,t,D.onDragEnd))};return{beforeCapture:(t,n)=>{r&&O(),Vt(0,()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})})},beforeStart:(t,n)=>{r&&O(),Vt(0,()=>{const r=e().onBeforeDragStart;r&&r($t(t,n))})},start:(o,i)=>{r&&O();const a=$t(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add(()=>{Vt(0,()=>Gt(e().onDragStart,a,t,D.onDragStart))})},update:(o,i)=>{const a=re(i),s=oe(i);r||O();const l=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);l&&(r.lastCritical=o);const u=(d=a,!(null==(c=r.lastLocation)&&null==d||null!=c&&null!=d&&c.droppableId===d.droppableId&&c.index===d.index));var c,d;u&&(r.lastLocation=a);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,s);if(f&&(r.lastCombine=s),!l&&!u&&!f)return;const p={...$t(o,r.mode),combine:s,destination:a};n.add(()=>{Vt(0,()=>Gt(e().onDragUpdate,p,t,D.onDragUpdate))})},flush:()=>{r||O(),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...$t(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if(dt(r,"BEFORE_INITIAL_CAPTURE"))return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if(dt(r,"INITIAL_PUBLISH")){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if(dt(r,"DROP_COMPLETE")){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),dt(r,"FLUSH"))return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}};const Qt=e=>t=>n=>{if(!dt(n,"DROP_ANIMATION_FINISHED"))return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&O(),e.dispatch(Ct({completed:r.completed}))},Kt=e=>{let t=null,n=null;return r=>o=>{if((dt(o,"FLUSH")||dt(o,"DROP_COMPLETE")||dt(o,"DROP_ANIMATION_FINISHED"))&&(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),!dt(o,"DROP_ANIMATE"))return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame(()=>{n=null,t=E(window,[i])})}};var Yt=e=>t=>n=>r=>{if((e=>dt(e,"DROP_COMPLETE")||dt(e,"DROP_ANIMATE")||dt(e,"FLUSH"))(r))return e.stop(),void n(r);if(dt(r,"INITIAL_PUBLISH")){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&O(),void e.start(o)}n(r),e.scroll(t.getState())};const Xt=e=>t=>n=>{if(t(n),!dt(n,"PUBLISH_WHILE_DRAGGING"))return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(kt({reason:r.reason})))},Jt=i.Zz;var Zt=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:o,autoScroller:a})=>{return(0,i.y$)(ct,Jt((0,i.Tw)((s=n,()=>e=>t=>{dt(t,"INITIAL_PUBLISH")&&s.dragging(),dt(t,"DROP_ANIMATE")&&s.dropping(t.payload.completed.result.reason),(dt(t,"FLUSH")||dt(t,"DROP_COMPLETE"))&&s.resting(),e(t)}),(e=>()=>t=>n=>{(dt(n,"DROP_COMPLETE")||dt(n,"FLUSH")||dt(n,"DROP_ANIMATE"))&&e.stopPublishing(),t(n)})(e),(e=>({getState:t,dispatch:n})=>r=>o=>{if(!dt(o,"LIFT"))return void r(o);const{id:i,clientSelection:a,movementMode:s}=o.payload,l=t();"DROP_ANIMATING"===l.phase&&n(Ct({completed:l.completed})),"IDLE"!==t().phase&&O(),n(xt()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:s}});const u={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:c,dimensions:d,viewport:f}=e.startPublishing(u);n({type:"INITIAL_PUBLISH",payload:{critical:c,dimensions:d,clientSelection:a,movementMode:s,viewport:f}})})(e),jt,Qt,Kt,Xt,Yt(a),Ht,(e=>{let t=!1;return()=>n=>r=>{if(dt(r,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if(dt(r,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(dt(r,"DROP_COMPLETE")){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),qt(r,o))));var s};var en=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const o=j({x:t,y:e},{x:r,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},tn=()=>{const e=document.documentElement;return e||O(),e},nn=()=>{const e=tn();return en({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},rn=({critical:e,scrollOptions:t,registry:n})=>{rt();const r=(()=>{const e=zt(),t=nn(),n=e.y,r=e.x,o=tn(),i=o.clientWidth,a=o.clientHeight;return{frame:l({top:n,left:r,right:r+i,bottom:n+a}),scroll:{initial:e,current:e,max:t,diff:{value:B,displacement:B}}}})(),o=r.scroll.current,i=e.droppable,a=n.droppable.getAllByType(i.type).map(e=>e.callbacks.getDimensionAndWatchScroll(o,t)),s=n.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(o)),u={draggables:Z(s),droppables:J(a)};ot();return{dimensions:u,critical:e,viewport:r}};function on(e,t,n){if(n.descriptor.id===t.id)return!1;if(n.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var an=(e,t)=>{let n=null;const r=function({registry:e,callbacks:t}){let n={additions:{},removals:{},modified:{}},r=null;const o=()=>{r||(t.collectionStarting(),r=requestAnimationFrame(()=>{r=null,rt();const{additions:o,removals:i,modified:a}=n,s=Object.keys(o).map(t=>e.draggable.getById(t).getDimension(B)).sort((e,t)=>e.descriptor.index-t.descriptor.index),l=Object.keys(a).map(t=>({droppableId:t,scroll:e.droppable.getById(t).callbacks.getScrollWhileDragging()})),u={additions:s,removals:Object.keys(i),modified:l};n={additions:{},removals:{},modified:{}},ot(),t.publish(u)}))};return{add:e=>{const t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:e=>{const t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||O();const o=n.critical.draggable;"ADDITION"===t.type&&on(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&on(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||O(),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||O(),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||O(),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&O();const r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},rn({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),n.unsubscribe(),n=null}};return i},sn=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason),ln=e=>{window.scrollBy(e.x,e.y)};const un=X(e=>ee(e).filter(e=>!!e.isEnabled&&!!e.frame));var cn=({center:e,destination:t,droppables:n})=>{if(t){const e=n[t];return e.frame?e:null}const r=((e,t)=>{const n=un(t).find(t=>(t.frame||O(),$e(t.frame.pageMarginBox)(e)))||null;return n})(e,n);return r};const dn={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var fn=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;if(0===r)return 0;return(n-e)/r},pn=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})=>{const i=((e,t,n=()=>dn)=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-fn({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=r.maxPixelScroll*r.ease(o);return Math.ceil(i)})(e,t,o);return 0===i?0:r?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,a=t,s=i,l=Date.now()-a;if(l>=i)return e;if(l<o)return 1;const u=fn({startOfRange:o,endOfRange:s,current:l}),c=e*r.ease(u);return Math.ceil(c)})(i,n,o),1):i},hn=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=((e,t,n=()=>dn)=>{const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,r,i);return t[r.end]<t[r.start]?pn({distanceToEdge:t[r.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*pn({distanceToEdge:t[r.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})};const mn=$(e=>0===e?0:e);var gn=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},s=hn({container:t,distanceToEdges:a,dragStartTime:e,axis:pe,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),l=hn({container:t,distanceToEdges:a,dragStartTime:e,axis:he,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),u=mn({x:l,y:s});if(z(u,B))return null;const c=(({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,o=t.width>e.width;return o||r?o&&r?null:{x:o?0:n.x,y:r?0:n.y}:n})({container:t,subject:n,proposedScroll:u});return c?z(c,B)?null:c:null};const yn=$(e=>0===e?0:e>0?1:-1),vn=(()=>{const e=(e,t)=>e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{const o=F(t,r),i={x:e(o.x,n.x),y:e(o.y,n.y)};return z(i,B)?null:i}})(),bn=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=yn(n),i=vn({max:r,current:t,change:o});return!i||(0!==o.x&&0===i.x||0!==o.y&&0===i.y)},wn=(e,t)=>bn({current:e.scroll.current,max:e.scroll.max,change:t}),Sn=(e,t)=>{const n=e.frame;return!!n&&bn({current:n.scroll.current,max:n.scroll.max,change:t})};var En=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=gn({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&wn(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});if(o)return void r(o)}const l=cn({center:a,destination:He(e.impact),droppables:e.dimensions.droppables});if(!l)return;const u=(({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const s=gn({dragStartTime:r,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return s&&Sn(e,s)?s:null})({dragStartTime:t,droppable:l,subject:s,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});u&&o(l.descriptor.id,u)},xn=({move:e,scrollDroppable:t,scrollWindow:n})=>{const r=(e,n)=>{if(!Sn(e,n))return n;const r=((e,t)=>{const n=e.frame;return n&&Sn(e,t)?vn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,n);if(!r)return t(e.descriptor.id,n),null;const o=j(n,r);t(e.descriptor.id,o);return j(n,o)},o=(e,t,r)=>{if(!e)return r;if(!wn(t,r))return r;const o=((e,t)=>{if(!wn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return vn({current:r,max:n,change:t})})(t,r);if(!o)return n(r),null;const i=j(r,o);n(i);return j(r,i)};return t=>{const n=t.scrollJumpRequest;if(!n)return;const i=He(t.impact);i||O();const a=r(t.dimensions.droppables[i],n);if(!a)return;const s=t.viewport,l=o(t.isWindowScrollAllowed,s,a);l&&((t,n)=>{const r=F(t.current.client.selection,n);e({client:r})})(t,l)}},Cn=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const o=(({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>dn})=>{const r=v(e),o=v(t);let i=null;const a=e=>{i||O();const{shouldUseTimeDampening:t,dragStartTime:a}=i;En({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{rt(),i&&O();const t=Date.now();let r=!1;const o=()=>{r=!0};En({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:n}),i={dragStartTime:t,shouldUseTimeDampening:r},ot(),r&&a(e)},stop:()=>{i&&(r.cancel(),o.cancel(),i=null)},scroll:a}})({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),i=xn({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{r().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}};const kn="data-rfd",On=(()=>{const e=`${kn}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),_n=(()=>{const e=`${kn}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Pn=(()=>{const e=`${kn}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),An={contextId:`${kn}-scroll-container-context-id`},Rn=(e,t)=>e.map(e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""}).join(" ");var In=e=>{const t=(n=e,e=>`[${e}="${n}"]`);var n;const r=(()=>{const e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(On.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),o=[(()=>{const e=`\n transition: ${Dt.outOfTheWay};\n `;return{selector:t(_n.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),r,{selector:t(Pn.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Rn(o,"always"),resting:Rn(o,"resting"),dragging:Rn(o,"dragging"),dropAnimating:Rn(o,"dropAnimating"),userCancel:Rn(o,"userCancel")}};const Dn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Tn=()=>{const e=document.querySelector("head");return e||O(),e},Nn=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Mn(e,t){return Array.from(e.querySelectorAll(t))}var Ln=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Bn(e){return e instanceof Ln(e).HTMLElement}function Fn(e,t){const n=`[${On.contextId}="${e}"]`,r=Mn(document,n);if(!r.length)return null;const o=r.find(e=>e.getAttribute(On.draggableId)===t);return o&&Bn(o)?o:null}function jn(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach(t=>t(e))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||O(),t},findById:r,exists:e=>Boolean(r(e)),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{const n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||O(),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var zn=r.createContext(null),Un=()=>{const e=document.body;return e||O(),e};const Hn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Wn=e=>`rfd-announcement-${e}`;const Vn={separator:"::"};function $n(e,t=Vn){const n=r.useId();return M(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var Gn=r.createContext(null);function qn(e){0}function Qn(e,t){qn()}function Kn(e){const t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),t}function Yn(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const Xn=9,Jn=13,Zn=33,er=34,tr=35,nr=36,rr={[Jn]:!0,[Xn]:!0};var or=e=>{rr[e.keyCode]&&e.preventDefault()};const ir=(()=>{const e="visibilitychange";if("undefined"==typeof document)return e;return[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(e=>`on${e}`in document)||e})();const ar={type:"IDLE"};function sr({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:i}=e;if(0!==t)return;const a={x:o,y:i},s=n();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&O();if(!function(e,t){return Math.abs(t.x-e.x)>=5||Math.abs(t.y-e.y)>=5}(s.point,a))return;e.preventDefault();const l=s.actions.fluidLift(a);r({type:"DRAGGING",actions:l})}},{eventName:"mouseup",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==n().type)return 27===t.keyCode?(t.preventDefault(),void e()):void or(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const r=n();"IDLE"===r.type&&O(),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:ir,fn:e}]}function lr(){}const ur={[er]:!0,[Zn]:!0,[nr]:!0,[tr]:!0};function cr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(ur[r.keyCode]?r.preventDefault():or(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:ir,fn:n}]}const dr={type:"IDLE"};const fr=["input","button","textarea","select","option","optgroup","video","audio"];function pr(e,t){if(null==t)return!1;if(fr.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&pr(e,t.parentElement)}function hr(e,t){const n=t.target;return!!Bn(n)&&pr(e,n)}var mr=e=>l(e.getBoundingClientRect()).center;const gr=(()=>{const e="matches";if("undefined"==typeof document)return e;return[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function yr(e,t){return null==e?null:e[gr](t)?e:yr(e.parentElement,t)}function vr(e,t){return e.closest?e.closest(t):yr(e,t)}function br(e,t){const n=t.target;if(!((r=n)instanceof Ln(r).Element))return null;var r;const o=function(e){return`[${On.contextId}="${e}"]`}(e),i=vr(n,o);return i&&Bn(i)?i:null}function wr(e){e.preventDefault()}function Sr({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!!n()&&e===t}function Er({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const o=n.draggable.findById(r);return!!o&&(!!o.options.isEnabled&&!!sn(t.getState(),r))}function xr({lockAPI:e,contextId:t,store:n,registry:r,draggableId:o,forceSensorStop:i,sourceEvent:a}){if(!Er({lockAPI:e,store:n,registry:r,draggableId:o}))return null;const s=r.draggable.getById(o),l=function(e,t){const n=`[${_n.contextId}="${e}"]`,r=Mn(document,n).find(e=>e.getAttribute(_n.id)===t);return r&&Bn(r)?r:null}(t,s.descriptor.id);if(!l)return null;if(a&&!s.options.canDragInteractiveElements&&hr(l,a))return null;const u=e.claim(i||S);let c="PRE_DRAG";function d(){return s.options.shouldRespectForcePress}function f(){return e.isActive(u)}const p=function(e,t){Sr({expected:e,phase:c,isLockActive:f,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function h(t){function r(){e.release(),c="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=E(window,[{eventName:"click",fn:wr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch(kt({reason:e}))}return"PRE_DRAG"!==c&&(r(),O()),n.dispatch(ft(t.liftActionArgs)),c="DRAGGING",{isActive:()=>Sr({expected:"DRAGGING",phase:c,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}return{isActive:()=>Sr({expected:"PRE_DRAG",phase:c,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:function(e){const t=v(e=>{p(()=>vt({client:e}))});return{...h({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){const e={moveUp:()=>p(bt),moveRight:()=>p(St),moveDown:()=>p(wt),moveLeft:()=>p(Et)};return h({liftActionArgs:{id:o,clientSelection:mr(l),movementMode:"SNAP"},cleanup:S,actions:e})},abort:function(){Sr({expected:"PRE_DRAG",phase:c,isLockActive:f,shouldWarn:!0})&&e.release()}}}const Cr=[function(e){const t=(0,r.useRef)(ar),n=(0,r.useRef)(S),o=M(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const r=e.findClosestDraggableId(t);if(!r)return;const o=e.tryGetLock(r,s,{sourceEvent:t});if(!o)return;t.preventDefault();const i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}),[e]),i=M(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}),[e]),a=L(function(){n.current=E(window,[i,o],{passive:!1,capture:!0})},[i,o]),s=L(()=>{"IDLE"!==t.current.type&&(t.current=ar,n.current(),a())},[a]),l=L(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),u=L(function(){const e=sr({cancel:l,completed:s,getPhase:()=>t.current,setPhase:e=>{t.current=e}});n.current=E(window,e,{capture:!0,passive:!1})},[l,s]),c=L(function(e,n){"IDLE"!==t.current.type&&O(),t.current={type:"PENDING",point:n,actions:e},u()},[u]);Dn(function(){return a(),function(){n.current()}},[a])},function(e){const t=(0,r.useRef)(lr),n=M(()=>({eventName:"keydown",fn:function(n){if(n.defaultPrevented)return;if(32!==n.keyCode)return;const r=e.findClosestDraggableId(n);if(!r)return;const i=e.tryGetLock(r,l,{sourceEvent:n});if(!i)return;n.preventDefault();let a=!0;const s=i.snapLift();function l(){a||O(),a=!1,t.current(),o()}t.current(),t.current=E(window,cr(s,l),{capture:!0,passive:!1})}}),[e]),o=L(function(){t.current=E(window,[n],{passive:!1,capture:!0})},[n]);Dn(function(){return o(),function(){t.current()}},[o])},function(e){const t=(0,r.useRef)(dr),n=(0,r.useRef)(S),o=L(function(){return t.current},[]),i=L(function(e){t.current=e},[]),a=M(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const o=e.tryGetLock(r,l,{sourceEvent:t});if(!o)return;const i=t.touches[0],{clientX:a,clientY:s}=i,u={x:a,y:s};n.current(),f(o,u)}}),[e]),s=L(function(){n.current=E(window,[a],{capture:!0,passive:!1})},[a]),l=L(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(dr),n.current(),s())},[s,i]),u=L(()=>{const e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[l]),c=L(function(){const e={capture:!0,passive:!1},t={cancel:u,completed:l,getPhase:o},r=E(window,function({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const r=n();if("DRAGGING"!==r.type)return void e();r.hasMoved=!0;const{clientX:o,clientY:i}=t.touches[0],a={x:o,y:i};t.preventDefault(),r.actions.move(a)}},{eventName:"touchend",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const r=n();"IDLE"===r.type&&O();const o=t.touches[0];if(!o)return;if(!(o.force>=.15))return;const i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();i&&e()}},{eventName:ir,fn:e}]}(t),e),i=E(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:n=>{"DRAGGING"===t().type?(27===n.keyCode&&n.preventDefault(),e()):e()}},{eventName:ir,fn:e}]}(t),e);n.current=function(){r(),i()}},[u,o,l]),d=L(function(){const e=o();"PENDING"!==e.type&&O();const t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})},[o,i]),f=L(function(e,t){"IDLE"!==o().type&&O();const n=setTimeout(d,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()},[c,o,i,d]);Dn(function(){return s(),function(){n.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(dr))}},[o,s,i]),Dn(function(){return E(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function kr({contextId:e,store:t,registry:n,customSensors:o,enableDefaultSensors:i}){const a=[...i?Cr:[],...o||[]],s=(0,r.useState)(()=>function(){let e=null;function t(){e||O(),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&O();const n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],l=L(function(e,t){Yn(e)&&!Yn(t)&&s.tryAbandon()},[s]);Dn(function(){let e=t.getState();return t.subscribe(()=>{const n=t.getState();l(e,n),e=n})},[s,t,l]),Dn(()=>s.tryAbandon,[s.tryAbandon]);const u=L(e=>Er({lockAPI:s,registry:n,store:t,draggableId:e}),[s,n,t]),c=L((r,o,i)=>xr({lockAPI:s,registry:n,contextId:e,store:t,draggableId:r,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,s,n,t]),d=L(t=>function(e,t){const n=br(e,t);return n?n.getAttribute(On.draggableId):null}(e,t),[e]),f=L(e=>{const t=n.draggable.findById(e);return t?t.options:null},[n.draggable]),p=L(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(xt()))},[s,t]),h=L(()=>s.isClaimed(),[s]),m=M(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}),[u,c,d,f,p,h]);qn();for(let e=0;e<a.length;e++)a[e](m)}const Or=e=>({onBeforeCapture:t=>{(0,o.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),_r=e=>({...dn,...e.autoScrollerOptions,durationDampening:{...dn.durationDampening,...e.autoScrollerOptions}});function Pr(e){return e.current||O(),e.current}function Ar(e){const{contextId:t,setCallbacks:n,sensors:o,nonce:s,dragHandleUsageInstructions:l}=e,u=(0,r.useRef)(null);Qn();const c=Kn(e),d=L(()=>Or(c.current),[c]),f=L(()=>_r(c.current),[c]),p=function(e){const t=M(()=>Wn(e),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)(function(){const e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,b.A)(e.style,Hn),Un().appendChild(e),function(){setTimeout(function(){const t=Un();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)})}},[t]),L(e=>{const t=n.current;t&&(t.textContent=e)},[])}(t),h=function({contextId:e,text:t}){const n=$n("hidden-text",{separator:"-"}),o=M(()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:e,uniqueId:n}),[n,e]);return(0,r.useEffect)(function(){const e=document.createElement("div");return e.id=o,e.textContent=t,e.style.display="none",Un().appendChild(e),function(){const t=Un();t.contains(e)&&t.removeChild(e)}},[o,t]),o}({contextId:t,text:l}),m=function(e,t){const n=M(()=>In(e),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=L(X(e=>{const t=i.current;t||O(),t.textContent=e}),[]),s=L(e=>{const t=o.current;t||O(),t.textContent=e},[]);Dn(()=>{(o.current||i.current)&&O();const r=Nn(t),l=Nn(t);return o.current=r,i.current=l,r.setAttribute(`${kn}-always`,e),l.setAttribute(`${kn}-dynamic`,e),Tn().appendChild(r),Tn().appendChild(l),s(n.always),a(n.resting),()=>{const e=e=>{const t=e.current;t||O(),Tn().removeChild(t),e.current=null};e(o),e(i)}},[t,s,a,n.always,n.resting,e]);const l=L(()=>a(n.dragging),[a,n.dragging]),u=L(e=>{a("DROP"!==e?n.userCancel:n.dropAnimating)},[a,n.dropAnimating,n.userCancel]),c=L(()=>{i.current&&a(n.resting)},[a,n.resting]);return M(()=>({dragging:l,dropping:u,resting:c}),[l,u,c])}(t,s),g=L(e=>{Pr(u).dispatch(e)},[]),y=M(()=>(0,i.zH)({publishWhileDragging:pt,updateDroppableScroll:mt,updateDroppableIsEnabled:gt,updateDroppableIsCombineEnabled:yt,collectionStarting:ht},g),[g]),v=function(){const e=M(jn,[]);return(0,r.useEffect)(()=>function(){e.clean()},[e]),e}(),w=M(()=>an(v,y),[v,y]),S=M(()=>Cn({scrollWindow:ln,scrollDroppable:w.scrollDroppable,getAutoScrollerOptions:f,...(0,i.zH)({move:vt},g)}),[w.scrollDroppable,g,f]),E=function(e){const t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=L(function(e,n){const r={id:e,focus:n};return t.current[e]=r,function(){const n=t.current;n[e]!==r&&delete n[e]}},[]),s=L(function(t){const n=Fn(e,t);n&&n!==document.activeElement&&n.focus()},[e]),l=L(function(e,t){n.current===e&&(n.current=t)},[]),u=L(function(){o.current||i.current&&(o.current=requestAnimationFrame(()=>{o.current=null;const e=n.current;e&&s(e)}))},[s]),c=L(function(e){n.current=null;const t=document.activeElement;t&&t.getAttribute(On.draggableId)===e&&(n.current=e)},[]);return Dn(()=>(i.current=!0,function(){i.current=!1;const e=o.current;e&&cancelAnimationFrame(e)}),[]),M(()=>({register:a,tryRecordFocus:c,tryRestoreFocusRecorded:u,tryShiftRecord:l}),[a,c,u,l])}(t),x=M(()=>Zt({announce:p,autoScroller:S,dimensionMarshal:w,focusMarshal:E,getResponders:d,styleMarshal:m}),[p,S,w,E,d,m]);u.current=x;const C=L(()=>{const e=Pr(u);"IDLE"!==e.getState().phase&&e.dispatch(xt())},[]),k=L(()=>{const e=Pr(u).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);n(M(()=>({isDragging:k,tryAbort:C}),[k,C]));const _=L(e=>sn(Pr(u).getState(),e),[]),P=L(()=>Ve(Pr(u).getState()),[]),A=M(()=>({marshal:w,focus:E,contextId:t,canLift:_,isMovementAllowed:P,dragHandleUsageInstructionsId:h,registry:v}),[t,w,h,E,_,P,v]);return kr({contextId:t,store:x,registry:v,customSensors:o||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)(()=>C,[C]),r.createElement(Gn.Provider,{value:A},r.createElement(a.Kq,{context:zn,store:x},e.children))}function Rr(e){const t=r.useId(),n=e.dragHandleUsageInstructions||D.dragHandleUsageInstructions;return r.createElement(_,null,o=>r.createElement(Ar,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const Ir=5e3,Dr=4500,Tr=(e,t)=>t?Dt.drop(t.duration):e?Dt.snap:Dt.fluid,Nr=(e,t)=>{if(e)return t?Pt.drop:Pt.combining};function Mr(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,i=Boolean(r),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(o),l=s?Mt(n,i):Nt(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Tr(a,o),transform:l,opacity:Nr(i,s),zIndex:s?Dr:Ir,pointerEvents:"none"}}(e):{transform:Nt((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function Lr(e){const t=$n("draggable"),{descriptor:n,registry:o,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}=e,u=M(()=>({canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}),[a,l,s]),c=L(e=>{const t=i();return t||O(),function(e,t,n=B){const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=g(o,r),a=m(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)},[n,i]),d=M(()=>({uniqueId:t,descriptor:n,options:u,getDimension:c}),[n,c,u,t]),f=(0,r.useRef)(d),p=(0,r.useRef)(!0);Dn(()=>(o.draggable.register(f.current),()=>o.draggable.unregister(f.current)),[o.draggable]),Dn(()=>{if(p.current)return void(p.current=!1);const e=f.current;f.current=d,o.draggable.update(d,e)},[d,o.draggable])}var Br=r.createContext(null);function Fr(e){const t=(0,r.useContext)(e);return t||O(),t}function jr(e){e.preventDefault()}var zr=(e,t)=>e===t,Ur=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function Hr(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Wr={mapped:{type:"SECONDARY",offset:B,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Hr(null)}};const Vr={dropAnimationFinished:Ot},$r=(0,a.Ng)(()=>{const e=function(){const e=X((e,t)=>({x:e,y:t})),t=X((e,t,n=null,r=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null})),n=X((e,n,r,o,i=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}));return(r,o)=>{if(Yn(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=He(r.impact),l=(i=r.impact).at&&"COMBINE"===i.at.type?i.at.combine.draggableId:null,u=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,o.isClone,s,l,u)}var i;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,i=r.dimensions.draggables[o.draggableId],a=e.result,s=a.mode,l=Ur(a),u=(e=>e.combine?e.combine.draggableId:null)(a),c={duration:r.dropDuration,curve:_t,moveTo:r.newHomeClientOffset,opacity:u?Pt.drop:null,scale:u?At.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:i,dropping:c,draggingOver:l,combineWith:u,mode:s,forceShouldAnimate:null,snapshot:t(s,n,l,u,c)}}}return null}}(),t=function(){const e=X((e,t)=>({x:e,y:t})),t=X(Hr),n=X((e,n=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}})),r=e=>e?n(B,e,!0):null,o=(t,o,i,a)=>{const s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),u=oe(i),c=u&&u.draggableId===t?o:null;if(!s){if(!l)return r(c);if(i.displaced.invisible[t])return null;const o=U(a.displacedBy.point),s=e(o.x,o.y);return n(s,c,!0)}if(l)return r(c);const d=i.displacedBy.point,f=e(d.x,d.y);return n(f,c,s.shouldAnimate)};return(e,t)=>{if(Yn(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||Wr},Vr,null,{context:zn,areStatePropsEqual:zr})(e=>{const t=(0,r.useRef)(null),n=L((e=null)=>{t.current=e},[]),i=L(()=>t.current,[]),{contextId:a,dragHandleUsageInstructionsId:s,registry:l}=Fr(Gn),{type:u,droppableId:c}=Fr(Br),d=M(()=>({id:e.draggableId,index:e.index,type:u,droppableId:c}),[e.draggableId,e.index,u,c]),{children:f,draggableId:p,isEnabled:h,shouldRespectForcePress:m,canDragInteractiveElements:g,isClone:y,mapped:v,dropAnimationFinished:b}=e;if(Qn(),qn(),!y){Lr(M(()=>({descriptor:d,registry:l,getDraggableRef:i,canDragInteractiveElements:g,shouldRespectForcePress:m,isEnabled:h}),[d,l,i,g,m,h]))}const w=M(()=>h?{tabIndex:0,role:"button","aria-describedby":s,"data-rfd-drag-handle-draggable-id":p,"data-rfd-drag-handle-context-id":a,draggable:!1,onDragStart:jr}:null,[a,s,p,h]),S=L(e=>{"DRAGGING"===v.type&&v.dropping&&"transform"===e.propertyName&&(0,o.flushSync)(b)},[b,v]),E=M(()=>{const e=Mr(v),t="DRAGGING"===v.type&&v.dropping?S:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":a,"data-rfd-draggable-id":p,style:e,onTransitionEnd:t},dragHandleProps:w}},[a,w,p,v,S,n]),x=M(()=>({draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}),[d.droppableId,d.id,d.index,d.type]);return r.createElement(r.Fragment,null,f(E,v.snapshot,x))});function Gr(e){return Fr(Br).isUsingCloneFor!==e.draggableId||e.isClone?r.createElement($r,e):null}function qr(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.createElement(Gr,(0,b.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}const Qr=e=>t=>e===t,Kr=Qr("scroll"),Yr=Qr("auto"),Xr=(Qr("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),Jr=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return Xr(n,Kr)||Xr(n,Yr)})(e)?e:Jr(e.parentElement);var Zr=e=>({x:e.scrollLeft,y:e.scrollTop});const eo=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||eo(e.parentElement)};var to=({ref:e,descriptor:t,env:n,windowScroll:r,direction:o,isDropDisabled:i,isCombineEnabled:a,shouldClipSubject:s})=>{const l=n.closestScrollable,c=((e,t)=>{const n=y(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,s=u({top:r,right:a,bottom:i,left:o},n.border);return f({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})})(e,l),d=m(c,r),p=(()=>{if(!l)return null;const e=y(l),t={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:e,page:m(e,r),scroll:Zr(l),scrollSize:t,shouldClipSubject:s}})(),h=(({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:o,client:i,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,n=en({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:B,displacement:B}}}})(),u="vertical"===o?pe:he;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:u,isEnabled:t,client:i,page:a,frame:l,subject:K({page:a,withPlaceholder:null,axis:u,frame:l})}})({descriptor:t,isEnabled:!i,isCombineEnabled:a,isFixedOnPage:n.isFixedOnPage,direction:o,client:c,page:d,closest:p});return h};const no={passive:!1},ro={passive:!0};var oo=e=>e.shouldPublishImmediately?no:ro;const io=e=>e&&e.env.closestScrollable||null;function ao(e){const t=(0,r.useRef)(null),n=Fr(Gn),o=$n("droppable"),{registry:i,marshal:a}=n,s=Kn(e),l=M(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),u=(0,r.useRef)(l),c=M(()=>X((e,n)=>{t.current||O();const r={x:e,y:n};a.updateDroppableScroll(l.id,r)}),[l.id,a]),d=L(()=>{const e=t.current;return e&&e.env.closestScrollable?Zr(e.env.closestScrollable):B},[]),f=L(()=>{const e=d();c(e.x,e.y)},[d,c]),p=M(()=>v(f),[f]),h=L(()=>{const e=t.current,n=io(e);e&&n||O();e.scrollOptions.shouldPublishImmediately?f():p()},[p,f]),m=L((e,r)=>{t.current&&O();const o=s.current,i=o.getDroppableRef();i||O();const a=(e=>({closestScrollable:Jr(e),isFixedOnPage:eo(e)}))(i),u={ref:i,descriptor:l,env:a,scrollOptions:r};t.current=u;const c=to({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(An.contextId,n.contextId),d.addEventListener("scroll",h,oo(u.scrollOptions))),c},[n.contextId,l,h,s]),g=L(()=>{const e=t.current,n=io(e);return e&&n||O(),Zr(n)},[]),y=L(()=>{const e=t.current;e||O();const n=io(e);t.current=null,n&&(p.cancel(),n.removeAttribute(An.contextId),n.removeEventListener("scroll",h,oo(e.scrollOptions)))},[h,p]),b=L(e=>{const n=t.current;n||O();const r=io(n);r||O(),r.scrollTop+=e.y,r.scrollLeft+=e.x},[]),w=M(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:y,scroll:b}),[y,m,g,b]),S=M(()=>({uniqueId:o,descriptor:l,callbacks:w}),[w,l,o]);Dn(()=>(u.current=S.descriptor,i.droppable.register(S),()=>{t.current&&y(),i.droppable.unregister(S)}),[w,l,y,S,a,i.droppable]),Dn(()=>{t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Dn(()=>{t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function so(){}const lo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},uo=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||"close"===n?lo:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?Dt.placeholder:null}};var co=r.memo(e=>{const t=(0,r.useRef)(null),n=L(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:o,onTransitionEnd:i,onClose:a,contextId:s}=e,[l,u]=(0,r.useState)("open"===e.animate);(0,r.useEffect)(()=>l?"open"!==o?(n(),u(!1),so):t.current?so:(t.current=setTimeout(()=>{t.current=null,u(!1)}),n):so,[o,l,n]);const c=L(e=>{"height"===e.propertyName&&(i(),"close"===o&&a())},[o,a,i]),d=uo({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return r.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":s,onTransitionEnd:c,ref:e.innerRef})});class fo extends r.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const po={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||O(),document.body}},ho=e=>{let t,n={...e};for(t in po)void 0===e[t]&&(n={...n,[t]:po[t]});return n},mo=(e,t)=>e===t.droppable.type,go=(e,t)=>t.draggables[e.draggable.id],yo={updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},vo=(0,a.Ng)(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=X(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),r=X((r,o,i,a,s,l)=>{const u=s.descriptor.id;if(s.descriptor.droppableId===r){const e=l?{render:l,dragging:n(s.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!a)return e;const c={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:c,useClone:null}});return(n,o)=>{const i=ho(o),a=i.droppableId,s=i.type,l=!i.isDropDisabled,u=i.renderClone;if(Yn(n)){const e=n.critical;if(!mo(s,e))return t;const o=go(e,n.dimensions),i=He(n.impact)===a;return r(a,l,i,i,o,u)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!mo(s,e.critical))return t;const o=go(e.critical,n.dimensions);return r(a,l,Ur(e.result)===a,He(e.impact)===a,o,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!mo(s,r.critical))return t;const o=He(r.impact)===a,i=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),l=r.critical.droppable.id===a;return o?i?e:t:l?e:t}return t}},yo,(e,t,n)=>({...ho(n),...e,...t}),{context:zn,areStatePropsEqual:zr})(e=>{const t=(0,r.useContext)(Gn);t||O();const{contextId:n,isMovementAllowed:i}=t,a=(0,r.useRef)(null),s=(0,r.useRef)(null),{children:l,droppableId:u,type:c,mode:d,direction:f,ignoreContainerClipping:p,isDropDisabled:h,isCombineEnabled:m,snapshot:g,useClone:y,updateViewportMaxScroll:v,getContainerForClone:b}=e,w=L(()=>a.current,[]),S=L((e=null)=>{a.current=e},[]),E=(L(()=>s.current,[]),L((e=null)=>{s.current=e},[]));Qn();const x=L(()=>{i()&&v({maxScroll:nn()})},[i,v]);ao({droppableId:u,type:c,mode:d,direction:f,isDropDisabled:h,isCombineEnabled:m,ignoreContainerClipping:p,getDroppableRef:w});const C=M(()=>r.createElement(fo,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:o})=>r.createElement(co,{placeholder:t,onClose:e,innerRef:E,animate:o,contextId:n,onTransitionEnd:x})),[n,x,e.placeholder,e.shouldAnimatePlaceholder,E]),k=M(()=>({innerRef:S,placeholder:C,droppableProps:{"data-rfd-droppable-id":u,"data-rfd-droppable-context-id":n}}),[n,u,C,S]),_=y?y.dragging.draggableId:null,P=M(()=>({droppableId:u,type:c,isUsingCloneFor:_}),[u,_,c]);return r.createElement(Br.Provider,{value:P},l(k,g),function(){if(!y)return null;const{dragging:e,render:t}=y,n=r.createElement(Gr,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(n,r)=>t(n,r,e));return o.createPortal(n,b())}())})},67667:(e,t,n)=>{const r=n(35741),{swap32LE:o}=n(86288);e.exports=class{constructor(e){const t="function"==typeof e.readUInt32BE&&"function"==typeof e.slice;if(t||e instanceof Uint8Array){let n;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),n=e.readUInt32LE(8),e=e.slice(12);else{const t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),n=t.getUint32(8,!0),e=e.subarray(12)}e=r(e,new Uint8Array(n)),e=r(e,new Uint8Array(n)),o(e),this.data=new Uint32Array(e.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>5]<<2)+(31&e),this.data[t]):e<=65535?(t=(this.data[2048+(e-55296>>5)]<<2)+(31&e),this.data[t]):e<this.highStart?(t=this.data[2080+(e>>11)],t=this.data[t+(e>>5&63)],t=(t<<2)+(31&e),this.data[t]):this.data[this.data.length-4]}}},68131:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(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 i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Q:()=>u});var u=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return n=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}(this,(e=i(t)).call.apply(e,[this].concat(s))),l(a(n),"state",{bootstrapped:!1}),l(a(n),"_unsubscribe",void 0),l(a(n),"handlePersistorState",function(){n.props.persistor.getState().bootstrapped&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally(function(){return n.setState({bootstrapped:!0})}):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())}),n}var n,u,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,e),n=t,(u=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}])&&o(n.prototype,u),c&&o(n,c),t}(n(96540).PureComponent);l(u,"defaultProps",{children:null,loading:null})},68853:(e,t,n)=>{"use strict";n.d(t,{B8:()=>b});var r=n(74848),o=n(96540);const i=typeof window<"u"?o.useLayoutEffect:o.useEffect;function a(e){if(void 0!==e)switch(typeof e){case"number":return e;case"string":if(e.endsWith("px"))return parseFloat(e)}}function s(e){const t=(0,o.useRef)(()=>{throw new Error("Cannot call during render.")});return i(()=>{t.current=e},[e]),(0,o.useCallback)(e=>t.current?.(e),[t])}let l=null;function u({containerElement:e,direction:t,isRtl:n,scrollOffset:r}){if("horizontal"===t&&n)switch(function(e=!1){if(null===l||e){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const n=document.createElement("div"),r=n.style;return r.width="100px",r.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?l="positive-descending":(e.scrollLeft=1,l=0===e.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(e),l}return l}()){case"negative":return-r;case"positive-descending":if(e){const{clientWidth:t,scrollLeft:n,scrollWidth:r}=e;return r-t-n}}return r}function c(e,t="Assertion error"){if(!e)throw console.error(t),Error(t)}function d(e,t){if(e===t)return!0;if(!!e!=!!t||(c(void 0!==e),c(void 0!==t),Object.keys(e).length!==Object.keys(t).length))return!1;for(const n in e)if(!Object.is(t[n],e[n]))return!1;return!0}function f({cachedBounds:e,itemCount:t,itemSize:n}){if(0===t)return 0;if("number"==typeof n)return t*n;{const n=e.get(0===e.size?0:e.size-1);c(void 0!==n,"Unexpected bounds cache miss");return t*((n.scrollOffset+n.size)/e.size)}}function p({cachedBounds:e,containerScrollOffset:t,containerSize:n,itemCount:r,overscanCount:o}){const i=r-1;let a=0,s=-1,l=0,u=-1,c=0;for(;c<i;){const n=e.get(c);if(n.scrollOffset+n.size>t)break;c++}for(a=c,l=Math.max(0,a-o);c<i;){const r=e.get(c);if(r.scrollOffset+r.size>=t+n)break;c++}return s=Math.min(i,c),u=Math.min(r-1,s+o),a<0&&(a=0,s=-1,l=0,u=-1),{startIndexVisible:a,stopIndexVisible:s,startIndexOverscan:l,stopIndexOverscan:u}}function h({itemCount:e,itemProps:t,itemSize:n}){return(0,o.useMemo)(()=>function({itemCount:e,itemProps:t,itemSize:n}){const r=new Map;return{get(o){for(c(o<e,`Invalid index ${o}`);r.size-1<o;){const e=r.size;let i;switch(typeof n){case"function":i=n(e,t);break;case"number":i=n}if(0===e)r.set(e,{size:i,scrollOffset:0});else{const t=r.get(e-1);c(void 0!==t,`Unexpected bounds cache miss for index ${o}`),r.set(e,{scrollOffset:t.scrollOffset+t.size,size:i})}}const i=r.get(o);return c(void 0!==i,`Unexpected bounds cache miss for index ${o}`),i},set(e,t){r.set(e,t)},get size(){return r.size}}}({itemCount:e,itemProps:t,itemSize:n}),[e,t,n])}function m({containerElement:e,containerStyle:t,defaultContainerSize:n=0,direction:r,isRtl:l=!1,itemCount:m,itemProps:g,itemSize:y,onResize:v,overscanCount:b}){const[w,S]=(0,o.useState)({startIndexVisible:0,startIndexOverscan:0,stopIndexVisible:-1,stopIndexOverscan:-1}),{startIndexVisible:E,startIndexOverscan:x,stopIndexVisible:C,stopIndexOverscan:k}={startIndexVisible:Math.min(m-1,w.startIndexVisible),startIndexOverscan:Math.min(m-1,w.startIndexOverscan),stopIndexVisible:Math.min(m-1,w.stopIndexVisible),stopIndexOverscan:Math.min(m-1,w.stopIndexOverscan)},{height:O=n,width:_=n}=function({box:e,defaultHeight:t,defaultWidth:n,disabled:r,element:s,mode:l,style:u}){const{styleHeight:c,styleWidth:d}=(0,o.useMemo)(()=>({styleHeight:a(u?.height),styleWidth:a(u?.width)}),[u?.height,u?.width]),[f,p]=(0,o.useState)({height:t,width:n}),h=r||"only-height"===l&&void 0!==c||"only-width"===l&&void 0!==d||void 0!==c&&void 0!==d;return i(()=>{if(null===s||h)return;const t=new ResizeObserver(e=>{for(const t of e){const{contentRect:e,target:n}=t;s===n&&p(t=>t.height===e.height&&t.width===e.width?t:{height:e.height,width:e.width})}});return t.observe(s,{box:e}),()=>{t?.unobserve(s)}},[e,h,s,c,d]),(0,o.useMemo)(()=>({height:c??f.height,width:d??f.width}),[f,c,d])}({defaultHeight:"vertical"===r?n:void 0,defaultWidth:"horizontal"===r?n:void 0,element:e,mode:"vertical"===r?"only-height":"only-width",style:t}),P=(0,o.useRef)({height:0,width:0}),A="vertical"===r?O:_,R=function({containerSize:e,itemSize:t}){let n;"string"==typeof t?(c(t.endsWith("%"),`Invalid item size: "${t}"; string values must be percentages (e.g. "100%")`),c(void 0!==e,"Container size must be defined if a percentage item size is specified"),n=e*parseInt(t)/100):n=t;return n}({containerSize:A,itemSize:y});(0,o.useLayoutEffect)(()=>{if("function"==typeof v){const e=P.current;(e.height!==O||e.width!==_)&&(v({height:O,width:_},{...e}),e.height=O,e.width=_)}},[O,v,_]);const I=h({itemCount:m,itemProps:g,itemSize:R}),D=(0,o.useCallback)(e=>I.get(e),[I]),T=(0,o.useCallback)(()=>f({cachedBounds:I,itemCount:m,itemSize:R}),[I,m,R]),N=(0,o.useCallback)(t=>{const n=u({containerElement:e,direction:r,isRtl:l,scrollOffset:t});return p({cachedBounds:I,containerScrollOffset:n,containerSize:A,itemCount:m,overscanCount:b})},[I,e,A,r,l,m,b]);i(()=>{S(N(("vertical"===r?e?.scrollTop:e?.scrollLeft)??0))},[e,r,N]),i(()=>{if(!e)return;const t=()=>{S(t=>{const{scrollLeft:n,scrollTop:o}=e,i=u({containerElement:e,direction:r,isRtl:l,scrollOffset:"vertical"===r?o:n}),a=p({cachedBounds:I,containerScrollOffset:i,containerSize:A,itemCount:m,overscanCount:b});return d(a,t)?t:a})};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[I,e,A,r,m,b]);const M=s(({align:t="auto",containerScrollOffset:n,index:o})=>{let i=function({align:e,cachedBounds:t,index:n,itemCount:r,itemSize:o,containerScrollOffset:i,containerSize:a}){if(n<0||n>=r)throw RangeError(`Invalid index specified: ${n}`,{cause:`Index ${n} is not within the range of 0 - ${r-1}`});const s=f({cachedBounds:t,itemCount:r,itemSize:o}),l=t.get(n),u=Math.max(0,Math.min(s-a,l.scrollOffset)),c=Math.max(0,l.scrollOffset-a+l.size);switch("smart"===e&&(e=i>=c&&i<=u?"auto":"center"),e){case"start":return u;case"end":return c;case"center":return l.scrollOffset<=a/2?0:l.scrollOffset+l.size/2>=s-a/2?s-a:l.scrollOffset+l.size/2-a/2;default:return i>=c&&i<=u?i:i<c?c:u}}({align:t,cachedBounds:I,containerScrollOffset:n,containerSize:A,index:o,itemCount:m,itemSize:R});if(e){if(i=u({containerElement:e,direction:r,isRtl:l,scrollOffset:i}),"function"!=typeof e.scrollTo){const e=N(i);d(w,e)||S(e)}return i}});return{getCellBounds:D,getEstimatedSize:T,scrollToIndex:M,startIndexOverscan:x,startIndexVisible:E,stopIndexOverscan:k,stopIndexVisible:C}}function g(e){return(0,o.useMemo)(()=>e,Object.values(e))}function y(e,t){const{ariaAttributes:n,style:r,...o}=e,{ariaAttributes:i,style:a,...s}=t;return d(n,i)&&d(r,a)&&d(o,s)}const v="data-react-window-index";function b({children:e,className:t,defaultHeight:n=0,listRef:a,onResize:s,onRowsRendered:l,overscanCount:u=3,rowComponent:c,rowCount:d,rowHeight:f,rowProps:p,tagName:h="div",style:b,...w}){const S=g(p),E=(0,o.useMemo)(()=>(0,o.memo)(c,y),[c]),[x,C]=(0,o.useState)(null),k=function(e){return null!=e&&"object"==typeof e&&"getAverageRowHeight"in e&&"function"==typeof e.getAverageRowHeight}(f),O=(0,o.useMemo)(()=>k?e=>f.getRowHeight(e)??f.getAverageRowHeight():f,[k,f]),{getCellBounds:_,getEstimatedSize:P,scrollToIndex:A,startIndexOverscan:R,startIndexVisible:I,stopIndexOverscan:D,stopIndexVisible:T}=m({containerElement:x,containerStyle:b,defaultContainerSize:n,direction:"vertical",itemCount:d,itemProps:S,itemSize:O,onResize:s,overscanCount:u});(0,o.useImperativeHandle)(a,()=>({get element(){return x},scrollToRow({align:e="auto",behavior:t="auto",index:n}){const r=A({align:e,containerScrollOffset:x?.scrollTop??0,index:n});"function"==typeof x?.scrollTo&&x.scrollTo({behavior:t,top:r})}}),[x,A]),i(()=>{if(!x)return;const e=Array.from(x.children).filter((e,t)=>{if(e.hasAttribute("aria-hidden"))return!1;const n=`${R+t}`;return e.setAttribute(v,n),!0});return k?f.observeRowElements(e):void 0},[x,k,f,R,D]),(0,o.useEffect)(()=>{R>=0&&D>=0&&l&&l({startIndex:I,stopIndex:T},{startIndex:R,stopIndex:D})},[l,R,I,D,T]);const N=(0,o.useMemo)(()=>{const e=[];if(d>0)for(let t=R;t<=D;t++){const n=_(t);e.push((0,o.createElement)(E,{...S,ariaAttributes:{"aria-posinset":t+1,"aria-setsize":d,role:"listitem"},key:t,index:t,style:{position:"absolute",left:0,transform:`translateY(${n.scrollOffset}px)`,height:k?void 0:n.size,width:"100%"}}))}return e},[E,_,k,d,S,R,D]),M=(0,r.jsx)("div",{"aria-hidden":!0,style:{height:P(),width:"100%",zIndex:-1}});return(0,o.createElement)(h,{role:"list",...w,className:t,ref:C,style:{position:"relative",maxHeight:"100%",flexGrow:1,overflowY:"auto",...b}},N,e,M)}},69282:(e,t,n)=>{"use strict";var r;t.A=void 0;var o=(0,((r=n(11215))&&r.__esModule?r:{default:r}).default)("local");t.A=o},69982:(e,t,n)=>{"use strict";e.exports=n(7463)},70960:(e,t,n)=>{"use strict";n.d(t,{ZM:()=>o,Hz:()=>a,DY:()=>s,Cq:()=>l,eY:()=>u,r2:()=>i,rL:()=>k,GM:()=>T});var r="persist:",o="persist/FLUSH",i="persist/REHYDRATE",a="persist/PAUSE",s="persist/PERSIST",l="persist/PURGE",u="persist/REGISTER",c=-1;function d(e){return d="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},d(e)}function f(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 p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n,r){r.debug;var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return e&&"object"===d(e)&&Object.keys(e).forEach(function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])}),o}function m(e){var t,n=e.blacklist||null,o=e.whitelist||null,i=e.transforms||[],a=e.throttle||0,s="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:g;var u=e.writeFailHandler||null,c={},d={},f=[],p=null,h=null;function m(){if(0===f.length)return p&&clearInterval(p),void(p=null);var e=f.shift(),n=i.reduce(function(t,n){return n.in(t,e,c)},c[e]);if(void 0!==n)try{d[e]=t(n)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete d[e];0===f.length&&(Object.keys(d).forEach(function(e){void 0===c[e]&&delete d[e]}),h=l.setItem(s,t(d)).catch(v))}function y(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function v(e){u&&u(e)}return{update:function(e){Object.keys(e).forEach(function(t){y(t)&&c[t]!==e[t]&&-1===f.indexOf(t)&&f.push(t)}),Object.keys(c).forEach(function(t){void 0===e[t]&&y(t)&&-1===f.indexOf(t)&&void 0!==c[t]&&f.push(t)}),null===p&&(p=setInterval(m,a)),c=e},flush:function(){for(;0!==f.length;)m();return h||Promise.resolve()}}}function g(e){return JSON.stringify(e)}function y(e){var t,n=e.transforms||[],o="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key),i=e.storage;e.debug;return t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:v,i.getItem(o).then(function(e){if(e)try{var r={},o=t(e);return Object.keys(o).forEach(function(e){r[e]=n.reduceRight(function(t,n){return n.out(t,e,o)},t(o[e]))}),r}catch(e){throw e}})}function v(e){return JSON.parse(e)}function b(e){0}function w(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 S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(n,!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var C=5e3;function k(e,t){var n=void 0!==e.version?e.version:c,u=(e.debug,void 0===e.stateReconciler?h:e.stateReconciler),d=e.getStoredState||y,f=void 0!==e.timeout?e.timeout:C,p=null,g=!1,v=!0,w=function(e){return e._persist.rehydrated&&p&&!v&&p.update(e),e};return function(c,h){var y=c||{},E=y._persist,C=x(y,["_persist"]);if(h.type===s){var k=!1,O=function(t,n){k||(h.rehydrate(e.key,t,n),k=!0)};if(f&&setTimeout(function(){!k&&O(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},f),v=!1,p||(p=m(e)),E)return S({},t(C,h),{_persist:E});if("function"!=typeof h.rehydrate||"function"!=typeof h.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),d(e).then(function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then(function(e){O(e)},function(e){O(void 0,e)})},function(e){O(void 0,e)}),S({},t(C,h),{_persist:{version:n,rehydrated:!1}})}if(h.type===l)return g=!0,h.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key);return t.removeItem(n,b)}(e)),S({},t(C,h),{_persist:E});if(h.type===o)return h.result(p&&p.flush()),S({},t(C,h),{_persist:E});if(h.type===a)v=!0;else if(h.type===i){if(g)return S({},C,{_persist:S({},E,{rehydrated:!0})});if(h.key===e.key){var _=t(C,h),P=h.payload,A=S({},!1!==u&&void 0!==P?u(P,c,_,e):_,{_persist:S({},E,{rehydrated:!0})});return w(A)}}if(!E)return t(c,h);var R=t(C,h);return R===C?c:w(S({},R,{_persist:E}))}}var O=n(14644);function _(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function P(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 A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(n,!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I={registry:[],bootstrapped:!1},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:return A({},e,{registry:[].concat(_(e.registry),[t.key])});case i:var n=e.registry.indexOf(t.key),r=_(e.registry);return r.splice(n,1),A({},e,{registry:r,bootstrapped:0===r.length});default:return e}};function T(e,t,n){var r=n||!1,c=(0,O.y$)(D,I,t&&t.enhancer?t.enhancer:void 0),d=function(e){c.dispatch({type:u,key:e})},f=function(t,n,o){var a={type:i,payload:n,err:o,key:t};e.dispatch(a),c.dispatch(a),r&&p.getState().bootstrapped&&(r(),r=!1)},p=A({},c,{purge:function(){var t=[];return e.dispatch({type:l,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:o,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:a})},persist:function(){e.dispatch({type:s,register:d,rehydrate:f})}});return t&&t.manualPersist||p.persist(),p}},71468:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>te,Ng:()=>ee,d4:()=>ce,wA:()=>se});var r=n(96540),o=n(78418),i=r.version.startsWith("19"),a=Symbol.for(i?"react.transitional.element":"react.element"),s=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=p,b=g;function w(e){if("object"==typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case a:switch(e=e.type){case l:case c:case u:case h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case y:case g:case d:return e;default:return t}}case s:return t}}}function S(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,u,c,d,f=!1;function p(f,p){const h=!i(p,l),m=!o(f,s,p,l);return s=f,l=p,h&&m?(u=e(s,l),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l),d):h?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(r,l)),d=n(u,c,l),d):m?function(){const t=e(s,l),r=!a(t,u);return u=t,r&&(d=n(u,c,l)),d}():d}return function(o,i){return f?p(o,i):(s=o,l=i,u=e(s,l),c=t(r,l),d=n(u,c,l),f=!0,d)}}function E(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function x(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function C(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=x(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=x(o),o=r(t,n)),o},r}}function k(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function O(e,t,n){return{...n,...e,...t}}function _(e){e()}var P={notify(){},get:()=>[]};function A(e,t){let n,r=P,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){_(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=P)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return u}var R=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),I=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),D=(()=>R||I?r.useLayoutEffect:r.useEffect)();function T(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function N(e,t){if(T(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!T(e[n[r]],t[n[r]]))return!1;return!0}var M={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:B};function j(e){return w(e)===g?B:F[e.$$typeof]||M}var z=Object.defineProperty,U=Object.getOwnPropertyNames,H=Object.getOwnPropertySymbols,W=Object.getOwnPropertyDescriptor,V=Object.getPrototypeOf,$=Object.prototype;function G(e,t){if("string"!=typeof t){if($){const n=V(t);n&&n!==$&&G(e,n)}let n=U(t);H&&(n=n.concat(H(t)));const r=j(e),o=j(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(L[a]||o&&o[a]||r&&r[a])){const n=W(t,a);try{z(e,a,n)}catch(e){}}}}return e}var q=Symbol.for("react-redux-context"),Q="undefined"!=typeof globalThis?globalThis:{};function K(){if(!r.createContext)return{};const e=Q[q]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Y=K(),X=[null,null];function J(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function Z(e,t){return e===t}var ee=function(e,t,n,{pure:o,areStatesEqual:i=Z,areOwnPropsEqual:a=N,areStatePropsEqual:s=N,areMergedPropsEqual:l=N,forwardRef:u=!1,context:c=Y}={}){const d=c,f=function(e){return e?"function"==typeof e?C(e):k(e,"mapStateToProps"):E(()=>({}))}(e),p=function(e){return e&&"object"==typeof e?E(t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t)):e?"function"==typeof e?C(e):k(e,"mapDispatchToProps"):E(e=>({dispatch:e}))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):k(e,"mergeProps"):()=>O}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){const[n,i,a]=r.useMemo(()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),s=r.useMemo(()=>d,[n,d]),l=r.useContext(s),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(l)&&Boolean(l.store);const f=u?t.store:l.store,p=c?l.getServerState:f.getState,h=r.useMemo(()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return S(t(e,o),n(e,o),r(e,o),e,o)}(f.dispatch,o),[f]),[g,y]=r.useMemo(()=>{if(!m)return X;const e=A(f,u?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,u,l]),v=r.useMemo(()=>u?l:{...l,subscription:g},[u,l,g]),b=r.useRef(void 0),w=r.useRef(a),E=r.useRef(void 0),x=r.useRef(!1),C=r.useRef(!1),k=r.useRef(void 0);D(()=>(C.current=!0,()=>{C.current=!1}),[]);const O=r.useMemo(()=>()=>E.current&&a===w.current?E.current:h(f.getState(),a),[f,a]),_=r.useMemo(()=>e=>g?function(e,t,n,r,o,i,a,s,l,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||u():(i.current=n,l.current=n,a.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,w,b,x,C,E,y,e):()=>{},[g]);var P,R,I;let T;P=J,R=[w,b,x,a,E,y],D(()=>P(...R),I);try{T=r.useSyncExternalStore(_,O,p?()=>h(p(),a):O)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}D(()=>{k.current=void 0,E.current=void 0,b.current=T});const N=r.useMemo(()=>r.createElement(e,{...T,ref:i}),[i,e,T]);return r.useMemo(()=>m?r.createElement(s.Provider,{value:v},N):N,[s,N,v])}const g=r.memo(c);if(g.WrappedComponent=e,g.displayName=c.displayName=n,u){const t=r.forwardRef(function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,G(t,e)}return G(g,e)}};var te=function(e){const{children:t,context:n,serverState:o,store:i}=e,a=r.useMemo(()=>{const e=A(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}},[i,o]),s=r.useMemo(()=>i.getState(),[i]);D(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const l=n||Y;return r.createElement(l.Provider,{value:a},t)};function ne(e=Y){return function(){return r.useContext(e)}}var re=ne();function oe(e=Y){const t=e===Y?re:ne(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var ie=oe();function ae(e=Y){const t=e===Y?ie:oe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var se=ae(),le=(e,t)=>e===t;function ue(e=Y){const t=e===Y?re:ne(e),n=(e,n={})=>{const{equalityFn:i=le}="function"==typeof n?{equalityFn:n}:n;const a=t(),{store:s,subscription:l,getServerState:u}=a,c=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,o.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,u||s.getState,c,i);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var ce=ue()},71832:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556)],r=function(e){var t=e.global,n=e.transform,r=t.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),o=t.ArrayBuffer&&ArrayBuffer.prototype.slice||function(e,t){t=t||this.byteLength-e;var n=new Uint8Array(this,e,t),r=new Uint8Array(t);return r.set(n),r.buffer},i={jpeg:{65505:[],65517:[]}};function a(n,a,s,l){var u=this;function c(a,c){if(!(t.DataView&&r&&n&&n.size>=12&&"image/jpeg"===n.type))return a(l);var d=s.maxMetaDataSize||262144;e.readFile(r.call(n,0,d),function(e){var t=new DataView(e);if(65496!==t.getUint16(0))return c(new Error("Invalid JPEG file: Missing JPEG marker."));for(var n,r,d,f,p=2,h=t.byteLength-4,m=p;p<h&&((n=t.getUint16(p))>=65504&&n<=65519||65534===n);){if(p+(r=t.getUint16(p+2)+2)>t.byteLength){console.log("Invalid JPEG metadata: Invalid segment size.");break}if((d=i.jpeg[n])&&!s.disableMetaDataParsers)for(f=0;f<d.length;f+=1)d[f].call(u,t,p,r,l,s);m=p+=r}!s.disableImageHead&&m>6&&(l.imageHead=o.call(e,0,m)),a(l)},c,"readAsArrayBuffer")||a(l)}return s=s||{},t.Promise&&"function"!=typeof a?(l=s=a||{},new Promise(c)):(l=l||{},c(a,a))}function s(e,t,n){return e&&t&&n?new Blob([n,r.call(e,t.byteLength)],{type:"image/jpeg"}):null}function l(e,n,r){var o={maxMetaDataSize:1024,disableMetaDataParsers:!0};if(!r&&t.Promise)return a(e,o).then(function(t){return s(e,t.imageHead,n)});a(e,function(t){r(s(e,t.imageHead,n))},o)}e.transform=function(r,o,i,s,l){e.requiresMetaData(o)?a(s,function(a){a!==l&&(t.console&&console.log(a),a=l),n.call(e,r,o,i,s,a)},o,l=l||{}):n.apply(e,arguments)},e.blobSlice=r,e.bufferSlice=o,e.replaceHead=l,e.parseMetaData=a,e.metaDataParsers=i},void 0===(i="function"==typeof r?r.apply(t,o):r)||(e.exports=i)}()},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},78418:(e,t,n)=>{"use strict";e.exports=n(85160)},80700:e=>{"use strict";e.exports=JSON.parse('{"p":"AAACAAAAAACAOAAAAbYBSf7t2S1IBEEYBuDVDZ7FYrQMNsFiu3hgEYOI0SCXRIUrB8JhEZtgs5gEg1GMFk02m82oGI02m+9xezCOczv/uwv3fvAwc/PzfXOzcdqzWdaBDdiGPdiHdjE+DS3RNDuCfsn8idQ/g3OH3BdwKf0e96/gumTfYcncLdzBPTzAo+RZ+f0Cr/AG7/AJX4738x1wtz9FO5PX/50n6UXMNdfg/0lERERERERERERERETpdedHBvDRql4nq0cXtW9af98qdRby0Vvp8K4W0V+C5Xw0t4J2bfjeBp3cnEu1brnnCTYNa7eKdz91XP7WO9Lb4GqRb7cY6xbtAdqeVOsY/QGcevw/tb6OT85YhvfKYEx9CMuxKsKnrs+eJtVInVvHJ0eVYVvTZk2siFVLOCjb61PTZX3MdVWEyP7fjzpmMxdzTyq2Ebue6x61nXRGnzndWpf1an7dXmGYE4Y1ptqqKsK1nu26Ju0ty+maV2Rpvk+qnDZjKUIobUiesdAQE/jmCTmHmsskpFZsVYbtmXRcaoSGUPomunW2derQhDPFjtT1Q/eb8vnm990fq35oHVt11bU9m89c7DNI8Qs="}')},82846:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556),n(87905)],void 0===(i="function"==typeof(r=function(e){var t=e.IptcMap.prototype;t.tags={0:"ApplicationRecordVersion",3:"ObjectTypeReference",4:"ObjectAttributeReference",5:"ObjectName",7:"EditStatus",8:"EditorialUpdate",10:"Urgency",12:"SubjectReference",15:"Category",20:"SupplementalCategories",22:"FixtureIdentifier",25:"Keywords",26:"ContentLocationCode",27:"ContentLocationName",30:"ReleaseDate",35:"ReleaseTime",37:"ExpirationDate",38:"ExpirationTime",40:"SpecialInstructions",42:"ActionAdvised",45:"ReferenceService",47:"ReferenceDate",50:"ReferenceNumber",55:"DateCreated",60:"TimeCreated",62:"DigitalCreationDate",63:"DigitalCreationTime",65:"OriginatingProgram",70:"ProgramVersion",75:"ObjectCycle",80:"Byline",85:"BylineTitle",90:"City",92:"Sublocation",95:"State",100:"CountryCode",101:"Country",103:"OriginalTransmissionReference",105:"Headline",110:"Credit",115:"Source",116:"CopyrightNotice",118:"Contact",120:"Caption",121:"LocalCaption",122:"Writer",125:"RasterizedCaption",130:"ImageType",131:"ImageOrientation",135:"LanguageIdentifier",150:"AudioType",151:"AudioSamplingRate",152:"AudioSamplingResolution",153:"AudioDuration",154:"AudioOutcue",184:"JobID",185:"MasterDocumentID",186:"ShortDocumentID",187:"UniqueDocumentID",188:"OwnerID",200:"ObjectPreviewFileFormat",201:"ObjectPreviewFileVersion",202:"ObjectPreviewData",221:"Prefs",225:"ClassifyState",228:"SimilarityIndex",230:"DocumentNotes",231:"DocumentHistory",232:"ExifCameraInfo",255:"CatalogSets"},t.stringValues={10:{0:"0 (reserved)",1:"1 (most urgent)",2:"2",3:"3",4:"4",5:"5 (normal urgency)",6:"6",7:"7",8:"8 (least urgent)",9:"9 (user-defined priority)"},75:{a:"Morning",b:"Both Morning and Evening",p:"Evening"},131:{L:"Landscape",P:"Portrait",S:"Square"}},t.getText=function(e){var t=this.get(e),n=this.map[e],r=this.stringValues[n];return r?r[t]:String(t)},t.getAll=function(){var e,t,n={};for(e in this)Object.prototype.hasOwnProperty.call(this,e)&&(t=this.tags[e])&&(n[t]=this.getText(t));return n},t.getName=function(e){return this.tags[e]},function(){var e,n=t.tags,r=t.map||{};for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[n[e]]=Number(e))}()})?r.apply(t,o):r)||(e.exports=i)}()},85160:(e,t,n)=>{"use strict";var r=n(96540);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]);var p=i(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},86288:e=>{const t=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],n=(e,t,n)=>{let r=e[t];e[t]=e[n],e[n]=r};e.exports={swap32LE:e=>{t&&(e=>{const t=e.length;for(let r=0;r<t;r+=4)n(e,r,r+3),n(e,r+1,r+2)})(e)}}},87905:(e,t,n)=>{var r,o,i;!function(){"use strict";o=[n(94556),n(71832)],void 0===(i="function"==typeof(r=function(e){function t(){}function n(e,t,n){for(var r="",o=t+n,i=t;i<o;i+=1)r+=String.fromCharCode(e.getUint8(i));return r}function r(e,t,r,o,i){return"binary"===t.types[e]?new Blob([r.buffer.slice(o,o+i)]):"Uint16"===t.types[e]?r.getUint16(o):n(r,o,i)}function o(e,t){return void 0===e?t:e instanceof Array?(e.push(t),e):[e,t]}function i(e,t,n,i,a,s){for(var l,u,c,d=t+n,f=t;f<d;)28===e.getUint8(f)&&2===e.getUint8(f+1)&&(c=e.getUint8(f+2),a&&!a[c]||s&&s[c]||(u=e.getInt16(f+3),l=r(c,i.iptc,e,f+5,u),i.iptc[c]=o(i.iptc[c],l),i.iptcOffsets&&(i.iptcOffsets[c]=f))),f+=1}function a(e,t){return 943868237===e.getUint32(t)&&1028===e.getUint16(t+4)}function s(e,t){var n=e.getUint8(t+7);return n%2!=0&&(n+=1),0===n&&(n=4),n}t.prototype.map={ObjectName:5},t.prototype.types={0:"Uint16",200:"Uint16",201:"Uint16",202:"binary"},t.prototype.get=function(e){return this[e]||this[this.map[e]]},e.parseIptcData=function(e,n,r,o,l){if(!l.disableIptc)for(var u=n+r;n+8<u;){if(a(e,n)){var c=s(e,n),d=n+8+c;if(d>u){console.log("Invalid IPTC data: Invalid segment offset.");break}var f=e.getUint16(n+6+c);if(n+f>u){console.log("Invalid IPTC data: Invalid segment size.");break}return o.iptc=new t,l.disableIptcOffsets||(o.iptcOffsets=new t),void i(e,d,f,o,l.includeIptcTags,l.excludeIptcTags||{202:!0})}n+=1}},e.metaDataParsers.jpeg[65517].push(e.parseIptcData),e.IptcMap=t})?r.apply(t,o):r)||(e.exports=i)}()},88979:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=function(e,t){for(var n=e.length,r=0;r<n;r++)if(t(e[r]))return r;return-1}},94556:function(e,t,n){var r;!function(o){"use strict";var i=o.URL||o.webkitURL;function a(e){return!!i&&i.createObjectURL(e)}function s(e){return!!i&&i.revokeObjectURL(e)}function l(e,t){!e||"blob:"!==e.slice(0,5)||t&&t.noRevoke||s(e)}function u(e,t,n,r){if(!o.FileReader)return!1;var i=new FileReader;i.onload=function(){t.call(i,this.result)},n&&(i.onabort=i.onerror=function(){n.call(i,this.error)});var a=i[r||"readAsDataURL"];return a?(a.call(i,e),i):void 0}function c(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}function d(e,t,n){function r(t,r){var i,s=document.createElement("img");function f(e,n){t!==r?e instanceof Error?r(e):((n=n||{}).image=e,t(n)):t&&t(e,n)}function p(t,r){r&&o.console&&console.log(r),t&&c("Blob",t)?i=a(e=t):(i=e,n&&n.crossOrigin&&(s.crossOrigin=n.crossOrigin)),s.src=i}return s.onerror=function(e){l(i,n),r&&r.call(s,e)},s.onload=function(){l(i,n);var t={originalWidth:s.naturalWidth||s.width,originalHeight:s.naturalHeight||s.height};try{d.transform(s,n,f,e,t)}catch(e){r&&r(e)}},"string"==typeof e?(d.requiresMetaData(n)?d.fetchBlob(e,p,n):p(),s):c("Blob",e)||c("File",e)?(i=a(e))?(s.src=i,s):u(e,function(e){s.src=e},r):void 0}return o.Promise&&"function"!=typeof t?(n=t,new Promise(r)):r(t,t)}d.requiresMetaData=function(e){return e&&e.meta},d.fetchBlob=function(e,t){t()},d.transform=function(e,t,n,r,o){n(e,o)},d.global=o,d.readFile=u,d.isInstanceOf=c,d.createObjectURL=a,d.revokeObjectURL=s,void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}("undefined"!=typeof window&&window||this)},96540:(e,t,n)=>{"use strict";e.exports=n(15287)},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})}}]);