Skip to content

Instantly share code, notes, and snippets.

@vivek-kumar-poddar
Created November 18, 2024 18:26
Show Gist options
  • Save vivek-kumar-poddar/55ae03a1a12d9eb653c2f385ad464397 to your computer and use it in GitHub Desktop.
Save vivek-kumar-poddar/55ae03a1a12d9eb653c2f385ad464397 to your computer and use it in GitHub Desktop.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function au(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var su={exports:{}},Li={},uu={exports:{}},R={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var yr=Symbol.for("react.element"),Bp=Symbol.for("react.portal"),Wp=Symbol.for("react.fragment"),Qp=Symbol.for("react.strict_mode"),Kp=Symbol.for("react.profiler"),Gp=Symbol.for("react.provider"),Yp=Symbol.for("react.context"),qp=Symbol.for("react.forward_ref"),Xp=Symbol.for("react.suspense"),Zp=Symbol.for("react.memo"),Jp=Symbol.for("react.lazy"),$a=Symbol.iterator;function ed(e){return e===null||typeof e!="object"?null:(e=$a&&e[$a]||e["@@iterator"],typeof e=="function"?e:null)}var cu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pu=Object.assign,du={};function Dn(e,t,n){this.props=e,this.context=t,this.refs=du,this.updater=n||cu}Dn.prototype.isReactComponent={};Dn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};Dn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function fu(){}fu.prototype=Dn.prototype;function Rl(e,t,n){this.props=e,this.context=t,this.refs=du,this.updater=n||cu}var Fl=Rl.prototype=new fu;Fl.constructor=Rl;pu(Fl,Dn.prototype);Fl.isPureReactComponent=!0;var Ua=Array.isArray,mu=Object.prototype.hasOwnProperty,Il={current:null},vu={key:!0,ref:!0,__self:!0,__source:!0};function hu(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)mu.call(t,r)&&!vu.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:yr,type:e,key:o,ref:l,props:i,_owner:Il.current}}function td(e,t){return{$$typeof:yr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Al(e){return typeof e=="object"&&e!==null&&e.$$typeof===yr}function nd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ba=/\/+/g;function lo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nd(""+e.key):t.toString(36)}function Gr(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case yr:case Bp:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+lo(l,0):r,Ua(i)?(n="",e!=null&&(n=e.replace(ba,"$&/")+"/"),Gr(i,t,n,"",function(u){return u})):i!=null&&(Al(i)&&(i=td(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(ba,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",Ua(e))for(var a=0;a<e.length;a++){o=e[a];var s=r+lo(o,a);l+=Gr(o,t,n,s,i)}else if(s=ed(e),typeof s=="function")for(e=s.call(e),a=0;!(o=e.next()).done;)o=o.value,s=r+lo(o,a++),l+=Gr(o,t,n,s,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Nr(e,t,n){if(e==null)return e;var r=[],i=0;return Gr(e,r,"","",function(o){return t.call(n,o,i++)}),r}function rd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ge={current:null},Yr={transition:null},id={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:Yr,ReactCurrentOwner:Il};function gu(){throw Error("act(...) is not supported in production builds of React.")}R.Children={map:Nr,forEach:function(e,t,n){Nr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Nr(e,function(){t++}),t},toArray:function(e){return Nr(e,function(t){return t})||[]},only:function(e){if(!Al(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};R.Component=Dn;R.Fragment=Wp;R.Profiler=Kp;R.PureComponent=Rl;R.StrictMode=Qp;R.Suspense=Xp;R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=id;R.act=gu;R.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=pu({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=Il.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)mu.call(t,s)&&!vu.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:yr,type:e.type,key:i,ref:o,props:r,_owner:l}};R.createContext=function(e){return e={$$typeof:Yp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gp,_context:e},e.Consumer=e};R.createElement=hu;R.createFactory=function(e){var t=hu.bind(null,e);return t.type=e,t};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:qp,render:e}};R.isValidElement=Al;R.lazy=function(e){return{$$typeof:Jp,_payload:{_status:-1,_result:e},_init:rd}};R.memo=function(e,t){return{$$typeof:Zp,type:e,compare:t===void 0?null:t}};R.startTransition=function(e){var t=Yr.transition;Yr.transition={};try{e()}finally{Yr.transition=t}};R.unstable_act=gu;R.useCallback=function(e,t){return ge.current.useCallback(e,t)};R.useContext=function(e){return ge.current.useContext(e)};R.useDebugValue=function(){};R.useDeferredValue=function(e){return ge.current.useDeferredValue(e)};R.useEffect=function(e,t){return ge.current.useEffect(e,t)};R.useId=function(){return ge.current.useId()};R.useImperativeHandle=function(e,t,n){return ge.current.useImperativeHandle(e,t,n)};R.useInsertionEffect=function(e,t){return ge.current.useInsertionEffect(e,t)};R.useLayoutEffect=function(e,t){return ge.current.useLayoutEffect(e,t)};R.useMemo=function(e,t){return ge.current.useMemo(e,t)};R.useReducer=function(e,t,n){return ge.current.useReducer(e,t,n)};R.useRef=function(e){return ge.current.useRef(e)};R.useState=function(e){return ge.current.useState(e)};R.useSyncExternalStore=function(e,t,n){return ge.current.useSyncExternalStore(e,t,n)};R.useTransition=function(){return ge.current.useTransition()};R.version="18.3.1";uu.exports=R;var P=uu.exports;const od=au(P);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ld=P,ad=Symbol.for("react.element"),sd=Symbol.for("react.fragment"),ud=Object.prototype.hasOwnProperty,cd=ld.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pd={key:!0,ref:!0,__self:!0,__source:!0};function xu(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)ud.call(t,r)&&!pd.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ad,type:e,key:o,ref:l,props:i,_owner:cd.current}}Li.Fragment=sd;Li.jsx=xu;Li.jsxs=xu;su.exports=Li;var k=su.exports,yu={exports:{}},Oe={},wu={exports:{}},ku={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(j,N){var L=j.length;j.push(N);e:for(;0<L;){var V=L-1>>>1,W=j[V];if(0<i(W,N))j[V]=N,j[L]=W,L=V;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var N=j[0],L=j.pop();if(L!==N){j[0]=L;e:for(var V=0,W=j.length,Ot=W>>>1;V<Ot;){var ke=2*(V+1)-1,Xt=j[ke],me=ke+1,Tt=j[me];if(0>i(Xt,L))me<W&&0>i(Tt,Xt)?(j[V]=Tt,j[me]=L,V=me):(j[V]=Xt,j[ke]=L,V=ke);else if(me<W&&0>i(Tt,L))j[V]=Tt,j[me]=L,V=me;else break e}}return N}function i(j,N){var L=j.sortIndex-N.sortIndex;return L!==0?L:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],v=1,p=null,f=3,h=!1,x=!1,g=!1,M=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(j){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=j)r(u),N.sortIndex=N.expirationTime,t(s,N);else break;N=n(u)}}function w(j){if(g=!1,m(j),!x)if(n(s)!==null)x=!0,On(y);else{var N=n(u);N!==null&&qt(w,N.startTime-j)}}function y(j,N){x=!1,g&&(g=!1,d(D),D=-1),h=!0;var L=f;try{for(m(N),p=n(s);p!==null&&(!(p.expirationTime>N)||j&&!ye());){var V=p.callback;if(typeof V=="function"){p.callback=null,f=p.priorityLevel;var W=V(p.expirationTime<=N);N=e.unstable_now(),typeof W=="function"?p.callback=W:p===n(s)&&r(s),m(N)}else r(s);p=n(s)}if(p!==null)var Ot=!0;else{var ke=n(u);ke!==null&&qt(w,ke.startTime-N),Ot=!1}return Ot}finally{p=null,f=L,h=!1}}var E=!1,C=null,D=-1,A=5,T=-1;function ye(){return!(e.unstable_now()-T<A)}function tt(){if(C!==null){var j=e.unstable_now();T=j;var N=!0;try{N=C(!0,j)}finally{N?Ge():(E=!1,C=null)}}else E=!1}var Ge;if(typeof c=="function")Ge=function(){c(tt)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,we=ne.port2;ne.port1.onmessage=tt,Ge=function(){we.postMessage(null)}}else Ge=function(){M(tt,0)};function On(j){C=j,E||(E=!0,Ge())}function qt(j,N){D=M(function(){j(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){x||h||(x=!0,On(y))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var N=3;break;default:N=f}var L=f;f=N;try{return j()}finally{f=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,N){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var L=f;f=j;try{return N()}finally{f=L}},e.unstable_scheduleCallback=function(j,N,L){var V=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?V+L:V):L=V,j){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=L+W,j={id:v++,callback:N,priorityLevel:j,startTime:L,expirationTime:W,sortIndex:-1},L>V?(j.sortIndex=L,t(u,j),n(s)===null&&j===n(u)&&(g?(d(D),D=-1):g=!0,qt(w,L-V))):(j.sortIndex=W,t(s,j),x||h||(x=!0,On(y))),j},e.unstable_shouldYield=ye,e.unstable_wrapCallback=function(j){var N=f;return function(){var L=f;f=N;try{return j.apply(this,arguments)}finally{f=L}}}})(ku);wu.exports=ku;var dd=wu.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var fd=P,Me=dd;function S(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 Su=new Set,tr={};function Kt(e,t){kn(e,t),kn(e+"Capture",t)}function kn(e,t){for(tr[e]=t,e=0;e<t.length;e++)Su.add(t[e])}var at=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ao=Object.prototype.hasOwnProperty,md=/^[: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]*$/,Ha={},Va={};function vd(e){return Ao.call(Va,e)?!0:Ao.call(Ha,e)?!1:md.test(e)?Va[e]=!0:(Ha[e]=!0,!1)}function hd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gd(e,t,n,r){if(t===null||typeof t>"u"||hd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xe(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new xe(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){se[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var $l=/[\-:]([a-z])/g;function Ul(e){return e[1].toUpperCase()}"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($l,Ul);se[t]=new xe(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($l,Ul);se[t]=new xe(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($l,Ul);se[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function bl(e,t,n,r){var i=se.hasOwnProperty(t)?se[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gd(t,n,i,r)&&(n=null),r||i===null?vd(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var pt=fd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mr=Symbol.for("react.element"),nn=Symbol.for("react.portal"),rn=Symbol.for("react.fragment"),Hl=Symbol.for("react.strict_mode"),$o=Symbol.for("react.profiler"),_u=Symbol.for("react.provider"),Eu=Symbol.for("react.context"),Vl=Symbol.for("react.forward_ref"),Uo=Symbol.for("react.suspense"),bo=Symbol.for("react.suspense_list"),Bl=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),Cu=Symbol.for("react.offscreen"),Ba=Symbol.iterator;function Ln(e){return e===null||typeof e!="object"?null:(e=Ba&&e[Ba]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,ao;function Hn(e){if(ao===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ao=t&&t[1]||""}return`
`+ao+e}var so=!1;function uo(e,t){if(!e||so)return"";so=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=r.stack.split(`
`),l=i.length-1,a=o.length-1;1<=l&&0<=a&&i[l]!==o[a];)a--;for(;1<=l&&0<=a;l--,a--)if(i[l]!==o[a]){if(l!==1||a!==1)do if(l--,a--,0>a||i[l]!==o[a]){var s=`
`+i[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{so=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hn(e):""}function xd(e){switch(e.tag){case 5:return Hn(e.type);case 16:return Hn("Lazy");case 13:return Hn("Suspense");case 19:return Hn("SuspenseList");case 0:case 2:case 15:return e=uo(e.type,!1),e;case 11:return e=uo(e.type.render,!1),e;case 1:return e=uo(e.type,!0),e;default:return""}}function Ho(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rn:return"Fragment";case nn:return"Portal";case $o:return"Profiler";case Hl:return"StrictMode";case Uo:return"Suspense";case bo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Eu:return(e.displayName||"Context")+".Consumer";case _u:return(e._context.displayName||"Context")+".Provider";case Vl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Bl:return t=e.displayName||null,t!==null?t:Ho(e.type)||"Memo";case ft:t=e._payload,e=e._init;try{return Ho(e(t))}catch{}}return null}function yd(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=t.render,e=e.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 Ho(t);case 8:return t===Hl?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ju(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wd(e){var t=ju(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Or(e){e._valueTracker||(e._valueTracker=wd(e))}function zu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ju(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function li(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vo(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Pu(e,t){t=t.checked,t!=null&&bl(e,"checked",t,!1)}function Bo(e,t){Pu(e,t);var n=zt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Wo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Wo(e,t.type,zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Wo(e,t,n){(t!=="number"||li(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vn=Array.isArray;function vn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+zt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ka(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(S(92));if(Vn(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zt(n)}}function Du(e,t){var n=zt(t.value),r=zt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ga(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nu(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 Ko(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Tr,Mu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Tr=Tr||document.createElement("div"),Tr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qn={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},kd=["Webkit","ms","Moz","O"];Object.keys(Qn).forEach(function(e){kd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qn[t]=Qn[e]})});function Ou(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qn.hasOwnProperty(e)&&Qn[e]?(""+t).trim():t+"px"}function Tu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ou(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Sd=Y({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 Go(e,t){if(t){if(Sd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Yo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 qo=null;function Wl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xo=null,hn=null,gn=null;function Ya(e){if(e=Sr(e)){if(typeof Xo!="function")throw Error(S(280));var t=e.stateNode;t&&(t=$i(t),Xo(e.stateNode,e.type,t))}}function Lu(e){hn?gn?gn.push(e):gn=[e]:hn=e}function Ru(){if(hn){var e=hn,t=gn;if(gn=hn=null,Ya(e),t)for(e=0;e<t.length;e++)Ya(t[e])}}function Fu(e,t){return e(t)}function Iu(){}var co=!1;function Au(e,t,n){if(co)return e(t,n);co=!0;try{return Fu(e,t,n)}finally{co=!1,(hn!==null||gn!==null)&&(Iu(),Ru())}}function rr(e,t){var n=e.stateNode;if(n===null)return null;var r=$i(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(S(231,t,typeof n));return n}var Zo=!1;if(at)try{var Rn={};Object.defineProperty(Rn,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",Rn,Rn),window.removeEventListener("test",Rn,Rn)}catch{Zo=!1}function _d(e,t,n,r,i,o,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(v){this.onError(v)}}var Kn=!1,ai=null,si=!1,Jo=null,Ed={onError:function(e){Kn=!0,ai=e}};function Cd(e,t,n,r,i,o,l,a,s){Kn=!1,ai=null,_d.apply(Ed,arguments)}function jd(e,t,n,r,i,o,l,a,s){if(Cd.apply(this,arguments),Kn){if(Kn){var u=ai;Kn=!1,ai=null}else throw Error(S(198));si||(si=!0,Jo=u)}}function Gt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function $u(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function qa(e){if(Gt(e)!==e)throw Error(S(188))}function zd(e){var t=e.alternate;if(!t){if(t=Gt(e),t===null)throw Error(S(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return qa(i),e;if(o===r)return qa(i),t;o=o.sibling}throw Error(S(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.sibling}if(!l){for(a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l)throw Error(S(189))}}if(n.alternate!==r)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?e:t}function Uu(e){return e=zd(e),e!==null?bu(e):null}function bu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bu(e);if(t!==null)return t;e=e.sibling}return null}var Hu=Me.unstable_scheduleCallback,Xa=Me.unstable_cancelCallback,Pd=Me.unstable_shouldYield,Dd=Me.unstable_requestPaint,X=Me.unstable_now,Nd=Me.unstable_getCurrentPriorityLevel,Ql=Me.unstable_ImmediatePriority,Vu=Me.unstable_UserBlockingPriority,ui=Me.unstable_NormalPriority,Md=Me.unstable_LowPriority,Bu=Me.unstable_IdlePriority,Ri=null,Je=null;function Od(e){if(Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(Ri,e,void 0,(e.current.flags&128)===128)}catch{}}var Be=Math.clz32?Math.clz32:Rd,Td=Math.log,Ld=Math.LN2;function Rd(e){return e>>>=0,e===0?32:31-(Td(e)/Ld|0)|0}var Lr=64,Rr=4194304;function Bn(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ci(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=Bn(a):(o&=l,o!==0&&(r=Bn(o)))}else l=n&~i,l!==0?r=Bn(l):o!==0&&(r=Bn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Be(t),i=1<<n,r|=e[n],t&=~i;return r}function Fd(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Id(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Be(o),a=1<<l,s=i[l];s===-1?(!(a&n)||a&r)&&(i[l]=Fd(a,t)):s<=t&&(e.expiredLanes|=a),o&=~a}}function el(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wu(){var e=Lr;return Lr<<=1,!(Lr&4194240)&&(Lr=64),e}function po(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Be(t),e[t]=n}function Ad(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 i=31-Be(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Kl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var I=0;function Qu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ku,Gl,Gu,Yu,qu,tl=!1,Fr=[],yt=null,wt=null,kt=null,ir=new Map,or=new Map,vt=[],$d="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 Za(e,t){switch(e){case"focusin":case"focusout":yt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function Fn(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Sr(t),t!==null&&Gl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ud(e,t,n,r,i){switch(t){case"focusin":return yt=Fn(yt,e,t,n,r,i),!0;case"dragenter":return wt=Fn(wt,e,t,n,r,i),!0;case"mouseover":return kt=Fn(kt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ir.set(o,Fn(ir.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,or.set(o,Fn(or.get(o)||null,e,t,n,r,i)),!0}return!1}function Xu(e){var t=It(e.target);if(t!==null){var n=Gt(t);if(n!==null){if(t=n.tag,t===13){if(t=$u(n),t!==null){e.blockedOn=t,qu(e.priority,function(){Gu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qo=r,n.target.dispatchEvent(r),qo=null}else return t=Sr(n),t!==null&&Gl(t),e.blockedOn=n,!1;t.shift()}return!0}function Ja(e,t,n){qr(e)&&n.delete(t)}function bd(){tl=!1,yt!==null&&qr(yt)&&(yt=null),wt!==null&&qr(wt)&&(wt=null),kt!==null&&qr(kt)&&(kt=null),ir.forEach(Ja),or.forEach(Ja)}function In(e,t){e.blockedOn===t&&(e.blockedOn=null,tl||(tl=!0,Me.unstable_scheduleCallback(Me.unstable_NormalPriority,bd)))}function lr(e){function t(i){return In(i,e)}if(0<Fr.length){In(Fr[0],e);for(var n=1;n<Fr.length;n++){var r=Fr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(yt!==null&&In(yt,e),wt!==null&&In(wt,e),kt!==null&&In(kt,e),ir.forEach(t),or.forEach(t),n=0;n<vt.length;n++)r=vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vt.length&&(n=vt[0],n.blockedOn===null);)Xu(n),n.blockedOn===null&&vt.shift()}var xn=pt.ReactCurrentBatchConfig,pi=!0;function Hd(e,t,n,r){var i=I,o=xn.transition;xn.transition=null;try{I=1,Yl(e,t,n,r)}finally{I=i,xn.transition=o}}function Vd(e,t,n,r){var i=I,o=xn.transition;xn.transition=null;try{I=4,Yl(e,t,n,r)}finally{I=i,xn.transition=o}}function Yl(e,t,n,r){if(pi){var i=nl(e,t,n,r);if(i===null)So(e,t,r,di,n),Za(e,r);else if(Ud(i,e,t,n,r))r.stopPropagation();else if(Za(e,r),t&4&&-1<$d.indexOf(e)){for(;i!==null;){var o=Sr(i);if(o!==null&&Ku(o),o=nl(e,t,n,r),o===null&&So(e,t,r,di,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else So(e,t,r,null,n)}}var di=null;function nl(e,t,n,r){if(di=null,e=Wl(r),e=It(e),e!==null)if(t=Gt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=$u(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return di=e,null}function Zu(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(Nd()){case Ql:return 1;case Vu:return 4;case ui:case Md:return 16;case Bu:return 536870912;default:return 16}default:return 16}}var gt=null,ql=null,Xr=null;function Ju(){if(Xr)return Xr;var e,t=ql,n=t.length,r,i="value"in gt?gt.value:gt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Xr=i.slice(e,1<r?1-r:void 0)}function Zr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ir(){return!0}function es(){return!1}function Te(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ir:es,this.isPropagationStopped=es,this}return Y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ir)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ir)},persist:function(){},isPersistent:Ir}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xl=Te(Nn),kr=Y({},Nn,{view:0,detail:0}),Bd=Te(kr),fo,mo,An,Fi=Y({},kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==An&&(An&&e.type==="mousemove"?(fo=e.screenX-An.screenX,mo=e.screenY-An.screenY):mo=fo=0,An=e),fo)},movementY:function(e){return"movementY"in e?e.movementY:mo}}),ts=Te(Fi),Wd=Y({},Fi,{dataTransfer:0}),Qd=Te(Wd),Kd=Y({},kr,{relatedTarget:0}),vo=Te(Kd),Gd=Y({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0}),Yd=Te(Gd),qd=Y({},Nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xd=Te(qd),Zd=Y({},Nn,{data:0}),ns=Te(Zd),Jd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ef={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"},tf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tf[e])?!!t[e]:!1}function Zl(){return nf}var rf=Y({},kr,{key:function(e){if(e.key){var t=Jd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ef[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zl,charCode:function(e){return e.type==="keypress"?Zr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),of=Te(rf),lf=Y({},Fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rs=Te(lf),af=Y({},kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zl}),sf=Te(af),uf=Y({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),cf=Te(uf),pf=Y({},Fi,{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}),df=Te(pf),ff=[9,13,27,32],Jl=at&&"CompositionEvent"in window,Gn=null;at&&"documentMode"in document&&(Gn=document.documentMode);var mf=at&&"TextEvent"in window&&!Gn,ec=at&&(!Jl||Gn&&8<Gn&&11>=Gn),is=" ",os=!1;function tc(e,t){switch(e){case"keyup":return ff.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function vf(e,t){switch(e){case"compositionend":return nc(t);case"keypress":return t.which!==32?null:(os=!0,is);case"textInput":return e=t.data,e===is&&os?null:e;default:return null}}function hf(e,t){if(on)return e==="compositionend"||!Jl&&tc(e,t)?(e=Ju(),Xr=ql=gt=null,on=!1,e):null;switch(e){case"paste":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 ec&&t.locale!=="ko"?null:t.data;default:return null}}var gf={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 ls(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gf[e.type]:t==="textarea"}function rc(e,t,n,r){Lu(r),t=fi(t,"onChange"),0<t.length&&(n=new Xl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,ar=null;function xf(e){mc(e,0)}function Ii(e){var t=sn(e);if(zu(t))return e}function yf(e,t){if(e==="change")return t}var ic=!1;if(at){var ho;if(at){var go="oninput"in document;if(!go){var as=document.createElement("div");as.setAttribute("oninput","return;"),go=typeof as.oninput=="function"}ho=go}else ho=!1;ic=ho&&(!document.documentMode||9<document.documentMode)}function ss(){Yn&&(Yn.detachEvent("onpropertychange",oc),ar=Yn=null)}function oc(e){if(e.propertyName==="value"&&Ii(ar)){var t=[];rc(t,ar,e,Wl(e)),Au(xf,t)}}function wf(e,t,n){e==="focusin"?(ss(),Yn=t,ar=n,Yn.attachEvent("onpropertychange",oc)):e==="focusout"&&ss()}function kf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ii(ar)}function Sf(e,t){if(e==="click")return Ii(t)}function _f(e,t){if(e==="input"||e==="change")return Ii(t)}function Ef(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:Ef;function sr(e,t){if(Qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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 i=n[r];if(!Ao.call(t,i)||!Qe(e[i],t[i]))return!1}return!0}function us(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cs(e,t){var n=us(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=us(n)}}function lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ac(){for(var e=window,t=li();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=li(e.document)}return t}function ea(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Cf(e){var t=ac(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&lc(n.ownerDocument.documentElement,n)){if(r!==null&&ea(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cs(n,o);var l=cs(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var jf=at&&"documentMode"in document&&11>=document.documentMode,ln=null,rl=null,qn=null,il=!1;function ps(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;il||ln==null||ln!==li(r)||(r=ln,"selectionStart"in r&&ea(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qn&&sr(qn,r)||(qn=r,r=fi(rl,"onSelect"),0<r.length&&(t=new Xl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ln)))}function Ar(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var an={animationend:Ar("Animation","AnimationEnd"),animationiteration:Ar("Animation","AnimationIteration"),animationstart:Ar("Animation","AnimationStart"),transitionend:Ar("Transition","TransitionEnd")},xo={},sc={};at&&(sc=document.createElement("div").style,"AnimationEvent"in window||(delete an.animationend.animation,delete an.animationiteration.animation,delete an.animationstart.animation),"TransitionEvent"in window||delete an.transitionend.transition);function Ai(e){if(xo[e])return xo[e];if(!an[e])return e;var t=an[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sc)return xo[e]=t[n];return e}var uc=Ai("animationend"),cc=Ai("animationiteration"),pc=Ai("animationstart"),dc=Ai("transitionend"),fc=new Map,ds="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 Dt(e,t){fc.set(e,t),Kt(t,[e])}for(var yo=0;yo<ds.length;yo++){var wo=ds[yo],zf=wo.toLowerCase(),Pf=wo[0].toUpperCase()+wo.slice(1);Dt(zf,"on"+Pf)}Dt(uc,"onAnimationEnd");Dt(cc,"onAnimationIteration");Dt(pc,"onAnimationStart");Dt("dblclick","onDoubleClick");Dt("focusin","onFocus");Dt("focusout","onBlur");Dt(dc,"onTransitionEnd");kn("onMouseEnter",["mouseout","mouseover"]);kn("onMouseLeave",["mouseout","mouseover"]);kn("onPointerEnter",["pointerout","pointerover"]);kn("onPointerLeave",["pointerout","pointerover"]);Kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Kt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wn="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(" "),Df=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wn));function fs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jd(r,t,void 0,e),e.currentTarget=null}function mc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==o&&i.isPropagationStopped())break e;fs(i,a,u),o=s}else for(l=0;l<r.length;l++){if(a=r[l],s=a.instance,u=a.currentTarget,a=a.listener,s!==o&&i.isPropagationStopped())break e;fs(i,a,u),o=s}}}if(si)throw e=Jo,si=!1,Jo=null,e}function b(e,t){var n=t[ul];n===void 0&&(n=t[ul]=new Set);var r=e+"__bubble";n.has(r)||(vc(t,e,2,!1),n.add(r))}function ko(e,t,n){var r=0;t&&(r|=4),vc(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function ur(e){if(!e[$r]){e[$r]=!0,Su.forEach(function(n){n!=="selectionchange"&&(Df.has(n)||ko(n,!1,e),ko(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$r]||(t[$r]=!0,ko("selectionchange",!1,t))}}function vc(e,t,n,r){switch(Zu(t)){case 1:var i=Hd;break;case 4:i=Vd;break;default:i=Yl}n=i.bind(null,t,n,e),i=void 0,!Zo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function So(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;l=l.return}for(;a!==null;){if(l=It(a),l===null)return;if(s=l.tag,s===5||s===6){r=o=l;continue e}a=a.parentNode}}r=r.return}Au(function(){var u=o,v=Wl(n),p=[];e:{var f=fc.get(e);if(f!==void 0){var h=Xl,x=e;switch(e){case"keypress":if(Zr(n)===0)break e;case"keydown":case"keyup":h=of;break;case"focusin":x="focus",h=vo;break;case"focusout":x="blur",h=vo;break;case"beforeblur":case"afterblur":h=vo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=ts;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Qd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=sf;break;case uc:case cc:case pc:h=Yd;break;case dc:h=cf;break;case"scroll":h=Bd;break;case"wheel":h=df;break;case"copy":case"cut":case"paste":h=Xd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=rs}var g=(t&4)!==0,M=!g&&e==="scroll",d=g?f!==null?f+"Capture":null:f;g=[];for(var c=u,m;c!==null;){m=c;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,d!==null&&(w=rr(c,d),w!=null&&g.push(cr(c,w,m)))),M)break;c=c.return}0<g.length&&(f=new h(f,x,null,n,v),p.push({event:f,listeners:g}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==qo&&(x=n.relatedTarget||n.fromElement)&&(It(x)||x[st]))break e;if((h||f)&&(f=v.window===v?v:(f=v.ownerDocument)?f.defaultView||f.parentWindow:window,h?(x=n.relatedTarget||n.toElement,h=u,x=x?It(x):null,x!==null&&(M=Gt(x),x!==M||x.tag!==5&&x.tag!==6)&&(x=null)):(h=null,x=u),h!==x)){if(g=ts,w="onMouseLeave",d="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(g=rs,w="onPointerLeave",d="onPointerEnter",c="pointer"),M=h==null?f:sn(h),m=x==null?f:sn(x),f=new g(w,c+"leave",h,n,v),f.target=M,f.relatedTarget=m,w=null,It(v)===u&&(g=new g(d,c+"enter",x,n,v),g.target=m,g.relatedTarget=M,w=g),M=w,h&&x)t:{for(g=h,d=x,c=0,m=g;m;m=tn(m))c++;for(m=0,w=d;w;w=tn(w))m++;for(;0<c-m;)g=tn(g),c--;for(;0<m-c;)d=tn(d),m--;for(;c--;){if(g===d||d!==null&&g===d.alternate)break t;g=tn(g),d=tn(d)}g=null}else g=null;h!==null&&ms(p,f,h,g,!1),x!==null&&M!==null&&ms(p,M,x,g,!0)}}e:{if(f=u?sn(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var y=yf;else if(ls(f))if(ic)y=_f;else{y=kf;var E=wf}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(y=Sf);if(y&&(y=y(e,u))){rc(p,y,n,v);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Wo(f,"number",f.value)}switch(E=u?sn(u):window,e){case"focusin":(ls(E)||E.contentEditable==="true")&&(ln=E,rl=u,qn=null);break;case"focusout":qn=rl=ln=null;break;case"mousedown":il=!0;break;case"contextmenu":case"mouseup":case"dragend":il=!1,ps(p,n,v);break;case"selectionchange":if(jf)break;case"keydown":case"keyup":ps(p,n,v)}var C;if(Jl)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else on?tc(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(ec&&n.locale!=="ko"&&(on||D!=="onCompositionStart"?D==="onCompositionEnd"&&on&&(C=Ju()):(gt=v,ql="value"in gt?gt.value:gt.textContent,on=!0)),E=fi(u,D),0<E.length&&(D=new ns(D,e,null,n,v),p.push({event:D,listeners:E}),C?D.data=C:(C=nc(n),C!==null&&(D.data=C)))),(C=mf?vf(e,n):hf(e,n))&&(u=fi(u,"onBeforeInput"),0<u.length&&(v=new ns("onBeforeInput","beforeinput",null,n,v),p.push({event:v,listeners:u}),v.data=C))}mc(p,t)})}function cr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=rr(e,n),o!=null&&r.unshift(cr(e,o,i)),o=rr(e,t),o!=null&&r.push(cr(e,o,i))),e=e.return}return r}function tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ms(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,i?(s=rr(n,o),s!=null&&l.unshift(cr(n,s,a))):i||(s=rr(n,o),s!=null&&l.push(cr(n,s,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Nf=/\r\n?/g,Mf=/\u0000|\uFFFD/g;function vs(e){return(typeof e=="string"?e:""+e).replace(Nf,`
`).replace(Mf,"")}function Ur(e,t,n){if(t=vs(t),vs(e)!==t&&n)throw Error(S(425))}function mi(){}var ol=null,ll=null;function al(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sl=typeof setTimeout=="function"?setTimeout:void 0,Of=typeof clearTimeout=="function"?clearTimeout:void 0,hs=typeof Promise=="function"?Promise:void 0,Tf=typeof queueMicrotask=="function"?queueMicrotask:typeof hs<"u"?function(e){return hs.resolve(null).then(e).catch(Lf)}:sl;function Lf(e){setTimeout(function(){throw e})}function _o(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),lr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);lr(t)}function St(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Mn=Math.random().toString(36).slice(2),Ze="__reactFiber$"+Mn,pr="__reactProps$"+Mn,st="__reactContainer$"+Mn,ul="__reactEvents$"+Mn,Rf="__reactListeners$"+Mn,Ff="__reactHandles$"+Mn;function It(e){var t=e[Ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[st]||n[Ze]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gs(e);e!==null;){if(n=e[Ze])return n;e=gs(e)}return t}e=n,n=e.parentNode}return null}function Sr(e){return e=e[Ze]||e[st],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function $i(e){return e[pr]||null}var cl=[],un=-1;function Nt(e){return{current:e}}function H(e){0>un||(e.current=cl[un],cl[un]=null,un--)}function U(e,t){un++,cl[un]=e.current,e.current=t}var Pt={},fe=Nt(Pt),Ee=Nt(!1),Ht=Pt;function Sn(e,t){var n=e.type.contextTypes;if(!n)return Pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ce(e){return e=e.childContextTypes,e!=null}function vi(){H(Ee),H(fe)}function xs(e,t,n){if(fe.current!==Pt)throw Error(S(168));U(fe,t),U(Ee,n)}function hc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(S(108,yd(e)||"Unknown",i));return Y({},n,r)}function hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Ht=fe.current,U(fe,e),U(Ee,Ee.current),!0}function ys(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=hc(e,t,Ht),r.__reactInternalMemoizedMergedChildContext=e,H(Ee),H(fe),U(fe,e)):H(Ee),U(Ee,n)}var rt=null,Ui=!1,Eo=!1;function gc(e){rt===null?rt=[e]:rt.push(e)}function If(e){Ui=!0,gc(e)}function Mt(){if(!Eo&&rt!==null){Eo=!0;var e=0,t=I;try{var n=rt;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rt=null,Ui=!1}catch(i){throw rt!==null&&(rt=rt.slice(e+1)),Hu(Ql,Mt),i}finally{I=t,Eo=!1}}return null}var cn=[],pn=0,gi=null,xi=0,Le=[],Re=0,Vt=null,it=1,ot="";function Lt(e,t){cn[pn++]=xi,cn[pn++]=gi,gi=e,xi=t}function xc(e,t,n){Le[Re++]=it,Le[Re++]=ot,Le[Re++]=Vt,Vt=e;var r=it;e=ot;var i=32-Be(r)-1;r&=~(1<<i),n+=1;var o=32-Be(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,it=1<<32-Be(t)+i|n<<i|r,ot=o+e}else it=1<<o|n<<i|r,ot=e}function ta(e){e.return!==null&&(Lt(e,1),xc(e,1,0))}function na(e){for(;e===gi;)gi=cn[--pn],cn[pn]=null,xi=cn[--pn],cn[pn]=null;for(;e===Vt;)Vt=Le[--Re],Le[Re]=null,ot=Le[--Re],Le[Re]=null,it=Le[--Re],Le[Re]=null}var Ne=null,De=null,B=!1,Ve=null;function yc(e,t){var n=Fe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ws(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ne=e,De=St(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ne=e,De=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vt!==null?{id:it,overflow:ot}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Fe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ne=e,De=null,!0):!1;default:return!1}}function pl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function dl(e){if(B){var t=De;if(t){var n=t;if(!ws(e,t)){if(pl(e))throw Error(S(418));t=St(n.nextSibling);var r=Ne;t&&ws(e,t)?yc(r,n):(e.flags=e.flags&-4097|2,B=!1,Ne=e)}}else{if(pl(e))throw Error(S(418));e.flags=e.flags&-4097|2,B=!1,Ne=e}}}function ks(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ne=e}function br(e){if(e!==Ne)return!1;if(!B)return ks(e),B=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!al(e.type,e.memoizedProps)),t&&(t=De)){if(pl(e))throw wc(),Error(S(418));for(;t;)yc(e,t),t=St(t.nextSibling)}if(ks(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){De=St(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}De=null}}else De=Ne?St(e.stateNode.nextSibling):null;return!0}function wc(){for(var e=De;e;)e=St(e.nextSibling)}function _n(){De=Ne=null,B=!1}function ra(e){Ve===null?Ve=[e]:Ve.push(e)}var Af=pt.ReactCurrentBatchConfig;function $n(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(S(309));var r=n.stateNode}if(!r)throw Error(S(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var a=i.refs;l===null?delete a[o]:a[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function Hr(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ss(e){var t=e._init;return t(e._payload)}function kc(e){function t(d,c){if(e){var m=d.deletions;m===null?(d.deletions=[c],d.flags|=16):m.push(c)}}function n(d,c){if(!e)return null;for(;c!==null;)t(d,c),c=c.sibling;return null}function r(d,c){for(d=new Map;c!==null;)c.key!==null?d.set(c.key,c):d.set(c.index,c),c=c.sibling;return d}function i(d,c){return d=jt(d,c),d.index=0,d.sibling=null,d}function o(d,c,m){return d.index=m,e?(m=d.alternate,m!==null?(m=m.index,m<c?(d.flags|=2,c):m):(d.flags|=2,c)):(d.flags|=1048576,c)}function l(d){return e&&d.alternate===null&&(d.flags|=2),d}function a(d,c,m,w){return c===null||c.tag!==6?(c=Mo(m,d.mode,w),c.return=d,c):(c=i(c,m),c.return=d,c)}function s(d,c,m,w){var y=m.type;return y===rn?v(d,c,m.props.children,w,m.key):c!==null&&(c.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===ft&&Ss(y)===c.type)?(w=i(c,m.props),w.ref=$n(d,c,m),w.return=d,w):(w=oi(m.type,m.key,m.props,null,d.mode,w),w.ref=$n(d,c,m),w.return=d,w)}function u(d,c,m,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=Oo(m,d.mode,w),c.return=d,c):(c=i(c,m.children||[]),c.return=d,c)}function v(d,c,m,w,y){return c===null||c.tag!==7?(c=bt(m,d.mode,w,y),c.return=d,c):(c=i(c,m),c.return=d,c)}function p(d,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Mo(""+c,d.mode,m),c.return=d,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Mr:return m=oi(c.type,c.key,c.props,null,d.mode,m),m.ref=$n(d,null,c),m.return=d,m;case nn:return c=Oo(c,d.mode,m),c.return=d,c;case ft:var w=c._init;return p(d,w(c._payload),m)}if(Vn(c)||Ln(c))return c=bt(c,d.mode,m,null),c.return=d,c;Hr(d,c)}return null}function f(d,c,m,w){var y=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return y!==null?null:a(d,c,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Mr:return m.key===y?s(d,c,m,w):null;case nn:return m.key===y?u(d,c,m,w):null;case ft:return y=m._init,f(d,c,y(m._payload),w)}if(Vn(m)||Ln(m))return y!==null?null:v(d,c,m,w,null);Hr(d,m)}return null}function h(d,c,m,w,y){if(typeof w=="string"&&w!==""||typeof w=="number")return d=d.get(m)||null,a(c,d,""+w,y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Mr:return d=d.get(w.key===null?m:w.key)||null,s(c,d,w,y);case nn:return d=d.get(w.key===null?m:w.key)||null,u(c,d,w,y);case ft:var E=w._init;return h(d,c,m,E(w._payload),y)}if(Vn(w)||Ln(w))return d=d.get(m)||null,v(c,d,w,y,null);Hr(c,w)}return null}function x(d,c,m,w){for(var y=null,E=null,C=c,D=c=0,A=null;C!==null&&D<m.length;D++){C.index>D?(A=C,C=null):A=C.sibling;var T=f(d,C,m[D],w);if(T===null){C===null&&(C=A);break}e&&C&&T.alternate===null&&t(d,C),c=o(T,c,D),E===null?y=T:E.sibling=T,E=T,C=A}if(D===m.length)return n(d,C),B&&Lt(d,D),y;if(C===null){for(;D<m.length;D++)C=p(d,m[D],w),C!==null&&(c=o(C,c,D),E===null?y=C:E.sibling=C,E=C);return B&&Lt(d,D),y}for(C=r(d,C);D<m.length;D++)A=h(C,d,D,m[D],w),A!==null&&(e&&A.alternate!==null&&C.delete(A.key===null?D:A.key),c=o(A,c,D),E===null?y=A:E.sibling=A,E=A);return e&&C.forEach(function(ye){return t(d,ye)}),B&&Lt(d,D),y}function g(d,c,m,w){var y=Ln(m);if(typeof y!="function")throw Error(S(150));if(m=y.call(m),m==null)throw Error(S(151));for(var E=y=null,C=c,D=c=0,A=null,T=m.next();C!==null&&!T.done;D++,T=m.next()){C.index>D?(A=C,C=null):A=C.sibling;var ye=f(d,C,T.value,w);if(ye===null){C===null&&(C=A);break}e&&C&&ye.alternate===null&&t(d,C),c=o(ye,c,D),E===null?y=ye:E.sibling=ye,E=ye,C=A}if(T.done)return n(d,C),B&&Lt(d,D),y;if(C===null){for(;!T.done;D++,T=m.next())T=p(d,T.value,w),T!==null&&(c=o(T,c,D),E===null?y=T:E.sibling=T,E=T);return B&&Lt(d,D),y}for(C=r(d,C);!T.done;D++,T=m.next())T=h(C,d,D,T.value,w),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?D:T.key),c=o(T,c,D),E===null?y=T:E.sibling=T,E=T);return e&&C.forEach(function(tt){return t(d,tt)}),B&&Lt(d,D),y}function M(d,c,m,w){if(typeof m=="object"&&m!==null&&m.type===rn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Mr:e:{for(var y=m.key,E=c;E!==null;){if(E.key===y){if(y=m.type,y===rn){if(E.tag===7){n(d,E.sibling),c=i(E,m.props.children),c.return=d,d=c;break e}}else if(E.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===ft&&Ss(y)===E.type){n(d,E.sibling),c=i(E,m.props),c.ref=$n(d,E,m),c.return=d,d=c;break e}n(d,E);break}else t(d,E);E=E.sibling}m.type===rn?(c=bt(m.props.children,d.mode,w,m.key),c.return=d,d=c):(w=oi(m.type,m.key,m.props,null,d.mode,w),w.ref=$n(d,c,m),w.return=d,d=w)}return l(d);case nn:e:{for(E=m.key;c!==null;){if(c.key===E)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(d,c.sibling),c=i(c,m.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=Oo(m,d.mode,w),c.return=d,d=c}return l(d);case ft:return E=m._init,M(d,c,E(m._payload),w)}if(Vn(m))return x(d,c,m,w);if(Ln(m))return g(d,c,m,w);Hr(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(d,c.sibling),c=i(c,m),c.return=d,d=c):(n(d,c),c=Mo(m,d.mode,w),c.return=d,d=c),l(d)):n(d,c)}return M}var En=kc(!0),Sc=kc(!1),yi=Nt(null),wi=null,dn=null,ia=null;function oa(){ia=dn=wi=null}function la(e){var t=yi.current;H(yi),e._currentValue=t}function fl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yn(e,t){wi=e,ia=dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_e=!0),e.firstContext=null)}function Ae(e){var t=e._currentValue;if(ia!==e)if(e={context:e,memoizedValue:t,next:null},dn===null){if(wi===null)throw Error(S(308));dn=e,wi.dependencies={lanes:0,firstContext:e}}else dn=dn.next=e;return t}var At=null;function aa(e){At===null?At=[e]:At.push(e)}function _c(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,aa(t)):(n.next=i.next,i.next=n),t.interleaved=n,ut(e,r)}function ut(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mt=!1;function sa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ec(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 lt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _t(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ut(e,n)}return i=r.interleaved,i===null?(t.next=t,aa(r)):(t.next=i.next,i.next=t),r.interleaved=t,ut(e,n)}function Jr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kl(e,n)}}function _s(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ki(e,t,n,r){var i=e.updateQueue;mt=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var v=e.alternate;v!==null&&(v=v.updateQueue,a=v.lastBaseUpdate,a!==l&&(a===null?v.firstBaseUpdate=u:a.next=u,v.lastBaseUpdate=s))}if(o!==null){var p=i.baseState;l=0,v=u=s=null,a=o;do{var f=a.lane,h=a.eventTime;if((r&f)===f){v!==null&&(v=v.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,g=a;switch(f=t,h=n,g.tag){case 1:if(x=g.payload,typeof x=="function"){p=x.call(h,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=g.payload,f=typeof x=="function"?x.call(h,p,f):x,f==null)break e;p=Y({},p,f);break e;case 2:mt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},v===null?(u=v=h,s=p):v=v.next=h,l|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(v===null&&(s=p),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=v,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Wt|=l,e.lanes=l,e.memoizedState=p}}function Es(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(S(191,i));i.call(r)}}}var _r={},et=Nt(_r),dr=Nt(_r),fr=Nt(_r);function $t(e){if(e===_r)throw Error(S(174));return e}function ua(e,t){switch(U(fr,t),U(dr,e),U(et,_r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ko(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ko(t,e)}H(et),U(et,t)}function Cn(){H(et),H(dr),H(fr)}function Cc(e){$t(fr.current);var t=$t(et.current),n=Ko(t,e.type);t!==n&&(U(dr,e),U(et,n))}function ca(e){dr.current===e&&(H(et),H(dr))}var K=Nt(0);function Si(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Co=[];function pa(){for(var e=0;e<Co.length;e++)Co[e]._workInProgressVersionPrimary=null;Co.length=0}var ei=pt.ReactCurrentDispatcher,jo=pt.ReactCurrentBatchConfig,Bt=0,G=null,ee=null,ie=null,_i=!1,Xn=!1,mr=0,$f=0;function ue(){throw Error(S(321))}function da(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qe(e[n],t[n]))return!1;return!0}function fa(e,t,n,r,i,o){if(Bt=o,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ei.current=e===null||e.memoizedState===null?Vf:Bf,e=n(r,i),Xn){o=0;do{if(Xn=!1,mr=0,25<=o)throw Error(S(301));o+=1,ie=ee=null,t.updateQueue=null,ei.current=Wf,e=n(r,i)}while(Xn)}if(ei.current=Ei,t=ee!==null&&ee.next!==null,Bt=0,ie=ee=G=null,_i=!1,t)throw Error(S(300));return e}function ma(){var e=mr!==0;return mr=0,e}function Xe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?G.memoizedState=ie=e:ie=ie.next=e,ie}function $e(){if(ee===null){var e=G.alternate;e=e!==null?e.memoizedState:null}else e=ee.next;var t=ie===null?G.memoizedState:ie.next;if(t!==null)ie=t,ee=e;else{if(e===null)throw Error(S(310));ee=e,e={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},ie===null?G.memoizedState=ie=e:ie=ie.next=e}return ie}function vr(e,t){return typeof t=="function"?t(e):t}function zo(e){var t=$e(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=ee,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=l=null,s=null,u=o;do{var v=u.lane;if((Bt&v)===v)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:v,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=p,l=r):s=s.next=p,G.lanes|=v,Wt|=v}u=u.next}while(u!==null&&u!==o);s===null?l=r:s.next=a,Qe(r,t.memoizedState)||(_e=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,G.lanes|=o,Wt|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Po(e){var t=$e(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);Qe(o,t.memoizedState)||(_e=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function jc(){}function zc(e,t){var n=G,r=$e(),i=t(),o=!Qe(r.memoizedState,i);if(o&&(r.memoizedState=i,_e=!0),r=r.queue,va(Nc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ie!==null&&ie.memoizedState.tag&1){if(n.flags|=2048,hr(9,Dc.bind(null,n,r,i,t),void 0,null),oe===null)throw Error(S(349));Bt&30||Pc(n,t,i)}return i}function Pc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Dc(e,t,n,r){t.value=n,t.getSnapshot=r,Mc(t)&&Oc(e)}function Nc(e,t,n){return n(function(){Mc(t)&&Oc(e)})}function Mc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qe(e,n)}catch{return!0}}function Oc(e){var t=ut(e,1);t!==null&&We(t,e,1,-1)}function Cs(e){var t=Xe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vr,lastRenderedState:e},t.queue=e,e=e.dispatch=Hf.bind(null,G,e),[t.memoizedState,e]}function hr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Tc(){return $e().memoizedState}function ti(e,t,n,r){var i=Xe();G.flags|=e,i.memoizedState=hr(1|t,n,void 0,r===void 0?null:r)}function bi(e,t,n,r){var i=$e();r=r===void 0?null:r;var o=void 0;if(ee!==null){var l=ee.memoizedState;if(o=l.destroy,r!==null&&da(r,l.deps)){i.memoizedState=hr(t,n,o,r);return}}G.flags|=e,i.memoizedState=hr(1|t,n,o,r)}function js(e,t){return ti(8390656,8,e,t)}function va(e,t){return bi(2048,8,e,t)}function Lc(e,t){return bi(4,2,e,t)}function Rc(e,t){return bi(4,4,e,t)}function Fc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ic(e,t,n){return n=n!=null?n.concat([e]):null,bi(4,4,Fc.bind(null,t,e),n)}function ha(){}function Ac(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&da(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $c(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&da(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Uc(e,t,n){return Bt&21?(Qe(n,t)||(n=Wu(),G.lanes|=n,Wt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,_e=!0),e.memoizedState=n)}function Uf(e,t){var n=I;I=n!==0&&4>n?n:4,e(!0);var r=jo.transition;jo.transition={};try{e(!1),t()}finally{I=n,jo.transition=r}}function bc(){return $e().memoizedState}function bf(e,t,n){var r=Ct(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Hc(e))Vc(t,n);else if(n=_c(e,t,n,r),n!==null){var i=he();We(n,e,r,i),Bc(n,t,r)}}function Hf(e,t,n){var r=Ct(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hc(e))Vc(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,Qe(a,l)){var s=t.interleaved;s===null?(i.next=i,aa(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=_c(e,t,i,r),n!==null&&(i=he(),We(n,e,r,i),Bc(n,t,r))}}function Hc(e){var t=e.alternate;return e===G||t!==null&&t===G}function Vc(e,t){Xn=_i=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kl(e,n)}}var Ei={readContext:Ae,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},Vf={readContext:Ae,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:Ae,useEffect:js,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ti(4194308,4,Fc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return ti(4,2,e,t)},useMemo:function(e,t){var n=Xe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xe();return t=n!==void 0?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=bf.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:Cs,useDebugValue:ha,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=Cs(!1),t=e[0];return e=Uf.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,i=Xe();if(B){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),oe===null)throw Error(S(349));Bt&30||Pc(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,js(Nc.bind(null,r,o,e),[e]),r.flags|=2048,hr(9,Dc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Xe(),t=oe.identifierPrefix;if(B){var n=ot,r=it;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=$f++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Bf={readContext:Ae,useCallback:Ac,useContext:Ae,useEffect:va,useImperativeHandle:Ic,useInsertionEffect:Lc,useLayoutEffect:Rc,useMemo:$c,useReducer:zo,useRef:Tc,useState:function(){return zo(vr)},useDebugValue:ha,useDeferredValue:function(e){var t=$e();return Uc(t,ee.memoizedState,e)},useTransition:function(){var e=zo(vr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:jc,useSyncExternalStore:zc,useId:bc,unstable_isNewReconciler:!1},Wf={readContext:Ae,useCallback:Ac,useContext:Ae,useEffect:va,useImperativeHandle:Ic,useInsertionEffect:Lc,useLayoutEffect:Rc,useMemo:$c,useReducer:Po,useRef:Tc,useState:function(){return Po(vr)},useDebugValue:ha,useDeferredValue:function(e){var t=$e();return ee===null?t.memoizedState=e:Uc(t,ee.memoizedState,e)},useTransition:function(){var e=Po(vr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:jc,useSyncExternalStore:zc,useId:bc,unstable_isNewReconciler:!1};function be(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ml(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hi={isMounted:function(e){return(e=e._reactInternals)?Gt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=he(),i=Ct(e),o=lt(r,i);o.payload=t,n!=null&&(o.callback=n),t=_t(e,o,i),t!==null&&(We(t,e,i,r),Jr(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=he(),i=Ct(e),o=lt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=_t(e,o,i),t!==null&&(We(t,e,i,r),Jr(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=he(),r=Ct(e),i=lt(n,r);i.tag=2,t!=null&&(i.callback=t),t=_t(e,i,r),t!==null&&(We(t,e,r,n),Jr(t,e,r))}};function zs(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!sr(n,r)||!sr(i,o):!0}function Wc(e,t,n){var r=!1,i=Pt,o=t.contextType;return typeof o=="object"&&o!==null?o=Ae(o):(i=Ce(t)?Ht:fe.current,r=t.contextTypes,o=(r=r!=null)?Sn(e,i):Pt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Hi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ps(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hi.enqueueReplaceState(t,t.state,null)}function vl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},sa(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ae(o):(o=Ce(t)?Ht:fe.current,i.context=Sn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ml(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Hi.enqueueReplaceState(i,i.state,null),ki(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function jn(e,t){try{var n="",r=t;do n+=xd(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Do(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qf=typeof WeakMap=="function"?WeakMap:Map;function Qc(e,t,n){n=lt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ji||(ji=!0,jl=r),hl(e,t)},n}function Kc(e,t,n){n=lt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){hl(e,t),typeof r!="function"&&(Et===null?Et=new Set([this]):Et.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Ds(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qf;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=lm.bind(null,e,t,n),t.then(e,e))}function Ns(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ms(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=lt(-1,1),t.tag=2,_t(n,t,1))),n.lanes|=1),e)}var Kf=pt.ReactCurrentOwner,_e=!1;function ve(e,t,n,r){t.child=e===null?Sc(t,null,n,r):En(t,e.child,n,r)}function Os(e,t,n,r,i){n=n.render;var o=t.ref;return yn(t,i),r=fa(e,t,n,r,o,i),n=ma(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ct(e,t,i)):(B&&n&&ta(t),t.flags|=1,ve(e,t,r,i),t.child)}function Ts(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ea(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Gc(e,t,o,r,i)):(e=oi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:sr,n(l,r)&&e.ref===t.ref)return ct(e,t,i)}return t.flags|=1,e=jt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Gc(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(sr(o,r)&&e.ref===t.ref)if(_e=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(_e=!0);else return t.lanes=e.lanes,ct(e,t,i)}return gl(e,t,n,r,i)}function Yc(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(mn,Pe),Pe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(mn,Pe),Pe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(mn,Pe),Pe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(mn,Pe),Pe|=r;return ve(e,t,i,n),t.child}function qc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gl(e,t,n,r,i){var o=Ce(n)?Ht:fe.current;return o=Sn(t,o),yn(t,i),n=fa(e,t,n,r,o,i),r=ma(),e!==null&&!_e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ct(e,t,i)):(B&&r&&ta(t),t.flags|=1,ve(e,t,n,i),t.child)}function Ls(e,t,n,r,i){if(Ce(n)){var o=!0;hi(t)}else o=!1;if(yn(t,i),t.stateNode===null)ni(e,t),Wc(t,n,r),vl(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ae(u):(u=Ce(n)?Ht:fe.current,u=Sn(t,u));var v=n.getDerivedStateFromProps,p=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function";p||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==u)&&Ps(t,l,r,u),mt=!1;var f=t.memoizedState;l.state=f,ki(t,r,l,i),s=t.memoizedState,a!==r||f!==s||Ee.current||mt?(typeof v=="function"&&(ml(t,n,v,r),s=t.memoizedState),(a=mt||zs(t,n,a,r,f,s,u))?(p||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Ec(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:be(t.type,a),l.props=u,p=t.pendingProps,f=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=Ae(s):(s=Ce(n)?Ht:fe.current,s=Sn(t,s));var h=n.getDerivedStateFromProps;(v=typeof h=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==p||f!==s)&&Ps(t,l,r,s),mt=!1,f=t.memoizedState,l.state=f,ki(t,r,l,i);var x=t.memoizedState;a!==p||f!==x||Ee.current||mt?(typeof h=="function"&&(ml(t,n,h,r),x=t.memoizedState),(u=mt||zs(t,n,u,r,f,x,s)||!1)?(v||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,x,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,x,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),l.props=r,l.state=x,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return xl(e,t,n,r,o,i)}function xl(e,t,n,r,i,o){qc(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&ys(t,n,!1),ct(e,t,o);r=t.stateNode,Kf.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=En(t,e.child,null,o),t.child=En(t,null,a,o)):ve(e,t,a,o),t.memoizedState=r.state,i&&ys(t,n,!0),t.child}function Xc(e){var t=e.stateNode;t.pendingContext?xs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xs(e,t.context,!1),ua(e,t.containerInfo)}function Rs(e,t,n,r,i){return _n(),ra(i),t.flags|=256,ve(e,t,n,r),t.child}var yl={dehydrated:null,treeContext:null,retryLane:0};function wl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zc(e,t,n){var r=t.pendingProps,i=K.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),U(K,i&1),e===null)return dl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Wi(l,r,0,null),e=bt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=wl(n),t.memoizedState=yl,e):ga(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Gf(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=jt(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=jt(a,o):(o=bt(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?wl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=yl,r}return o=e.child,e=o.sibling,r=jt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ga(e,t){return t=Wi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vr(e,t,n,r){return r!==null&&ra(r),En(t,e.child,null,n),e=ga(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gf(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=Do(Error(S(422))),Vr(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Wi({mode:"visible",children:r.children},i,0,null),o=bt(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&En(t,e.child,null,l),t.child.memoizedState=wl(l),t.memoizedState=yl,o);if(!(t.mode&1))return Vr(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(S(419)),r=Do(o,r,void 0),Vr(e,t,l,r)}if(a=(l&e.childLanes)!==0,_e||a){if(r=oe,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,ut(e,i),We(r,e,i,-1))}return _a(),r=Do(Error(S(421))),Vr(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=am.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,De=St(i.nextSibling),Ne=t,B=!0,Ve=null,e!==null&&(Le[Re++]=it,Le[Re++]=ot,Le[Re++]=Vt,it=e.id,ot=e.overflow,Vt=t),t=ga(t,r.children),t.flags|=4096,t)}function Fs(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fl(e.return,t,n)}function No(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Jc(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ve(e,t,r.children,n),r=K.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fs(e,n,t);else if(e.tag===19)Fs(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(K,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Si(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),No(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Si(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}No(t,!0,n,null,o);break;case"together":No(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ni(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ct(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=jt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yf(e,t,n){switch(t.tag){case 3:Xc(t),_n();break;case 5:Cc(t);break;case 1:Ce(t.type)&&hi(t);break;case 4:ua(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;U(yi,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(K,K.current&1),t.flags|=128,null):n&t.child.childLanes?Zc(e,t,n):(U(K,K.current&1),e=ct(e,t,n),e!==null?e.sibling:null);U(K,K.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(K,K.current),r)break;return null;case 22:case 23:return t.lanes=0,Yc(e,t,n)}return ct(e,t,n)}var ep,kl,tp,np;ep=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};kl=function(){};tp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$t(et.current);var o=null;switch(n){case"input":i=Vo(e,i),r=Vo(e,r),o=[];break;case"select":i=Y({},i,{value:void 0}),r=Y({},r,{value:void 0}),o=[];break;case"textarea":i=Qo(e,i),r=Qo(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=mi)}Go(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(tr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(tr.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&b("scroll",e),o||a===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};np=function(e,t,n,r){n!==r&&(t.flags|=4)};function Un(e,t){if(!B)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qf(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(t),null;case 1:return Ce(t.type)&&vi(),ce(t),null;case 3:return r=t.stateNode,Cn(),H(Ee),H(fe),pa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(br(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ve!==null&&(Dl(Ve),Ve=null))),kl(e,t),ce(t),null;case 5:ca(t);var i=$t(fr.current);if(n=t.type,e!==null&&t.stateNode!=null)tp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return ce(t),null}if(e=$t(et.current),br(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ze]=t,r[pr]=o,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(i=0;i<Wn.length;i++)b(Wn[i],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":Wa(r,o),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},b("invalid",r);break;case"textarea":Ka(r,o),b("invalid",r)}Go(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var a=o[l];l==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Ur(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Ur(r.textContent,a,e),i=["children",""+a]):tr.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&b("scroll",r)}switch(n){case"input":Or(r),Qa(r,o,!0);break;case"textarea":Or(r),Ga(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=mi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ze]=t,e[pr]=r,ep(e,t,!1,!1),t.stateNode=e;e:{switch(l=Yo(n,r),n){case"dialog":b("cancel",e),b("close",e),i=r;break;case"iframe":case"object":case"embed":b("load",e),i=r;break;case"video":case"audio":for(i=0;i<Wn.length;i++)b(Wn[i],e);i=r;break;case"source":b("error",e),i=r;break;case"img":case"image":case"link":b("error",e),b("load",e),i=r;break;case"details":b("toggle",e),i=r;break;case"input":Wa(e,r),i=Vo(e,r),b("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Y({},r,{value:void 0}),b("invalid",e);break;case"textarea":Ka(e,r),i=Qo(e,r),b("invalid",e);break;default:i=r}Go(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="style"?Tu(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Mu(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&nr(e,s):typeof s=="number"&&nr(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(tr.hasOwnProperty(o)?s!=null&&o==="onScroll"&&b("scroll",e):s!=null&&bl(e,o,s,l))}switch(n){case"input":Or(e),Qa(e,r,!1);break;case"textarea":Or(e),Ga(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?vn(e,!!r.multiple,o,!1):r.defaultValue!=null&&vn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=mi)}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)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ce(t),null;case 6:if(e&&t.stateNode!=null)np(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=$t(fr.current),$t(et.current),br(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ze]=t,(o=r.nodeValue!==n)&&(e=Ne,e!==null))switch(e.tag){case 3:Ur(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ur(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ze]=t,t.stateNode=r}return ce(t),null;case 13:if(H(K),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(B&&De!==null&&t.mode&1&&!(t.flags&128))wc(),_n(),t.flags|=98560,o=!1;else if(o=br(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(S(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(S(317));o[Ze]=t}else _n(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ce(t),o=!1}else Ve!==null&&(Dl(Ve),Ve=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||K.current&1?te===0&&(te=3):_a())),t.updateQueue!==null&&(t.flags|=4),ce(t),null);case 4:return Cn(),kl(e,t),e===null&&ur(t.stateNode.containerInfo),ce(t),null;case 10:return la(t.type._context),ce(t),null;case 17:return Ce(t.type)&&vi(),ce(t),null;case 19:if(H(K),o=t.memoizedState,o===null)return ce(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)Un(o,!1);else{if(te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Si(e),l!==null){for(t.flags|=128,Un(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(K,K.current&1|2),t.child}e=e.sibling}o.tail!==null&&X()>zn&&(t.flags|=128,r=!0,Un(o,!1),t.lanes=4194304)}else{if(!r)if(e=Si(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Un(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!B)return ce(t),null}else 2*X()-o.renderingStartTime>zn&&n!==1073741824&&(t.flags|=128,r=!0,Un(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=X(),t.sibling=null,n=K.current,U(K,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return Sa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Pe&1073741824&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Xf(e,t){switch(na(t),t.tag){case 1:return Ce(t.type)&&vi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(),H(Ee),H(fe),pa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ca(t),null;case 13:if(H(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));_n()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(K),null;case 4:return Cn(),null;case 10:return la(t.type._context),null;case 22:case 23:return Sa(),null;case 24:return null;default:return null}}var Br=!1,de=!1,Zf=typeof WeakSet=="function"?WeakSet:Set,z=null;function fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function Sl(e,t,n){try{n()}catch(r){q(e,t,r)}}var Is=!1;function Jf(e,t){if(ol=pi,e=ac(),ea(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,v=0,p=e,f=null;t:for(;;){for(var h;p!==n||i!==0&&p.nodeType!==3||(a=l+i),p!==o||r!==0&&p.nodeType!==3||(s=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(h=p.firstChild)!==null;)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===i&&(a=l),f===o&&++v===r&&(s=l),(h=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=h}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ll={focusedElem:e,selectionRange:n},pi=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var g=x.memoizedProps,M=x.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?g:be(t.type,g),M);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(w){q(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return x=Is,Is=!1,x}function Zn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Sl(t,n,o)}i=i.next}while(i!==r)}}function Vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 _l(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rp(e){var t=e.alternate;t!==null&&(e.alternate=null,rp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ze],delete t[pr],delete t[ul],delete t[Rf],delete t[Ff])),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 ip(e){return e.tag===5||e.tag===3||e.tag===4}function As(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function El(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mi));else if(r!==4&&(e=e.child,e!==null))for(El(e,t,n),e=e.sibling;e!==null;)El(e,t,n),e=e.sibling}function Cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cl(e,t,n),e=e.sibling;e!==null;)Cl(e,t,n),e=e.sibling}var le=null,He=!1;function dt(e,t,n){for(n=n.child;n!==null;)op(e,t,n),n=n.sibling}function op(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(Ri,n)}catch{}switch(n.tag){case 5:de||fn(n,t);case 6:var r=le,i=He;le=null,dt(e,t,n),le=r,He=i,le!==null&&(He?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(He?(e=le,n=n.stateNode,e.nodeType===8?_o(e.parentNode,n):e.nodeType===1&&_o(e,n),lr(e)):_o(le,n.stateNode));break;case 4:r=le,i=He,le=n.stateNode.containerInfo,He=!0,dt(e,t,n),le=r,He=i;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Sl(n,t,l),i=i.next}while(i!==r)}dt(e,t,n);break;case 1:if(!de&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){q(n,t,a)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,dt(e,t,n),de=r):dt(e,t,n);break;default:dt(e,t,n)}}function $s(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zf),t.forEach(function(r){var i=sm.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,a=l;e:for(;a!==null;){switch(a.tag){case 5:le=a.stateNode,He=!1;break e;case 3:le=a.stateNode.containerInfo,He=!0;break e;case 4:le=a.stateNode.containerInfo,He=!0;break e}a=a.return}if(le===null)throw Error(S(160));op(o,l,i),le=null,He=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){q(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lp(t,e),t=t.sibling}function lp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ue(t,e),Ye(e),r&4){try{Zn(3,e,e.return),Vi(3,e)}catch(g){q(e,e.return,g)}try{Zn(5,e,e.return)}catch(g){q(e,e.return,g)}}break;case 1:Ue(t,e),Ye(e),r&512&&n!==null&&fn(n,n.return);break;case 5:if(Ue(t,e),Ye(e),r&512&&n!==null&&fn(n,n.return),e.flags&32){var i=e.stateNode;try{nr(i,"")}catch(g){q(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Pu(i,o),Yo(a,l);var u=Yo(a,o);for(l=0;l<s.length;l+=2){var v=s[l],p=s[l+1];v==="style"?Tu(i,p):v==="dangerouslySetInnerHTML"?Mu(i,p):v==="children"?nr(i,p):bl(i,v,p,u)}switch(a){case"input":Bo(i,o);break;case"textarea":Du(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?vn(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?vn(i,!!o.multiple,o.defaultValue,!0):vn(i,!!o.multiple,o.multiple?[]:"",!1))}i[pr]=o}catch(g){q(e,e.return,g)}}break;case 6:if(Ue(t,e),Ye(e),r&4){if(e.stateNode===null)throw Error(S(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){q(e,e.return,g)}}break;case 3:if(Ue(t,e),Ye(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(g){q(e,e.return,g)}break;case 4:Ue(t,e),Ye(e);break;case 13:Ue(t,e),Ye(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(wa=X())),r&4&&$s(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(de=(u=de)||v,Ue(t,e),de=u):Ue(t,e),Ye(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!v&&e.mode&1)for(z=e,v=e.child;v!==null;){for(p=z=v;z!==null;){switch(f=z,h=f.child,f.tag){case 0:case 11:case 14:case 15:Zn(4,f,f.return);break;case 1:fn(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(g){q(r,n,g)}}break;case 5:fn(f,f.return);break;case 22:if(f.memoizedState!==null){bs(p);continue}}h!==null?(h.return=f,z=h):bs(p)}v=v.sibling}e:for(v=null,p=e;;){if(p.tag===5){if(v===null){v=p;try{i=p.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=p.stateNode,s=p.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=Ou("display",l))}catch(g){q(e,e.return,g)}}}else if(p.tag===6){if(v===null)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){q(e,e.return,g)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;v===p&&(v=null),p=p.return}v===p&&(v=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ue(t,e),Ye(e),r&4&&$s(e);break;case 21:break;default:Ue(t,e),Ye(e)}}function Ye(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ip(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(nr(i,""),r.flags&=-33);var o=As(e);Cl(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,a=As(e);El(e,a,l);break;default:throw Error(S(161))}}catch(s){q(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function em(e,t,n){z=e,ap(e)}function ap(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||Br;if(!l){var a=i.alternate,s=a!==null&&a.memoizedState!==null||de;a=Br;var u=de;if(Br=l,(de=s)&&!u)for(z=i;z!==null;)l=z,s=l.child,l.tag===22&&l.memoizedState!==null?Hs(i):s!==null?(s.return=l,z=s):Hs(i);for(;o!==null;)z=o,ap(o),o=o.sibling;z=i,Br=a,de=u}Us(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,z=o):Us(e)}}function Us(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:de||Vi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:be(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Es(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Es(t,l,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var v=u.memoizedState;if(v!==null){var p=v.dehydrated;p!==null&&lr(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}de||t.flags&512&&_l(t)}catch(f){q(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function bs(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Hs(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Vi(4,t)}catch(s){q(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){q(t,i,s)}}var o=t.return;try{_l(t)}catch(s){q(t,o,s)}break;case 5:var l=t.return;try{_l(t)}catch(s){q(t,l,s)}}}catch(s){q(t,t.return,s)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var tm=Math.ceil,Ci=pt.ReactCurrentDispatcher,xa=pt.ReactCurrentOwner,Ie=pt.ReactCurrentBatchConfig,F=0,oe=null,J=null,ae=0,Pe=0,mn=Nt(0),te=0,gr=null,Wt=0,Bi=0,ya=0,Jn=null,Se=null,wa=0,zn=1/0,nt=null,ji=!1,jl=null,Et=null,Wr=!1,xt=null,zi=0,er=0,zl=null,ri=-1,ii=0;function he(){return F&6?X():ri!==-1?ri:ri=X()}function Ct(e){return e.mode&1?F&2&&ae!==0?ae&-ae:Af.transition!==null?(ii===0&&(ii=Wu()),ii):(e=I,e!==0||(e=window.event,e=e===void 0?16:Zu(e.type)),e):1}function We(e,t,n,r){if(50<er)throw er=0,zl=null,Error(S(185));wr(e,n,r),(!(F&2)||e!==oe)&&(e===oe&&(!(F&2)&&(Bi|=n),te===4&&ht(e,ae)),je(e,r),n===1&&F===0&&!(t.mode&1)&&(zn=X()+500,Ui&&Mt()))}function je(e,t){var n=e.callbackNode;Id(e,t);var r=ci(e,e===oe?ae:0);if(r===0)n!==null&&Xa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xa(n),t===1)e.tag===0?If(Vs.bind(null,e)):gc(Vs.bind(null,e)),Tf(function(){!(F&6)&&Mt()}),n=null;else{switch(Qu(r)){case 1:n=Ql;break;case 4:n=Vu;break;case 16:n=ui;break;case 536870912:n=Bu;break;default:n=ui}n=vp(n,sp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sp(e,t){if(ri=-1,ii=0,F&6)throw Error(S(327));var n=e.callbackNode;if(wn()&&e.callbackNode!==n)return null;var r=ci(e,e===oe?ae:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Pi(e,r);else{t=r;var i=F;F|=2;var o=cp();(oe!==e||ae!==t)&&(nt=null,zn=X()+500,Ut(e,t));do try{im();break}catch(a){up(e,a)}while(!0);oa(),Ci.current=o,F=i,J!==null?t=0:(oe=null,ae=0,t=te)}if(t!==0){if(t===2&&(i=el(e),i!==0&&(r=i,t=Pl(e,i))),t===1)throw n=gr,Ut(e,0),ht(e,r),je(e,X()),n;if(t===6)ht(e,r);else{if(i=e.current.alternate,!(r&30)&&!nm(i)&&(t=Pi(e,r),t===2&&(o=el(e),o!==0&&(r=o,t=Pl(e,o))),t===1))throw n=gr,Ut(e,0),ht(e,r),je(e,X()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Rt(e,Se,nt);break;case 3:if(ht(e,r),(r&130023424)===r&&(t=wa+500-X(),10<t)){if(ci(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){he(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=sl(Rt.bind(null,e,Se,nt),t);break}Rt(e,Se,nt);break;case 4:if(ht(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Be(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tm(r/1960))-r,10<r){e.timeoutHandle=sl(Rt.bind(null,e,Se,nt),r);break}Rt(e,Se,nt);break;case 5:Rt(e,Se,nt);break;default:throw Error(S(329))}}}return je(e,X()),e.callbackNode===n?sp.bind(null,e):null}function Pl(e,t){var n=Jn;return e.current.memoizedState.isDehydrated&&(Ut(e,t).flags|=256),e=Pi(e,t),e!==2&&(t=Se,Se=n,t!==null&&Dl(t)),e}function Dl(e){Se===null?Se=e:Se.push.apply(Se,e)}function nm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Qe(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ht(e,t){for(t&=~ya,t&=~Bi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Be(t),r=1<<n;e[n]=-1,t&=~r}}function Vs(e){if(F&6)throw Error(S(327));wn();var t=ci(e,0);if(!(t&1))return je(e,X()),null;var n=Pi(e,t);if(e.tag!==0&&n===2){var r=el(e);r!==0&&(t=r,n=Pl(e,r))}if(n===1)throw n=gr,Ut(e,0),ht(e,t),je(e,X()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rt(e,Se,nt),je(e,X()),null}function ka(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(zn=X()+500,Ui&&Mt())}}function Qt(e){xt!==null&&xt.tag===0&&!(F&6)&&wn();var t=F;F|=1;var n=Ie.transition,r=I;try{if(Ie.transition=null,I=1,e)return e()}finally{I=r,Ie.transition=n,F=t,!(F&6)&&Mt()}}function Sa(){Pe=mn.current,H(mn)}function Ut(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Of(n)),J!==null)for(n=J.return;n!==null;){var r=n;switch(na(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vi();break;case 3:Cn(),H(Ee),H(fe),pa();break;case 5:ca(r);break;case 4:Cn();break;case 13:H(K);break;case 19:H(K);break;case 10:la(r.type._context);break;case 22:case 23:Sa()}n=n.return}if(oe=e,J=e=jt(e.current,null),ae=Pe=t,te=0,gr=null,ya=Bi=Wt=0,Se=Jn=null,At!==null){for(t=0;t<At.length;t++)if(n=At[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}At=null}return e}function up(e,t){do{var n=J;try{if(oa(),ei.current=Ei,_i){for(var r=G.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}_i=!1}if(Bt=0,ie=ee=G=null,Xn=!1,mr=0,xa.current=null,n===null||n.return===null){te=1,gr=t,J=null;break}e:{var o=e,l=n.return,a=n,s=t;if(t=ae,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,v=a,p=v.tag;if(!(v.mode&1)&&(p===0||p===11||p===15)){var f=v.alternate;f?(v.updateQueue=f.updateQueue,v.memoizedState=f.memoizedState,v.lanes=f.lanes):(v.updateQueue=null,v.memoizedState=null)}var h=Ns(l);if(h!==null){h.flags&=-257,Ms(h,l,a,o,t),h.mode&1&&Ds(o,u,t),t=h,s=u;var x=t.updateQueue;if(x===null){var g=new Set;g.add(s),t.updateQueue=g}else x.add(s);break e}else{if(!(t&1)){Ds(o,u,t),_a();break e}s=Error(S(426))}}else if(B&&a.mode&1){var M=Ns(l);if(M!==null){!(M.flags&65536)&&(M.flags|=256),Ms(M,l,a,o,t),ra(jn(s,a));break e}}o=s=jn(s,a),te!==4&&(te=2),Jn===null?Jn=[o]:Jn.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var d=Qc(o,s,t);_s(o,d);break e;case 1:a=s;var c=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Et===null||!Et.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=Kc(o,a,t);_s(o,w);break e}}o=o.return}while(o!==null)}dp(n)}catch(y){t=y,J===n&&n!==null&&(J=n=n.return);continue}break}while(!0)}function cp(){var e=Ci.current;return Ci.current=Ei,e===null?Ei:e}function _a(){(te===0||te===3||te===2)&&(te=4),oe===null||!(Wt&268435455)&&!(Bi&268435455)||ht(oe,ae)}function Pi(e,t){var n=F;F|=2;var r=cp();(oe!==e||ae!==t)&&(nt=null,Ut(e,t));do try{rm();break}catch(i){up(e,i)}while(!0);if(oa(),F=n,Ci.current=r,J!==null)throw Error(S(261));return oe=null,ae=0,te}function rm(){for(;J!==null;)pp(J)}function im(){for(;J!==null&&!Pd();)pp(J)}function pp(e){var t=mp(e.alternate,e,Pe);e.memoizedProps=e.pendingProps,t===null?dp(e):J=t,xa.current=null}function dp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Xf(n,t),n!==null){n.flags&=32767,J=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{te=6,J=null;return}}else if(n=qf(n,t,Pe),n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);te===0&&(te=5)}function Rt(e,t,n){var r=I,i=Ie.transition;try{Ie.transition=null,I=1,om(e,t,n,r)}finally{Ie.transition=i,I=r}return null}function om(e,t,n,r){do wn();while(xt!==null);if(F&6)throw Error(S(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(S(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Ad(e,o),e===oe&&(J=oe=null,ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wr||(Wr=!0,vp(ui,function(){return wn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ie.transition,Ie.transition=null;var l=I;I=1;var a=F;F|=4,xa.current=null,Jf(e,n),lp(n,e),Cf(ll),pi=!!ol,ll=ol=null,e.current=n,em(n),Dd(),F=a,I=l,Ie.transition=o}else e.current=n;if(Wr&&(Wr=!1,xt=e,zi=i),o=e.pendingLanes,o===0&&(Et=null),Od(n.stateNode),je(e,X()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(ji)throw ji=!1,e=jl,jl=null,e;return zi&1&&e.tag!==0&&wn(),o=e.pendingLanes,o&1?e===zl?er++:(er=0,zl=e):er=0,Mt(),null}function wn(){if(xt!==null){var e=Qu(zi),t=Ie.transition,n=I;try{if(Ie.transition=null,I=16>e?16:e,xt===null)var r=!1;else{if(e=xt,xt=null,zi=0,F&6)throw Error(S(331));var i=F;for(F|=4,z=e.current;z!==null;){var o=z,l=o.child;if(z.flags&16){var a=o.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(z=u;z!==null;){var v=z;switch(v.tag){case 0:case 11:case 15:Zn(8,v,o)}var p=v.child;if(p!==null)p.return=v,z=p;else for(;z!==null;){v=z;var f=v.sibling,h=v.return;if(rp(v),v===u){z=null;break}if(f!==null){f.return=h,z=f;break}z=h}}}var x=o.alternate;if(x!==null){var g=x.child;if(g!==null){x.child=null;do{var M=g.sibling;g.sibling=null,g=M}while(g!==null)}}z=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,z=l;else e:for(;z!==null;){if(o=z,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Zn(9,o,o.return)}var d=o.sibling;if(d!==null){d.return=o.return,z=d;break e}z=o.return}}var c=e.current;for(z=c;z!==null;){l=z;var m=l.child;if(l.subtreeFlags&2064&&m!==null)m.return=l,z=m;else e:for(l=c;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Vi(9,a)}}catch(y){q(a,a.return,y)}if(a===l){z=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,z=w;break e}z=a.return}}if(F=i,Mt(),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(Ri,e)}catch{}r=!0}return r}finally{I=n,Ie.transition=t}}return!1}function Bs(e,t,n){t=jn(n,t),t=Qc(e,t,1),e=_t(e,t,1),t=he(),e!==null&&(wr(e,1,t),je(e,t))}function q(e,t,n){if(e.tag===3)Bs(e,e,n);else for(;t!==null;){if(t.tag===3){Bs(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Et===null||!Et.has(r))){e=jn(n,e),e=Kc(t,e,1),t=_t(t,e,1),e=he(),t!==null&&(wr(t,1,e),je(t,e));break}}t=t.return}}function lm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=he(),e.pingedLanes|=e.suspendedLanes&n,oe===e&&(ae&n)===n&&(te===4||te===3&&(ae&130023424)===ae&&500>X()-wa?Ut(e,0):ya|=n),je(e,t)}function fp(e,t){t===0&&(e.mode&1?(t=Rr,Rr<<=1,!(Rr&130023424)&&(Rr=4194304)):t=1);var n=he();e=ut(e,t),e!==null&&(wr(e,t,n),je(e,n))}function am(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fp(e,n)}function sm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),fp(e,n)}var mp;mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)_e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return _e=!1,Yf(e,t,n);_e=!!(e.flags&131072)}else _e=!1,B&&t.flags&1048576&&xc(t,xi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ni(e,t),e=t.pendingProps;var i=Sn(t,fe.current);yn(t,n),i=fa(null,t,r,e,i,n);var o=ma();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ce(r)?(o=!0,hi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sa(t),i.updater=Hi,t.stateNode=i,i._reactInternals=t,vl(t,r,e,n),t=xl(null,t,r,!0,o,n)):(t.tag=0,B&&o&&ta(t),ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ni(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=cm(r),e=be(r,e),i){case 0:t=gl(null,t,r,e,n);break e;case 1:t=Ls(null,t,r,e,n);break e;case 11:t=Os(null,t,r,e,n);break e;case 14:t=Ts(null,t,r,be(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),gl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Ls(e,t,r,i,n);case 3:e:{if(Xc(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Ec(e,t),ki(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=jn(Error(S(423)),t),t=Rs(e,t,r,n,i);break e}else if(r!==i){i=jn(Error(S(424)),t),t=Rs(e,t,r,n,i);break e}else for(De=St(t.stateNode.containerInfo.firstChild),Ne=t,B=!0,Ve=null,n=Sc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_n(),r===i){t=ct(e,t,n);break e}ve(e,t,r,n)}t=t.child}return t;case 5:return Cc(t),e===null&&dl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,al(r,i)?l=null:o!==null&&al(r,o)&&(t.flags|=32),qc(e,t),ve(e,t,l,n),t.child;case 6:return e===null&&dl(t),null;case 13:return Zc(e,t,n);case 4:return ua(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=En(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Os(e,t,r,i,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,U(yi,r._currentValue),r._currentValue=l,o!==null)if(Qe(o.value,l)){if(o.children===i.children&&!Ee.current){t=ct(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=lt(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var v=u.pending;v===null?s.next=s:(s.next=v.next,v.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),fl(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(S(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),fl(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yn(t,n),i=Ae(i),r=r(i),t.flags|=1,ve(e,t,r,n),t.child;case 14:return r=t.type,i=be(r,t.pendingProps),i=be(r.type,i),Ts(e,t,r,i,n);case 15:return Gc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),ni(e,t),t.tag=1,Ce(r)?(e=!0,hi(t)):e=!1,yn(t,n),Wc(t,r,i),vl(t,r,i,n),xl(null,t,r,!0,e,n);case 19:return Jc(e,t,n);case 22:return Yc(e,t,n)}throw Error(S(156,t.tag))};function vp(e,t){return Hu(e,t)}function um(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 Fe(e,t,n,r){return new um(e,t,n,r)}function Ea(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cm(e){if(typeof e=="function")return Ea(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vl)return 11;if(e===Bl)return 14}return 2}function jt(e,t){var n=e.alternate;return n===null?(n=Fe(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function oi(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Ea(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case rn:return bt(n.children,i,o,t);case Hl:l=8,i|=8;break;case $o:return e=Fe(12,n,t,i|2),e.elementType=$o,e.lanes=o,e;case Uo:return e=Fe(13,n,t,i),e.elementType=Uo,e.lanes=o,e;case bo:return e=Fe(19,n,t,i),e.elementType=bo,e.lanes=o,e;case Cu:return Wi(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _u:l=10;break e;case Eu:l=9;break e;case Vl:l=11;break e;case Bl:l=14;break e;case ft:l=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Fe(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function bt(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Wi(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=Cu,e.lanes=n,e.stateNode={isHidden:!1},e}function Mo(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Oo(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pm(e,t,n,r,i){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=po(0),this.expirationTimes=po(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=po(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ca(e,t,n,r,i,o,l,a,s){return e=new pm(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Fe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sa(o),e}function dm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:nn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function hp(e){if(!e)return Pt;e=e._reactInternals;e:{if(Gt(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ce(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(Ce(n))return hc(e,n,t)}return t}function gp(e,t,n,r,i,o,l,a,s){return e=Ca(n,r,!0,e,i,o,l,a,s),e.context=hp(null),n=e.current,r=he(),i=Ct(n),o=lt(r,i),o.callback=t??null,_t(n,o,i),e.current.lanes=i,wr(e,i,r),je(e,r),e}function Qi(e,t,n,r){var i=t.current,o=he(),l=Ct(i);return n=hp(n),t.context===null?t.context=n:t.pendingContext=n,t=lt(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=_t(i,t,l),e!==null&&(We(e,i,l,o),Jr(e,i,l)),l}function Di(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ws(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ja(e,t){Ws(e,t),(e=e.alternate)&&Ws(e,t)}function fm(){return null}var xp=typeof reportError=="function"?reportError:function(e){console.error(e)};function za(e){this._internalRoot=e}Ki.prototype.render=za.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Qi(e,t,null,null)};Ki.prototype.unmount=za.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qt(function(){Qi(null,e,null,null)}),t[st]=null}};function Ki(e){this._internalRoot=e}Ki.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vt.length&&t!==0&&t<vt[n].priority;n++);vt.splice(n,0,e),n===0&&Xu(e)}};function Pa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qs(){}function mm(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Di(l);o.call(u)}}var l=gp(t,r,e,0,null,!1,!1,"",Qs);return e._reactRootContainer=l,e[st]=l.current,ur(e.nodeType===8?e.parentNode:e),Qt(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Di(s);a.call(u)}}var s=Ca(e,0,!1,null,null,!1,!1,"",Qs);return e._reactRootContainer=s,e[st]=s.current,ur(e.nodeType===8?e.parentNode:e),Qt(function(){Qi(t,s,n,r)}),s}function Yi(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var a=i;i=function(){var s=Di(l);a.call(s)}}Qi(t,l,e,i)}else l=mm(n,t,e,i,r);return Di(l)}Ku=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bn(t.pendingLanes);n!==0&&(Kl(t,n|1),je(t,X()),!(F&6)&&(zn=X()+500,Mt()))}break;case 13:Qt(function(){var r=ut(e,1);if(r!==null){var i=he();We(r,e,1,i)}}),ja(e,1)}};Gl=function(e){if(e.tag===13){var t=ut(e,134217728);if(t!==null){var n=he();We(t,e,134217728,n)}ja(e,134217728)}};Gu=function(e){if(e.tag===13){var t=Ct(e),n=ut(e,t);if(n!==null){var r=he();We(n,e,t,r)}ja(e,t)}};Yu=function(){return I};qu=function(e,t){var n=I;try{return I=e,t()}finally{I=n}};Xo=function(e,t,n){switch(t){case"input":if(Bo(e,n),t=n.name,n.type==="radio"&&t!=null){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 i=$i(r);if(!i)throw Error(S(90));zu(r),Bo(r,i)}}}break;case"textarea":Du(e,n);break;case"select":t=n.value,t!=null&&vn(e,!!n.multiple,t,!1)}};Fu=ka;Iu=Qt;var vm={usingClientEntryPoint:!1,Events:[Sr,sn,$i,Lu,Ru,ka]},bn={findFiberByHostInstance:It,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hm={bundleType:bn.bundleType,version:bn.version,rendererPackageName:bn.rendererPackageName,rendererConfig:bn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Uu(e),e===null?null:e.stateNode},findFiberByHostInstance:bn.findFiberByHostInstance||fm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qr.isDisabled&&Qr.supportsFiber)try{Ri=Qr.inject(hm),Je=Qr}catch{}}Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=vm;Oe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Pa(t))throw Error(S(200));return dm(e,t,null,n)};Oe.createRoot=function(e,t){if(!Pa(e))throw Error(S(299));var n=!1,r="",i=xp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ca(e,1,!1,null,null,n,!1,r,i),e[st]=t.current,ur(e.nodeType===8?e.parentNode:e),new za(t)};Oe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=Uu(t),e=e===null?null:e.stateNode,e};Oe.flushSync=function(e){return Qt(e)};Oe.hydrate=function(e,t,n){if(!Gi(t))throw Error(S(200));return Yi(null,e,t,!0,n)};Oe.hydrateRoot=function(e,t,n){if(!Pa(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=xp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=gp(t,null,e,1,n??null,i,!1,o,l),e[st]=t.current,ur(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ki(t)};Oe.render=function(e,t,n){if(!Gi(t))throw Error(S(200));return Yi(null,e,t,!1,n)};Oe.unmountComponentAtNode=function(e){if(!Gi(e))throw Error(S(40));return e._reactRootContainer?(Qt(function(){Yi(null,null,e,!1,function(){e._reactRootContainer=null,e[st]=null})}),!0):!1};Oe.unstable_batchedUpdates=ka;Oe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gi(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Yi(e,t,n,!1,r)};Oe.version="18.3.1-next-f1338f8080-20240426";function yp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yp)}catch(e){console.error(e)}}yp(),yu.exports=Oe;var gm=yu.exports,wp,Ks=gm;wp=Ks.createRoot,Ks.hydrateRoot;/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var xm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ym=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Ke=(e,t)=>{const n=P.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:a="",children:s,...u},v)=>P.createElement("svg",{ref:v,...xm,width:i,height:i,stroke:r,strokeWidth:l?Number(o)*24/Number(i):o,className:["lucide",`lucide-${ym(e)}`,a].join(" "),...u},[...t.map(([p,f])=>P.createElement(p,f)),...Array.isArray(s)?s:[s]]));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wm=Ke("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const km=Ke("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sm=Ke("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _m=Ke("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Em=Ke("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cm=Ke("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jm=Ke("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kp=Ke("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sp=Ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zm=Ke("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pm=Ke("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);var _p={exports:{}},Dm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Nm=Dm,Mm=Nm;function Ep(){}function Cp(){}Cp.resetWarningCache=Ep;var Om=function(){function e(r,i,o,l,a,s){if(s!==Mm){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Cp,resetWarningCache:Ep};return n.PropTypes=n,n};_p.exports=Om();var Tm=_p.exports;const $=au(Tm);function Yt(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function a(v){try{u(r.next(v))}catch(p){l(p)}}function s(v){try{u(r.throw(v))}catch(p){l(p)}}function u(v){v.done?o(v.value):i(v.value).then(a,s)}u((r=r.apply(e,t||[])).next())})}const Lm=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Pn(e,t,n){const r=Rm(e),{webkitRelativePath:i}=e,o=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&Gs(r,"path",o),Gs(r,"relativePath",o),r}function Rm(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=Lm.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function Gs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const Fm=[".DS_Store","Thumbs.db"];function Im(e){return Yt(this,void 0,void 0,function*(){return Ni(e)&&Am(e.dataTransfer)?Hm(e.dataTransfer,e.type):$m(e)?Um(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?bm(e):[]})}function Am(e){return Ni(e)}function $m(e){return Ni(e)&&Ni(e.target)}function Ni(e){return typeof e=="object"&&e!==null}function Um(e){return Nl(e.target.files).map(t=>Pn(t))}function bm(e){return Yt(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>Pn(n))})}function Hm(e,t){return Yt(this,void 0,void 0,function*(){if(e.items){const n=Nl(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(Vm));return Ys(jp(r))}return Ys(Nl(e.files).map(n=>Pn(n)))})}function Ys(e){return e.filter(t=>Fm.indexOf(t.name)===-1)}function Nl(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function Vm(e){if(typeof e.webkitGetAsEntry!="function")return qs(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?zp(t):qs(e,t)}function jp(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?jp(n):[n]],[])}function qs(e,t){var n;if(typeof e.getAsFileSystemHandle=="function")return e.getAsFileSystemHandle().then(o=>Yt(this,void 0,void 0,function*(){const l=yield o.getFile();return l.handle=o,Pn(l)}));const r=e.getAsFile();if(!r)return Promise.reject(`${e} is not a File`);const i=Pn(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0);return Promise.resolve(i)}function Bm(e){return Yt(this,void 0,void 0,function*(){return e.isDirectory?zp(e):Wm(e)})}function zp(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function o(){t.readEntries(l=>Yt(this,void 0,void 0,function*(){if(l.length){const a=Promise.all(l.map(Bm));i.push(a),o()}else try{const a=yield Promise.all(i);n(a)}catch(a){r(a)}}),l=>{r(l)})}o()})}function Wm(e){return Yt(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=Pn(r,e.fullPath);t(i)},r=>{n(r)})})})}var To=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(l){var a=l.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?o===a.replace(/\/.*$/,""):i===a})}return!0};function Xs(e){return Gm(e)||Km(e)||Dp(e)||Qm()}function Qm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Km(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gm(e){if(Array.isArray(e))return Ml(e)}function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Js(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zs(Object(n),!0).forEach(function(r){Pp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t){return Xm(e)||qm(e,t)||Dp(e,t)||Ym()}function Ym(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dp(e,t){if(e){if(typeof e=="string")return Ml(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ml(e,t)}}function Ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(e);!(i=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Xm(e){if(Array.isArray(e))return e}var Zm=typeof To=="function"?To:To.default,Jm="file-invalid-type",ev="file-too-large",tv="file-too-small",nv="too-many-files",rv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:Jm,message:"File type must be ".concat(r)}},eu=function(t){return{code:ev,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},tu=function(t){return{code:tv,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},iv={code:nv,message:"Too many files"};function Np(e,t){var n=e.type==="application/x-moz-file"||Zm(e,t);return[n,n?null:rv(t)]}function Mp(e,t,n){if(Ft(e.size))if(Ft(t)&&Ft(n)){if(e.size>n)return[!1,eu(n)];if(e.size<t)return[!1,tu(t)]}else{if(Ft(t)&&e.size<t)return[!1,tu(t)];if(Ft(n)&&e.size>n)return[!1,eu(n)]}return[!0,null]}function Ft(e){return e!=null}function ov(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,l=e.maxFiles,a=e.validator;return!o&&t.length>1||o&&l>=1&&t.length>l?!1:t.every(function(s){var u=Np(s,n),v=xr(u,1),p=v[0],f=Mp(s,r,i),h=xr(f,1),x=h[0],g=a?a(s):null;return p&&x&&!g})}function Mi(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Kr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function nu(e){e.preventDefault()}function lv(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function av(e){return e.indexOf("Edge/")!==-1}function sv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return lv(e)||av(e)}function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return t.some(function(a){return!Mi(r)&&a&&a.apply(void 0,[r].concat(o)),Mi(r)})}}function uv(){return"showOpenFilePicker"in window}function cv(e){if(Ft(e)){var t=Object.entries(e).filter(function(n){var r=xr(n,2),i=r[0],o=r[1],l=!0;return Op(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),l=!1),(!Array.isArray(o)||!o.every(Tp))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),l=!1),l}).reduce(function(n,r){var i=xr(r,2),o=i[0],l=i[1];return Js(Js({},n),{},Pp({},o,l))},{});return[{description:"Files",accept:t}]}return e}function pv(e){if(Ft(e))return Object.entries(e).reduce(function(t,n){var r=xr(n,2),i=r[0],o=r[1];return[].concat(Xs(t),[i],Xs(o))},[]).filter(function(t){return Op(t)||Tp(t)}).join(",")}function dv(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function fv(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Op(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Tp(e){return/^.*\.[\w]+$/.test(e)}var mv=["children"],vv=["open"],hv=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],gv=["refKey","onChange","onClick"];function xv(e){return kv(e)||wv(e)||Lp(e)||yv()}function yv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kv(e){if(Array.isArray(e))return Ol(e)}function Lo(e,t){return Ev(e)||_v(e,t)||Lp(e,t)||Sv()}function Sv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lp(e,t){if(e){if(typeof e=="string")return Ol(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ol(e,t)}}function Ol(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _v(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,l,a;try{for(n=n.call(e);!(i=(l=n.next()).done)&&(r.push(l.value),!(t&&r.length===t));i=!0);}catch(s){o=!0,a=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function Ev(e){if(Array.isArray(e))return e}function ru(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ru(Object(n),!0).forEach(function(r){Tl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ru(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(e,t){if(e==null)return{};var n=Cv(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Da=P.forwardRef(function(e,t){var n=e.children,r=Oi(e,mv),i=Fp(r),o=i.open,l=Oi(i,vv);return P.useImperativeHandle(t,function(){return{open:o}},[o]),od.createElement(P.Fragment,null,n(Q(Q({},l),{},{open:o})))});Da.displayName="Dropzone";var Rp={disabled:!1,getFilesFromEvent:Im,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Da.defaultProps=Rp;Da.propTypes={children:$.func,accept:$.objectOf($.arrayOf($.string)),multiple:$.bool,preventDropOnDocument:$.bool,noClick:$.bool,noKeyboard:$.bool,noDrag:$.bool,noDragEventsBubbling:$.bool,minSize:$.number,maxSize:$.number,maxFiles:$.number,disabled:$.bool,getFilesFromEvent:$.func,onFileDialogCancel:$.func,onFileDialogOpen:$.func,useFsAccessApi:$.bool,autoFocus:$.bool,onDragEnter:$.func,onDragLeave:$.func,onDragOver:$.func,onDrop:$.func,onDropAccepted:$.func,onDropRejected:$.func,onError:$.func,validator:$.func};var Ll={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Fp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Q(Q({},Rp),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,l=t.minSize,a=t.multiple,s=t.maxFiles,u=t.onDragEnter,v=t.onDragLeave,p=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,x=t.onDropRejected,g=t.onFileDialogCancel,M=t.onFileDialogOpen,d=t.useFsAccessApi,c=t.autoFocus,m=t.preventDropOnDocument,w=t.noClick,y=t.noKeyboard,E=t.noDrag,C=t.noDragEventsBubbling,D=t.onError,A=t.validator,T=P.useMemo(function(){return pv(n)},[n]),ye=P.useMemo(function(){return cv(n)},[n]),tt=P.useMemo(function(){return typeof M=="function"?M:iu},[M]),Ge=P.useMemo(function(){return typeof g=="function"?g:iu},[g]),ne=P.useRef(null),we=P.useRef(null),On=P.useReducer(jv,Ll),qt=Lo(On,2),j=qt[0],N=qt[1],L=j.isFocused,V=j.isFileDialogActive,W=P.useRef(typeof window<"u"&&window.isSecureContext&&d&&uv()),Ot=function(){!W.current&&V&&setTimeout(function(){if(we.current){var O=we.current.files;O.length||(N({type:"closeDialog"}),Ge())}},300)};P.useEffect(function(){return window.addEventListener("focus",Ot,!1),function(){window.removeEventListener("focus",Ot,!1)}},[we,V,Ge,W]);var ke=P.useRef([]),Xt=function(O){ne.current&&ne.current.contains(O.target)||(O.preventDefault(),ke.current=[])};P.useEffect(function(){return m&&(document.addEventListener("dragover",nu,!1),document.addEventListener("drop",Xt,!1)),function(){m&&(document.removeEventListener("dragover",nu),document.removeEventListener("drop",Xt))}},[ne,m]),P.useEffect(function(){return!r&&c&&ne.current&&ne.current.focus(),function(){}},[ne,c,r]);var me=P.useCallback(function(_){D?D(_):console.error(_)},[D]),Tt=P.useCallback(function(_){_.preventDefault(),_.persist(),Pr(_),ke.current=[].concat(xv(ke.current),[_.target]),Kr(_)&&Promise.resolve(i(_)).then(function(O){if(!(Mi(_)&&!C)){var Z=O.length,re=Z>0&&ov({files:O,accept:T,minSize:l,maxSize:o,multiple:a,maxFiles:s,validator:A}),ze=Z>0&&!re;N({isDragAccept:re,isDragReject:ze,isDragActive:!0,type:"setDraggedFiles"}),u&&u(_)}}).catch(function(O){return me(O)})},[i,u,me,C,T,l,o,a,s,A]),Ta=P.useCallback(function(_){_.preventDefault(),_.persist(),Pr(_);var O=Kr(_);if(O&&_.dataTransfer)try{_.dataTransfer.dropEffect="copy"}catch{}return O&&p&&p(_),!1},[p,C]),La=P.useCallback(function(_){_.preventDefault(),_.persist(),Pr(_);var O=ke.current.filter(function(re){return ne.current&&ne.current.contains(re)}),Z=O.indexOf(_.target);Z!==-1&&O.splice(Z,1),ke.current=O,!(O.length>0)&&(N({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Kr(_)&&v&&v(_))},[ne,v,C]),Cr=P.useCallback(function(_,O){var Z=[],re=[];_.forEach(function(ze){var Tn=Np(ze,T),en=Lo(Tn,2),Ji=en[0],eo=en[1],to=Mp(ze,l,o),Dr=Lo(to,2),no=Dr[0],ro=Dr[1],io=A?A(ze):null;if(Ji&&no&&!io)Z.push(ze);else{var oo=[eo,ro];io&&(oo=oo.concat(io)),re.push({file:ze,errors:oo.filter(function(Vp){return Vp})})}}),(!a&&Z.length>1||a&&s>=1&&Z.length>s)&&(Z.forEach(function(ze){re.push({file:ze,errors:[iv]})}),Z.splice(0)),N({acceptedFiles:Z,fileRejections:re,isDragReject:re.length>0,type:"setFiles"}),f&&f(Z,re,O),re.length>0&&x&&x(re,O),Z.length>0&&h&&h(Z,O)},[N,a,T,l,o,s,f,h,x,A]),jr=P.useCallback(function(_){_.preventDefault(),_.persist(),Pr(_),ke.current=[],Kr(_)&&Promise.resolve(i(_)).then(function(O){Mi(_)&&!C||Cr(O,_)}).catch(function(O){return me(O)}),N({type:"reset"})},[i,Cr,me,C]),Zt=P.useCallback(function(){if(W.current){N({type:"openDialog"}),tt();var _={multiple:a,types:ye};window.showOpenFilePicker(_).then(function(O){return i(O)}).then(function(O){Cr(O,null),N({type:"closeDialog"})}).catch(function(O){dv(O)?(Ge(O),N({type:"closeDialog"})):fv(O)?(W.current=!1,we.current?(we.current.value=null,we.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):me(O)});return}we.current&&(N({type:"openDialog"}),tt(),we.current.value=null,we.current.click())},[N,tt,Ge,d,Cr,me,ye,a]),Ra=P.useCallback(function(_){!ne.current||!ne.current.isEqualNode(_.target)||(_.key===" "||_.key==="Enter"||_.keyCode===32||_.keyCode===13)&&(_.preventDefault(),Zt())},[ne,Zt]),Fa=P.useCallback(function(){N({type:"focus"})},[]),Ia=P.useCallback(function(){N({type:"blur"})},[]),Aa=P.useCallback(function(){w||(sv()?setTimeout(Zt,0):Zt())},[w,Zt]),Jt=function(O){return r?null:O},Zi=function(O){return y?null:Jt(O)},zr=function(O){return E?null:Jt(O)},Pr=function(O){C&&O.stopPropagation()},Up=P.useMemo(function(){return function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=_.refKey,Z=O===void 0?"ref":O,re=_.role,ze=_.onKeyDown,Tn=_.onFocus,en=_.onBlur,Ji=_.onClick,eo=_.onDragEnter,to=_.onDragOver,Dr=_.onDragLeave,no=_.onDrop,ro=Oi(_,hv);return Q(Q(Tl({onKeyDown:Zi(qe(ze,Ra)),onFocus:Zi(qe(Tn,Fa)),onBlur:Zi(qe(en,Ia)),onClick:Jt(qe(Ji,Aa)),onDragEnter:zr(qe(eo,Tt)),onDragOver:zr(qe(to,Ta)),onDragLeave:zr(qe(Dr,La)),onDrop:zr(qe(no,jr)),role:typeof re=="string"&&re!==""?re:"presentation"},Z,ne),!r&&!y?{tabIndex:0}:{}),ro)}},[ne,Ra,Fa,Ia,Aa,Tt,Ta,La,jr,y,E,r]),bp=P.useCallback(function(_){_.stopPropagation()},[]),Hp=P.useMemo(function(){return function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=_.refKey,Z=O===void 0?"ref":O,re=_.onChange,ze=_.onClick,Tn=Oi(_,gv),en=Tl({accept:T,multiple:a,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Jt(qe(re,jr)),onClick:Jt(qe(ze,bp)),tabIndex:-1},Z,we);return Q(Q({},en),Tn)}},[we,n,a,jr,r]);return Q(Q({},j),{},{isFocused:L&&!r,getRootProps:Up,getInputProps:Hp,rootRef:ne,inputRef:we,open:Jt(Zt)})}function jv(e,t){switch(t.type){case"focus":return Q(Q({},e),{},{isFocused:!0});case"blur":return Q(Q({},e),{},{isFocused:!1});case"openDialog":return Q(Q({},Ll),{},{isFileDialogActive:!0});case"closeDialog":return Q(Q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Q(Q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Q(Q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Q({},Ll);default:return e}}function iu(){}const zv=(e=1,t=3)=>{const[n,r]=P.useState({scale:1,offsetX:0,offsetY:0}),i=P.useRef(!1),o=P.useRef({x:0,y:0}),l=P.useCallback(()=>{r(h=>({...h,scale:Math.min(h.scale*1.2,t)}))},[t]),a=P.useCallback(()=>{r(h=>({...h,scale:Math.max(h.scale/1.2,e)}))},[e]),s=P.useCallback(()=>{r({scale:1,offsetX:0,offsetY:0})},[]),u=P.useCallback(h=>{i.current=!0;const x="touches"in h?h.touches[0]:h;o.current={x:x.clientX,y:x.clientY}},[]),v=P.useCallback(h=>{if(!i.current)return;const x="touches"in h?h.touches[0]:h,g=x.clientX-o.current.x,M=x.clientY-o.current.y;r(d=>({...d,offsetX:d.offsetX+g,offsetY:d.offsetY+M})),o.current={x:x.clientX,y:x.clientY}},[]),p=P.useCallback(()=>{i.current=!1},[]),f=P.useCallback(h=>{h.preventDefault();const x=-Math.sign(h.deltaY);r(g=>({...g,scale:Math.max(e,Math.min(t,g.scale*(1+x*.1)))}))},[e,t]);return{zoom:n,handlers:{onMouseDown:u,onMouseMove:v,onMouseUp:p,onMouseLeave:p,onTouchStart:u,onTouchMove:v,onTouchEnd:p,onWheel:f},zoomIn:l,zoomOut:a,resetZoom:s}},Pv=({onZoomIn:e,onZoomOut:t,onReset:n})=>k.jsxs("div",{className:"absolute bottom-4 left-4 flex gap-2",children:[k.jsx("button",{onClick:e,className:"p-2 bg-white rounded-full shadow-md hover:bg-gray-50 transition-colors",title:"Zoom in",children:k.jsx(zm,{className:"w-5 h-5 text-gray-700"})}),k.jsx("button",{onClick:t,className:"p-2 bg-white rounded-full shadow-md hover:bg-gray-50 transition-colors",title:"Zoom out",children:k.jsx(Pm,{className:"w-5 h-5 text-gray-700"})}),k.jsx("button",{onClick:n,className:"p-2 bg-white rounded-full shadow-md hover:bg-gray-50 transition-colors",title:"Reset zoom",children:k.jsx(_m,{className:"w-5 h-5 text-gray-700"})})]}),Dv=({imageUrl:e,adjustments:t,colorApplication:n,onImageLoad:r,onReset:i,onNewImage:o})=>{const l=P.useRef(null),a=P.useRef(null),{zoom:s,handlers:u,zoomIn:v,zoomOut:p,resetZoom:f}=zv();P.useEffect(()=>{const x=l.current;if(!x)return;const g=x.getContext("2d");if(!g)return;const M=new Image;M.src=e,M.onload=()=>{a.current=M,x.width=M.width,x.height=M.height,ou(g,M,t,n),r()}},[e]),P.useEffect(()=>{const x=l.current,g=a.current;if(!x||!g)return;const M=x.getContext("2d");M&&ou(M,g,t,n)},[t,n]);const h=()=>{const x=l.current;if(!x)return;const g=document.createElement("a");g.download="edited-image.png",g.href=x.toDataURL("image/png"),g.click()};return k.jsxs("div",{className:"relative w-full h-full",children:[k.jsx("div",{className:"w-full h-full overflow-hidden cursor-move",...u,children:k.jsx("canvas",{ref:l,className:"max-w-full h-auto rounded shadow-md transition-transform duration-200",style:{transform:`scale(${s.scale}) translate(${s.offsetX}px, ${s.offsetY}px)`,transformOrigin:"center"}})}),k.jsxs("div",{className:"absolute top-4 right-4 flex gap-2",children:[k.jsx("button",{onClick:o,className:"p-2 bg-white rounded-full shadow-md hover:bg-gray-50",title:"Upload new image",children:k.jsx(kp,{className:"w-5 h-5 text-gray-700"})}),k.jsx("button",{onClick:h,className:"p-2 bg-white rounded-full shadow-md hover:bg-gray-50",title:"Download image",children:k.jsx(km,{className:"w-5 h-5 text-gray-700"})}),k.jsx("button",{onClick:i,className:"p-2 bg-white rounded-full shadow-md hover:bg-gray-50",title:"Reset adjustments",children:k.jsx(Cm,{className:"w-5 h-5 text-gray-700"})})]}),k.jsx(Pv,{onZoomIn:v,onZoomOut:p,onReset:f})]})},ou=(e,t,n,r)=>{e.clearRect(0,0,e.canvas.width,e.canvas.height),e.drawImage(t,0,0);const i=e.getImageData(0,0,e.canvas.width,e.canvas.height),o=i.data;if(n.exposure!==0){const l=Math.pow(2,n.exposure/100);for(let a=0;a<o.length;a+=4)o[a]=Math.min(255,o[a]*l),o[a+1]=Math.min(255,o[a+1]*l),o[a+2]=Math.min(255,o[a+2]*l)}if(n.brightness!==0){const l=n.brightness*2.55;for(let a=0;a<o.length;a+=4)o[a]=Math.min(255,Math.max(0,o[a]+l)),o[a+1]=Math.min(255,Math.max(0,o[a+1]+l)),o[a+2]=Math.min(255,Math.max(0,o[a+2]+l))}if(n.contrast!==0){const l=259*(n.contrast+255)/(255*(259-n.contrast));for(let a=0;a<o.length;a+=4)o[a]=Math.min(255,Math.max(0,l*(o[a]-128)+128)),o[a+1]=Math.min(255,Math.max(0,l*(o[a+1]-128)+128)),o[a+2]=Math.min(255,Math.max(0,l*(o[a+2]-128)+128))}if(n.saturation!==0){const l=1+n.saturation/100;for(let a=0;a<o.length;a+=4){const s=.2989*o[a]+.587*o[a+1]+.114*o[a+2];o[a]=Math.min(255,Math.max(0,s+(o[a]-s)*l)),o[a+1]=Math.min(255,Math.max(0,s+(o[a+1]-s)*l)),o[a+2]=Math.min(255,Math.max(0,s+(o[a+2]-s)*l))}}if(n.temperature!==0||n.tint!==0){const l=1+n.temperature/200,a=1+n.tint/200;for(let s=0;s<o.length;s+=4)o[s]*=l,o[s+1]*=a,o[s+2]*=1/l}if(n.vibrance!==0){const l=n.vibrance/100;for(let a=0;a<o.length;a+=4){const s=o[a],u=o[a+1],v=o[a+2],p=(s+u+v)/3,h=(1-Math.sqrt((s-p)**2+(u-p)**2+(v-p)**2)/255)*l;o[a]+=(s>p?1:-1)*(Math.abs(s-p)*h),o[a+1]+=(u>p?1:-1)*(Math.abs(u-p)*h),o[a+2]+=(v>p?1:-1)*(Math.abs(v-p)*h)}}if(n.highlights!==0||n.shadows!==0)for(let l=0;l<o.length;l+=4){const a=(.299*o[l]+.587*o[l+1]+.114*o[l+2])/255;let s=1;a>.5&&n.highlights!==0?s=1+n.highlights/200*(a-.5)*2:a<.5&&n.shadows!==0&&(s=1+n.shadows/200*(.5-a)*2),o[l]=Math.min(255,Math.max(0,o[l]*s)),o[l+1]=Math.min(255,Math.max(0,o[l+1]*s)),o[l+2]=Math.min(255,Math.max(0,o[l+2]*s))}if(n.whites!==0||n.blacks!==0){const l=Math.sign(n.whites)*Math.pow(Math.abs(n.whites)/100,1.5),a=Math.sign(n.blacks)*Math.pow(Math.abs(n.blacks)/100,1.5);for(let s=0;s<o.length;s+=4){const u=(.299*o[s]+.587*o[s+1]+.114*o[s+2])/255;let v=1;if(u>.75&&n.whites!==0){const p=Math.pow((u-.75)/.25,2.2);v=1+l*1.5*p}else if(u<.25&&n.blacks!==0){const p=Math.pow((.25-u)/.25,2.2);v=1+a*1.5*p}Math.abs(v-1)>.01&&(o[s]=Math.min(255,Math.max(0,o[s]*v)),o[s+1]=Math.min(255,Math.max(0,o[s+1]*v)),o[s+2]=Math.min(255,Math.max(0,o[s+2]*v)))}}if(n.clarity>0){const l=Math.round(e.canvas.width*.01),a=document.createElement("canvas");a.width=e.canvas.width,a.height=e.canvas.height;const s=a.getContext("2d");s.filter=`blur(${l}px)`,s.drawImage(e.canvas,0,0);const u=s.getImageData(0,0,e.canvas.width,e.canvas.height).data,v=n.clarity/100;for(let p=0;p<o.length;p+=4)for(let f=0;f<3;f++){const h=o[p+f]-u[p+f];o[p+f]=Math.min(255,Math.max(0,o[p+f]+h*v))}}if(n.grain>0){const l=n.grain/100;for(let a=0;a<o.length;a+=4){const s=(Math.random()-.5)*l*50;o[a]=Math.min(255,Math.max(0,o[a]+s)),o[a+1]=Math.min(255,Math.max(0,o[a+1]+s)),o[a+2]=Math.min(255,Math.max(0,o[a+2]+s))}}if(n.noise>0){const l=Math.ceil(n.noise/25),a=document.createElement("canvas");a.width=e.canvas.width,a.height=e.canvas.height;const s=a.getContext("2d");s.filter=`blur(${l}px)`,s.drawImage(e.canvas,0,0);const u=s.getImageData(0,0,e.canvas.width,e.canvas.height).data,v=n.noise/100;for(let p=0;p<o.length;p+=4)for(let f=0;f<3;f++)o[p+f]=o[p+f]*(1-v)+u[p+f]*v}if(n.vignette>0){const l=e.canvas.width/2,a=e.canvas.height/2,s=Math.sqrt(l*l+a*a),u=n.vignette/100;for(let v=0;v<e.canvas.height;v++)for(let p=0;p<e.canvas.width;p++){const f=(v*e.canvas.width+p)*4,x=1-Math.sqrt((p-l)**2+(v-a)**2)/s*u;o[f]*=x,o[f+1]*=x,o[f+2]*=x}}if(r){const l={r:parseInt(r.color.slice(1,3),16),g:parseInt(r.color.slice(3,5),16),b:parseInt(r.color.slice(5,7),16)},a=(.299*l.r+.587*l.g+.114*l.b)/255,s=r.intensity/50*.5;for(let u=0;u<o.length;u+=4){const v=o[u],p=o[u+1],f=o[u+2],h=(.299*v+.587*p+.114*f)/255,x=Math.abs(h-a),g=Math.max(0,1-x*r.similarity/15),M=Math.min(g*s,1);if(M>0){const d=h,c=v*(1-M)+l.r*M,m=p*(1-M)+l.g*M,w=f*(1-M)+l.b*M,y=(.299*c+.587*m+.114*w)/255,E=y>0?d/y:1;o[u]=Math.min(255,Math.max(0,c*E)),o[u+1]=Math.min(255,Math.max(0,m*E)),o[u+2]=Math.min(255,Math.max(0,w*E))}}}e.putImageData(i,0,0)},pe=({label:e,value:t,onChange:n,onReset:r,min:i=-100,max:o=100})=>{const[l,a]=P.useState(t.toString());P.useEffect(()=>{a(t.toString())},[t]);const s=f=>{const h=f.target.value;a(h);const x=Number(h);!isNaN(x)&&x>=i&&x<=o&&n(x)},u=()=>{const f=Number(l);if(isNaN(f))a(t.toString());else{const h=Math.max(i,Math.min(o,f));a(h.toString()),n(h)}},v=()=>i===0?`linear-gradient(to right,
#22c55e, /* Green */
#84cc16 25%, /*Light Green */
#f97316 50%, /* Orange */
#ef4444 75%, /* Red */
)`:`linear-gradient(to right,
#ef4444, /* Red */
#f97316 15%, /* Orange */
#84cc16 45%, /* Light Green */
#22c55e 50%, /* Green */
#84cc16 55%, /* Light Green */
#f97316 85%, /* Orange */
#ef4444 /* Red */
)`,p=()=>{if(i===0){const f=t/o;return f<=.25?"#3b82f6":f<=.5?"#8b5cf6":f<=.75?"#ec4899":"#ef4444"}else{const f=(t-i)/(o-i);return f<=.15?"#ef4444":f<=.45?"#f97316":f<=.55?"#22c55e":f<=.85?"#f97316":"#ef4444"}};return k.jsxs("div",{className:"bg-white rounded p-4 border border-gray-200",children:[k.jsxs("div",{className:"flex items-center justify-between mb-3",children:[k.jsx("span",{className:"text-sm sm:text-base font-medium text-gray-800",children:e}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("input",{type:"text",value:l,onChange:s,onBlur:u,className:"w-16 px-2 py-1 text-sm text-right border rounded-md focus:outline-none focus:ring-1 focus:ring-blue-500"}),k.jsx("button",{onClick:r,className:"p-1.5 hover:bg-gray-100 rounded-full transition-colors",title:"Reset to default",children:k.jsx(jm,{className:"w-4 h-4 text-gray-500"})})]})]}),k.jsxs("div",{className:"relative",children:[k.jsx("input",{type:"range",min:i,max:o,value:t,onChange:f=>n(Number(f.target.value)),className:"w-full h-1 rounded appearance-none cursor-pointer",style:{background:v(),"--thumb-color":p()}}),k.jsx("style",{children:`
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--thumb-color);
border: 2px solid white;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
cursor: pointer;
transition: all 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.1);
}
input[type="range"]::-webkit-slider-runnable-track {
border-radius: 0.5rem;
height: 0.5rem;
}
`})]})]})},Nv=({colors:e,selectedColor:t,onColorSelect:n,onColorRemove:r})=>k.jsxs("div",{className:"flex flex-wrap gap-2 p-4",children:[e.map(i=>k.jsx("button",{className:`w-8 h-8 rounded-full border ${t===i?"border-blue-500":"border-transparent"}`,style:{backgroundColor:i},onClick:()=>n(i)},i)),t&&k.jsx("button",{onClick:r,className:"w-8 h-8 rounded-full border border-gray-300 flex items-center justify-center hover:bg-gray-100",children:k.jsx(Sp,{className:"w-4 h-4 text-gray-500"})})]}),Mv=({colors:e,isLoading:t,onColorSelect:n,selectedColor:r})=>t?k.jsx("div",{className:"flex justify-center p-4",children:k.jsx(Sm,{className:"w-6 h-6 text-gray-400 animate-spin"})}):e.length===0?k.jsx("p",{className:"text-sm text-gray-500 text-center p-4",children:"Upload an image to extract its color palette"}):k.jsx("div",{className:"flex flex-wrap gap-2 p-4",children:e.map(i=>k.jsx("button",{className:`w-8 h-8 rounded-full border ${r===i?"border-blue-500":"border-transparent"}`,style:{backgroundColor:i},onClick:()=>n(i)},i))}),Ip=P.createContext({openGroups:new Set(["basic"]),toggleGroup:()=>{},closeOthers:()=>{}}),Ov=({children:e})=>{const[t,n]=P.useState(new Set(["basic"])),r=o=>{n(l=>{const a=new Set(l);return a.has(o)?a.size>1&&a.delete(o):a.add(o),a})},i=o=>{n(new Set([o]))};return k.jsx(Ip.Provider,{value:{openGroups:t,toggleGroup:r,closeOthers:i},children:e})},Ro=({title:e,children:t,id:n})=>{const{openGroups:r,toggleGroup:i,closeOthers:o}=P.useContext(Ip),l=r.has(n);return k.jsxs("div",{className:"bg-gray-50 rounded shadow-md overflow-hidden mb-4",children:[k.jsxs("button",{className:`w-full px-4 py-3 flex items-center justify-between text-left transition-colors ${l?"bg-white shadow-sm border border-gray-200":"hover:bg-gray-100"}`,onClick:()=>{l?i(n):o(n)},children:[k.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:e}),k.jsx(wm,{className:`w-5 h-5 text-gray-500 transition-transform duration-500 ${l?"transform rotate-180":""}`})]}),k.jsx("div",{className:`transition-all duration-500 ease-in-out ${l?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"} overflow-hidden`,children:k.jsx("div",{className:"p-4 space-y-4 bg-white",children:t})})]})},Tv=64e3,Lv=.22,Rv=1/12,Fv=1/5,Iv=1/5,qi=({pixels:e=Tv,distance:t=Lv,colorValidator:n=(s,u,v,p)=>(p??255)>250,hueDistance:r=Rv,saturationDistance:i=Iv,lightnessDistance:o=Fv,crossOrigin:l="",requestMode:a="cors"}={})=>[Math.max(e,1),Math.min(Math.max(t,0),1),n,Math.min(Math.max(r,0),1),Math.min(Math.max(i,0),1),Math.min(Math.max(o,0),1),l,a];class Er{constructor(t,n,r,i=t<<16|n<<8|r){this._count=1,this.__saturation=-1,this.__hue=-1,this.__lightness=-1,this.__intensity=-1,this._red=t,this._green=n,this._blue=r,this._hex=i}static distance(t,n){return(Math.abs(n._red-t._red)+Math.abs(n._green-t._green)+Math.abs(n._blue-t._blue))/(3*255)}clone(){const t=new Er(this._red,this._green,this._blue,this._hex);return t._count=this._count,t}updateHSL(){const t=this._red/255,n=this._green/255,r=this._blue/255,i=Math.max(t,n,r),o=Math.min(t,n,r);if(this.__lightness=(i+o)/2,i===o)this.__hue=0,this.__saturation=0,this.__intensity=0;else{const l=i-o;switch(this.__saturation=this.__lightness>.5?l/(2-i-o):l/(i+o),this.__intensity=this.__saturation*((.5-Math.abs(.5-this.__lightness))*2),i){case t:this.__hue=((n-r)/l+(n<r?6:0))/6;break;case n:this.__hue=((r-t)/l+2)/6;break;case r:this.__hue=((t-n)/l+4)/6;break}}}get _hue(){return this.__hue===-1&&this.updateHSL(),this.__hue}get _saturation(){return this.__saturation===-1&&this.updateHSL(),this.__saturation}get _lightness(){return this.__lightness===-1&&this.updateHSL(),this.__lightness}get _intensity(){return this.__intensity===-1&&this.updateHSL(),this.__intensity}}class Av{constructor(){this._count=0,this._children={}}addColor(t,n,r,i){return this._count++,this._children[t]?this._children[t]._count++:this._children[t]=new Er(n,r,i,t),this._children[t]}getList(){return Object.keys(this._children).map(t=>this._children[t])}createMainColor(){const r=this.getList().reduce((i,o)=>i._count>=o._count?i:o).clone();return r._count=this._count,r}}class $v{constructor(){this._count=0,this._children={}}getList(){return Object.keys(this._children).map(t=>this._children[t])}addColor(t,n,r){const i=t<<16|n<<8|r,o=(t>>4&15)<<8|(n>>4&15)<<4|r>>4&15;return this._count++,this.getLeafGroup(o).addColor(i,t,n,r)}getLeafGroup(t){return this._children[t]||(this._children[t]=new Av),this._children[t]}getColors(t){const n=this.getList().map(i=>i.createMainColor());n.sort((i,o)=>o._count-i._count);const r=[];for(;n.length;){const i=n.shift();n.filter(o=>Er.distance(i,o)<t).forEach(o=>{i._count+=o._count;const l=n.findIndex(a=>a===o);n.splice(l,1)}),r.push(i)}return r}}const Na=({data:e,width:t,height:n},r,i,o)=>{const l=new $v,a=t&&n&&Math.floor(t*n/r)||1;let s=0;for(let u=0;u<e.length;u+=4*a){const v=e[u],p=e[u+1],f=e[u+2],h=e[u+3];o(v,p,f,h)?l.addColor(v,p,f):s++}return{colors:l.getColors(i),count:l._count+s}},Ti=(e,t)=>Math.abs(e-t),Uv=(e,t)=>Math.min(Ti(e,t),Ti((e+.5)%1,(t+.5)%1));class bv{constructor(){this.colors=[],this._average=null}addColor(t){this.colors.push(t),this._average=null}isSamePalette(t,n,r,i){for(const o of this.colors)if(!(Uv(o._hue,t._hue)<n&&Ti(o._saturation,t._saturation)<r&&Ti(o._lightness,t._lightness)<i))return!1;return!0}get average(){if(!this._average){const{r:t,g:n,b:r}=this.colors.reduce((o,l)=>(o.r+=l._red,o.g+=l._green,o.b+=l._blue,o),{r:0,g:0,b:0}),i=this.colors.reduce((o,l)=>o+l._count,0);this._average=new Er(Math.round(t/this.colors.length),Math.round(n/this.colors.length),Math.round(r/this.colors.length)),this._average._count=i}return this._average}}class Hv{constructor(t,n,r){this._groups=[],this._hue=t,this._saturation=n,this._lightness=r}addColor(t){const n=this._groups.find(r=>r.isSamePalette(t,this._hue,this._saturation,this._lightness));if(n)n.addColor(t);else{const r=new bv;r.addColor(t),this._groups.push(r)}}getGroups(){return this._groups.map(t=>t.average)}}const Vv=(e,t,n,r,i)=>{const o=new Hv(n,r,i);e.forEach(a=>o.addColor(a));const l=o.getGroups();return l.sort((a,s)=>{const u=(s._intensity+.1)*(.9-s._count/t),v=(a._intensity+.1)*(.9-a._count/t);return u-v}),l},Bv=(e,t)=>({hex:`#${"0".repeat(6-e._hex.toString(16).length)}${e._hex.toString(16)}`,red:e._red,green:e._green,blue:e._blue,area:e._count/t,hue:e._hue,saturation:e._saturation,lightness:e._lightness,intensity:e._intensity}),Wv=()=>typeof window<"u"&&typeof window.document<"u",Ma=()=>typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Xi=()=>typeof window>"u"&&typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Oa=(e,t,n,r,i)=>Vv(e,t,n,r,i).map(l=>Bv(l,t)),Ap=(e,t)=>{const n=e.width*e.height,r=n<t?e.width:Math.round(e.width*Math.sqrt(t/n)),i=n<t?e.height:Math.round(e.height*Math.sqrt(t/n)),l=((a,s)=>{if(Ma())return new OffscreenCanvas(a,s);const u=document.createElement("canvas");return u.width=a,u.height=s,u})(r,i).getContext("2d");return l.drawImage(e,0,0,e.width,e.height,0,0,r,i),l.getImageData(0,0,r,i)},Fo=(e,t={})=>{const[n,r,i,o,l,a]=qi(t),{colors:s,count:u}=Na(e,n,r,i);return Oa(s,u,o,l,a)},$p=async(e,t={})=>{if(Xi())return[];const[n,r,i,o,l,a,s]=qi(t);return e.crossOrigin=s,new Promise(u=>{const v=p=>{const f=Ap(p,n),{colors:h,count:x}=Na(f,n,r,i);u(Oa(h,x,o,l,a))};if(e.complete)v(e);else{const p=()=>{e.removeEventListener("load",p),v(e)};e.addEventListener("load",p)}})},Qv=async(e,t={})=>{if(Xi())return[];const[n,r,i,o,l,a]=qi(t),s=Ap(e,n),{colors:u,count:v}=Na(s,n,r,i);return Oa(u,v,o,l,a)},Io=async(e,t={})=>{if(Xi())return[];if(Ma()){const r=qi(t),o=await(await fetch(e,{mode:r[7]})).blob(),l=await createImageBitmap(o),a=await Qv(l,t);return l.close(),a}const n=new Image;return n.src=e,$p(n,t)},Kv=(e,t)=>{if(Wv()){if(e instanceof Image)return $p(e,t);if(e instanceof ImageData||e instanceof Object&&e.data)return new Promise(n=>{n(Fo(e,t))});if(typeof e=="string")return Io(e,t)}if(Ma()){if(e instanceof ImageData||e instanceof Object&&e.data)return new Promise(n=>{n(Fo(e,t))});if(typeof e=="string")return Io(e,t);if(e.src)return Io(e.src,t)}if(Xi())return new Promise(n=>{n(Fo(e,t))});throw new Error("Can not analyse picture")},Gv=e=>{const[t,n]=P.useState([]),[r,i]=P.useState(!1);return P.useEffect(()=>{if(!e){n([]);return}(async()=>{i(!0);try{const a=(await Kv(e,{pixels:1e5,distance:.15,saturationImportance:.3,splitPower:8,colorValidator:(s,u,v,p)=>p>.5})).sort((s,u)=>{const v=.299*s.red+.587*s.green+.114*s.blue,p=.299*u.red+.587*u.green+.114*u.blue;return u.area*p-s.area*v}).slice(0,10).map(s=>s.hex);n(a)}catch(l){console.error("Failed to extract colors:",l),n([])}finally{i(!1)}})()},[e]),{colors:t,isLoading:r}},lu={brightness:0,contrast:0,saturation:0,exposure:0,temperature:0,tint:0,vibrance:0,highlights:0,shadows:0,whites:0,blacks:0,clarity:0,dehaze:0,grain:0,sharpen:0,noise:0,vignette:0},Yv=["#FF9F80","#FCE30E","#1AB7FF","#1a7bff","#9AA7D0","#FF1A53","#40622C","#572C62","#2C4B62","#FF6445"];function qv(){const[e,t]=P.useState(null),[n,r]=P.useState(lu),[i,o]=P.useState(null),[l,a]=P.useState(null),[s,u]=P.useState(!1),{colors:v,isLoading:p}=Gv(e),{getRootProps:f,getInputProps:h,isDragActive:x}=Fp({accept:{"image/*":[".png",".jpg",".jpeg",".webp"]},onDrop:y=>{const E=y[0];if(E){const C=URL.createObjectURL(E);t(C)}}}),g=(y,E)=>{r(C=>({...C,[y]:E}))},M=y=>{i===y?(o(null),a(null)):(o(y),a({color:y,intensity:0,similarity:100}))},d=()=>{o(null),a(null)},c=()=>{r(lu),o(null),a(null)},m=()=>{t(null),c()},w=()=>{u(!s)};return k.jsx(Ov,{children:k.jsxs("div",{className:"min-h-screen relative",children:[k.jsx("button",{onClick:w,className:"lg:hidden fixed top-4 right-4 z-50 p-2 bg-white rounded-full shadow-lg hover:bg-gray-50 transition-colors duration-200",children:k.jsxs("div",{className:"w-6 h-6 relative",children:[k.jsx("span",{className:`absolute inset-0 transition-opacity duration-300 ease-out ${s?"opacity-0":"opacity-100"}`,children:k.jsx(Em,{className:"w-6 h-6"})}),k.jsx("span",{className:`absolute inset-0 transition-opacity duration-300 ease-out ${s?"opacity-100":"opacity-0"}`,children:k.jsx(Sp,{className:"w-6 h-6"})})]})}),k.jsx("div",{className:"container mx-auto px-6",children:k.jsxs("div",{className:"lg:grid lg:grid-cols-2 lg:gap-6",children:[k.jsx("div",{className:"bg-white rounded shadow-md p-4 min-h-[600px] flex items-center justify-center",children:e?k.jsx(Dv,{imageUrl:e,adjustments:n,colorApplication:l,onImageLoad:()=>{},onReset:c,onNewImage:m}):k.jsxs("div",{...f(),className:`w-full h-full flex flex-col items-center justify-center cursor-pointer border border-dashed rounded transition-colors ${x?"border-blue-400 bg-blue-100":"border-gray-300 hover:border-gray-400"}`,children:[k.jsx("input",{...h()}),k.jsx(kp,{className:"w-16 h-16 text-gray-400 mb-4"}),k.jsx("p",{className:"text-lg text-gray-600 font-medium",children:"Drag & drop an image here"}),k.jsx("p",{className:"text-sm text-gray-500 mt-2",children:"or click to select one"})]})}),k.jsx("div",{className:`lg:block fixed lg:relative top-0 right-0 h-full w-[85vw] lg:w-auto transform transition-transform duration-300 ease-in-out ${s?"translate-x-0":"translate-x-full lg:translate-x-0"} bg-white lg:bg-transparent shadow-lg lg:shadow-none z-40 overflow-y-auto`,children:k.jsxs("div",{className:"p-4 lg:p-0 space-y-4 max-h-screen lg:max-h-none",children:[k.jsx(Ro,{title:"Basic Adjustments",id:"basic",children:k.jsxs("div",{className:"space-y-4",children:[k.jsx(pe,{label:"Exposure",value:n.exposure,onChange:y=>g("exposure",y),onReset:()=>g("exposure",0)}),k.jsx(pe,{label:"Brightness",value:n.brightness,onChange:y=>g("brightness",y),onReset:()=>g("brightness",0)}),k.jsx(pe,{label:"Contrast",value:n.contrast,onChange:y=>g("contrast",y),onReset:()=>g("contrast",0)}),k.jsx(pe,{label:"Temperature",value:n.temperature,onChange:y=>g("temperature",y),onReset:()=>g("temperature",0)}),k.jsx(pe,{label:"Tint",value:n.tint,onChange:y=>g("tint",y),onReset:()=>g("tint",0)}),k.jsx(pe,{label:"Saturation",value:n.saturation,onChange:y=>g("saturation",y),onReset:()=>g("saturation",0)}),k.jsx(pe,{label:"Vibrance",value:n.vibrance,onChange:y=>g("vibrance",y),onReset:()=>g("vibrance",0),min:0,max:100})]})}),k.jsx(Ro,{title:"Advanced Adjustments",id:"advanced",children:k.jsxs("div",{className:"space-y-4",children:[k.jsx(pe,{label:"Highlights",value:n.highlights,onChange:y=>g("highlights",y),onReset:()=>g("highlights",0)}),k.jsx(pe,{label:"Shadows",value:n.shadows,onChange:y=>g("shadows",y),onReset:()=>g("shadows",0)}),k.jsx(pe,{label:"Whites",value:n.whites,onChange:y=>g("whites",y),onReset:()=>g("whites",0)}),k.jsx(pe,{label:"Blacks",value:n.blacks,onChange:y=>g("blacks",y),onReset:()=>g("blacks",0)}),k.jsx(pe,{label:"Clarity",value:n.clarity,onChange:y=>g("clarity",y),onReset:()=>g("clarity",0),min:0,max:100}),k.jsx(pe,{label:"Grain",value:n.grain,onChange:y=>g("grain",y),onReset:()=>g("grain",0),min:0,max:100}),k.jsx(pe,{label:"Noise Reduction",value:n.noise,onChange:y=>g("noise",y),onReset:()=>g("noise",0),min:0,max:100}),k.jsx(pe,{label:"Vignette",value:n.vignette,onChange:y=>g("vignette",y),onReset:()=>g("vignette",0),min:0,max:100})]})}),k.jsx(Ro,{title:"Color Application",id:"color",children:k.jsxs("div",{className:"space-y-6",children:[k.jsxs("div",{children:[k.jsx("h4",{className:"text-base font-medium text-gray-800 mb-2",children:"Preset Colors"}),k.jsx(Nv,{colors:Yv,selectedColor:i,onColorSelect:M,onColorRemove:d})]}),k.jsxs("div",{children:[k.jsx("h4",{className:"text-base font-medium text-gray-800 mb-2",children:"Image Color Palette"}),k.jsx(Mv,{colors:v,isLoading:p,onColorSelect:M,selectedColor:i})]}),i&&l&&k.jsx(pe,{label:"Color Intensity",value:l.intensity,onChange:y=>{a({...l,intensity:y})},onReset:()=>{a({...l,intensity:0})},min:0,max:100})]})})]})}),s&&k.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-30 lg:hidden",onClick:w})]})})]})})}wp(document.getElementById("root")).render(k.jsx(P.StrictMode,{children:k.jsx(qv,{})}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment