From 1f8a033bf1febe8193eafd6f817a4f49394cf5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20G=C5=82uch?= <106307102+AllmostHumann@users.noreply.github.com> Date: Mon, 15 Jan 2024 23:13:38 +0100 Subject: [PATCH] Updates --- assets/index-ZMGBIPL3.js | 95 +++++++++++++++++++++++++++++++++++++++ assets/index-dlIUhDqn.css | 1 + index.html | 14 ++++++ vite.svg | 1 + 4 files changed, 111 insertions(+) create mode 100644 assets/index-ZMGBIPL3.js create mode 100644 assets/index-dlIUhDqn.css create mode 100644 index.html create mode 100644 vite.svg diff --git a/assets/index-ZMGBIPL3.js b/assets/index-ZMGBIPL3.js new file mode 100644 index 0000000..38f699b --- /dev/null +++ b/assets/index-ZMGBIPL3.js @@ -0,0 +1,95 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var Cf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ga={exports:{}},kl={},Wa={exports:{}},Q={};/** + * @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 so=Symbol.for("react.element"),kf=Symbol.for("react.portal"),xf=Symbol.for("react.fragment"),Ef=Symbol.for("react.strict_mode"),Rf=Symbol.for("react.profiler"),Pf=Symbol.for("react.provider"),Ff=Symbol.for("react.context"),$f=Symbol.for("react.forward_ref"),zf=Symbol.for("react.suspense"),Df=Symbol.for("react.memo"),Mf=Symbol.for("react.lazy"),xs=Symbol.iterator;function If(e){return e===null||typeof e!="object"?null:(e=xs&&e[xs]||e["@@iterator"],typeof e=="function"?e:null)}var Qa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ka=Object.assign,qa={};function mr(e,t,n){this.props=e,this.context=t,this.refs=qa,this.updater=n||Qa}mr.prototype.isReactComponent={};mr.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")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xa(){}Xa.prototype=mr.prototype;function Ru(e,t,n){this.props=e,this.context=t,this.refs=qa,this.updater=n||Qa}var Pu=Ru.prototype=new Xa;Pu.constructor=Ru;Ka(Pu,mr.prototype);Pu.isPureReactComponent=!0;var Es=Array.isArray,Ya=Object.prototype.hasOwnProperty,Fu={current:null},Ja={key:!0,ref:!0,__self:!0,__source:!0};function Za(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Ya.call(t,r)&&!Ja.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,z=P[j];if(0>>1;jo(te,O))leo(ue,te)?(P[j]=ue,P[le]=O,j=le):(P[j]=te,P[U]=O,j=U);else if(leo(ue,O))P[j]=ue,P[le]=O,j=le;else break e}}return x}function o(P,x){var O=P.sortIndex-x.sortIndex;return O!==0?O:P.id-x.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],c=1,p=null,g=3,v=!1,w=!1,S=!1,k=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=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(P){for(var x=n(a);x!==null;){if(x.callback===null)r(a);else if(x.startTime<=P)r(a),x.sortIndex=x.expirationTime,t(s,x);else break;x=n(a)}}function C(P){if(S=!1,m(P),!w)if(n(s)!==null)w=!0,Y($);else{var x=n(a);x!==null&&A(C,x.startTime-P)}}function $(P,x){w=!1,S&&(S=!1,f(h),h=-1),v=!0;var O=g;try{for(m(x),p=n(s);p!==null&&(!(p.expirationTime>x)||P&&!M());){var j=p.callback;if(typeof j=="function"){p.callback=null,g=p.priorityLevel;var z=j(p.expirationTime<=x);x=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(s)&&r(s),m(x)}else r(s);p=n(s)}if(p!==null)var W=!0;else{var U=n(a);U!==null&&A(C,U.startTime-x),W=!1}return W}finally{p=null,g=O,v=!1}}var D=!1,R=null,h=-1,y=5,_=-1;function M(){return!(e.unstable_now()-_P||125j?(P.sortIndex=O,t(a,P),n(s)===null&&P===n(a)&&(S?(f(h),h=-1):S=!0,A(C,O-j))):(P.sortIndex=z,t(s,P),w||v||(w=!0,Y($))),P},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(P){var x=g;return function(){var O=g;g=x;try{return P.apply(this,arguments)}finally{g=O}}}})(nc);tc.exports=nc;var Gf=tc.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 rc=G,tt=Gf;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=Object.prototype.hasOwnProperty,Wf=/^[: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]*$/,Ps={},Fs={};function Qf(e){return Ri.call(Fs,e)?!0:Ri.call(Ps,e)?!1:Wf.test(e)?Fs[e]=!0:(Ps[e]=!0,!1)}function Kf(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 qf(e,t,n,r){if(t===null||typeof t>"u"||Kf(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 je(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new je(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){$e[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var zu=/[\-:]([a-z])/g;function Du(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(zu,Du);$e[t]=new je(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(zu,Du);$e[t]=new je(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(zu,Du);$e[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mu(e,t,n,r){var o=$e.hasOwnProperty(t)?$e[t]:null;(o!==null?o.type!==0:r||!(2u||o[i]!==l[u]){var s=` +`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Gl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dr(e):""}function Xf(e){switch(e.tag){case 5:return Dr(e.type);case 16:return Dr("Lazy");case 13:return Dr("Suspense");case 19:return Dr("SuspenseList");case 0:case 2:case 15:return e=Wl(e.type,!1),e;case 11:return e=Wl(e.type.render,!1),e;case 1:return e=Wl(e.type,!0),e;default:return""}}function zi(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 Wn:return"Fragment";case Gn:return"Portal";case Pi:return"Profiler";case Iu:return"StrictMode";case Fi:return"Suspense";case $i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ic:return(e.displayName||"Context")+".Consumer";case lc:return(e._context.displayName||"Context")+".Provider";case Lu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Au:return t=e.displayName||null,t!==null?t:zi(e.type)||"Memo";case Zt:t=e._payload,e=e._init;try{return zi(e(t))}catch{}}return null}function Yf(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 zi(t);case 8:return t===Iu?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jf(e){var t=sc(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yo(e){e._valueTracker||(e._valueTracker=Jf(e))}function ac(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jo(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 Di(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(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 cc(e,t){t=t.checked,t!=null&&Mu(e,"checked",t,!1)}function Mi(e,t){cc(e,t);var n=gn(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")?Ii(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ii(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ds(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 Ii(e,t,n){(t!=="number"||Jo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function nr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=So.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ar={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},Zf=["Webkit","ms","Moz","O"];Object.keys(Ar).forEach(function(e){Zf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ar[t]=Ar[e]})});function gc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ar.hasOwnProperty(e)&&Ar[e]?(""+t).trim():t+"px"}function hc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=gc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bf=he({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 Oi(e,t){if(t){if(bf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ni(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 Ti=null;function Ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vi=null,rr=null,or=null;function Ls(e){if(e=fo(e)){if(typeof Vi!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Fl(t),Vi(e.stateNode,e.type,t))}}function mc(e){rr?or?or.push(e):or=[e]:rr=e}function vc(){if(rr){var e=rr,t=or;if(or=rr=null,Ls(e),t)for(e=0;e>>=0,e===0?32:31-(cp(e)/dp|0)|0}var wo=64,_o=4194304;function Ir(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 tl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=Ir(u):(l&=i,l!==0&&(r=Ir(l)))}else i=n&~o,i!==0?r=Ir(i):l!==0&&(r=Ir(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ao(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function hp(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=Nr),Us=" ",Gs=!1;function Nc(e,t){switch(e){case"keyup":return Up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qn=!1;function Wp(e,t){switch(e){case"compositionend":return Tc(t);case"keypress":return t.which!==32?null:(Gs=!0,Us);case"textInput":return e=t.data,e===Us&&Gs?null:e;default:return null}}function Qp(e,t){if(Qn)return e==="compositionend"||!Gu&&Nc(e,t)?(e=Ac(),Ho=Hu=nn=null,Qn=!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)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=qs(n)}}function Bc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uc(){for(var e=window,t=Jo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jo(e.document)}return t}function Wu(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 tg(e){var t=Uc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bc(n.ownerDocument.documentElement,n)){if(r!==null&&Wu(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=Xs(n,l);var i=Xs(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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=document.documentMode,Kn=null,Wi=null,Vr=null,Qi=!1;function Ys(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qi||Kn==null||Kn!==Jo(r)||(r=Kn,"selectionStart"in r&&Wu(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}),Vr&&Jr(Vr,r)||(Vr=r,r=ol(Wi,"onSelect"),0Yn||(e.current=Zi[Yn],Zi[Yn]=null,Yn--)}function ie(e,t){Yn++,Zi[Yn]=e.current,e.current=t}var hn={},Le=yn(hn),qe=yn(!1),Dn=hn;function ar(e,t){var n=e.type.contextTypes;if(!n)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Xe(e){return e=e.childContextTypes,e!=null}function il(){ae(qe),ae(Le)}function ra(e,t,n){if(Le.current!==hn)throw Error(E(168));ie(Le,t),ie(qe,n)}function Zc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(E(108,Yf(e)||"Unknown",o));return he({},n,r)}function ul(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Dn=Le.current,ie(Le,e),ie(qe,qe.current),!0}function oa(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Zc(e,t,Dn),r.__reactInternalMemoizedMergedChildContext=e,ae(qe),ae(Le),ie(Le,e)):ae(qe),ie(qe,n)}var jt=null,$l=!1,li=!1;function bc(e){jt===null?jt=[e]:jt.push(e)}function pg(e){$l=!0,bc(e)}function Sn(){if(!li&&jt!==null){li=!0;var e=0,t=ee;try{var n=jt;for(ee=1;e>=i,o-=i,Ht=1<<32-Ct(t)+o|n<h?(y=R,R=null):y=R.sibling;var _=g(f,R,m[h],C);if(_===null){R===null&&(R=y);break}e&&R&&_.alternate===null&&t(f,R),d=l(_,d,h),D===null?$=_:D.sibling=_,D=_,R=y}if(h===m.length)return n(f,R),fe&&xn(f,h),$;if(R===null){for(;hh?(y=R,R=null):y=R.sibling;var M=g(f,R,_.value,C);if(M===null){R===null&&(R=y);break}e&&R&&M.alternate===null&&t(f,R),d=l(M,d,h),D===null?$=M:D.sibling=M,D=M,R=y}if(_.done)return n(f,R),fe&&xn(f,h),$;if(R===null){for(;!_.done;h++,_=m.next())_=p(f,_.value,C),_!==null&&(d=l(_,d,h),D===null?$=_:D.sibling=_,D=_);return fe&&xn(f,h),$}for(R=r(f,R);!_.done;h++,_=m.next())_=v(R,f,h,_.value,C),_!==null&&(e&&_.alternate!==null&&R.delete(_.key===null?h:_.key),d=l(_,d,h),D===null?$=_:D.sibling=_,D=_);return e&&R.forEach(function(L){return t(f,L)}),fe&&xn(f,h),$}function k(f,d,m,C){if(typeof m=="object"&&m!==null&&m.type===Wn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case vo:e:{for(var $=m.key,D=d;D!==null;){if(D.key===$){if($=m.type,$===Wn){if(D.tag===7){n(f,D.sibling),d=o(D,m.props.children),d.return=f,f=d;break e}}else if(D.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Zt&&da($)===D.type){n(f,D.sibling),d=o(D,m.props),d.ref=Rr(f,D,m),d.return=f,f=d;break e}n(f,D);break}else t(f,D);D=D.sibling}m.type===Wn?(d=zn(m.props.children,f.mode,C,m.key),d.return=f,f=d):(C=Xo(m.type,m.key,m.props,null,f.mode,C),C.ref=Rr(f,d,m),C.return=f,f=C)}return i(f);case Gn:e:{for(D=m.key;d!==null;){if(d.key===D)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(f,d.sibling),d=o(d,m.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=pi(m,f.mode,C),d.return=f,f=d}return i(f);case Zt:return D=m._init,k(f,d,D(m._payload),C)}if(Mr(m))return w(f,d,m,C);if(_r(m))return S(f,d,m,C);Fo(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(f,d.sibling),d=o(d,m),d.return=f,f=d):(n(f,d),d=fi(m,f.mode,C),d.return=f,f=d),i(f)):n(f,d)}return k}var dr=ud(!0),sd=ud(!1),po={},Lt=yn(po),to=yn(po),no=yn(po);function Fn(e){if(e===po)throw Error(E(174));return e}function es(e,t){switch(ie(no,t),ie(to,e),ie(Lt,po),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ai(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ai(t,e)}ae(Lt),ie(Lt,t)}function fr(){ae(Lt),ae(to),ae(no)}function ad(e){Fn(no.current);var t=Fn(Lt.current),n=Ai(t,e.type);t!==n&&(ie(to,e),ie(Lt,n))}function ts(e){to.current===e&&(ae(Lt),ae(to))}var pe=yn(0);function pl(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 ii=[];function ns(){for(var e=0;en?n:4,e(!0);var r=ui.transition;ui.transition={};try{e(!1),t()}finally{ee=n,ui.transition=r}}function Ed(){return ft().memoizedState}function vg(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rd(e))Pd(t,n);else if(n=rd(e,t,n,r),n!==null){var o=Te();kt(n,e,r,o),Fd(n,t,r)}}function yg(e,t,n){var r=fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rd(e))Pd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Et(u,i)){var s=t.interleaved;s===null?(o.next=o,Zu(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=rd(e,t,o,r),n!==null&&(o=Te(),kt(n,e,r,o),Fd(n,t,r))}}function Rd(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Pd(e,t){jr=gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tu(e,n)}}var hl={readContext:dt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},Sg={readContext:dt,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:pa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wo(4194308,4,wd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wo(4,2,e,t)},useMemo:function(e,t){var n=Dt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Dt();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=vg.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:fa,useDebugValue:us,useDeferredValue:function(e){return Dt().memoizedState=e},useTransition:function(){var e=fa(!1),t=e[0];return e=mg.bind(null,e[1]),Dt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=Dt();if(fe){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),Re===null)throw Error(E(349));In&30||fd(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,pa(gd.bind(null,r,l,e),[e]),r.flags|=2048,lo(9,pd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Dt(),t=Re.identifierPrefix;if(fe){var n=Bt,r=Ht;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ro++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Mt]=t,e[eo]=r,Nd(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ni(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;ogr&&(t.flags|=128,r=!0,Pr(l,!1),t.lanes=4194304)}else{if(!r)if(e=pl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!fe)return Me(t),null}else 2*we()-l.renderingStartTime>gr&&n!==1073741824&&(t.flags|=128,r=!0,Pr(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=we(),t.sibling=null,n=pe.current,ie(pe,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ze&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Pg(e,t){switch(Ku(t),t.tag){case 1:return Xe(t.type)&&il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fr(),ae(qe),ae(Le),ns(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ts(t),null;case 13:if(ae(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ae(pe),null;case 4:return fr(),null;case 10:return Ju(t.type._context),null;case 22:case 23:return ps(),null;case 24:return null;default:return null}}var zo=!1,Ie=!1,Fg=typeof WeakSet=="function"?WeakSet:Set,I=null;function er(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function cu(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Ca=!1;function $g(e,t){if(Ki=nl,e=Uc(),Wu(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,c=0,p=e,g=null;t:for(;;){for(var v;p!==n||o!==0&&p.nodeType!==3||(u=i+o),p!==l||r!==0&&p.nodeType!==3||(s=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===e)break t;if(g===n&&++a===o&&(u=i),g===l&&++c===r&&(s=i),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(qi={focusedElem:e,selectionRange:n},nl=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var S=w.memoizedProps,k=w.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?S:yt(t.type,S),k);f.__reactInternalSnapshotBeforeUpdate=d}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(E(163))}}catch(C){ye(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return w=Ca,Ca=!1,w}function Hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&cu(t,n,l)}o=o.next}while(o!==r)}}function Ml(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 du(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 jd(e){var t=e.alternate;t!==null&&(e.alternate=null,jd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[eo],delete t[Ji],delete t[dg],delete t[fg])),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 Hd(e){return e.tag===5||e.tag===3||e.tag===4}function ka(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hd(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 fu(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=ll));else if(r!==4&&(e=e.child,e!==null))for(fu(e,t,n),e=e.sibling;e!==null;)fu(e,t,n),e=e.sibling}function pu(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(pu(e,t,n),e=e.sibling;e!==null;)pu(e,t,n),e=e.sibling}var Pe=null,St=!1;function Jt(e,t,n){for(n=n.child;n!==null;)Bd(e,t,n),n=n.sibling}function Bd(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:Ie||er(n,t);case 6:var r=Pe,o=St;Pe=null,Jt(e,t,n),Pe=r,St=o,Pe!==null&&(St?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(St?(e=Pe,n=n.stateNode,e.nodeType===8?oi(e.parentNode,n):e.nodeType===1&&oi(e,n),Xr(e)):oi(Pe,n.stateNode));break;case 4:r=Pe,o=St,Pe=n.stateNode.containerInfo,St=!0,Jt(e,t,n),Pe=r,St=o;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&cu(n,t,i),o=o.next}while(o!==r)}Jt(e,t,n);break;case 1:if(!Ie&&(er(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ye(n,t,u)}Jt(e,t,n);break;case 21:Jt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Jt(e,t,n),Ie=r):Jt(e,t,n);break;default:Jt(e,t,n)}}function xa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fg),t.forEach(function(r){var o=Tg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=we()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Dg(r/1960))-r,10e?16:e,rn===null)var r=!1;else{if(e=rn,rn=null,yl=0,q&6)throw Error(E(331));var o=q;for(q|=4,I=e.current;I!==null;){var l=I,i=l.child;if(I.flags&16){var u=l.deletions;if(u!==null){for(var s=0;swe()-ds?$n(e,0):cs|=n),Ye(e,t)}function Yd(e,t){t===0&&(e.mode&1?(t=_o,_o<<=1,!(_o&130023424)&&(_o=4194304)):t=1);var n=Te();e=Qt(e,t),e!==null&&(ao(e,t,n),Ye(e,n))}function Ng(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yd(e,n)}function Tg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Yd(e,n)}var Jd;Jd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,Eg(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,fe&&t.flags&1048576&&ed(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qo(e,t),e=t.pendingProps;var o=ar(t,Le.current);ir(t,n),o=os(null,t,r,e,o,n);var l=ls();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xe(r)?(l=!0,ul(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,bu(t),o.updater=zl,t.stateNode=o,o._reactInternals=t,ru(t,r,e,n),t=iu(null,t,r,!0,l,n)):(t.tag=0,fe&&l&&Qu(t),Ne(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=jg(r),e=yt(r,e),o){case 0:t=lu(null,t,r,e,n);break e;case 1:t=Sa(null,t,r,e,n);break e;case 11:t=va(null,t,r,e,n);break e;case 14:t=ya(null,t,r,yt(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),lu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),Sa(e,t,r,o,n);case 3:e:{if(Ld(t),e===null)throw Error(E(387));r=t.pendingProps,l=t.memoizedState,o=l.element,od(e,t),fl(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=pr(Error(E(423)),t),t=wa(e,t,r,n,o);break e}else if(r!==o){o=pr(Error(E(424)),t),t=wa(e,t,r,n,o);break e}else for(be=an(t.stateNode.containerInfo.firstChild),et=t,fe=!0,wt=null,n=sd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cr(),r===o){t=Kt(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return ad(t),e===null&&eu(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Xi(r,o)?i=null:l!==null&&Xi(r,l)&&(t.flags|=32),Id(e,t),Ne(e,t,i,n),t.child;case 6:return e===null&&eu(t),null;case 13:return Ad(e,t,n);case 4:return es(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),va(e,t,r,o,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,ie(cl,r._currentValue),r._currentValue=i,l!==null)if(Et(l.value,i)){if(l.children===o.children&&!qe.current){t=Kt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Ut(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),tu(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(E(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),tu(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ne(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ir(t,n),o=dt(o),r=r(o),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,o=yt(r,t.pendingProps),o=yt(r.type,o),ya(e,t,r,o,n);case 15:return Dd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yt(r,o),Qo(e,t),t.tag=1,Xe(r)?(e=!0,ul(t)):e=!1,ir(t,n),id(t,r,o),ru(t,r,o,n),iu(null,t,r,!0,e,n);case 19:return Od(e,t,n);case 22:return Md(e,t,n)}throw Error(E(156,t.tag))};function Zd(e,t){return xc(e,t)}function Vg(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 at(e,t,n,r){return new Vg(e,t,n,r)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jg(e){if(typeof e=="function")return hs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lu)return 11;if(e===Au)return 14}return 2}function pn(e,t){var n=e.alternate;return n===null?(n=at(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 Xo(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")hs(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Wn:return zn(n.children,o,l,t);case Iu:i=8,o|=8;break;case Pi:return e=at(12,n,t,o|2),e.elementType=Pi,e.lanes=l,e;case Fi:return e=at(13,n,t,o),e.elementType=Fi,e.lanes=l,e;case $i:return e=at(19,n,t,o),e.elementType=$i,e.lanes=l,e;case uc:return Ll(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lc:i=10;break e;case ic:i=9;break e;case Lu:i=11;break e;case Au:i=14;break e;case Zt:i=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=at(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function zn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=at(22,e,r,t),e.elementType=uc,e.lanes=n,e.stateNode={isHidden:!1},e}function fi(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function pi(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hg(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kl(0),this.expirationTimes=Kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ms(e,t,n,r,o,l,i,u,s){return e=new Hg(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=at(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bu(l),e}function Bg(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nf)}catch(e){console.error(e)}}nf(),ec.exports=rt;var Kg=ec.exports,Ma=Kg;Ei.createRoot=Ma.createRoot,Ei.hydrateRoot=Ma.hydrateRoot;const rf=({children:e})=>N.jsx("main",{className:"mx-auto my-0 w-full max-w-6xl p-[20px] text-left leading-normal",children:e}),qg=({title:e})=>N.jsx("header",{children:N.jsx("h1",{className:"m-0 grid py-[10px] text-[35px] font-bold",children:e})});var of={exports:{}};/* @license +Papa Parse +v5.4.1 +https://github.com/mholt/PapaParse +License: MIT +*/(function(e,t){(function(n,r){e.exports=r()})(Cf,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o=!r.document&&!!r.postMessage,l=r.IS_PAPA_WORKER||!1,i={},u=0,s={parse:function(h,y){var _=(y=y||{}).dynamicTyping||!1;if(R(_)&&(y.dynamicTypingFunction=_,_={}),y.dynamicTyping=_,y.transform=!!R(y.transform)&&y.transform,y.worker&&s.WORKERS_SUPPORTED){var M=function(){if(!s.WORKERS_SUPPORTED)return!1;var T=(me=r.URL||r.webkitURL||null,Y=n.toString(),s.BLOB_URL||(s.BLOB_URL=me.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Y,")();"],{type:"text/javascript"})))),B=new r.Worker(T),me,Y;return B.onmessage=d,B.id=u++,i[B.id]=B}();return M.userStep=y.step,M.userChunk=y.chunk,M.userComplete=y.complete,M.userError=y.error,y.step=R(y.step),y.chunk=R(y.chunk),y.complete=R(y.complete),y.error=R(y.error),delete y.worker,void M.postMessage({input:h,config:y,workerId:M.id})}var L=null;return s.NODE_STREAM_INPUT,typeof h=="string"?(h=function(T){return T.charCodeAt(0)===65279?T.slice(1):T}(h),L=y.download?new p(y):new v(y)):h.readable===!0&&R(h.read)&&R(h.on)?L=new w(y):(r.File&&h instanceof File||h instanceof Object)&&(L=new g(y)),L.stream(h)},unparse:function(h,y){var _=!1,M=!0,L=",",T=`\r +`,B='"',me=B+B,Y=!1,A=null,P=!1;(function(){if(typeof y=="object"){if(typeof y.delimiter!="string"||s.BAD_DELIMITERS.filter(function(z){return y.delimiter.indexOf(z)!==-1}).length||(L=y.delimiter),(typeof y.quotes=="boolean"||typeof y.quotes=="function"||Array.isArray(y.quotes))&&(_=y.quotes),typeof y.skipEmptyLines!="boolean"&&typeof y.skipEmptyLines!="string"||(Y=y.skipEmptyLines),typeof y.newline=="string"&&(T=y.newline),typeof y.quoteChar=="string"&&(B=y.quoteChar),typeof y.header=="boolean"&&(M=y.header),Array.isArray(y.columns)){if(y.columns.length===0)throw new Error("Option columns is empty");A=y.columns}y.escapeChar!==void 0&&(me=y.escapeChar+B),(typeof y.escapeFormulae=="boolean"||y.escapeFormulae instanceof RegExp)&&(P=y.escapeFormulae instanceof RegExp?y.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var x=new RegExp(k(B),"g");if(typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(h)){if(!h.length||Array.isArray(h[0]))return O(null,h,Y);if(typeof h[0]=="object")return O(A||Object.keys(h[0]),h,Y)}else if(typeof h=="object")return typeof h.data=="string"&&(h.data=JSON.parse(h.data)),Array.isArray(h.data)&&(h.fields||(h.fields=h.meta&&h.meta.fields||A),h.fields||(h.fields=Array.isArray(h.data[0])?h.fields:typeof h.data[0]=="object"?Object.keys(h.data[0]):[]),Array.isArray(h.data[0])||typeof h.data[0]=="object"||(h.data=[h.data])),O(h.fields||[],h.data||[],Y);throw new Error("Unable to serialize unrecognized input");function O(z,W,U){var te="";typeof z=="string"&&(z=JSON.parse(z)),typeof W=="string"&&(W=JSON.parse(W));var le=Array.isArray(z)&&0=this._config.preview;if(l)r.postMessage({results:T,workerId:s.WORKER_ID,finished:me});else if(R(this._config.chunk)&&!_){if(this._config.chunk(T,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);T=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(T.data),this._completeResults.errors=this._completeResults.errors.concat(T.errors),this._completeResults.meta=T.meta),this._completed||!me||!R(this._config.complete)||T&&T.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),me||T&&T.meta.paused||this._nextChunk(),T}this._halted=!0},this._sendError=function(y){R(this._config.error)?this._config.error(y):l&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:y,finished:!1})}}function p(h){var y;(h=h||{}).chunkSize||(h.chunkSize=s.RemoteChunkSize),c.call(this,h),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(_){this._input=_,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(y=new XMLHttpRequest,this._config.withCredentials&&(y.withCredentials=this._config.withCredentials),o||(y.onload=D(this._chunkLoaded,this),y.onerror=D(this._chunkError,this)),y.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var _=this._config.downloadRequestHeaders;for(var M in _)y.setRequestHeader(M,_[M])}if(this._config.chunkSize){var L=this._start+this._config.chunkSize-1;y.setRequestHeader("Range","bytes="+this._start+"-"+L)}try{y.send(this._config.downloadRequestBody)}catch(T){this._chunkError(T.message)}o&&y.status===0&&this._chunkError()}},this._chunkLoaded=function(){y.readyState===4&&(y.status<200||400<=y.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:y.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(_){var M=_.getResponseHeader("Content-Range");return M===null?-1:parseInt(M.substring(M.lastIndexOf("/")+1))}(y),this.parseChunk(y.responseText)))},this._chunkError=function(_){var M=y.statusText||_;this._sendError(new Error(M))}}function g(h){var y,_;(h=h||{}).chunkSize||(h.chunkSize=s.LocalChunkSize),c.call(this,h);var M=typeof FileReader<"u";this.stream=function(L){this._input=L,_=L.slice||L.webkitSlice||L.mozSlice,M?((y=new FileReader).onload=D(this._chunkLoaded,this),y.onerror=D(this._chunkError,this)):y=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(L.target.result)},this._chunkError=function(){this._sendError(y.error)}}function v(h){var y;c.call(this,h=h||{}),this.stream=function(_){return y=_,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var _,M=this._config.chunkSize;return M?(_=y.substring(0,M),y=y.substring(M)):(_=y,y=""),this._finished=!y,this.parseChunk(_)}}}function w(h){c.call(this,h=h||{});var y=[],_=!0,M=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(L){this._input=L,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){M&&y.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),y.length?this.parseChunk(y.shift()):_=!0},this._streamData=D(function(L){try{y.push(typeof L=="string"?L:L.toString(this._config.encoding)),_&&(_=!1,this._checkIsFinished(),this.parseChunk(y.shift()))}catch(T){this._streamError(T)}},this),this._streamError=D(function(L){this._streamCleanUp(),this._sendError(L)},this),this._streamEnd=D(function(){this._streamCleanUp(),M=!0,this._streamData("")},this),this._streamCleanUp=D(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function S(h){var y,_,M,L=Math.pow(2,53),T=-L,B=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,me=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Y=this,A=0,P=0,x=!1,O=!1,j=[],z={data:[],errors:[],meta:{}};if(R(h.step)){var W=h.step;h.step=function(V){if(z=V,le())te();else{if(te(),z.data.length===0)return;A+=V.data.length,h.preview&&A>h.preview?_.abort():(z.data=z.data[0],W(z,Y))}}}function U(V){return h.skipEmptyLines==="greedy"?V.join("").trim()==="":V.length===1&&V[0].length===0}function te(){return z&&M&&(_e("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),M=!1),h.skipEmptyLines&&(z.data=z.data.filter(function(V){return!U(V)})),le()&&function(){if(!z)return;function V(J,ce){R(h.transformHeader)&&(J=h.transformHeader(J,ce)),j.push(J)}if(Array.isArray(z.data[0])){for(var X=0;le()&&X=j.length?"__parsed_extra":j[b]),h.transform&&(ne=h.transform(ne,de)),ne=ue(de,ne),de==="__parsed_extra"?(Se[de]=Se[de]||[],Se[de].push(ne)):Se[de]=ne}return h.header&&(b>j.length?_e("FieldMismatch","TooManyFields","Too many fields: expected "+j.length+" fields but parsed "+b,P+ce):b=He.length/2?`\r +`:"\r"}(V,ce)),M=!1,h.delimiter)R(h.delimiter)&&(h.delimiter=h.delimiter(V),z.meta.delimiter=h.delimiter);else{var b=function(de,ne,Je,He,Be){var lt,Ae,re,ve;Be=Be||[","," ","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var pt=0;pt=B)return Ue(!0)}else for(Z=A,A++;;){if((Z=x.indexOf(y,Z+1))===-1)return j||_e.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ue.length,index:A}),ht();if(Z===z-1)return ht(x.substring(A,Z).replace(pt,y));if(y!==Y||x[Z+1]!==Y){if(y===Y||Z===0||x[Z-1]!==Y){re!==-1&&re=B)return Ue(!0);break}_e.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ue.length,index:A}),Z++}}else Z++}return ht();function Rt(Ge){ue.push(Ge),X=A}function gt(Ge){var F=0;if(Ge!==-1){var K=x.substring(Z+1,Ge);K&&K.trim()===""&&(F=K.length)}return F}function ht(Ge){return j||(Ge===void 0&&(Ge=x.substring(A)),V.push(Ge),A=z,Rt(V),le&&wn()),Ue()}function Pt(Ge){A=Ge,Rt(V),V=[],ve=x.indexOf(M,A)}function Ue(Ge){return{data:ue,errors:_e,meta:{delimiter:_,linebreak:M,aborted:P,truncated:!!Ge,cursor:X+(O||0)}}}function wn(){T(Ue()),ue=[],_e=[]}},this.abort=function(){P=!0},this.getCharIndex=function(){return A}}function d(h){var y=h.data,_=i[y.workerId],M=!1;if(y.error)_.userError(y.error,y.file);else if(y.results&&y.results.data){var L={abort:function(){M=!0,m(y.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:C,resume:C};if(R(_.userStep)){for(var T=0;Tjn)return[!1,Ia(jn)];if(kn.sizejn)return[!1,Ia(jn)]}return[!0,null]}(Oe,s,c),ho=go[0],jl=go[1],wr=B?B(Oe):null;if(Sr&&ho&&!wr)K.push(Oe);else{var Hl=[Cn,jl];wr&&(Hl=Hl.concat(wr)),ze.push({file:Oe,errors:Hl.filter(function(kn){return kn})})}}),(!h&&K.length>1||h&&g>=1&&K.length>g)&&(K.forEach(function(Oe){ze.push({file:Oe,errors:[Zg]})}),K.splice(0)),U({acceptedFiles:K,fileRejections:ze,type:"setFiles"}),de("block"),ze.length>0&&me&&me(ze,F),K.length>0&&T){var Ot={},$t=[],Xt=[],Yt=[],_n=new window.FileReader,Nt=0;K.forEach(function(Oe){U({acceptedFile:Oe,type:"setFile"}),Ot={complete:i!=null&&i.complete||i!=null&&i.step?i.complete:function(){T({data:$t,errors:Xt,meta:Yt},Oe)},step:i!=null&&i.step?i.step:function(We){if($t.push(We.data),We.errors.length>0&&Xt.push(We.errors),We.length>0&&Yt.push(We[0].meta),i&&i.preview)Nt=Math.round($t.length/i.preview*100),$t.length===i.preview&&T({data:$t,errors:Xt,meta:Yt},Oe);else{var Sr=We.meta.cursor,Cn=Math.round(Sr/Oe.size*100);if(Cn===Nt)return;Nt=Cn}ne(Nt)}},Ot=Object.assign({},i,Ot),_n.onload=function(We){Tn.parse(We.target.result,Ot)},_n.onloadend=function(){setTimeout(function(){de("none")},2e3)},_n.readAsText(Oe,i.encoding||"utf-8")})}}},[h,o,s,c,g,B,T]),ve=G.useCallback(function(F){b(F)},[]),pt=function(F){return D?null:J(F)},Z=G.useCallback(function(F){if(Se(F),j.current=yu(yu([],j.current,!0),[F.target],!1),Io(F)){if(_l(F)&&!C)return;U({draggedFiles:_e,isDragActive:!0,type:"setDraggedFiles"}),Y&&Y(F)}},[Y,C]),At=G.useCallback(function(F){Se(F);var K=Io(F);if(K&&F.dataTransfer)try{F.dataTransfer.dropEffect="copy"}catch{}return K&&A&&A(F),!1},[A,C]),it=G.useCallback(function(F){Se(F);var K=j.current.filter(function(Ft){return O.current&&O.current.contains(Ft)}),ze=K.indexOf(F.target);ze!==-1&&K.splice(ze,1),j.current=K,K.length>0||(U({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Io(F)&&P&&P(F))},[O,P,C]),Rt=G.useCallback(function(F){O.current&&O.current.isEqualNode(F.target)&&(F.key!=="Space"&&F.key!=="Enter"||(F.preventDefault(),Be()))},[O,x]),gt=G.useCallback(function(){U({type:"focus"})},[]),ht=G.useCallback(function(){U({type:"blur"})},[]),Pt=G.useMemo(function(){return function(F){F===void 0&&(F={});var K=F.onClick,ze=K===void 0?function(){}:K,Ft=F.onDrop,Ot=Ft===void 0?function(){}:Ft,$t=F.onDragOver,Xt=$t===void 0?function(){}:$t,Yt=F.onDragLeave,_n=Yt===void 0?function(){}:Yt,Nt=F.onKeyDown,Oe=Nt===void 0?function(){}:Nt,We=F.onFocus,Sr=We===void 0?function(){}:We,Cn=F.onBlur,go=Cn===void 0?function(){}:Cn,ho=F.onDragEnter,jl=ho===void 0?function(){}:ho,wr=gi(F,["onClick","onDrop","onDragOver","onDragLeave","onKeyDown","onFocus","onBlur","onDragEnter"]);return oe({onClick:J(vt(ze,Ae)),onDrop:ce(vt(Ot,re)),onDragEnter:ce(vt(jl,Z)),onDragOver:ce(vt(Xt,At)),onDragLeave:ce(vt(_n,it)),onKeyDown:pt(vt(Oe,Rt)),onFocus:pt(vt(Sr,gt)),onBlur:pt(vt(go,ht))},wr)}},[O,Rt,gt,ht,Ae,Z,At,it,re,D,d,w]),Ue=G.useMemo(function(){return function(F){var K;F===void 0&&(F={});var ze=F.refKey,Ft=ze===void 0?"ref":ze,Ot=F.onChange,$t=Ot===void 0?function(){}:Ot,Xt=F.onClick,Yt=Xt===void 0?function(){}:Xt,_n=gi(F,["refKey","onChange","onClick"]),Nt=((K={accept:o,multiple:h,required:_,type:"file",style:{display:"none"},onChange:J(vt($t,re)),onClick:J(vt(Yt,ve)),autoComplete:"off",tabIndex:-1})[Ft]=x,K);return oe(oe({},Nt),_n)}},[x,o,re,w]),wn=G.useCallback(function(F){x.current.value="",U({type:"reset"}),F.stopPropagation()},[]),Ge=G.useMemo(function(){return function(F){F===void 0&&(F={});var K=F.onClick,ze=K===void 0?function(){}:K,Ft=gi(F,["onClick"]);return oe({onClick:J(vt(ze,wn))},Ft)}},[wn]);return _t.createElement(_t.Fragment,null,_t.createElement("input",oe({},Ue())),n({getRootProps:Pt,acceptedFile:te,ProgressBar:Je,getRemoveFileProps:Ge,Remove:He}))};return G.useMemo(function(){return e},[])}function rh(){return{CSVReader:nh()}}var lf={displayProgressBar:"none",progressBarPercentage:0,isDragActive:!1,isFileDialogActive:!1,isFocused:!1,draggedFiles:[],acceptedFiles:[],acceptedFile:null};function oh(e,t){switch(t.type){case"openDialog":return oe(oe({},e),{isFileDialogActive:!0});case"closeDialog":return oe(oe({},e),{isFileDialogActive:!1});case"setFiles":return oe(oe({},e),{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"setFile":return oe(oe({},e),{acceptedFile:t.acceptedFile});case"setDisplayProgressBar":return oe(oe({},e),{displayProgressBar:t.displayProgressBar});case"setProgressBarPercentage":return oe(oe({},e),{progressBarPercentage:t.progressBarPercentage});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return oe(oe({},e),{draggedFiles:r,isDragActive:n});case"focus":return oe(oe({},e),{isFocused:!0});case"blur":return oe(oe({},e),{isFocused:!1});case"reset":return oe({},lf);default:return e}}Tn.BAD_DELIMITERS;Tn.RECORD_SEP;Tn.UNIT_SEP;Tn.WORKERS_SUPPORTED;Tn.LocalChunkSize;Tn.DefaultDelimiter;var lh={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Na=e=>{let t;const n=new Set,r=(s,a)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const p=t;t=a??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(g=>g(t,p))}},o=()=>t,u={setState:r,getState:o,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(lh?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,u),u},ih=e=>e?Na(e):Na;var uf={exports:{}},sf={},af={exports:{}},cf={};/** + * @license React + * use-sync-external-store-shim.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 hr=G;function uh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sh=typeof Object.is=="function"?Object.is:uh,ah=hr.useState,ch=hr.useEffect,dh=hr.useLayoutEffect,fh=hr.useDebugValue;function ph(e,t){var n=t(),r=ah({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return dh(function(){o.value=n,o.getSnapshot=t,hi(o)&&l({inst:o})},[e,n,t]),ch(function(){return hi(o)&&l({inst:o}),e(function(){hi(o)&&l({inst:o})})},[e]),fh(n),n}function hi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sh(e,n)}catch{return!0}}function gh(e,t){return t()}var hh=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?gh:ph;cf.useSyncExternalStore=hr.useSyncExternalStore!==void 0?hr.useSyncExternalStore:hh;af.exports=cf;var mh=af.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.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 Vl=G,vh=mh;function yh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Sh=typeof Object.is=="function"?Object.is:yh,wh=vh.useSyncExternalStore,_h=Vl.useRef,Ch=Vl.useEffect,kh=Vl.useMemo,xh=Vl.useDebugValue;sf.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var l=_h(null);if(l.current===null){var i={hasValue:!1,value:null};l.current=i}else i=l.current;l=kh(function(){function s(v){if(!a){if(a=!0,c=v,v=r(v),o!==void 0&&i.hasValue){var w=i.value;if(o(w,v))return p=w}return p=v}if(w=p,Sh(c,v))return w;var S=r(v);return o!==void 0&&o(w,S)?w:(c=v,p=S)}var a=!1,c,p,g=n===void 0?null:n;return[function(){return s(t())},g===null?void 0:function(){return s(g())}]},[t,n,r,o]);var u=wh(e,l[0],l[1]);return Ch(function(){i.hasValue=!0,i.value=u},[u]),xh(u),u};uf.exports=sf;var Eh=uf.exports;const Rh=Eu(Eh);var df={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:Ph}=_t,{useSyncExternalStoreWithSelector:Fh}=Rh;let Ta=!1;function $h(e,t=e.getState,n){(df?"production":void 0)!=="production"&&n&&!Ta&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ta=!0);const r=Fh(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ph(r),r}const Va=e=>{(df?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?ih(e):e,n=(r,o)=>$h(t,r,o);return Object.assign(n,t),n},zh=e=>e?Va(e):Va;var Yo={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Su=new Map,Lo=e=>{const t=Su.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Dh=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Su.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Su.set(n.name,o),{type:"tracked",store:e,...o}},Mh=(e,t={})=>(n,r,o)=>{const{enabled:l,anonymousActionType:i,store:u,...s}=t;let a;try{a=(l??(Yo?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!a)return(Yo?"production":void 0)!=="production"&&l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:c,...p}=Dh(u,a,s);let g=!0;o.setState=(S,k,f)=>{const d=n(S,k);if(!g)return d;const m=f===void 0?{type:i||"anonymous"}:typeof f=="string"?{type:f}:f;return u===void 0?(c==null||c.send(m,r()),d):(c==null||c.send({...m,type:`${u}/${m.type}`},{...Lo(s.name),[u]:o.getState()}),d)};const v=(...S)=>{const k=g;g=!1,n(...S),g=k},w=e(o.setState,r,o);if(p.type==="untracked"?c==null||c.init(w):(p.stores[p.store]=o,c==null||c.init(Object.fromEntries(Object.entries(p.stores).map(([S,k])=>[S,S===p.store?w:k.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let S=!1;const k=o.dispatch;o.dispatch=(...f)=>{(Yo?"production":void 0)!=="production"&&f[0].type==="__setState"&&!S&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),S=!0),k(...f)}}return c.subscribe(S=>{var k;switch(S.type){case"ACTION":if(typeof S.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return mi(S.payload,f=>{if(f.type==="__setState"){if(u===void 0){v(f.state);return}Object.keys(f.state).length!==1&&console.error(` + [zustand devtools middleware] Unsupported __setState action format. + When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), + and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } + `);const d=f.state[u];if(d==null)return;JSON.stringify(o.getState())!==JSON.stringify(d)&&v(d);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(f)});case"DISPATCH":switch(S.payload.type){case"RESET":return v(w),u===void 0?c==null?void 0:c.init(o.getState()):c==null?void 0:c.init(Lo(s.name));case"COMMIT":if(u===void 0){c==null||c.init(o.getState());return}return c==null?void 0:c.init(Lo(s.name));case"ROLLBACK":return mi(S.state,f=>{if(u===void 0){v(f),c==null||c.init(o.getState());return}v(f[u]),c==null||c.init(Lo(s.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return mi(S.state,f=>{if(u===void 0){v(f);return}JSON.stringify(o.getState())!==JSON.stringify(f[u])&&v(f[u])});case"IMPORT_STATE":{const{nextLiftedState:f}=S.payload,d=(k=f.computedStates.slice(-1)[0])==null?void 0:k.state;if(!d)return;v(u===void 0?d:d[u]),c==null||c.send(null,f);return}case"PAUSE_RECORDING":return g=!g}return}}),w},Ih=Mh,mi=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function ff(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var l;const i=s=>s===null?null:JSON.parse(s,t==null?void 0:t.reviver),u=(l=n.getItem(o))!=null?l:null;return u instanceof Promise?u.then(i):i(u)},setItem:(o,l)=>n.setItem(o,JSON.stringify(l,t==null?void 0:t.replacer)),removeItem:o=>n.removeItem(o)}}const uo=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return uo(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return uo(r)(n)}}}},Lh=(e,t)=>(n,r,o)=>{let l={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:k=>k,version:0,merge:(k,f)=>({...f,...k}),...t},i=!1;const u=new Set,s=new Set;let a;try{a=l.getStorage()}catch{}if(!a)return e((...k)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...k)},r,o);const c=uo(l.serialize),p=()=>{const k=l.partialize({...r()});let f;const d=c({state:k,version:l.version}).then(m=>a.setItem(l.name,m)).catch(m=>{f=m});if(f)throw f;return d},g=o.setState;o.setState=(k,f)=>{g(k,f),p()};const v=e((...k)=>{n(...k),p()},r,o);let w;const S=()=>{var k;if(!a)return;i=!1,u.forEach(d=>d(r()));const f=((k=l.onRehydrateStorage)==null?void 0:k.call(l,r()))||void 0;return uo(a.getItem.bind(a))(l.name).then(d=>{if(d)return l.deserialize(d)}).then(d=>{if(d)if(typeof d.version=="number"&&d.version!==l.version){if(l.migrate)return l.migrate(d.state,d.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return d.state}).then(d=>{var m;return w=l.merge(d,(m=r())!=null?m:v),n(w,!0),p()}).then(()=>{f==null||f(w,void 0),i=!0,s.forEach(d=>d(w))}).catch(d=>{f==null||f(void 0,d)})};return o.persist={setOptions:k=>{l={...l,...k},k.getStorage&&(a=k.getStorage())},clearStorage:()=>{a==null||a.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>S(),hasHydrated:()=>i,onHydrate:k=>(u.add(k),()=>{u.delete(k)}),onFinishHydration:k=>(s.add(k),()=>{s.delete(k)})},S(),w||v},Ah=(e,t)=>(n,r,o)=>{let l={storage:ff(()=>localStorage),partialize:S=>S,version:0,merge:(S,k)=>({...k,...S}),...t},i=!1;const u=new Set,s=new Set;let a=l.storage;if(!a)return e((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...S)},r,o);const c=()=>{const S=l.partialize({...r()});return a.setItem(l.name,{state:S,version:l.version})},p=o.setState;o.setState=(S,k)=>{p(S,k),c()};const g=e((...S)=>{n(...S),c()},r,o);let v;const w=()=>{var S,k;if(!a)return;i=!1,u.forEach(d=>{var m;return d((m=r())!=null?m:g)});const f=((k=l.onRehydrateStorage)==null?void 0:k.call(l,(S=r())!=null?S:g))||void 0;return uo(a.getItem.bind(a))(l.name).then(d=>{if(d)if(typeof d.version=="number"&&d.version!==l.version){if(l.migrate)return l.migrate(d.state,d.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return d.state}).then(d=>{var m;return v=l.merge(d,(m=r())!=null?m:g),n(v,!0),c()}).then(()=>{f==null||f(v,void 0),v=r(),i=!0,s.forEach(d=>d(v))}).catch(d=>{f==null||f(void 0,d)})};return o.persist={setOptions:S=>{l={...l,...S},S.storage&&(a=S.storage)},clearStorage:()=>{a==null||a.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>w(),hasHydrated:()=>i,onHydrate:S=>(u.add(S),()=>{u.delete(S)}),onFinishHydration:S=>(s.add(S),()=>{s.delete(S)})},l.skipHydration||w(),v||g},Oh=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Yo?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),Lh(e,t)):Ah(e,t),Nh=Oh,ja={data:[],acceptedFileName:""},ws=zh()(Nh(Ih(e=>({...ja,data:[],acceptedFileName:"",setData:t=>e(n=>({data:typeof t=="function"?t(n.data):t})),setAcceptedFileName:t=>e({acceptedFileName:t}),removeData:()=>{e(ja)}})),{name:"calculator-storage",storage:ff(()=>localStorage)})),Th=()=>{const{CSVReader:e}=rh(),{setData:t,removeData:n,setAcceptedFileName:r,acceptedFileName:o}=ws(),l=/\d\d,\d°|\d\d,\d\d°|\d,\d°/,i=/(0,5 l|0,75 l|0,44 l|0,33 l|0,375 l|0,750 l|30 l|20 l|10 l)/g,u=/but\.|but|can|keg|keykeg/;return N.jsx(e,{onUploadAccepted:(s,a)=>{r(a.name);const c=s.data.map(p=>{var d,m,C,$,D,R,h,y,_;const g=p[0],v=((m=(d=p[2])==null?void 0:d.match(l))==null?void 0:m[0])||"",w=(($=(C=p[2])==null?void 0:C.match(i))==null?void 0:$[0])||"",S=((R=(D=p[2])==null?void 0:D.match(u))==null?void 0:R[0])||"",k=((_=(y=(h=p[2])==null?void 0:h.replace(l,""))==null?void 0:y.replace(i,""))==null?void 0:_.replace(u,""))||"",f=p[3];return{orderNumber:g,beerName:k,plato:v,volume:w,packageType:S,quantities:f}}).slice(10,-3);t(c)},config:{header:!1,dynamicTyping:!1,skipEmptyLines:!0},children:({getRootProps:s,acceptedFile:a,getRemoveFileProps:c})=>N.jsx(N.Fragment,{children:N.jsxs("div",{className:"mb-[10px] flex flex-row items-center justify-center",children:[N.jsx("button",{type:"button",...s(),className:"mx-0 my-[5px] h-[65px] cursor-pointer bg-[#366992] px-[25px] py-[10px] font-medium leading-6 text-white outline-none hover:bg-[#4B91C9] md:h-[44px]",children:"Browse file"}),N.jsx("div",{className:"mx-0 my-[5px] h-[65px] w-[60%] bg-white px-[25px] pt-[3px] font-medium leading-10 text-black outline-none md:h-[44px]",children:a?a.name:o}),N.jsx("button",{...c(),onClick:p=>{var g,v;n(),(v=(g=c()).onClick)==null||v.call(g,p)},className:"mx-0 my-[5px] h-[65px] cursor-pointer bg-[#A01919] px-[25px] py-[10px] font-medium leading-6 text-white outline-none hover:bg-[#DD2222] md:h-[44px]",children:"Remove"})]})})})},Vh=e=>G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"yellow",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"h-6 w-6",...e},G.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})),jh=()=>{const{data:e,acceptedFileName:t}=ws(),[n,r]=G.useState(1),o=()=>{n===1?r(2):n===2&&r(1)},i=[...new Set(e.map(u=>u.plato))].filter(u=>u!==""&&(u==null?void 0:u.includes("°"))).map(u=>{const a=e.filter(p=>p.plato===u).reduce((p,g)=>{const v=g.quantities?parseInt(g.quantities,10):0;switch(console.log(g.volume),g.volume){case"0,5 l":return p+v/200;case"0,33 l":return p+v*.0033;case"0,44 l":return p+v*.0044;case"0,375 l":return p+v*.00375;case"0,75 l":return p+v*.0075;case"10 l":return p+v*.1;case"20 l":return p+v*.2;case"30 l":return p+v*.3;default:return p+v}},0),c=(a*10.4/n).toFixed(2);return{plato:u,sumQuantities:a.toFixed(2),taxToPay:c}}).sort((u,s)=>parseFloat(u.plato||"")-parseFloat(s.plato||""));return N.jsxs("div",{children:[N.jsxs("div",{className:"flex flex-row items-center justify-center font-bold",children:[N.jsx(Vh,{className:"h-6"}),N.jsx("p",{children:"Tax for beer in 2024 - 10.40 zł per hectolitre for each degree Plato of the finished product."})]}),N.jsxs("div",{className:"grid grid-cols-[2fr_1fr] place-content-between gap-5 px-5",children:[N.jsx("div",{children:i.map(u=>N.jsxs("div",{className:"grid grid-cols-[1fr_1fr_1fr] place-content-center gap-1",children:[N.jsxs("div",{className:"pr-1 pt-1",children:["Extract: ",N.jsxs("p",{className:"font-bold",children:[u.plato," Plato"]})]}),N.jsxs("div",{className:"pr-1 pt-1",children:["Volume: ",N.jsxs("p",{className:"font-bold",children:[u.sumQuantities," hl"]})]}),N.jsxs("div",{className:"pr-1 pt-1",children:["Tax: ",N.jsxs("p",{className:"font-bold",children:[u.taxToPay," zł"]})]})]},u.plato))}),N.jsxs("div",{className:`p-1 ${t?"block":"hidden"}`,children:[N.jsx("label",{className:"pr-1 pt-1",htmlFor:"dicount",children:"Discount for small producers (50%)"}),N.jsx("input",{onClick:o,className:"translate-y-0.5",type:"checkbox",name:"discount"})]})]})]})},Hh=({header:e,table:t})=>N.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:`absolute right-0 top-0 h-[25px] w-[5px] select-none bg-black opacity-0 hover:cursor-col-resize hover:touch-none hover:opacity-100 ${t.options.columnResizeDirection} ${e.column.getIsResizing()?"opacity-100 bg-blue-700":""}`,style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${1*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""}});/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function on(e,t){return typeof e=="function"?e(t):e}function nt(e,t){return n=>{t.setState(r=>({...r,[e]:on(n,r[e])}))}}function Cl(e){return e instanceof Function}function Bh(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Uh(e,t){const n=[],r=o=>{o.forEach(l=>{n.push(l);const i=t(l);i!=null&&i.length&&r(i)})};return r(e),n}function H(e,t,n){let r=[],o;return()=>{let l;n.key&&n.debug&&(l=Date.now());const i=e();if(!(i.length!==r.length||i.some((a,c)=>r[c]!==a)))return o;r=i;let s;if(n.key&&n.debug&&(s=Date.now()),o=t(...i),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const a=Math.round((Date.now()-l)*100)/100,c=Math.round((Date.now()-s)*100)/100,p=c/16,g=(v,w)=>{for(v=String(v);v.length{let v=g;for(const S of s.split(".")){var w;v=(w=v)==null?void 0:w[S]}return v}:c=g=>g[u.accessorKey]),!a)throw new Error;let p={id:`${String(a)}`,accessorFn:c,parent:r,depth:n,columnDef:u,columns:[],getFlatColumns:H(()=>[!0],()=>{var g;return[p,...(g=p.columns)==null?void 0:g.flatMap(v=>v.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var g;return(g=e.options.debugAll)!=null?g:e.options.debugColumns}}),getLeafColumns:H(()=>[e._getOrderColumnsFn()],g=>{var v;if((v=p.columns)!=null&&v.length){let w=p.columns.flatMap(S=>S.getLeafColumns());return g(w)}return[p]},{key:"column.getLeafColumns",debug:()=>{var g;return(g=e.options.debugAll)!=null?g:e.options.debugColumns}})};for(const g of e._features)g.createColumn==null||g.createColumn(p,e);return p}function Ha(e,t,n){var r;let l={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],u=s=>{s.subHeaders&&s.subHeaders.length&&s.subHeaders.map(u),i.push(s)};return u(l),i},getContext:()=>({table:e,header:l,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(l,e)}),l}const Wh={createTable:e=>{e.getHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var l,i;const u=(l=r==null?void 0:r.map(p=>n.find(g=>g.id===p)).filter(Boolean))!=null?l:[],s=(i=o==null?void 0:o.map(p=>n.find(g=>g.id===p)).filter(Boolean))!=null?i:[],a=n.filter(p=>!(r!=null&&r.includes(p.id))&&!(o!=null&&o.includes(p.id)));return Ao(t,[...u,...a,...s],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(l=>!(r!=null&&r.includes(l.id))&&!(o!=null&&o.includes(l.id))),Ao(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const l=(o=r==null?void 0:r.map(i=>n.find(u=>u.id===i)).filter(Boolean))!=null?o:[];return Ao(t,l,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=H(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const l=(o=r==null?void 0:r.map(i=>n.find(u=>u.id===i)).filter(Boolean))!=null?o:[];return Ao(t,l,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=H(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=H(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=H(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=H(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=H(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=H(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=H(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=H(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=H(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=H(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=H(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=H(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,l,i,u,s,a;return[...(o=(l=t[0])==null?void 0:l.headers)!=null?o:[],...(i=(u=n[0])==null?void 0:u.headers)!=null?i:[],...(s=(a=r[0])==null?void 0:a.headers)!=null?s:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function Ao(e,t,n,r){var o,l;let i=0;const u=function(g,v){v===void 0&&(v=1),i=Math.max(i,v),g.filter(w=>w.getIsVisible()).forEach(w=>{var S;(S=w.columns)!=null&&S.length&&u(w.columns,v+1)},0)};u(e);let s=[];const a=(g,v)=>{const w={depth:v,id:[r,`${v}`].filter(Boolean).join("_"),headers:[]},S=[];g.forEach(k=>{const f=[...S].reverse()[0],d=k.column.depth===w.depth;let m,C=!1;if(d&&k.column.parent?m=k.column.parent:(m=k.column,C=!0),f&&(f==null?void 0:f.column)===m)f.subHeaders.push(k);else{const $=Ha(n,m,{id:[r,v,m.id,k==null?void 0:k.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?`${S.filter(D=>D.column===m).length}`:void 0,depth:v,index:S.length});$.subHeaders.push(k),S.push($)}w.headers.push(k),k.headerGroup=w}),s.push(w),v>0&&a(S,v-1)},c=t.map((g,v)=>Ha(n,g,{depth:i,index:v}));a(c,i-1),s.reverse();const p=g=>g.filter(w=>w.column.getIsVisible()).map(w=>{let S=0,k=0,f=[0];w.subHeaders&&w.subHeaders.length?(f=[],p(w.subHeaders).forEach(m=>{let{colSpan:C,rowSpan:$}=m;S+=C,f.push($)})):S=1;const d=Math.min(...f);return k=k+d,w.colSpan=S,w.rowSpan=k,{colSpan:S,rowSpan:k}});return p((o=(l=s[0])==null?void 0:l.headers)!=null?o:[]),s}const Oo={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},vi=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Qh={getDefaultColumnDef:()=>Oo,getInitialState:e=>({columnSizing:{},columnSizingInfo:vi(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:nt("columnSizing",e),onColumnSizingInfoChange:nt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const l=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Oo.minSize,(r=l??e.columnDef.size)!=null?r:Oo.size),(o=e.columnDef.maxSize)!=null?o:Oo.maxSize)},e.getStart=n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(l=>l.id===e.id);if(o>0){const l=r[o-1];return l.getStart(n)+l.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var l;n+=(l=o.column.getSize())!=null?l:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return o=>{if(!n||!r||(o.persist==null||o.persist(),yi(o)&&o.touches&&o.touches.length>1))return;const l=e.getSize(),i=e?e.getLeafHeaders().map(S=>[S.column.id,S.column.getSize()]):[[n.id,n.getSize()]],u=yi(o)?Math.round(o.touches[0].clientX):o.clientX,s={},a=(S,k)=>{typeof k=="number"&&(t.setColumnSizingInfo(f=>{var d,m;const C=t.options.columnResizeDirection==="rtl"?-1:1,$=(k-((d=f==null?void 0:f.startOffset)!=null?d:0))*C,D=Math.max($/((m=f==null?void 0:f.startSize)!=null?m:0),-.999999);return f.columnSizingStart.forEach(R=>{let[h,y]=R;s[h]=Math.round(Math.max(y+y*D,0)*100)/100}),{...f,deltaOffset:$,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||S==="end")&&t.setColumnSizing(f=>({...f,...s})))},c=S=>a("move",S),p=S=>{a("end",S),t.setColumnSizingInfo(k=>({...k,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g={moveHandler:S=>c(S.clientX),upHandler:S=>{document.removeEventListener("mousemove",g.moveHandler),document.removeEventListener("mouseup",g.upHandler),p(S.clientX)}},v={moveHandler:S=>(S.cancelable&&(S.preventDefault(),S.stopPropagation()),c(S.touches[0].clientX),!1),upHandler:S=>{var k;document.removeEventListener("touchmove",v.moveHandler),document.removeEventListener("touchend",v.upHandler),S.cancelable&&(S.preventDefault(),S.stopPropagation()),p((k=S.touches[0])==null?void 0:k.clientX)}},w=Kh()?{passive:!1}:!1;yi(o)?(document.addEventListener("touchmove",v.moveHandler,w),document.addEventListener("touchend",v.upHandler,w)):(document.addEventListener("mousemove",g.moveHandler,w),document.addEventListener("mouseup",g.upHandler,w)),t.setColumnSizingInfo(S=>({...S,startOffset:u,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?vi():(n=e.initialState.columnSizingInfo)!=null?n:vi())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let No=null;function Kh(){if(typeof No=="boolean")return No;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return No=e,No}function yi(e){return e.type==="touchstart"}const qh={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:nt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,l;e.setExpanded(r?{}:(o=(l=e.initialState)==null?void 0:l.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(l=>{const i=l.split(".");r=Math.max(r,i.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const l=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(u=>{i[u]=!0}):i=r,n=(o=n)!=null?o:!l,!l&&n)return{...i,[e.id]:!0};if(l&&!n){const{[e.id]:u,...s}=i;return s}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},pf=(e,t,n)=>{var r;const o=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(o))};pf.autoRemove=e=>xt(e);const gf=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};gf.autoRemove=e=>xt(e);const hf=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};hf.autoRemove=e=>xt(e);const mf=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};mf.autoRemove=e=>xt(e)||!(e!=null&&e.length);const vf=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});vf.autoRemove=e=>xt(e)||!(e!=null&&e.length);const yf=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});yf.autoRemove=e=>xt(e)||!(e!=null&&e.length);const Sf=(e,t,n)=>e.getValue(t)===n;Sf.autoRemove=e=>xt(e);const wf=(e,t,n)=>e.getValue(t)==n;wf.autoRemove=e=>xt(e);const _s=(e,t,n)=>{let[r,o]=n;const l=e.getValue(t);return l>=r&&l<=o};_s.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,l=t===null||Number.isNaN(r)?-1/0:r,i=n===null||Number.isNaN(o)?1/0:o;if(l>i){const u=l;l=i,i=u}return[l,i]};_s.autoRemove=e=>xt(e)||xt(e[0])&&xt(e[1]);const Tt={includesString:pf,includesStringSensitive:gf,equalsString:hf,arrIncludes:mf,arrIncludesAll:vf,arrIncludesSome:yf,equals:Sf,weakEquals:wf,inNumberRange:_s};function xt(e){return e==null||e===""}const Xh={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:nt("columnFilters",e),onGlobalFilterChange:nt("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Tt.includesString:typeof r=="number"?Tt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Tt.equals:Array.isArray(r)?Tt.arrIncludes:Tt.weakEquals},e.getFilterFn=()=>{var n,r;return Cl(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Tt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,o,l;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((l=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?l:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),l=r==null?void 0:r.find(c=>c.id===e.id),i=on(n,l?l.value:void 0);if(Ba(o,i,e)){var u;return(u=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?u:[]}const s={id:e.id,value:i};if(l){var a;return(a=r==null?void 0:r.map(c=>c.id===e.id?s:c))!=null?a:[]}return r!=null&&r.length?[...r,s]:[s]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Tt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Cl(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Tt[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var l;return(l=on(t,o))==null?void 0:l.filter(i=>{const u=n.find(s=>s.id===i.id);if(u){const s=u.getFilterFn();if(Ba(s,i.value,u))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function Ba(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Yh=(e,t,n)=>n.reduce((r,o)=>{const l=o.getValue(e);return r+(typeof l=="number"?l:0)},0),Jh=(e,t,n)=>{let r;return n.forEach(o=>{const l=o.getValue(e);l!=null&&(r>l||r===void 0&&l>=l)&&(r=l)}),r},Zh=(e,t,n)=>{let r;return n.forEach(o=>{const l=o.getValue(e);l!=null&&(r=l)&&(r=l)}),r},bh=(e,t,n)=>{let r,o;return n.forEach(l=>{const i=l.getValue(e);i!=null&&(r===void 0?i>=i&&(r=o=i):(r>i&&(r=i),o{let n=0,r=0;if(t.forEach(o=>{let l=o.getValue(e);l!=null&&(l=+l)>=l&&(++n,r+=l)}),n)return r/n},tm=(e,t)=>{if(!t.length)return;const n=t.map(l=>l.getValue(e));if(!Bh(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((l,i)=>l-i);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},nm=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),rm=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,om=(e,t)=>t.length,Si={sum:Yh,min:Jh,max:Zh,extent:bh,mean:em,median:tm,unique:nm,uniqueCount:rm,count:om},lm={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:nt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r,o,l;return(n=(r=(o=(l=e.columnDef.enableGrouping)!=null?l:!0)!=null?o:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Si.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Si.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Cl(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Si[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function im(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(l=>!t.includes(l.id));return n==="remove"?r:[...t.map(l=>e.find(i=>i.id===l)).filter(Boolean),...r]}const um={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:nt("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=H(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let l=[];if(!(t!=null&&t.length))l=o;else{const i=[...t],u=[...o];for(;u.length&&i.length;){const s=i.shift(),a=u.findIndex(c=>c.id===s);a>-1&&l.push(u.splice(a,1)[0])}l=[...l,...u]}return im(l,n,r)},{key:!1})}},wu=0,_u=10,wi=()=>({pageIndex:wu,pageSize:_u}),sm={getInitialState:e=>({...e,pagination:{...wi(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:nt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=l=>on(r,l);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?wi():(o=e.initialState.pagination)!=null?o:wi())},e.setPageIndex=r=>{e.setPagination(o=>{let l=on(r,o.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,i)),{...o,pageIndex:l}})},e.resetPageIndex=r=>{var o,l;e.setPageIndex(r?wu:(o=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageIndex)!=null?o:wu)},e.resetPageSize=r=>{var o,l;e.setPageSize(r?_u:(o=(l=e.initialState)==null||(l=l.pagination)==null?void 0:l.pageSize)!=null?o:_u)},e.setPageSize=r=>{e.setPagination(o=>{const l=Math.max(1,on(r,o.pageSize)),i=o.pageSize*o.pageIndex,u=Math.floor(i/l);return{...o,pageIndex:u,pageSize:l}})},e.setPageCount=r=>e.setPagination(o=>{var l;let i=on(r,(l=e.options.pageCount)!=null?l:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...o,pageCount:i}}),e.getPageOptions=H(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((l,i)=>i)),o},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},_i=()=>({left:[],right:[]}),Ci=()=>({top:[],bottom:[]}),am={getInitialState:e=>({columnPinning:_i(),rowPinning:Ci(),...e}),getDefaultOptions:e=>({onColumnPinningChange:nt("columnPinning",e),onRowPinningChange:nt("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var l,i;if(n==="right"){var u,s;return{left:((u=o==null?void 0:o.left)!=null?u:[]).filter(p=>!(r!=null&&r.includes(p))),right:[...((s=o==null?void 0:o.right)!=null?s:[]).filter(p=>!(r!=null&&r.includes(p))),...r]}}if(n==="left"){var a,c;return{left:[...((a=o==null?void 0:o.left)!=null?a:[]).filter(p=>!(r!=null&&r.includes(p))),...r],right:((c=o==null?void 0:o.right)!=null?c:[]).filter(p=>!(r!=null&&r.includes(p)))}}return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(p=>!(r!=null&&r.includes(p))),right:((i=o==null?void 0:o.right)!=null?i:[]).filter(p=>!(r!=null&&r.includes(p)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,l,i;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((l=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?l:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(u=>u.id),{left:r,right:o}=t.getState().columnPinning,l=n.some(u=>r==null?void 0:r.includes(u)),i=n.some(u=>o==null?void 0:o.includes(u));return l?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,o)=>{const l=r?e.getLeafRows().map(s=>{let{id:a}=s;return a}):[],i=o?e.getParentRows().map(s=>{let{id:a}=s;return a}):[],u=new Set([...i,e.id,...l]);t.setRowPinning(s=>{var a,c;if(n==="bottom"){var p,g;return{top:((p=s==null?void 0:s.top)!=null?p:[]).filter(S=>!(u!=null&&u.has(S))),bottom:[...((g=s==null?void 0:s.bottom)!=null?g:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)]}}if(n==="top"){var v,w;return{top:[...((v=s==null?void 0:s.top)!=null?v:[]).filter(S=>!(u!=null&&u.has(S))),...Array.from(u)],bottom:((w=s==null?void 0:s.bottom)!=null?w:[]).filter(S=>!(u!=null&&u.has(S)))}}return{top:((a=s==null?void 0:s.top)!=null?a:[]).filter(S=>!(u!=null&&u.has(S))),bottom:((c=s==null?void 0:s.bottom)!=null?c:[]).filter(S=>!(u!=null&&u.has(S)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,l=n.some(u=>r==null?void 0:r.includes(u)),i=n.some(u=>o==null?void 0:o.includes(u));return l?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const l=(n=t._getPinnedRows(o))==null?void 0:n.map(i=>{let{id:u}=i;return u});return(r=l==null?void 0:l.indexOf(e.id))!=null?r:-1},e.getCenterVisibleCells=H(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const l=[...r??[],...o??[]];return n.filter(i=>!l.includes(i.column.id))},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getLeftVisibleCells=H(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(l=>n.find(i=>i.column.id===l)).filter(Boolean).map(l=>({...l,position:"left"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getRightVisibleCells=H(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(l=>n.find(i=>i.column.id===l)).filter(Boolean).map(l=>({...l,position:"right"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?_i():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:_i())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,l;return!!((o=r.left)!=null&&o.length||(l=r.right)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=H(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=H(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=H(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(l=>!o.includes(l.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Ci():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Ci())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,l;return!!((o=r.top)!=null&&o.length||(l=r.bottom)!=null&&l.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=t=>H(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(r??[]).map(i=>{const u=e.getRow(i,!0);return u.getIsAllParentsExpanded()?u:null}):(r??[]).map(i=>n.find(u=>u.id===i))).filter(Boolean).map(i=>({...i,position:t}))},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=H(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(l=>!o.has(l.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},cm={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:nt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(l=>{l.getCanSelect()&&(r[l.id]=!0)}):o.forEach(l=>{delete r[l.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(l=>{Cu(o,l.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=H(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?ki(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=H(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?ki(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=H(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?ki(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(l=>{var i;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return l;const u={...l};return Cu(u,e.id,n,(i=r==null?void 0:r.selectChildren)!=null?i:!0,t),u})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Cs(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return ku(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return ku(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Cu=(e,t,n,r,o)=>{var l;const i=o.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(u=>delete e[u]),i.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(l=i.subRows)!=null&&l.length&&i.getCanSelectSubRows()&&i.subRows.forEach(u=>Cu(e,u.id,n,r,o))};function ki(e,t){const n=e.getState().rowSelection,r=[],o={},l=function(i,u){return i.map(s=>{var a;const c=Cs(s,n);if(c&&(r.push(s),o[s.id]=s),(a=s.subRows)!=null&&a.length&&(s={...s,subRows:l(s.subRows)}),c)return s}).filter(Boolean)};return{rows:l(t.rows),flatRows:r,rowsById:o}}function Cs(e,t){var n;return(n=t[e.id])!=null?n:!1}function ku(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,l=!1;return e.subRows.forEach(i=>{if(!(l&&!o)&&(i.getCanSelect()&&(Cs(i,t)?l=!0:o=!1),i.subRows&&i.subRows.length)){const u=ku(i,t);u==="all"?l=!0:(u==="some"&&(l=!0),o=!1)}}),o?"all":l?"some":!1}const xu=/([0-9]+)/gm,dm=(e,t,n)=>_f(mn(e.getValue(n)).toLowerCase(),mn(t.getValue(n)).toLowerCase()),fm=(e,t,n)=>_f(mn(e.getValue(n)),mn(t.getValue(n))),pm=(e,t,n)=>ks(mn(e.getValue(n)).toLowerCase(),mn(t.getValue(n)).toLowerCase()),gm=(e,t,n)=>ks(mn(e.getValue(n)),mn(t.getValue(n))),hm=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:rks(e.getValue(n),t.getValue(n));function ks(e,t){return e===t?0:e>t?1:-1}function mn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function _f(e,t){const n=e.split(xu).filter(Boolean),r=t.split(xu).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),l=r.shift(),i=parseInt(o,10),u=parseInt(l,10),s=[i,u].sort();if(isNaN(s[0])){if(o>l)return 1;if(l>o)return-1;continue}if(isNaN(s[1]))return isNaN(i)?-1:1;if(i>u)return 1;if(u>i)return-1}return n.length-r.length}const zr={alphanumeric:dm,alphanumericCaseSensitive:fm,text:pm,textCaseSensitive:gm,datetime:hm,basic:mm},vm={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:nt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const l=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(l)==="[object Date]")return zr.datetime;if(typeof l=="string"&&(r=!0,l.split(xu).length>1))return zr.alphanumeric}return r?zr.text:zr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Cl(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:zr[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),l=typeof n<"u"&&n!==null;t.setSorting(i=>{const u=i==null?void 0:i.find(v=>v.id===e.id),s=i==null?void 0:i.findIndex(v=>v.id===e.id);let a=[],c,p=l?n:o==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?u?c="toggle":c="add":i!=null&&i.length&&s!==i.length-1?c="replace":u?c="toggle":c="replace",c==="toggle"&&(l||o||(c="remove")),c==="add"){var g;a=[...i,{id:e.id,desc:p}],a.splice(0,a.length-((g=t.options.maxMultiSortColCount)!=null?g:Number.MAX_SAFE_INTEGER))}else c==="toggle"?a=i.map(v=>v.id===e.id?{...v,desc:p}:v):c==="remove"?a=i.filter(v=>v.id!==e.id):a=[{id:e.id,desc:p}];return a})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const l=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==l&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:i==="desc"?"asc":"desc":l},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},ym={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:nt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=H(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getVisibleCells=H(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{const t=(n,r)=>H(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(l=>l.getIsVisible==null?void 0:l.getIsVisible()),{key:n,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,l)=>({...o,[l.id]:n||!(l.getCanHide!=null&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}},Ua=[Wh,ym,um,am,Xh,vm,lm,qh,sm,cm,Qh];function Sm(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:Ua};const r=n._features.reduce((c,p)=>Object.assign(c,p.getDefaultOptions==null?void 0:p.getDefaultOptions(n)),{}),o=c=>n.options.mergeOptions?n.options.mergeOptions(r,c):{...r,...c};let i={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(c=>{var p;i=(p=c.getInitialState==null?void 0:c.getInitialState(i))!=null?p:i});const u=[];let s=!1;const a={_features:Ua,options:{...r,...e},initialState:i,_queue:c=>{u.push(c),s||(s=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();s=!1}).catch(p=>setTimeout(()=>{throw p})))},reset:()=>{n.setState(n.initialState)},setOptions:c=>{const p=on(c,n.options);n.options=o(p)},getState:()=>n.options.state,setState:c=>{n.options.onStateChange==null||n.options.onStateChange(c)},_getRowId:(c,p,g)=>{var v;return(v=n.options.getRowId==null?void 0:n.options.getRowId(c,p,g))!=null?v:`${g?[g.id,p].join("."):p}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(c,p)=>{let g=(p?n.getPrePaginationRowModel():n.getRowModel()).rowsById[c];if(!g&&(g=n.getCoreRowModel().rowsById[c],!g))throw new Error;return g},_getDefaultColumnDef:H(()=>[n.options.defaultColumn],c=>{var p;return c=(p=c)!=null?p:{},{header:g=>{const v=g.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:g=>{var v,w;return(v=(w=g.renderValue())==null||w.toString==null?void 0:w.toString())!=null?v:null},...n._features.reduce((g,v)=>Object.assign(g,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:H(()=>[n._getColumnDefs()],c=>{const p=function(g,v,w){return w===void 0&&(w=0),g.map(S=>{const k=Gh(n,S,w,v),f=S;return k.columns=f.columns?p(f.columns,k,w+1):[],k})};return p(c)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllFlatColumns:H(()=>[n.getAllColumns()],c=>c.flatMap(p=>p.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),_getAllFlatColumnsById:H(()=>[n.getAllFlatColumns()],c=>c.reduce((p,g)=>(p[g.id]=g,p),{}),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllLeafColumns:H(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(c,p)=>{let g=c.flatMap(v=>v.getLeafColumns());return p(g)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getColumn:c=>n._getAllFlatColumnsById()[c]};Object.assign(n,a);for(let c=0;c{var i;return(i=l.getValue())!=null?i:e.options.renderFallbackValue},l={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:H(()=>[e,n,t,l],(i,u,s,a)=>({table:i,column:u,row:s,cell:a,getValue:a.getValue,renderValue:a.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(i=>{i.createCell==null||i.createCell(l,n,t,e)},{}),l}const _m=(e,t,n,r,o,l,i)=>{let u={id:t,index:r,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(u._valuesCache.hasOwnProperty(s))return u._valuesCache[s];const a=e.getColumn(s);if(a!=null&&a.accessorFn)return u._valuesCache[s]=a.accessorFn(u.original,r),u._valuesCache[s]},getUniqueValues:s=>{if(u._uniqueValuesCache.hasOwnProperty(s))return u._uniqueValuesCache[s];const a=e.getColumn(s);if(a!=null&&a.accessorFn)return a.columnDef.getUniqueValues?(u._uniqueValuesCache[s]=a.columnDef.getUniqueValues(u.original,r),u._uniqueValuesCache[s]):(u._uniqueValuesCache[s]=[u.getValue(s)],u._uniqueValuesCache[s])},renderValue:s=>{var a;return(a=u.getValue(s))!=null?a:e.options.renderFallbackValue},subRows:l??[],getLeafRows:()=>Uh(u.subRows,s=>s.subRows),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let s=[],a=u;for(;;){const c=a.getParentRow();if(!c)break;s.push(c),a=c}return s.reverse()},getAllCells:H(()=>[e.getAllLeafColumns()],s=>s.map(a=>wm(e,u,a,a.id)),{key:!1,debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}}),_getAllCellsByColumnId:H(()=>[u.getAllCells()],s=>s.reduce((a,c)=>(a[c.column.id]=c,a),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}})};for(let s=0;stypeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function km(){return e=>H(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,l,i){l===void 0&&(l=0);const u=[];for(let a=0;a{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xi(e,t){return e?xm(e)?G.createElement(e,t):e:null}function xm(e){return Em(e)||typeof e=="function"||Rm(e)}function Em(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Rm(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function Pm(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=G.useState(()=>({current:Sm(t)})),[r,o]=G.useState(()=>n.current.initialState);return n.current.setOptions(l=>({...l,...e,state:{...r,...e.state},onStateChange:i=>{o(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}const Bn=({getValue:e,row:t,column:n,table:r,cell:o})=>{const l=e(),[i,u]=G.useState(""),s=()=>{var a;(a=r.options.meta)==null||a.updateData(t.index,n.id,i)};return G.useEffect(()=>{u(l)},[l,u]),N.jsx("input",{id:o.id,style:{width:`${n.getSize()}px`},className:"bg-transparent",value:i,onChange:a=>u(a.target.value),onBlur:s})},Un=Cm(),Fm=[Un.accessor("orderNumber",{id:"orderNumber",size:50,header:()=>N.jsx("span",{children:"No."}),cell:Bn,footer:()=>N.jsx("span",{children:"No."})}),Un.accessor("beerName",{size:500,header:()=>N.jsx("span",{children:"Beer name"}),cell:Bn,footer:()=>N.jsx("span",{children:"Beer name"})}),Un.accessor("plato",{size:150,header:()=>N.jsx("span",{children:"Extract [Plato°]"}),cell:Bn,footer:()=>N.jsx("span",{children:"Extract [Plato°]"})}),Un.accessor("volume",{size:80,header:()=>N.jsx("span",{children:"Volume"}),cell:Bn,footer:()=>N.jsx("span",{children:"Volume"})}),Un.accessor("packageType",{size:130,header:()=>N.jsx("span",{children:"Package type"}),cell:Bn,footer:()=>N.jsx("span",{children:"Package type"})}),Un.accessor("quantities",{size:100,header:()=>N.jsx("span",{children:"Quantities"}),cell:Bn,footer:()=>N.jsx("span",{children:"Quantities"})})],$m=()=>{const{data:e,setData:t,acceptedFileName:n}=ws(),[r]=G.useState(()=>[...Fm]),o=Pm({data:e,columns:r,getCoreRowModel:km(),meta:{updateData:(l,i,u)=>{t(s=>s.map((a,c)=>c===l?{...s[l],[i]:u}:a))}},columnResizeMode:"onChange",columnResizeDirection:"ltr"});return N.jsx("div",{className:"grid place-content-center overflow-x-auto py-2",children:N.jsxs("table",{className:`border-collapse ${n?"table":"hidden"}`,style:{width:o.getCenterTotalSize()},children:[N.jsx("thead",{className:"border-[1px] border-solid border-black",children:o.getHeaderGroups().map(l=>N.jsx("tr",{children:l.headers.map(i=>N.jsxs("th",{className:"relative border-[1px] border-solid border-black",key:i.id,colSpan:i.colSpan,style:{width:i.getSize()},children:[i.isPlaceholder?null:xi(i.column.columnDef.header,i.getContext()),N.jsx(Hh,{header:i,table:o})]}))},l.id))}),N.jsx("tbody",{className:"border-[1px] border-solid border-black",children:o.getRowModel().rows.map(l=>N.jsx("tr",{children:l.getVisibleCells().map(i=>N.jsx("td",{className:"border-[1px] border-solid border-black",style:{width:`${i.column.getSize()}px`},children:xi(i.column.columnDef.cell,i.getContext())},i.id))},l.id))}),N.jsx("tfoot",{className:"border-[1px] border-solid border-black ",children:o.getFooterGroups().map(l=>N.jsx("tr",{children:l.headers.map(i=>N.jsx("th",{className:"relative border-[1px] border-solid border-black",key:i.id,colSpan:i.colSpan,style:{width:`${i.getSize()}px`},children:i.isPlaceholder?null:xi(i.column.columnDef.footer,i.getContext())}))},l.id))})]})})},zm=()=>N.jsxs(rf,{children:[N.jsx(Th,{}),N.jsx(jh,{}),N.jsx($m,{})]});function Dm(){return N.jsxs(rf,{children:[N.jsx(qg,{title:"Beer excise tax calculator"}),N.jsx(zm,{})]})}Ei.createRoot(document.getElementById("root")).render(N.jsx(_t.StrictMode,{children:N.jsx(Dm,{})})); diff --git a/assets/index-dlIUhDqn.css b/assets/index-dlIUhDqn.css new file mode 100644 index 0000000..15236be --- /dev/null +++ b/assets/index-dlIUhDqn.css @@ -0,0 +1 @@ +@import"https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity));font-family:Montserrat,sans-serif}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.top-0{top:0}.m-0{margin:0}.mx-0{margin-left:0;margin-right:0}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-\[5px\]{margin-top:5px;margin-bottom:5px}.mb-\[10px\]{margin-bottom:10px}.block{display:block}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-6{height:1.5rem}.h-\[25px\]{height:25px}.h-\[65px\]{height:65px}.w-\[5px\]{width:5px}.w-\[60\%\]{width:60%}.w-full{width:100%}.max-w-6xl{max-width:72rem}.border-collapse{border-collapse:collapse}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0\.5{--tw-translate-y: .125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-\[1fr_1fr_1fr\]{grid-template-columns:1fr 1fr 1fr}.grid-cols-\[2fr_1fr\]{grid-template-columns:2fr 1fr}.flex-row{flex-direction:row}.place-content-center{place-content:center}.place-content-between{place-content:space-between}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-5{gap:1.25rem}.overflow-x-auto{overflow-x:auto}.border-\[1px\]{border-width:1px}.border-solid{border-style:solid}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bg-\[\#366992\]{--tw-bg-opacity: 1;background-color:rgb(54 105 146 / var(--tw-bg-opacity))}.bg-\[\#A01919\]{--tw-bg-opacity: 1;background-color:rgb(160 25 25 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-\[20px\]{padding:20px}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\[25px\]{padding-left:25px;padding-right:25px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[10px\]{padding-top:10px;padding-bottom:10px}.pr-1{padding-right:.25rem}.pt-1{padding-top:.25rem}.pt-\[3px\]{padding-top:3px}.text-left{text-align:left}.text-\[35px\]{font-size:35px}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-10{line-height:2.5rem}.leading-6{line-height:1.5rem}.leading-normal{line-height:1.5}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#root{display:flex;min-height:100vh;flex-direction:column}.hover\:cursor-col-resize:hover{cursor:col-resize}.hover\:touch-none:hover{touch-action:none}.hover\:bg-\[\#4B91C9\]:hover{--tw-bg-opacity: 1;background-color:rgb(75 145 201 / var(--tw-bg-opacity))}.hover\:bg-\[\#DD2222\]:hover{--tw-bg-opacity: 1;background-color:rgb(221 34 34 / var(--tw-bg-opacity))}.hover\:opacity-100:hover{opacity:1}@media (min-width: 768px){.md\:h-\[44px\]{height:44px}} diff --git a/index.html b/index.html new file mode 100644 index 0000000..7be5ec3 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + + Vite + React + TS + + + + +
+ + diff --git a/vite.svg b/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file