Files
OpenBB/openbb_terminal/core/plots/table.html
teh_coderer a9da2a8216 hotfix/ tables pd.to_numeric (#5124)
* fix tables `pd.to_numeric`

* Update helper_funcs.py
2023-06-10 14:22:56 +00:00

308 lines
695 KiB
HTML
Vendored
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenBB Interactive Tables</title>
<script>
if (window.json_data && JSON.parse(window.json_data)?.posthog?.collect_logs) {
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init("phc_vhssDAMod5qIplznQ75Kdgz4aB1qPFmeVmfEOZ4hkRw", {
api_host: "https://app.posthog.com",
autocapture: {
css_selector_allowlist: [".ph-capture"],
},
capture_pageview: false,
loaded: function (posthog) {
if (window.json_data) {
const data = JSON.parse(window.json_data);
const log_id = data?.log_id || "";
if (log_id != "" && log_id != "REPLACE_ME") {
posthog.identify(log_id);
}
posthog.capture("table", {
INFO: {
command: data.command_location,
title: data.title,
python_version: data.python_version,
pywry_version: data.pywry_version,
terminal_version: data.terminal_version,
},
});
}
posthog.onFeatureFlags(function () {
if (
!posthog.isFeatureEnabled("record-pywry", { send_event: false })
) {
posthog.stopSessionRecording();
}
if (
!posthog.isFeatureEnabled("collect-logs-pywry", {
send_event: false,
})
) {
posthog.opt_out_capturing();
} else if (posthog.has_opted_out_capturing()) {
posthog.opt_in_capturing();
}
});
},
});
}
if (
// check if user had saved dark as their
// theme when accessing page before
localStorage.theme === "dark" ||
// or user's requesting dark color
// scheme through operating system
(!("theme" in localStorage) &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
// then if we have access to the document and the element
// we add the dark class to the html element and
// store the dark value in the localStorage
if (document && document.documentElement) {
document.documentElement.classList.add("dark");
localStorage.setItem("theme", "dark");
}
} else {
// else if we have access to the document and the element
// we remove the dark class to the html element and
// store the value light in the localStorage
if (document && document.documentElement) {
document.documentElement.classList.remove("dark");
localStorage.setItem("theme", "light");
}
}
</script>
<script type="module" crossorigin>
function _y(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function Ha(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S1={exports:{}},Va={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var mh=Object.getOwnPropertySymbols,Sy=Object.prototype.hasOwnProperty,Ty=Object.prototype.propertyIsEnumerable;function Cy(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Ay(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var T1=Ay()?Object.assign:function(e,t){for(var r,n=Cy(e),i,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var a in r)Sy.call(r,a)&&(n[a]=r[a]);if(mh){i=mh(r);for(var s=0;s<i.length;s++)Ty.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n},C1={exports:{}},Ie={};/** @license React v17.0.2
* 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 f0=T1,ho=60103,A1=60106;Ie.Fragment=60107;Ie.StrictMode=60108;Ie.Profiler=60114;var R1=60109,O1=60110,F1=60112;Ie.Suspense=60113;var D1=60115,P1=60116;if(typeof Symbol=="function"&&Symbol.for){var mr=Symbol.for;ho=mr("react.element"),A1=mr("react.portal"),Ie.Fragment=mr("react.fragment"),Ie.StrictMode=mr("react.strict_mode"),Ie.Profiler=mr("react.profiler"),R1=mr("react.provider"),O1=mr("react.context"),F1=mr("react.forward_ref"),Ie.Suspense=mr("react.suspense"),D1=mr("react.memo"),P1=mr("react.lazy")}var vh=typeof Symbol=="function"&&Symbol.iterator;function Ry(e){return e===null||typeof e!="object"?null:(e=vh&&e[vh]||e["@@iterator"],typeof e=="function"?e:null)}function Wa(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var I1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b1={};function po(e,t,r){this.props=e,this.context=t,this.refs=b1,this.updater=r||I1}po.prototype.isReactComponent={};po.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Wa(85));this.updater.enqueueSetState(this,e,t,"setState")};po.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function k1(){}k1.prototype=po.prototype;function d0(e,t,r){this.props=e,this.context=t,this.refs=b1,this.updater=r||I1}var h0=d0.prototype=new k1;h0.constructor=d0;f0(h0,po.prototype);h0.isPureReactComponent=!0;var p0={current:null},$1=Object.prototype.hasOwnProperty,N1={key:!0,ref:!0,__self:!0,__source:!0};function M1(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)$1.call(t,n)&&!N1.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:ho,type:e,key:o,ref:a,props:i,_owner:p0.current}}function Oy(e,t){return{$$typeof:ho,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function g0(e){return typeof e=="object"&&e!==null&&e.$$typeof===ho}function Fy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var xh=/\/+/g;function Uu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fy(""+e.key):t.toString(36)}function Hs(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ho:case A1:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Uu(a,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(xh,"$&/")+"/"),Hs(i,t,r,"",function(u){return u})):i!=null&&(g0(i)&&(i=Oy(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(xh,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+Uu(o,s);a+=Hs(o,t,r,l,i)}else if(l=Ry(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+Uu(o,s++),a+=Hs(o,t,r,l,i);else if(o==="object")throw t=""+e,Error(Wa(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function as(e,t,r){if(e==null)return e;var n=[],i=0;return Hs(e,n,"","",function(o){return t.call(r,o,i++)}),n}function Dy(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var L1={current:null};function rn(){var e=L1.current;if(e===null)throw Error(Wa(321));return e}var Py={ReactCurrentDispatcher:L1,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:p0,IsSomeRendererActing:{current:!1},assign:f0};Ie.Children={map:as,forEach:function(e,t,r){as(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return as(e,function(){t++}),t},toArray:function(e){return as(e,function(t){return t})||[]},only:function(e){if(!g0(e))throw Error(Wa(143));return e}};Ie.Component=po;Ie.PureComponent=d0;Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Py;Ie.cloneElement=function(e,t,r){if(e==null)throw Error(Wa(267,e));var n=f0({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=p0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)$1.call(t,l)&&!N1.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:ho,type:e.type,key:i,ref:o,props:n,_owner:a}};Ie.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:O1,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:R1,_context:e},e.Consumer=e};Ie.createElement=M1;Ie.createFactory=function(e){var t=M1.bind(null,e);return t.type=e,t};Ie.createRef=function(){return{current:null}};Ie.forwardRef=function(e){return{$$typeof:F1,render:e}};Ie.isValidElement=g0;Ie.lazy=function(e){return{$$typeof:P1,_payload:{_status:-1,_result:e},_init:Dy}};Ie.memo=function(e,t){return{$$typeof:D1,type:e,compare:t===void 0?null:t}};Ie.useCallback=function(e,t){return rn().useCallback(e,t)};Ie.useContext=function(e,t){return rn().useContext(e,t)};Ie.useDebugValue=function(){};Ie.useEffect=function(e,t){return rn().useEffect(e,t)};Ie.useImperativeHandle=function(e,t,r){return rn().useImperativeHandle(e,t,r)};Ie.useLayoutEffect=function(e,t){return rn().useLayoutEffect(e,t)};Ie.useMemo=function(e,t){return rn().useMemo(e,t)};Ie.useReducer=function(e,t,r){return rn().useReducer(e,t,r)};Ie.useRef=function(e){return rn().useRef(e)};Ie.useState=function(e){return rn().useState(e)};Ie.version="17.0.2";C1.exports=Ie;var v=C1.exports;const ir=Ha(v),Iy=_y({__proto__:null,default:ir},[v]);/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var by=v,B1=60103;Va.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var wh=Symbol.for;B1=wh("react.element"),Va.Fragment=wh("react.fragment")}var ky=by.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$y=Object.prototype.hasOwnProperty,Ny={key:!0,ref:!0,__self:!0,__source:!0};function U1(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)$y.call(t,n)&&!Ny.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:B1,type:e,key:o,ref:a,props:i,_owner:ky.current}}Va.jsx=U1;Va.jsxs=U1;S1.exports=Va;var m0=S1.exports;const H1=m0.Fragment,K=m0.jsx,Se=m0.jsxs;var V1={exports:{}},hr={},W1={exports:{}},z1={};/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,u=null,c=function(){if(l!==null)try{var ee=e.unstable_now();l(!0,ee),l=null}catch(O){throw setTimeout(c,0),O}};t=function(ee){l!==null?setTimeout(t,0,ee):(l=ee,setTimeout(c,0))},r=function(ee,O){u=setTimeout(ee,O)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,p=null,g=-1,x=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},i=function(){},e.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<ee?Math.floor(1e3/ee):5};var y=new MessageChannel,_=y.port2;y.port1.onmessage=function(){if(p!==null){var ee=e.unstable_now();w=ee+x;try{p(!0,ee)?_.postMessage(null):(m=!1,p=null)}catch(O){throw _.postMessage(null),O}}else m=!1},t=function(ee){p=ee,m||(m=!0,_.postMessage(null))},r=function(ee,O){g=f(function(){ee(e.unstable_now())},O)},n=function(){d(g),g=-1}}function N(ee,O){var k=ee.length;ee.push(O);e:for(;;){var b=k-1>>>1,D=ee[b];if(D!==void 0&&0<C(D,O))ee[b]=O,ee[k]=D,k=b;else break e}}function M(ee){return ee=ee[0],ee===void 0?null:ee}function S(ee){var O=ee[0];if(O!==void 0){var k=ee.pop();if(k!==O){ee[0]=k;e:for(var b=0,D=ee.length;b<D;){var U=2*(b+1)-1,G=ee[U],J=U+1,W=ee[J];if(G!==void 0&&0>C(G,k))W!==void 0&&0>C(W,G)?(ee[b]=W,ee[J]=k,b=J):(ee[b]=G,ee[U]=k,b=U);else if(W!==void 0&&0>C(W,k))ee[b]=W,ee[J]=k,b=J;else break e}}return O}return null}function C(ee,O){var k=ee.sortIndex-O.sortIndex;return k!==0?k:ee.id-O.id}var A=[],L=[],H=1,B=null,V=3,Q=!1,ne=!1,ye=!1;function ve(ee){for(var O=M(L);O!==null;){if(O.callback===null)S(L);else if(O.startTime<=ee)S(L),O.sortIndex=O.expirationTime,N(A,O);else break;O=M(L)}}function Ce(ee){if(ye=!1,ve(ee),!ne)if(M(A)!==null)ne=!0,t(ie);else{var O=M(L);O!==null&&r(Ce,O.startTime-ee)}}function ie(ee,O){ne=!1,ye&&(ye=!1,n()),Q=!0;var k=V;try{for(ve(O),B=M(A);B!==null&&(!(B.expirationTime>O)||ee&&!e.unstable_shouldYield());){var b=B.callback;if(typeof b=="function"){B.callback=null,V=B.priorityLevel;var D=b(B.expirationTime<=O);O=e.unstable_now(),typeof D=="function"?B.callback=D:B===M(A)&&S(A),ve(O)}else S(A);B=M(A)}if(B!==null)var U=!0;else{var G=M(L);G!==null&&r(Ce,G.startTime-O),U=!1}return U}finally{B=null,V=k,Q=!1}}var Ee=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ee){ee.callback=null},e.unstable_continueExecution=function(){ne||Q||(ne=!0,t(ie))},e.unstable_getCurrentPriorityLevel=function(){return V},e.unstable_getFirstCallbackNode=function(){return M(A)},e.unstable_next=function(ee){switch(V){case 1:case 2:case 3:var O=3;break;default:O=V}var k=V;V=O;try{return ee()}finally{V=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Ee,e.unstable_runWithPriority=function(ee,O){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var k=V;V=ee;try{return O()}finally{V=k}},e.unstable_scheduleCallback=function(ee,O,k){var b=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?b+k:b):k=b,ee){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=k+D,ee={id:H++,callback:O,priorityLevel:ee,startTime:k,expirationTime:D,sortIndex:-1},k>b?(ee.sortIndex=k,N(L,ee),M(A)===null&&ee===M(L)&&(ye?n():ye=!0,r(Ce,k-b))):(ee.sortIndex=D,N(A,ee),ne||Q||(ne=!0,t(ie))),ee},e.unstable_wrapCallback=function(ee){var O=V;return function(){var k=V;V=O;try{return ee.apply(this,arguments)}finally{V=k}}}})(z1);W1.exports=z1;var My=W1.exports;/** @license React v17.0.2
* 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 Xl=v,Ye=T1,pt=My;function se(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Xl)throw Error(se(227));var G1=new Set,wa={};function li(e,t){oo(e,t),oo(e+"Capture",t)}function oo(e,t){for(wa[e]=t,e=0;e<t.length;e++)G1.add(t[e])}var Jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ly=/^[: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]*$/,yh=Object.prototype.hasOwnProperty,Eh={},_h={};function By(e){return yh.call(_h,e)?!0:yh.call(Eh,e)?!1:Ly.test(e)?_h[e]=!0:(Eh[e]=!0,!1)}function Uy(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Hy(e,t,r,n){if(t===null||typeof t>"u"||Uy(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Bt(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new Bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new Bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new Bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new Bt(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){St[e]=new Bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new Bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new Bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new Bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new Bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var v0=/[\-:]([a-z])/g;function x0(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(v0,x0);St[t]=new Bt(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(v0,x0);St[t]=new Bt(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(v0,x0);St[t]=new Bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new Bt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new Bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new Bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function w0(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null,o=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(Hy(t,r,i,n)&&(r=null),n||i===null?By(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ui=Xl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xo=60103,Xn=60106,cn=60107,y0=60108,Jo=60114,E0=60109,_0=60110,Kl=60112,ea=60113,rl=60120,Yl=60115,S0=60116,T0=60121,C0=60128,j1=60129,A0=60130,Hc=60131;if(typeof Symbol=="function"&&Symbol.for){var ct=Symbol.for;Xo=ct("react.element"),Xn=ct("react.portal"),cn=ct("react.fragment"),y0=ct("react.strict_mode"),Jo=ct("react.profiler"),E0=ct("react.provider"),_0=ct("react.context"),Kl=ct("react.forward_ref"),ea=ct("react.suspense"),rl=ct("react.suspense_list"),Yl=ct("react.memo"),S0=ct("react.lazy"),T0=ct("react.block"),ct("react.scope"),C0=ct("react.opaque.id"),j1=ct("react.debug_trace_mode"),A0=ct("react.offscreen"),Hc=ct("react.legacy_hidden")}var Sh=typeof Symbol=="function"&&Symbol.iterator;function Po(e){return e===null||typeof e!="object"?null:(e=Sh&&e[Sh]||e["@@iterator"],typeof e=="function"?e:null)}var Hu;function Ko(e){if(Hu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||""}return`
`+Hu+e}var Vu=!1;function ss(e,t){if(!e||Vu)return"";Vu=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var i=l.stack.split(`
`),o=n.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s])return`
`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{Vu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ko(e):""}function Vy(e){switch(e.tag){case 5:return Ko(e.type);case 16:return Ko("Lazy");case 13:return Ko("Suspense");case 19:return Ko("SuspenseList");case 0:case 2:case 15:return e=ss(e.type,!1),e;case 11:return e=ss(e.type.render,!1),e;case 22:return e=ss(e.type._render,!1),e;case 1:return e=ss(e.type,!0),e;default:return""}}function Gi(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 cn:return"Fragment";case Xn:return"Portal";case Jo:return"Profiler";case y0:return"StrictMode";case ea:return"Suspense";case rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _0:return(e.displayName||"Context")+".Consumer";case E0:return(e._context.displayName||"Context")+".Provider";case Kl:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Yl:return Gi(e.type);case T0:return Gi(e._render);case S0:t=e._payload,e=e._init;try{return Gi(e(t))}catch{}}return null}function Rn(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function X1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wy(e){var t=X1(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ls(e){e._valueTracker||(e._valueTracker=Wy(e))}function K1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=X1(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function nl(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 Vc(e,t){var r=t.checked;return Ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Th(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Rn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Y1(e,t){t=t.checked,t!=null&&w0(e,"checked",t,!1)}function Wc(e,t){Y1(e,t);var r=Rn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zc(e,t.type,r):t.hasOwnProperty("defaultValue")&&zc(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ch(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function zc(e,t,r){(t!=="number"||nl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function zy(e){var t="";return Xl.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Gc(e,t){return e=Ye({children:void 0},t),(t=zy(t.children))&&(e.children=t),e}function ji(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Rn(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function jc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(se(91));return Ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ah(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(se(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(se(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Rn(r)}}function q1(e,t){var r=Rn(t.value),n=Rn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Rh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Xc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Q1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Kc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Q1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var us,Z1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==Xc.svg||"innerHTML"in e)e.innerHTML=t;else{for(us=us||document.createElement("div"),us.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ya(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ta={animationIterationCount:!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},Gy=["Webkit","ms","Moz","O"];Object.keys(ta).forEach(function(e){Gy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ta[t]=ta[e]})});function J1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ta.hasOwnProperty(e)&&ta[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=J1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var jy=Ye({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 Yc(e,t){if(t){if(jy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(se(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(se(62))}}function qc(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}}function R0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qc=null,Xi=null,Ki=null;function Oh(e){if(e=Ga(e)){if(typeof Qc!="function")throw Error(se(280));var t=e.stateNode;t&&(t=tu(t),Qc(e.stateNode,e.type,t))}}function tm(e){Xi?Ki?Ki.push(e):Ki=[e]:Xi=e}function rm(){if(Xi){var e=Xi,t=Ki;if(Ki=Xi=null,Oh(e),t)for(e=0;e<t.length;e++)Oh(t[e])}}function O0(e,t){return e(t)}function nm(e,t,r,n,i){return e(t,r,n,i)}function F0(){}var im=O0,Kn=!1,Wu=!1;function D0(){(Xi!==null||Ki!==null)&&(F0(),rm())}function Xy(e,t,r){if(Wu)return e(t,r);Wu=!0;try{return im(e,t,r)}finally{Wu=!1,D0()}}function Ea(e,t){var r=e.stateNode;if(r===null)return null;var n=tu(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(se(231,t,typeof r));return r}var Zc=!1;if(Jr)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Zc=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Zc=!1}function Ky(e,t,r,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var ra=!1,il=null,ol=!1,Jc=null,Yy={onError:function(e){ra=!0,il=e}};function qy(e,t,r,n,i,o,a,s,l){ra=!1,il=null,Ky.apply(Yy,arguments)}function Qy(e,t,r,n,i,o,a,s,l){if(qy.apply(this,arguments),ra){if(ra){var u=il;ra=!1,il=null}else throw Error(se(198));ol||(ol=!0,Jc=u)}}function ci(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function om(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Fh(e){if(ci(e)!==e)throw Error(se(188))}function Zy(e){var t=e.alternate;if(!t){if(t=ci(e),t===null)throw Error(se(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Fh(i),e;if(o===n)return Fh(i),t;o=o.sibling}throw Error(se(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(se(189))}}if(r.alternate!==n)throw Error(se(190))}if(r.tag!==3)throw Error(se(188));return r.stateNode.current===r?e:t}function am(e){if(e=Zy(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Dh(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var sm,P0,lm,um,ef=!1,Fr=[],vn=null,xn=null,wn=null,_a=new Map,Sa=new Map,bo=[],Ph="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tf(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function Ih(e,t){switch(e){case"focusin":case"focusout":vn=null;break;case"dragenter":case"dragleave":xn=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":_a.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sa.delete(t.pointerId)}}function ko(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e=tf(t,r,n,i,o),t!==null&&(t=Ga(t),t!==null&&P0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Jy(e,t,r,n,i){switch(t){case"focusin":return vn=ko(vn,e,t,r,n,i),!0;case"dragenter":return xn=ko(xn,e,t,r,n,i),!0;case"mouseover":return wn=ko(wn,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return _a.set(o,ko(_a.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Sa.set(o,ko(Sa.get(o)||null,e,t,r,n,i)),!0}return!1}function eE(e){var t=Yn(e.target);if(t!==null){var r=ci(t);if(r!==null){if(t=r.tag,t===13){if(t=om(r),t!==null){e.blockedOn=t,um(e.lanePriority,function(){pt.unstable_runWithPriority(e.priority,function(){lm(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=$0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Ga(r),t!==null&&P0(t),e.blockedOn=r,!1;t.shift()}return!0}function bh(e,t,r){Vs(e)&&r.delete(t)}function tE(){for(ef=!1;0<Fr.length;){var e=Fr[0];if(e.blockedOn!==null){e=Ga(e.blockedOn),e!==null&&sm(e);break}for(var t=e.targetContainers;0<t.length;){var r=$0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Fr.shift()}vn!==null&&Vs(vn)&&(vn=null),xn!==null&&Vs(xn)&&(xn=null),wn!==null&&Vs(wn)&&(wn=null),_a.forEach(bh),Sa.forEach(bh)}function $o(e,t){e.blockedOn===t&&(e.blockedOn=null,ef||(ef=!0,pt.unstable_scheduleCallback(pt.unstable_NormalPriority,tE)))}function cm(e){function t(i){return $o(i,e)}if(0<Fr.length){$o(Fr[0],e);for(var r=1;r<Fr.length;r++){var n=Fr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(vn!==null&&$o(vn,e),xn!==null&&$o(xn,e),wn!==null&&$o(wn,e),_a.forEach(t),Sa.forEach(t),r=0;r<bo.length;r++)n=bo[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<bo.length&&(r=bo[0],r.blockedOn===null);)eE(r),r.blockedOn===null&&bo.shift()}function cs(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ni={animationend:cs("Animation","AnimationEnd"),animationiteration:cs("Animation","AnimationIteration"),animationstart:cs("Animation","AnimationStart"),transitionend:cs("Transition","TransitionEnd")},zu={},fm={};Jr&&(fm=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function ql(e){if(zu[e])return zu[e];if(!Ni[e])return e;var t=Ni[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in fm)return zu[e]=t[r];return e}var dm=ql("animationend"),hm=ql("animationiteration"),pm=ql("animationstart"),gm=ql("transitionend"),mm=new Map,I0=new Map,rE=["abort","abort",dm,"animationEnd",hm,"animationIteration",pm,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",gm,"transitionEnd","waiting","waiting"];function b0(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),I0.set(n,t),mm.set(n,i),li(i,[n])}}var nE=pt.unstable_now;nE();var ze=8;function bi(e){if(1&e)return ze=15,1;if(2&e)return ze=14,2;if(4&e)return ze=13,4;var t=24&e;return t!==0?(ze=12,t):e&32?(ze=11,32):(t=192&e,t!==0?(ze=10,t):e&256?(ze=9,256):(t=3584&e,t!==0?(ze=8,t):e&4096?(ze=7,4096):(t=4186112&e,t!==0?(ze=6,t):(t=62914560&e,t!==0?(ze=5,t):e&67108864?(ze=4,67108864):e&134217728?(ze=3,134217728):(t=805306368&e,t!==0?(ze=2,t):1073741824&e?(ze=1,1073741824):(ze=8,e))))))}function iE(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function oE(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(se(358,e))}}function Ta(e,t){var r=e.pendingLanes;if(r===0)return ze=0;var n=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)n=o,i=ze=15;else if(o=r&134217727,o!==0){var l=o&~a;l!==0?(n=bi(l),i=ze):(s&=o,s!==0&&(n=bi(s),i=ze))}else o=r&~a,o!==0?(n=bi(o),i=ze):s!==0&&(n=bi(s),i=ze);if(n===0)return 0;if(n=31-On(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&a)){if(bi(t),i<=ze)return t;ze=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-On(t),i=1<<r,n|=e[r],t&=~i;return n}function vm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function al(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=ki(24&~t),e===0?al(10,t):e;case 10:return e=ki(192&~t),e===0?al(8,t):e;case 8:return e=ki(3584&~t),e===0&&(e=ki(4186112&~t),e===0&&(e=512)),e;case 2:return t=ki(805306368&~t),t===0&&(t=268435456),t}throw Error(se(358,e))}function ki(e){return e&-e}function Gu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ql(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-On(t),e[t]=r}var On=Math.clz32?Math.clz32:lE,aE=Math.log,sE=Math.LN2;function lE(e){return e===0?32:31-(aE(e)/sE|0)|0}var uE=pt.unstable_UserBlockingPriority,cE=pt.unstable_runWithPriority,Ws=!0;function fE(e,t,r,n){Kn||F0();var i=k0,o=Kn;Kn=!0;try{nm(i,e,t,r,n)}finally{(Kn=o)||D0()}}function dE(e,t,r,n){cE(uE,k0.bind(null,e,t,r,n))}function k0(e,t,r,n){if(Ws){var i;if((i=(t&4)===0)&&0<Fr.length&&-1<Ph.indexOf(e))e=tf(null,e,t,r,n),Fr.push(e);else{var o=$0(e,t,r,n);if(o===null)i&&Ih(e,n);else{if(i){if(-1<Ph.indexOf(e)){e=tf(o,e,t,r,n),Fr.push(e);return}if(Jy(o,e,t,r,n))return;Ih(e,n)}Dm(e,t,n,null,r)}}}}function $0(e,t,r,n){var i=R0(n);if(i=Yn(i),i!==null){var o=ci(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=om(o),i!==null)return i;i=null}else if(a===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Dm(e,t,n,i,r),null}var fn=null,N0=null,zs=null;function xm(){if(zs)return zs;var e,t=N0,r=t.length,n,i="value"in fn?fn.value:fn.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return zs=i.slice(e,1<n?1-n:void 0)}function Gs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fs(){return!0}function kh(){return!1}function er(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?fs:kh,this.isPropagationStopped=kh,this}return Ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=fs)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),t}var go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},M0=er(go),za=Ye({},go,{view:0,detail:0}),hE=er(za),ju,Xu,No,Zl=Ye({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:L0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==No&&(No&&e.type==="mousemove"?(ju=e.screenX-No.screenX,Xu=e.screenY-No.screenY):Xu=ju=0,No=e),ju)},movementY:function(e){return"movementY"in e?e.movementY:Xu}}),$h=er(Zl),pE=Ye({},Zl,{dataTransfer:0}),gE=er(pE),mE=Ye({},za,{relatedTarget:0}),Ku=er(mE),vE=Ye({},go,{animationName:0,elapsedTime:0,pseudoElement:0}),xE=er(vE),wE=Ye({},go,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yE=er(wE),EE=Ye({},go,{data:0}),Nh=er(EE),_E={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},TE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TE[e])?!!t[e]:!1}function L0(){return CE}var AE=Ye({},za,{key:function(e){if(e.key){var t=_E[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:L0,charCode:function(e){return e.type==="keypress"?Gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RE=er(AE),OE=Ye({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mh=er(OE),FE=Ye({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:L0}),DE=er(FE),PE=Ye({},go,{propertyName:0,elapsedTime:0,pseudoElement:0}),IE=er(PE),bE=Ye({},Zl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),kE=er(bE),$E=[9,13,27,32],B0=Jr&&"CompositionEvent"in window,na=null;Jr&&"documentMode"in document&&(na=document.documentMode);var NE=Jr&&"TextEvent"in window&&!na,wm=Jr&&(!B0||na&&8<na&&11>=na),Lh=String.fromCharCode(32),Bh=!1;function ym(e,t){switch(e){case"keyup":return $E.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mi=!1;function ME(e,t){switch(e){case"compositionend":return Em(t);case"keypress":return t.which!==32?null:(Bh=!0,Lh);case"textInput":return e=t.data,e===Lh&&Bh?null:e;default:return null}}function LE(e,t){if(Mi)return e==="compositionend"||!B0&&ym(e,t)?(e=xm(),zs=N0=fn=null,Mi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wm&&t.locale!=="ko"?null:t.data;default:return null}}var BE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!BE[e.type]:t==="textarea"}function _m(e,t,r,n){tm(n),t=sl(t,"onChange"),0<t.length&&(r=new M0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ia=null,Ca=null;function UE(e){Rm(e,0)}function Jl(e){var t=Bi(e);if(K1(t))return e}function HE(e,t){if(e==="change")return t}var Sm=!1;if(Jr){var Yu;if(Jr){var qu="oninput"in document;if(!qu){var Hh=document.createElement("div");Hh.setAttribute("oninput","return;"),qu=typeof Hh.oninput=="function"}Yu=qu}else Yu=!1;Sm=Yu&&(!document.documentMode||9<document.documentMode)}function Vh(){ia&&(ia.detachEvent("onpropertychange",Tm),Ca=ia=null)}function Tm(e){if(e.propertyName==="value"&&Jl(Ca)){var t=[];if(_m(t,Ca,e,R0(e)),e=UE,Kn)e(t);else{Kn=!0;try{O0(e,t)}finally{Kn=!1,D0()}}}}function VE(e,t,r){e==="focusin"?(Vh(),ia=t,Ca=r,ia.attachEvent("onpropertychange",Tm)):e==="focusout"&&Vh()}function WE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jl(Ca)}function zE(e,t){if(e==="click")return Jl(t)}function GE(e,t){if(e==="input"||e==="change")return Jl(t)}function jE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sr=typeof Object.is=="function"?Object.is:jE,XE=Object.prototype.hasOwnProperty;function Aa(e,t){if(sr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!XE.call(t,r[n])||!sr(e[r[n]],t[r[n]]))return!1;return!0}function Wh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zh(e,t){var r=Wh(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Wh(r)}}function Cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gh(){for(var e=window,t=nl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=nl(e.document)}return t}function rf(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")}var KE=Jr&&"documentMode"in document&&11>=document.documentMode,Li=null,nf=null,oa=null,of=!1;function jh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;of||Li==null||Li!==nl(n)||(n=Li,"selectionStart"in n&&rf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),oa&&Aa(oa,n)||(oa=n,n=sl(nf,"onSelect"),0<n.length&&(t=new M0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Li)))}b0("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);b0("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);b0(rE,2);for(var Xh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Qu=0;Qu<Xh.length;Qu++)I0.set(Xh[Qu],0);oo("onMouseEnter",["mouseout","mouseover"]);oo("onMouseLeave",["mouseout","mouseover"]);oo("onPointerEnter",["pointerout","pointerover"]);oo("onPointerLeave",["pointerout","pointerover"]);li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));li("onBeforeInput",["compositionend","keypress","textInput","paste"]);li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Am=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yo));function Kh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Qy(n,t,void 0,e),e.currentTarget=null}function Rm(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Kh(i,s,u),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Kh(i,s,u),o=l}}}if(ol)throw e=Jc,ol=!1,Jc=null,e}function je(e,t){var r=Im(t),n=e+"__bubble";r.has(n)||(Fm(t,e,2,!1),r.add(n))}var Yh="_reactListening"+Math.random().toString(36).slice(2);function Om(e){e[Yh]||(e[Yh]=!0,G1.forEach(function(t){Am.has(t)||qh(t,!1,e,null),qh(t,!0,e,null)}))}function qh(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=r;if(e==="selectionchange"&&r.nodeType!==9&&(o=r.ownerDocument),n!==null&&!t&&Am.has(e)){if(e!=="scroll")return;i|=2,o=n}var a=Im(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Fm(o,e,i,t),a.add(s))}function Fm(e,t,r,n){var i=I0.get(t);switch(i===void 0?2:i){case 0:i=fE;break;case 1:i=dE;break;default:i=k0}r=i.bind(null,t,r,e),i=void 0,!Zc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Dm(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Yn(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}Xy(function(){var u=o,c=R0(r),f=[];e:{var d=mm.get(e);if(d!==void 0){var h=M0,m=e;switch(e){case"keypress":if(Gs(r)===0)break e;case"keydown":case"keyup":h=RE;break;case"focusin":m="focus",h=Ku;break;case"focusout":m="blur",h=Ku;break;case"beforeblur":case"afterblur":h=Ku;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=$h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=gE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=DE;break;case dm:case hm:case pm:h=xE;break;case gm:h=IE;break;case"scroll":h=hE;break;case"wheel":h=kE;break;case"copy":case"cut":case"paste":h=yE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Mh}var p=(t&4)!==0,g=!p&&e==="scroll",x=p?d!==null?d+"Capture":null:d;p=[];for(var w=u,y;w!==null;){y=w;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,x!==null&&(_=Ea(w,x),_!=null&&p.push(Ra(w,_,y)))),g)break;w=w.return}0<p.length&&(d=new h(d,m,null,r,c),f.push({event:d,listeners:p}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&!(t&16)&&(m=r.relatedTarget||r.fromElement)&&(Yn(m)||m[mo]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=u,m=m?Yn(m):null,m!==null&&(g=ci(m),m!==g||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(p=$h,_="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(p=Mh,_="onPointerLeave",x="onPointerEnter",w="pointer"),g=h==null?d:Bi(h),y=m==null?d:Bi(m),d=new p(_,w+"leave",h,r,c),d.target=g,d.relatedTarget=y,_=null,Yn(c)===u&&(p=new p(x,w+"enter",m,r,c),p.target=y,p.relatedTarget=g,_=p),g=_,h&&m)t:{for(p=h,x=m,w=0,y=p;y;y=Ci(y))w++;for(y=0,_=x;_;_=Ci(_))y++;for(;0<w-y;)p=Ci(p),w--;for(;0<y-w;)x=Ci(x),y--;for(;w--;){if(p===x||x!==null&&p===x.alternate)break t;p=Ci(p),x=Ci(x)}p=null}else p=null;h!==null&&Qh(f,d,h,p,!1),m!==null&&g!==null&&Qh(f,g,m,p,!0)}}e:{if(d=u?Bi(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var N=HE;else if(Uh(d))if(Sm)N=GE;else{N=WE;var M=VE}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(N=zE);if(N&&(N=N(e,u))){_m(f,N,r,c);break e}M&&M(e,d,u),e==="focusout"&&(M=d._wrapperState)&&M.controlled&&d.type==="number"&&zc(d,"number",d.value)}switch(M=u?Bi(u):window,e){case"focusin":(Uh(M)||M.contentEditable==="true")&&(Li=M,nf=u,oa=null);break;case"focusout":oa=nf=Li=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,jh(f,r,c);break;case"selectionchange":if(KE)break;case"keydown":case"keyup":jh(f,r,c)}var S;if(B0)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Mi?ym(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(wm&&r.locale!=="ko"&&(Mi||C!=="onCompositionStart"?C==="onCompositionEnd"&&Mi&&(S=xm()):(fn=c,N0="value"in fn?fn.value:fn.textContent,Mi=!0)),M=sl(u,C),0<M.length&&(C=new Nh(C,e,null,r,c),f.push({event:C,listeners:M}),S?C.data=S:(S=Em(r),S!==null&&(C.data=S)))),(S=NE?ME(e,r):LE(e,r))&&(u=sl(u,"onBeforeInput"),0<u.length&&(c=new Nh("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=S))}Rm(f,t)})}function Ra(e,t,r){return{instance:e,listener:t,currentTarget:r}}function sl(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ea(e,r),o!=null&&n.unshift(Ra(e,o,i)),o=Ea(e,t),o!=null&&n.push(Ra(e,o,i))),e=e.return}return n}function Ci(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Qh(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=Ea(r,o),l!=null&&a.unshift(Ra(r,l,s))):i||(l=Ea(r,o),l!=null&&a.push(Ra(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}function ll(){}var Zu=null,Ju=null;function Pm(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function af(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zh=typeof setTimeout=="function"?setTimeout:void 0,YE=typeof clearTimeout=="function"?clearTimeout:void 0;function U0(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Yi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var ec=0;function qE(e){return{$$typeof:C0,toString:e,valueOf:e}}var eu=Math.random().toString(36).slice(2),dn="__reactFiber$"+eu,ul="__reactProps$"+eu,mo="__reactContainer$"+eu,ep="__reactEvents$"+eu;function Yn(e){var t=e[dn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mo]||r[dn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Jh(e);e!==null;){if(r=e[dn])return r;e=Jh(e)}return t}e=r,r=e.parentNode}return null}function Ga(e){return e=e[dn]||e[mo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(se(33))}function tu(e){return e[ul]||null}function Im(e){var t=e[ep];return t===void 0&&(t=e[ep]=new Set),t}var sf=[],Ui=-1;function Mn(e){return{current:e}}function Xe(e){0>Ui||(e.current=sf[Ui],sf[Ui]=null,Ui--)}function tt(e,t){Ui++,sf[Ui]=e.current,e.current=t}var Fn={},Pt=Mn(Fn),Wt=Mn(!1),ei=Fn;function ao(e,t){var r=e.type.contextTypes;if(!r)return Fn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zt(e){return e=e.childContextTypes,e!=null}function cl(){Xe(Wt),Xe(Pt)}function tp(e,t,r){if(Pt.current!==Fn)throw Error(se(168));tt(Pt,t),tt(Wt,r)}function bm(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(se(108,Gi(t)||"Unknown",i));return Ye({},r,n)}function js(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fn,ei=Pt.current,tt(Pt,e),tt(Wt,Wt.current),!0}function rp(e,t,r){var n=e.stateNode;if(!n)throw Error(se(169));r?(e=bm(e,t,ei),n.__reactInternalMemoizedMergedChildContext=e,Xe(Wt),Xe(Pt),tt(Pt,e)):Xe(Wt),tt(Wt,r)}var H0=null,Zn=null,QE=pt.unstable_runWithPriority,V0=pt.unstable_scheduleCallback,lf=pt.unstable_cancelCallback,ZE=pt.unstable_shouldYield,np=pt.unstable_requestPaint,uf=pt.unstable_now,JE=pt.unstable_getCurrentPriorityLevel,ru=pt.unstable_ImmediatePriority,km=pt.unstable_UserBlockingPriority,$m=pt.unstable_NormalPriority,Nm=pt.unstable_LowPriority,Mm=pt.unstable_IdlePriority,tc={},e_=np!==void 0?np:function(){},Hr=null,Xs=null,rc=!1,ip=uf(),Rt=1e4>ip?uf:function(){return uf()-ip};function so(){switch(JE()){case ru:return 99;case km:return 98;case $m:return 97;case Nm:return 96;case Mm:return 95;default:throw Error(se(332))}}function Lm(e){switch(e){case 99:return ru;case 98:return km;case 97:return $m;case 96:return Nm;case 95:return Mm;default:throw Error(se(332))}}function ti(e,t){return e=Lm(e),QE(e,t)}function Oa(e,t,r){return e=Lm(e),V0(e,t,r)}function Nr(){if(Xs!==null){var e=Xs;Xs=null,lf(e)}Bm()}function Bm(){if(!rc&&Hr!==null){rc=!0;var e=0;try{var t=Hr;ti(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Hr=null}catch(r){throw Hr!==null&&(Hr=Hr.slice(e+1)),V0(ru,Nr),r}finally{rc=!1}}}var t_=ui.ReactCurrentBatchConfig;function wr(e,t){if(e&&e.defaultProps){t=Ye({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var fl=Mn(null),dl=null,Hi=null,hl=null;function W0(){hl=Hi=dl=null}function z0(e){var t=fl.current;Xe(fl),e.type._context._currentValue=t}function Um(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function qi(e,t){dl=e,hl=Hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(_r=!0),e.firstContext=null)}function cr(e,t){if(hl!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(hl=e,t=1073741823),t={context:e,observedBits:t,next:null},Hi===null){if(dl===null)throw Error(se(308));Hi=t,dl.dependencies={lanes:0,firstContext:t,responders:null}}else Hi=Hi.next=t;return e._currentValue}var ln=!1;function G0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Hm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function En(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function op(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Fa(e,t,r,n){var i=e.updateQueue;ln=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;if(c!==null){c=c.updateQueue;var f=c.lastBaseUpdate;f!==a&&(f===null?c.firstBaseUpdate=u:f.next=u,c.lastBaseUpdate=l)}}if(o!==null){f=i.baseState,a=0,c=u=l=null;do{s=o.lane;var d=o.eventTime;if((n&s)===s){c!==null&&(c=c.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(s=t,d=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(d,f,s);break e}f=h;break e;case 3:h.flags=h.flags&-4097|64;case 0:if(h=m.payload,s=typeof h=="function"?h.call(d,f,s):h,s==null)break e;f=Ye({},f,s);break e;case 2:ln=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else d={eventTime:d,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=d,l=f):c=c.next=d,a|=s;if(o=o.next,o===null){if(s=i.shared.pending,s===null)break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,Xa|=a,e.lanes=a,e.memoizedState=f}}function ap(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(se(191,i));i.call(n)}}}var Vm=new Xl.Component().refs;function pl(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ye({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var nu={isMounted:function(e){return(e=e._reactInternals)?ci(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Zt(),i=_n(e),o=yn(n,i);o.payload=t,r!=null&&(o.callback=r),En(e,o),Sn(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Zt(),i=_n(e),o=yn(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),En(e,o),Sn(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Zt(),n=_n(e),i=yn(r,n);i.tag=2,t!=null&&(i.callback=t),En(e,i),Sn(e,n,r)}};function sp(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!Aa(r,n)||!Aa(i,o):!0}function Wm(e,t,r){var n=!1,i=Fn,o=t.contextType;return typeof o=="object"&&o!==null?o=cr(o):(i=zt(t)?ei:Pt.current,n=t.contextTypes,o=(n=n!=null)?ao(e,i):Fn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function lp(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&nu.enqueueReplaceState(t,t.state,null)}function cf(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Vm,G0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=cr(o):(o=zt(t)?ei:Pt.current,i.context=ao(e,o)),Fa(e,r,i,n),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(pl(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&nu.enqueueReplaceState(i,i.state,null),Fa(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var ds=Array.isArray;function Mo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(se(309));var n=r.stateNode}if(!n)throw Error(se(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=n.refs;a===Vm&&(a=n.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(se(284));if(!r._owner)throw Error(se(290,e))}return e}function hs(e,t){if(e.type!=="textarea")throw Error(se(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function zm(e){function t(g,x){if(e){var w=g.lastEffect;w!==null?(w.nextEffect=x,g.lastEffect=x):g.firstEffect=g.lastEffect=x,x.nextEffect=null,x.flags=8}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function i(g,x){return g=Pn(g,x),g.index=0,g.sibling=null,g}function o(g,x,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<x?(g.flags=2,x):w):(g.flags=2,x)):x}function a(g){return e&&g.alternate===null&&(g.flags=2),g}function s(g,x,w,y){return x===null||x.tag!==6?(x=sc(w,g.mode,y),x.return=g,x):(x=i(x,w),x.return=g,x)}function l(g,x,w,y){return x!==null&&x.elementType===w.type?(y=i(x,w.props),y.ref=Mo(g,x,w),y.return=g,y):(y=Qs(w.type,w.key,w.props,null,g.mode,y),y.ref=Mo(g,x,w),y.return=g,y)}function u(g,x,w,y){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=lc(w,g.mode,y),x.return=g,x):(x=i(x,w.children||[]),x.return=g,x)}function c(g,x,w,y,_){return x===null||x.tag!==7?(x=eo(w,g.mode,y,_),x.return=g,x):(x=i(x,w),x.return=g,x)}function f(g,x,w){if(typeof x=="string"||typeof x=="number")return x=sc(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Xo:return w=Qs(x.type,x.key,x.props,null,g.mode,w),w.ref=Mo(g,null,x),w.return=g,w;case Xn:return x=lc(x,g.mode,w),x.return=g,x}if(ds(x)||Po(x))return x=eo(x,g.mode,w,null),x.return=g,x;hs(g,x)}return null}function d(g,x,w,y){var _=x!==null?x.key:null;if(typeof w=="string"||typeof w=="number")return _!==null?null:s(g,x,""+w,y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Xo:return w.key===_?w.type===cn?c(g,x,w.props.children,y,_):l(g,x,w,y):null;case Xn:return w.key===_?u(g,x,w,y):null}if(ds(w)||Po(w))return _!==null?null:c(g,x,w,y,null);hs(g,w)}return null}function h(g,x,w,y,_){if(typeof y=="string"||typeof y=="number")return g=g.get(w)||null,s(x,g,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Xo:return g=g.get(y.key===null?w:y.key)||null,y.type===cn?c(x,g,y.props.children,_,y.key):l(x,g,y,_);case Xn:return g=g.get(y.key===null?w:y.key)||null,u(x,g,y,_)}if(ds(y)||Po(y))return g=g.get(w)||null,c(x,g,y,_,null);hs(x,y)}return null}function m(g,x,w,y){for(var _=null,N=null,M=x,S=x=0,C=null;M!==null&&S<w.length;S++){M.index>S?(C=M,M=null):C=M.sibling;var A=d(g,M,w[S],y);if(A===null){M===null&&(M=C);break}e&&M&&A.alternate===null&&t(g,M),x=o(A,x,S),N===null?_=A:N.sibling=A,N=A,M=C}if(S===w.length)return r(g,M),_;if(M===null){for(;S<w.length;S++)M=f(g,w[S],y),M!==null&&(x=o(M,x,S),N===null?_=M:N.sibling=M,N=M);return _}for(M=n(g,M);S<w.length;S++)C=h(M,g,S,w[S],y),C!==null&&(e&&C.alternate!==null&&M.delete(C.key===null?S:C.key),x=o(C,x,S),N===null?_=C:N.sibling=C,N=C);return e&&M.forEach(function(L){return t(g,L)}),_}function p(g,x,w,y){var _=Po(w);if(typeof _!="function")throw Error(se(150));if(w=_.call(w),w==null)throw Error(se(151));for(var N=_=null,M=x,S=x=0,C=null,A=w.next();M!==null&&!A.done;S++,A=w.next()){M.index>S?(C=M,M=null):C=M.sibling;var L=d(g,M,A.value,y);if(L===null){M===null&&(M=C);break}e&&M&&L.alternate===null&&t(g,M),x=o(L,x,S),N===null?_=L:N.sibling=L,N=L,M=C}if(A.done)return r(g,M),_;if(M===null){for(;!A.done;S++,A=w.next())A=f(g,A.value,y),A!==null&&(x=o(A,x,S),N===null?_=A:N.sibling=A,N=A);return _}for(M=n(g,M);!A.done;S++,A=w.next())A=h(M,g,S,A.value,y),A!==null&&(e&&A.alternate!==null&&M.delete(A.key===null?S:A.key),x=o(A,x,S),N===null?_=A:N.sibling=A,N=A);return e&&M.forEach(function(H){return t(g,H)}),_}return function(g,x,w,y){var _=typeof w=="object"&&w!==null&&w.type===cn&&w.key===null;_&&(w=w.props.children);var N=typeof w=="object"&&w!==null;if(N)switch(w.$$typeof){case Xo:e:{for(N=w.key,_=x;_!==null;){if(_.key===N){switch(_.tag){case 7:if(w.type===cn){r(g,_.sibling),x=i(_,w.props.children),x.return=g,g=x;break e}break;default:if(_.elementType===w.type){r(g,_.sibling),x=i(_,w.props),x.ref=Mo(g,_,w),x.return=g,g=x;break e}}r(g,_);break}else t(g,_);_=_.sibling}w.type===cn?(x=eo(w.props.children,g.mode,y,w.key),x.return=g,g=x):(y=Qs(w.type,w.key,w.props,null,g.mode,y),y.ref=Mo(g,x,w),y.return=g,g=y)}return a(g);case Xn:e:{for(_=w.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){r(g,x.sibling),x=i(x,w.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=lc(w,g.mode,y),x.return=g,g=x}return a(g)}if(typeof w=="string"||typeof w=="number")return w=""+w,x!==null&&x.tag===6?(r(g,x.sibling),x=i(x,w),x.return=g,g=x):(r(g,x),x=sc(w,g.mode,y),x.return=g,g=x),a(g);if(ds(w))return m(g,x,w,y);if(Po(w))return p(g,x,w,y);if(N&&hs(g,w),typeof w>"u"&&!_)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(se(152,Gi(g.type)||"Component"))}return r(g,x)}}var gl=zm(!0),Gm=zm(!1),ja={},Ir=Mn(ja),Da=Mn(ja),Pa=Mn(ja);function qn(e){if(e===ja)throw Error(se(174));return e}function ff(e,t){switch(tt(Pa,t),tt(Da,e),tt(Ir,ja),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kc(t,e)}Xe(Ir),tt(Ir,t)}function lo(){Xe(Ir),Xe(Da),Xe(Pa)}function up(e){qn(Pa.current);var t=qn(Ir.current),r=Kc(t,e.type);t!==r&&(tt(Da,e),tt(Ir,r))}function j0(e){Da.current===e&&(Xe(Ir),Xe(Da))}var et=Mn(0);function ml(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)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 Wr=null,hn=null,br=!1;function jm(e,t){var r=lr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function cp(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function df(e){if(br){var t=hn;if(t){var r=t;if(!cp(e,t)){if(t=Yi(r.nextSibling),!t||!cp(e,t)){e.flags=e.flags&-1025|2,br=!1,Wr=e;return}jm(Wr,r)}Wr=e,hn=Yi(t.firstChild)}else e.flags=e.flags&-1025|2,br=!1,Wr=e}}function fp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wr=e}function ps(e){if(e!==Wr)return!1;if(!br)return fp(e),br=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!af(t,e.memoizedProps))for(t=hn;t;)jm(e,t),t=Yi(t.nextSibling);if(fp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(se(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){hn=Yi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}hn=null}}else hn=Wr?Yi(e.stateNode.nextSibling):null;return!0}function nc(){hn=Wr=null,br=!1}var Qi=[];function X0(){for(var e=0;e<Qi.length;e++)Qi[e]._workInProgressVersionPrimary=null;Qi.length=0}var aa=ui.ReactCurrentDispatcher,ur=ui.ReactCurrentBatchConfig,Ia=0,nt=null,At=null,vt=null,vl=!1,sa=!1;function Ut(){throw Error(se(321))}function K0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sr(e[r],t[r]))return!1;return!0}function Y0(e,t,r,n,i,o){if(Ia=o,nt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,aa.current=e===null||e.memoizedState===null?n_:i_,e=r(n,i),sa){o=0;do{if(sa=!1,!(25>o))throw Error(se(301));o+=1,vt=At=null,t.updateQueue=null,aa.current=o_,e=r(n,i)}while(sa)}if(aa.current=El,t=At!==null&&At.next!==null,Ia=0,vt=At=nt=null,vl=!1,t)throw Error(se(300));return e}function Qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?nt.memoizedState=vt=e:vt=vt.next=e,vt}function fi(){if(At===null){var e=nt.alternate;e=e!==null?e.memoizedState:null}else e=At.next;var t=vt===null?nt.memoizedState:vt.next;if(t!==null)vt=t,At=e;else{if(e===null)throw Error(se(310));At=e,e={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},vt===null?nt.memoizedState=vt=e:vt=vt.next=e}return vt}function Dr(e,t){return typeof t=="function"?t(e):t}function Lo(e){var t=fi(),r=t.queue;if(r===null)throw Error(se(311));r.lastRenderedReducer=e;var n=At,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,l=i;do{var u=l.lane;if((Ia&u)===u)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),n=l.eagerReducer===e?l.eagerState:e(n,l.action);else{var c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,nt.lanes|=u,Xa|=u}l=l.next}while(l!==null&&l!==i);s===null?o=n:s.next=a,sr(n,t.memoizedState)||(_r=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Bo(e){var t=fi(),r=t.queue;if(r===null)throw Error(se(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);sr(o,t.memoizedState)||(_r=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function dp(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(Ia&e)===e)&&(t._workInProgressVersionPrimary=n,Qi.push(t))),e)return r(t._source);throw Qi.push(t),Error(se(350))}function Xm(e,t,r,n){var i=Mt;if(i===null)throw Error(se(349));var o=t._getVersion,a=o(t._source),s=aa.current,l=s.useState(function(){return dp(i,t,r)}),u=l[1],c=l[0];l=vt;var f=e.memoizedState,d=f.refs,h=d.getSnapshot,m=f.source;f=f.subscribe;var p=nt;return e.memoizedState={refs:d,source:t,subscribe:n},s.useEffect(function(){d.getSnapshot=r,d.setSnapshot=u;var g=o(t._source);if(!sr(a,g)){g=r(t._source),sr(c,g)||(u(g),g=_n(p),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var x=i.entanglements,w=g;0<w;){var y=31-On(w),_=1<<y;x[y]|=g,w&=~_}}},[r,t,n]),s.useEffect(function(){return n(t._source,function(){var g=d.getSnapshot,x=d.setSnapshot;try{x(g(t._source));var w=_n(p);i.mutableReadLanes|=w&i.pendingLanes}catch(y){x(function(){throw y})}})},[t,n]),sr(h,r)&&sr(m,t)&&sr(f,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Dr,lastRenderedState:c},e.dispatch=u=Z0.bind(null,nt,e),l.queue=e,l.baseQueue=null,c=dp(i,t,r),l.memoizedState=l.baseState=c),c}function Km(e,t,r){var n=fi();return Xm(n,e,t,r)}function Uo(e){var t=Qn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Dr,lastRenderedState:e},e=e.dispatch=Z0.bind(null,nt,e),[t.memoizedState,e]}function xl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=nt.updateQueue,t===null?(t={lastEffect:null},nt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function hp(e){var t=Qn();return e={current:e},t.memoizedState=e}function wl(){return fi().memoizedState}function hf(e,t,r,n){var i=Qn();nt.flags|=e,i.memoizedState=xl(1|t,r,void 0,n===void 0?null:n)}function q0(e,t,r,n){var i=fi();n=n===void 0?null:n;var o=void 0;if(At!==null){var a=At.memoizedState;if(o=a.destroy,n!==null&&K0(n,a.deps)){xl(t,r,o,n);return}}nt.flags|=e,i.memoizedState=xl(1|t,r,o,n)}function pp(e,t){return hf(516,4,e,t)}function yl(e,t){return q0(516,4,e,t)}function Ym(e,t){return q0(4,2,e,t)}function qm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qm(e,t,r){return r=r!=null?r.concat([e]):null,q0(4,2,qm.bind(null,t,e),r)}function Q0(){}function Zm(e,t){var r=fi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&K0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Jm(e,t){var r=fi();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&K0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function r_(e,t){var r=so();ti(98>r?98:r,function(){e(!0)}),ti(97<r?97:r,function(){var n=ur.transition;ur.transition=1;try{e(!1),t()}finally{ur.transition=n}})}function Z0(e,t,r){var n=Zt(),i=_n(e),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===nt||a!==null&&a===nt)sa=vl=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,r);if(o.eagerReducer=a,o.eagerState=l,sr(l,s))return}catch{}finally{}Sn(e,i,n)}}var El={readContext:cr,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useMutableSource:Ut,useOpaqueIdentifier:Ut,unstable_isNewReconciler:!1},n_={readContext:cr,useCallback:function(e,t){return Qn().memoizedState=[e,t===void 0?null:t],e},useContext:cr,useEffect:pp,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,hf(4,2,qm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return hf(4,2,e,t)},useMemo:function(e,t){var r=Qn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Qn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Z0.bind(null,nt,e),[n.memoizedState,e]},useRef:hp,useState:Uo,useDebugValue:Q0,useDeferredValue:function(e){var t=Uo(e),r=t[0],n=t[1];return pp(function(){var i=ur.transition;ur.transition=1;try{n(e)}finally{ur.transition=i}},[e]),r},useTransition:function(){var e=Uo(!1),t=e[0];return e=r_.bind(null,e[1]),hp(e),[e,t]},useMutableSource:function(e,t,r){var n=Qn();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},Xm(n,e,t,r)},useOpaqueIdentifier:function(){if(br){var e=!1,t=qE(function(){throw e||(e=!0,r("r:"+(ec++).toString(36))),Error(se(355))}),r=Uo(t)[1];return!(nt.mode&2)&&(nt.flags|=516,xl(5,function(){r("r:"+(ec++).toString(36))},void 0,null)),t}return t="r:"+(ec++).toString(36),Uo(t),t},unstable_isNewReconciler:!1},i_={readContext:cr,useCallback:Zm,useContext:cr,useEffect:yl,useImperativeHandle:Qm,useLayoutEffect:Ym,useMemo:Jm,useReducer:Lo,useRef:wl,useState:function(){return Lo(Dr)},useDebugValue:Q0,useDeferredValue:function(e){var t=Lo(Dr),r=t[0],n=t[1];return yl(function(){var i=ur.transition;ur.transition=1;try{n(e)}finally{ur.transition=i}},[e]),r},useTransition:function(){var e=Lo(Dr)[0];return[wl().current,e]},useMutableSource:Km,useOpaqueIdentifier:function(){return Lo(Dr)[0]},unstable_isNewReconciler:!1},o_={readContext:cr,useCallback:Zm,useContext:cr,useEffect:yl,useImperativeHandle:Qm,useLayoutEffect:Ym,useMemo:Jm,useReducer:Bo,useRef:wl,useState:function(){return Bo(Dr)},useDebugValue:Q0,useDeferredValue:function(e){var t=Bo(Dr),r=t[0],n=t[1];return yl(function(){var i=ur.transition;ur.transition=1;try{n(e)}finally{ur.transition=i}},[e]),r},useTransition:function(){var e=Bo(Dr)[0];return[wl().current,e]},useMutableSource:Km,useOpaqueIdentifier:function(){return Bo(Dr)[0]},unstable_isNewReconciler:!1},a_=ui.ReactCurrentOwner,_r=!1;function Ht(e,t,r,n){t.child=e===null?Gm(t,null,r,n):gl(t,e.child,r,n)}function gp(e,t,r,n,i){r=r.render;var o=t.ref;return qi(t,i),n=Y0(e,t,r,n,o,i),e!==null&&!_r?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,zr(e,t,i)):(t.flags|=1,Ht(e,t,n,i),t.child)}function mp(e,t,r,n,i,o){if(e===null){var a=r.type;return typeof a=="function"&&!id(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,ev(e,t,a,n,i,o)):(e=Qs(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(i&o)&&(i=a.memoizedProps,r=r.compare,r=r!==null?r:Aa,r(i,n)&&e.ref===t.ref)?zr(e,t,o):(t.flags|=1,e=Pn(a,n),e.ref=t.ref,e.return=t,t.child=e)}function ev(e,t,r,n,i,o){if(e!==null&&Aa(e.memoizedProps,n)&&e.ref===t.ref)if(_r=!1,(o&i)!==0)e.flags&16384&&(_r=!0);else return t.lanes=e.lanes,zr(e,t,o);return pf(e,t,r,n,o)}function ic(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},ms(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},ms(t,o!==null?o.baseLanes:r);else return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ms(t,n);return Ht(e,t,i,r),t.child}function tv(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function pf(e,t,r,n,i){var o=zt(r)?ei:Pt.current;return o=ao(t,o),qi(t,i),r=Y0(e,t,r,n,o,i),e!==null&&!_r?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,zr(e,t,i)):(t.flags|=1,Ht(e,t,r,i),t.child)}function vp(e,t,r,n,i){if(zt(r)){var o=!0;js(t)}else o=!1;if(qi(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Wm(t,r,n),cf(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=cr(u):(u=zt(r)?ei:Pt.current,u=ao(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==u)&&lp(t,a,n,u),ln=!1;var d=t.memoizedState;a.state=d,Fa(t,n,a,i),l=t.memoizedState,s!==n||d!==l||Wt.current||ln?(typeof c=="function"&&(pl(t,r,c,n),l=t.memoizedState),(s=ln||sp(t,r,s,n,d,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{a=t.stateNode,Hm(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:wr(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=cr(l):(l=zt(r)?ei:Pt.current,l=ao(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&lp(t,a,n,l),ln=!1,d=t.memoizedState,a.state=d,Fa(t,n,a,i);var m=t.memoizedState;s!==f||d!==m||Wt.current||ln?(typeof h=="function"&&(pl(t,r,h,n),m=t.memoizedState),(u=ln||sp(t,r,u,n,d,m,l))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=m),a.props=n,a.state=m,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),n=!1)}return gf(e,t,r,n,o,i)}function gf(e,t,r,n,i,o){tv(e,t);var a=(t.flags&64)!==0;if(!n&&!a)return i&&rp(t,r,!1),zr(e,t,o);n=t.stateNode,a_.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=gl(t,e.child,null,o),t.child=gl(t,null,s,o)):Ht(e,t,s,o),t.memoizedState=n.state,i&&rp(t,r,!0),t.child}function xp(e){var t=e.stateNode;t.pendingContext?tp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tp(e,t.context,!1),ff(e,t.containerInfo)}var gs={dehydrated:null,retryLane:0};function wp(e,t,r){var n=t.pendingProps,i=et.current,o=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),tt(et,i&1),e===null?(n.fallback!==void 0&&df(t),e=n.children,i=n.fallback,o?(e=yp(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=gs,e):typeof n.unstable_expectedLoadTime=="number"?(e=yp(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=gs,t.lanes=33554432,e):(r=od({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?o?(n=_p(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=gs,n):(r=Ep(e,t,n.children,r),t.memoizedState=null,r):o?(n=_p(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=gs,n):(r=Ep(e,t,n.children,r),t.memoizedState=null,r)}function yp(e,t,r,n){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=od(t,i,0,null),r=eo(r,i,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function Ep(e,t,r,n){var i=e.child;return e=i.sibling,r=Pn(i,{mode:"visible",children:r}),!(t.mode&2)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function _p(e,t,r,n,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:r};return!(o&2)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=s,a=r.lastEffect,a!==null?(t.firstEffect=r.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Pn(a,s),e!==null?n=Pn(e,n):(n=eo(n,o,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function Sp(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Um(e.return,t)}function oc(e,t,r,n,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i,a.lastEffect=o)}function Tp(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Ht(e,t,n.children,r),n=et.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sp(e,r);else if(e.tag===19)Sp(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(tt(et,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&ml(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),oc(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ml(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}oc(t,!0,r,null,o,t.lastEffect);break;case"together":oc(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function zr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Xa|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(se(153));if(t.child!==null){for(e=t.child,r=Pn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Pn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var rv,mf,nv,iv;rv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};mf=function(){};nv=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,qn(Ir.current);var o=null;switch(r){case"input":i=Vc(e,i),n=Vc(e,n),o=[];break;case"option":i=Gc(e,i),n=Gc(e,n),o=[];break;case"select":i=Ye({},i,{value:void 0}),n=Ye({},n,{value:void 0}),o=[];break;case"textarea":i=jc(e,i),n=jc(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ll)}Yc(r,n);var a;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(wa.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(wa.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&je("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===C0?l.toString():(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};iv=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ho(e,t){if(!br)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function s_(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return zt(t.type)&&cl(),null;case 3:return lo(),Xe(Wt),Xe(Pt),X0(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ps(t)?t.flags|=4:n.hydrate||(t.flags|=256)),mf(t),null;case 5:j0(t);var i=qn(Pa.current);if(r=t.type,e!==null&&t.stateNode!=null)nv(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(se(166));return null}if(e=qn(Ir.current),ps(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[dn]=t,n[ul]=o,r){case"dialog":je("cancel",n),je("close",n);break;case"iframe":case"object":case"embed":je("load",n);break;case"video":case"audio":for(e=0;e<Yo.length;e++)je(Yo[e],n);break;case"source":je("error",n);break;case"img":case"image":case"link":je("error",n),je("load",n);break;case"details":je("toggle",n);break;case"input":Th(n,o),je("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},je("invalid",n);break;case"textarea":Ah(n,o),je("invalid",n)}Yc(r,o),e=null;for(var a in o)o.hasOwnProperty(a)&&(i=o[a],a==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):wa.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&je("scroll",n));switch(r){case"input":ls(n),Ch(n,o,!0);break;case"textarea":ls(n),Rh(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=ll)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Xc.html&&(e=Q1(r)),e===Xc.html?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[dn]=t,e[ul]=n,rv(e,t,!1,!1),t.stateNode=e,a=qc(r,n),r){case"dialog":je("cancel",e),je("close",e),i=n;break;case"iframe":case"object":case"embed":je("load",e),i=n;break;case"video":case"audio":for(i=0;i<Yo.length;i++)je(Yo[i],e);i=n;break;case"source":je("error",e),i=n;break;case"img":case"image":case"link":je("error",e),je("load",e),i=n;break;case"details":je("toggle",e),i=n;break;case"input":Th(e,n),i=Vc(e,n),je("invalid",e);break;case"option":i=Gc(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ye({},n,{value:void 0}),je("invalid",e);break;case"textarea":Ah(e,n),i=jc(e,n),je("invalid",e);break;default:i=n}Yc(r,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?em(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Z1(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ya(e,l):typeof l=="number"&&ya(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(wa.hasOwnProperty(o)?l!=null&&o==="onScroll"&&je("scroll",e):l!=null&&w0(e,o,l,a))}switch(r){case"input":ls(e),Ch(e,n,!1);break;case"textarea":ls(e),Rh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Rn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?ji(e,!!n.multiple,o,!1):n.defaultValue!=null&&ji(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ll)}Pm(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)iv(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(se(166));r=qn(Pa.current),qn(Ir.current),ps(t)?(n=t.stateNode,r=t.memoizedProps,n[dn]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[dn]=t,t.stateNode=n)}return null;case 13:return Xe(et),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&ps(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||et.current&1?xt===0&&(xt=3):((xt===0||xt===3)&&(xt=4),Mt===null||!(Xa&134217727)&&!(xo&134217727)||Zi(Mt,Ot))),(n||r)&&(t.flags|=4),null);case 4:return lo(),mf(t),e===null&&Om(t.stateNode.containerInfo),null;case 10:return z0(t),null;case 17:return zt(t.type)&&cl(),null;case 19:if(Xe(et),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!==0,a=n.rendering,a===null)if(o)Ho(n,!1);else{if(xt!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=ml(e),a!==null){for(t.flags|=64,Ho(n,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return tt(et,et.current&1|2),t.child}e=e.sibling}n.tail!==null&&Rt()>_f&&(t.flags|=64,o=!0,Ho(n,!1),t.lanes=33554432)}else{if(!o)if(e=ml(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ho(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!br)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Rt()-n.renderingStartTime>_f&&r!==1073741824&&(t.flags|=64,o=!0,Ho(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Rt(),r.sibling=null,t=et.current,tt(et,o?t&1|2:t&1),r):null;case 23:case 24:return nd(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(se(156,t.tag))}function l_(e){switch(e.tag){case 1:zt(e.type)&&cl();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(lo(),Xe(Wt),Xe(Pt),X0(),t=e.flags,t&64)throw Error(se(285));return e.flags=t&-4097|64,e;case 5:return j0(e),null;case 13:return Xe(et),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Xe(et),null;case 4:return lo(),null;case 10:return z0(e),null;case 23:case 24:return nd(),null;default:return null}}function J0(e,t){try{var r="",n=t;do r+=Vy(n),n=n.return;while(n);var i=r}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i}}function vf(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var u_=typeof WeakMap=="function"?WeakMap:Map;function ov(e,t,r){r=yn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Sl||(Sl=!0,Sf=n),vf(e,t)},r}function av(e,t,r){r=yn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return vf(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Pr===null?Pr=new Set([this]):Pr.add(this),vf(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var c_=typeof WeakSet=="function"?WeakSet:Set;function Cp(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Tn(e,r)}else t.current=null}function f_(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:wr(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&U0(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(se(163))}function d_(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(gv(r,e),y_(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:wr(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&ap(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}ap(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&Pm(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&cm(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(se(163))}function Ap(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=J1("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Rp(e,t){if(Zn&&typeof Zn.onCommitFiberUnmount=="function")try{Zn.onCommitFiberUnmount(H0,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)gv(t,r);else{n=t;try{i()}catch(o){Tn(n,o)}}r=r.next}while(r!==e)}break;case 1:if(Cp(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Tn(t,o)}break;case 5:Cp(t);break;case 4:sv(e,t)}}function Op(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Fp(e){return e.tag===5||e.tag===3||e.tag===4}function Dp(e){e:{for(var t=e.return;t!==null;){if(Fp(t))break e;t=t.return}throw Error(se(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(se(161))}r.flags&16&&(ya(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||Fp(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?xf(e,r,t):wf(e,r,t)}function xf(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ll));else if(n!==4&&(e=e.child,e!==null))for(xf(e,t,r),e=e.sibling;e!==null;)xf(e,t,r),e=e.sibling}function wf(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(wf(e,t,r),e=e.sibling;e!==null;)wf(e,t,r),e=e.sibling}function sv(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(se(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,l=s;;)if(Rp(a,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(Rp(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function ac(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[ul]=n,e==="input"&&n.type==="radio"&&n.name!=null&&Y1(r,n),qc(e,i),t=qc(e,n),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?em(r,s):a==="dangerouslySetInnerHTML"?Z1(r,s):a==="children"?ya(r,s):w0(r,a,s,t)}switch(e){case"input":Wc(r,n);break;case"textarea":q1(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,o=n.value,o!=null?ji(r,!!n.multiple,o,!1):e!==!!n.multiple&&(n.defaultValue!=null?ji(r,!!n.multiple,n.defaultValue,!0):ji(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(se(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,cm(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(rd=Rt(),Ap(t.child,!0)),Pp(t);return;case 19:Pp(t);return;case 17:return;case 23:case 24:Ap(t,t.memoizedState!==null);return}throw Error(se(163))}function Pp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new c_),t.forEach(function(n){var i=S_.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function h_(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var p_=Math.ceil,_l=ui.ReactCurrentDispatcher,ed=ui.ReactCurrentOwner,Ae=0,Mt=null,ut=null,Ot=0,ri=0,yf=Mn(0),xt=0,iu=null,vo=0,Xa=0,xo=0,td=0,Ef=null,rd=0,_f=1/0;function wo(){_f=Rt()+500}var we=null,Sl=!1,Sf=null,Pr=null,Dn=!1,la=null,qo=90,Tf=[],Cf=[],jr=null,ua=0,Af=null,Ks=-1,Vr=0,Ys=0,ca=null,qs=!1;function Zt(){return Ae&48?Rt():Ks!==-1?Ks:Ks=Rt()}function _n(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return so()===99?1:2;if(Vr===0&&(Vr=vo),t_.transition!==0){Ys!==0&&(Ys=Ef!==null?Ef.pendingLanes:0),e=Vr;var t=4186112&~Ys;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=so(),Ae&4&&e===98?e=al(12,Vr):(e=iE(e),e=al(e,Vr)),e}function Sn(e,t,r){if(50<ua)throw ua=0,Af=null,Error(se(185));if(e=ou(e,t),e===null)return null;Ql(e,t,r),e===Mt&&(xo|=t,xt===4&&Zi(e,Ot));var n=so();t===1?Ae&8&&!(Ae&48)?Rf(e):(fr(e,r),Ae===0&&(wo(),Nr())):(!(Ae&4)||n!==98&&n!==99||(jr===null?jr=new Set([e]):jr.add(e)),fr(e,r)),Ef=e}function ou(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function fr(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-On(a),l=1<<s,u=o[s];if(u===-1){if(!(l&n)||l&i){u=t,bi(l);var c=ze;o[s]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);a&=~l}if(n=Ta(e,e===Mt?Ot:0),t=ze,n===0)r!==null&&(r!==tc&&lf(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==tc&&lf(r)}t===15?(r=Rf.bind(null,e),Hr===null?(Hr=[r],Xs=V0(ru,Bm)):Hr.push(r),r=tc):t===14?r=Oa(99,Rf.bind(null,e)):(r=oE(t),r=Oa(r,lv.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function lv(e){if(Ks=-1,Ys=Vr=0,Ae&48)throw Error(se(327));var t=e.callbackNode;if(Ln()&&e.callbackNode!==t)return null;var r=Ta(e,e===Mt?Ot:0);if(r===0)return null;var n=r,i=Ae;Ae|=16;var o=dv();(Mt!==e||Ot!==n)&&(wo(),Ji(e,n));do try{v_();break}catch(s){fv(e,s)}while(1);if(W0(),_l.current=o,Ae=i,ut!==null?n=0:(Mt=null,Ot=0,n=xt),vo&xo)Ji(e,0);else if(n!==0){if(n===2&&(Ae|=64,e.hydrate&&(e.hydrate=!1,U0(e.containerInfo)),r=vm(e),r!==0&&(n=Qo(e,r))),n===1)throw t=iu,Ji(e,0),Zi(e,r),fr(e,Rt()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(se(345));case 2:Vn(e);break;case 3:if(Zi(e,r),(r&62914560)===r&&(n=rd+500-Rt(),10<n)){if(Ta(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Zt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Zh(Vn.bind(null,e),n);break}Vn(e);break;case 4:if(Zi(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var a=31-On(r);o=1<<a,a=n[a],a>i&&(i=a),r&=~o}if(r=i,r=Rt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p_(r/1960))-r,10<r){e.timeoutHandle=Zh(Vn.bind(null,e),r);break}Vn(e);break;case 5:Vn(e);break;default:throw Error(se(329))}}return fr(e,Rt()),e.callbackNode===t?lv.bind(null,e):null}function Zi(e,t){for(t&=~td,t&=~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-On(t),n=1<<r;e[r]=-1,t&=~n}}function Rf(e){if(Ae&48)throw Error(se(327));if(Ln(),e===Mt&&e.expiredLanes&Ot){var t=Ot,r=Qo(e,t);vo&xo&&(t=Ta(e,t),r=Qo(e,t))}else t=Ta(e,0),r=Qo(e,t);if(e.tag!==0&&r===2&&(Ae|=64,e.hydrate&&(e.hydrate=!1,U0(e.containerInfo)),t=vm(e),t!==0&&(r=Qo(e,t))),r===1)throw r=iu,Ji(e,0),Zi(e,t),fr(e,Rt()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Vn(e),fr(e,Rt()),null}function g_(){if(jr!==null){var e=jr;jr=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,fr(t,Rt())})}Nr()}function uv(e,t){var r=Ae;Ae|=1;try{return e(t)}finally{Ae=r,Ae===0&&(wo(),Nr())}}function cv(e,t){var r=Ae;Ae&=-2,Ae|=8;try{return e(t)}finally{Ae=r,Ae===0&&(wo(),Nr())}}function ms(e,t){tt(yf,ri),ri|=t,vo|=t}function nd(){ri=yf.current,Xe(yf)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,YE(r)),ut!==null)for(r=ut.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&cl();break;case 3:lo(),Xe(Wt),Xe(Pt),X0();break;case 5:j0(n);break;case 4:lo();break;case 13:Xe(et);break;case 19:Xe(et);break;case 10:z0(n);break;case 23:case 24:nd()}r=r.return}Mt=e,ut=Pn(e.current,null),Ot=ri=vo=t,xt=0,iu=null,td=xo=Xa=0}function fv(e,t){do{var r=ut;try{if(W0(),aa.current=El,vl){for(var n=nt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}vl=!1}if(Ia=0,vt=At=nt=null,sa=!1,ed.current=null,r===null||r.return===null){xt=1,iu=t,ut=null;break}e:{var o=e,a=r.return,s=r,l=t;if(t=Ot,s.flags|=2048,s.firstEffect=s.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l;if(!(s.mode&2)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=(et.current&1)!==0,d=a;do{var h;if(h=d.tag===13){var m=d.memoizedState;if(m!==null)h=m.dehydrated!==null;else{var p=d.memoizedProps;h=p.fallback===void 0?!1:p.unstable_avoidThisFallback!==!0?!0:!f}}if(h){var g=d.updateQueue;if(g===null){var x=new Set;x.add(u),d.updateQueue=x}else g.add(u);if(!(d.mode&2)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var w=yn(-1,1);w.tag=2,En(s,w)}s.lanes|=1;break e}l=void 0,s=t;var y=o.pingCache;if(y===null?(y=o.pingCache=new u_,l=new Set,y.set(u,l)):(l=y.get(u),l===void 0&&(l=new Set,y.set(u,l))),!l.has(s)){l.add(s);var _=__.bind(null,o,u,s);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(d!==null);l=Error((Gi(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}xt!==5&&(xt=2),l=J0(l,s),d=a;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t;var N=ov(d,o,t);op(d,N);break e;case 1:o=l;var M=d.type,S=d.stateNode;if(!(d.flags&64)&&(typeof M.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Pr===null||!Pr.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t;var C=av(d,o,t);op(d,C);break e}}d=d.return}while(d!==null)}pv(r)}catch(A){t=A,ut===r&&r!==null&&(ut=r=r.return);continue}break}while(1)}function dv(){var e=_l.current;return _l.current=El,e===null?El:e}function Qo(e,t){var r=Ae;Ae|=16;var n=dv();Mt===e&&Ot===t||Ji(e,t);do try{m_();break}catch(i){fv(e,i)}while(1);if(W0(),Ae=r,_l.current=n,ut!==null)throw Error(se(261));return Mt=null,Ot=0,xt}function m_(){for(;ut!==null;)hv(ut)}function v_(){for(;ut!==null&&!ZE();)hv(ut)}function hv(e){var t=mv(e.alternate,e,ri);e.memoizedProps=e.pendingProps,t===null?pv(e):ut=t,ed.current=null}function pv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=l_(t),r!==null){r.flags&=2047,ut=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=s_(r,t,ri),r!==null){ut=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||ri&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){ut=t;return}ut=t=e}while(t!==null);xt===0&&(xt=5)}function Vn(e){var t=so();return ti(99,x_.bind(null,e,t)),null}function x_(e,t){do Ln();while(la!==null);if(Ae&48)throw Error(se(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(se(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-On(o),u=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~u}if(jr!==null&&!(n&24)&&jr.has(e)&&jr.delete(e),e===Mt&&(ut=Mt=null,Ot=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=Ae,Ae|=32,ed.current=null,Zu=Ws,a=Gh(),rf(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&u.rangeCount!==0){s=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{s.nodeType,l.nodeType}catch{s=null;break e}var c=0,f=-1,d=-1,h=0,m=0,p=a,g=null;t:for(;;){for(var x;p!==s||o!==0&&p.nodeType!==3||(f=c+o),p!==l||u!==0&&p.nodeType!==3||(d=c+u),p.nodeType===3&&(c+=p.nodeValue.length),(x=p.firstChild)!==null;)g=p,p=x;for(;;){if(p===a)break t;if(g===s&&++h===o&&(f=c),g===l&&++m===u&&(d=c),(x=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=x}s=f===-1||d===-1?null:{start:f,end:d}}else s=null;s=s||{start:0,end:0}}else s=null;Ju={focusedElem:a,selectionRange:s},Ws=!1,ca=null,qs=!1,we=n;do try{w_()}catch(A){if(we===null)throw Error(se(330));Tn(we,A),we=we.nextEffect}while(we!==null);ca=null,we=n;do try{for(a=e;we!==null;){var w=we.flags;if(w&16&&ya(we.stateNode,""),w&128){var y=we.alternate;if(y!==null){var _=y.ref;_!==null&&(typeof _=="function"?_(null):_.current=null)}}switch(w&1038){case 2:Dp(we),we.flags&=-3;break;case 6:Dp(we),we.flags&=-3,ac(we.alternate,we);break;case 1024:we.flags&=-1025;break;case 1028:we.flags&=-1025,ac(we.alternate,we);break;case 4:ac(we.alternate,we);break;case 8:s=we,sv(a,s);var N=s.alternate;Op(s),N!==null&&Op(N)}we=we.nextEffect}}catch(A){if(we===null)throw Error(se(330));Tn(we,A),we=we.nextEffect}while(we!==null);if(_=Ju,y=Gh(),w=_.focusedElem,a=_.selectionRange,y!==w&&w&&w.ownerDocument&&Cm(w.ownerDocument.documentElement,w)){for(a!==null&&rf(w)&&(y=a.start,_=a.end,_===void 0&&(_=y),"selectionStart"in w?(w.selectionStart=y,w.selectionEnd=Math.min(_,w.value.length)):(_=(y=w.ownerDocument||document)&&y.defaultView||window,_.getSelection&&(_=_.getSelection(),s=w.textContent.length,N=Math.min(a.start,s),a=a.end===void 0?N:Math.min(a.end,s),!_.extend&&N>a&&(s=a,a=N,N=s),s=zh(w,N),o=zh(w,a),s&&o&&(_.rangeCount!==1||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(s.node,s.offset),_.removeAllRanges(),N>a?(_.addRange(y),_.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),_.addRange(y)))))),y=[],_=w;_=_.parentNode;)_.nodeType===1&&y.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<y.length;w++)_=y[w],_.element.scrollLeft=_.left,_.element.scrollTop=_.top}Ws=!!Zu,Ju=Zu=null,e.current=r,we=n;do try{for(w=e;we!==null;){var M=we.flags;if(M&36&&d_(w,we.alternate,we),M&128){y=void 0;var S=we.ref;if(S!==null){var C=we.stateNode;switch(we.tag){case 5:y=C;break;default:y=C}typeof S=="function"?S(y):S.current=y}}we=we.nextEffect}}catch(A){if(we===null)throw Error(se(330));Tn(we,A),we=we.nextEffect}while(we!==null);we=null,e_(),Ae=i}else e.current=r;if(Dn)Dn=!1,la=e,qo=t;else for(we=n;we!==null;)t=we.nextEffect,we.nextEffect=null,we.flags&8&&(M=we,M.sibling=null,M.stateNode=null),we=t;if(n=e.pendingLanes,n===0&&(Pr=null),n===1?e===Af?ua++:(ua=0,Af=e):ua=0,r=r.stateNode,Zn&&typeof Zn.onCommitFiberRoot=="function")try{Zn.onCommitFiberRoot(H0,r,void 0,(r.current.flags&64)===64)}catch{}if(fr(e,Rt()),Sl)throw Sl=!1,e=Sf,Sf=null,e;return Ae&8||Nr(),null}function w_(){for(;we!==null;){var e=we.alternate;qs||ca===null||(we.flags&8?Dh(we,ca)&&(qs=!0):we.tag===13&&h_(e,we)&&Dh(we,ca)&&(qs=!0));var t=we.flags;t&256&&f_(e,we),!(t&512)||Dn||(Dn=!0,Oa(97,function(){return Ln(),null})),we=we.nextEffect}}function Ln(){if(qo!==90){var e=97<qo?97:qo;return qo=90,ti(e,E_)}return!1}function y_(e,t){Tf.push(t,e),Dn||(Dn=!0,Oa(97,function(){return Ln(),null}))}function gv(e,t){Cf.push(t,e),Dn||(Dn=!0,Oa(97,function(){return Ln(),null}))}function E_(){if(la===null)return!1;var e=la;if(la=null,Ae&48)throw Error(se(331));var t=Ae;Ae|=32;var r=Cf;Cf=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(l){if(o===null)throw Error(se(330));Tn(o,l)}}for(r=Tf,Tf=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var s=i.create;i.destroy=s()}catch(l){if(o===null)throw Error(se(330));Tn(o,l)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return Ae=t,Nr(),!0}function Ip(e,t,r){t=J0(r,t),t=ov(e,t,1),En(e,t),t=Zt(),e=ou(e,1),e!==null&&(Ql(e,1,t),fr(e,t))}function Tn(e,t){if(e.tag===3)Ip(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){Ip(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Pr===null||!Pr.has(n))){e=J0(t,e);var i=av(r,e,1);if(En(r,i),i=Zt(),r=ou(r,1),r!==null)Ql(r,1,i),fr(r,i);else if(typeof n.componentDidCatch=="function"&&(Pr===null||!Pr.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function __(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Zt(),e.pingedLanes|=e.suspendedLanes&r,Mt===e&&(Ot&r)===r&&(xt===4||xt===3&&(Ot&62914560)===Ot&&500>Rt()-rd?Ji(e,0):td|=r),fr(e,t)}function S_(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Vr===0&&(Vr=vo),t=ki(62914560&~Vr),t===0&&(t=4194304)):t=so()===99?1:2:t=1),r=Zt(),e=ou(e,t),e!==null&&(Ql(e,t,r),fr(e,r))}var mv;mv=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)_r=!0;else if(r&n)_r=!!(e.flags&16384);else{switch(_r=!1,t.tag){case 3:xp(t),nc();break;case 5:up(t);break;case 1:zt(t.type)&&js(t);break;case 4:ff(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;tt(fl,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?wp(e,t,r):(tt(et,et.current&1),t=zr(e,t,r),t!==null?t.sibling:null);tt(et,et.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return Tp(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),tt(et,et.current),n)break;return null;case 23:case 24:return t.lanes=0,ic(e,t,r)}return zr(e,t,r)}else _r=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=ao(t,Pt.current),qi(t,r),i=Y0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(n)){var o=!0;js(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,G0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&pl(t,n,a,e),i.updater=nu,t.stateNode=i,i._reactInternals=t,cf(t,n,e,r),t=gf(null,t,n,!0,o,r)}else t.tag=0,Ht(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=C_(i),e=wr(i,e),o){case 0:t=pf(null,t,i,e,r);break e;case 1:t=vp(null,t,i,e,r);break e;case 11:t=gp(null,t,i,e,r);break e;case 14:t=mp(null,t,i,wr(i.type,e),n,r);break e}throw Error(se(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:wr(n,i),pf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:wr(n,i),vp(e,t,n,i,r);case 3:if(xp(t),n=t.updateQueue,e===null||n===null)throw Error(se(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Hm(e,t),Fa(t,n,null,r),n=t.memoizedState.element,n===i)nc(),t=zr(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(hn=Yi(t.stateNode.containerInfo.firstChild),Wr=t,o=br=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Qi.push(o);for(r=Gm(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Ht(e,t,n,r),nc();t=t.child}return t;case 5:return up(t),e===null&&df(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,af(n,i)?a=null:o!==null&&af(n,o)&&(t.flags|=16),tv(e,t),Ht(e,t,a,r),t.child;case 6:return e===null&&df(t),null;case 13:return wp(e,t,r);case 4:return ff(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=gl(t,null,n,r):Ht(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:wr(n,i),gp(e,t,n,i,r);case 7:return Ht(e,t,t.pendingProps,r),t.child;case 8:return Ht(e,t,t.pendingProps.children,r),t.child;case 12:return Ht(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(tt(fl,s._currentValue),s._currentValue=o,a!==null)if(s=a.value,o=sr(s,o)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(s,o):1073741823)|0,o===0){if(a.children===i.children&&!Wt.current){t=zr(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var u=l.firstContext;u!==null;){if(u.context===n&&u.observedBits&o){s.tag===1&&(u=yn(-1,r&-r),u.tag=2,En(s,u)),s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),Um(s.return,r),l.lanes|=r;break}u=u.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Ht(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,n=o.children,qi(t,r),i=cr(i,o.unstable_observedBits),n=n(i),t.flags|=1,Ht(e,t,n,r),t.child;case 14:return i=t.type,o=wr(i,t.pendingProps),o=wr(i.type,o),mp(e,t,i,o,n,r);case 15:return ev(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:wr(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,zt(n)?(e=!0,js(t)):e=!1,qi(t,r),Wm(t,n,i),cf(t,n,i,r),gf(null,t,n,!0,e,r);case 19:return Tp(e,t,r);case 23:return ic(e,t,r);case 24:return ic(e,t,r)}throw Error(se(156,t.tag))};function T_(e,t,r,n){this.tag=e,this.key=r,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=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function lr(e,t,r,n){return new T_(e,t,r,n)}function id(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C_(e){if(typeof e=="function")return id(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kl)return 11;if(e===Yl)return 14}return 2}function Pn(e,t){var r=e.alternate;return r===null?(r=lr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Qs(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")id(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case cn:return eo(r.children,i,o,t);case j1:a=8,i|=16;break;case y0:a=8,i|=1;break;case Jo:return e=lr(12,r,t,i|8),e.elementType=Jo,e.type=Jo,e.lanes=o,e;case ea:return e=lr(13,r,t,i),e.type=ea,e.elementType=ea,e.lanes=o,e;case rl:return e=lr(19,r,t,i),e.elementType=rl,e.lanes=o,e;case A0:return od(r,i,o,t);case Hc:return e=lr(24,r,t,i),e.elementType=Hc,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E0:a=10;break e;case _0:a=9;break e;case Kl:a=11;break e;case Yl:a=14;break e;case S0:a=16,n=null;break e;case T0:a=22;break e}throw Error(se(130,e==null?e:typeof e,""))}return t=lr(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function eo(e,t,r,n){return e=lr(7,e,n,t),e.lanes=r,e}function od(e,t,r,n){return e=lr(23,e,n,t),e.elementType=A0,e.lanes=r,e}function sc(e,t,r){return e=lr(6,e,null,t),e.lanes=r,e}function lc(e,t,r){return t=lr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function A_(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Gu(0),this.expirationTimes=Gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.mutableSourceEagerHydrationData=null}function R_(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Tl(e,t,r,n){var i=t.current,o=Zt(),a=_n(i);e:if(r){r=r._reactInternals;t:{if(ci(r)!==r||r.tag!==1)throw Error(se(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(zt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(se(171))}if(r.tag===1){var l=r.type;if(zt(l)){r=bm(r,l,s);break e}}r=s}else r=Fn;return t.context===null?t.context=r:t.pendingContext=r,t=yn(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),En(i,t),Sn(i,a,o),a}function uc(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function ad(e,t){bp(e,t),(e=e.alternate)&&bp(e,t)}function O_(){return null}function sd(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new A_(e,t,r!=null&&r.hydrate===!0),t=lr(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,G0(t),e[mo]=r.current,Om(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}sd.prototype.render=function(e){Tl(e,this._internalRoot,null,null)};sd.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Tl(null,e,null,function(){t[mo]=null})};function Ka(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function F_(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new sd(e,0,t?{hydrate:!0}:void 0)}function au(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if(typeof i=="function"){var s=i;i=function(){var u=uc(a);s.call(u)}}Tl(t,a,e,i)}else{if(o=r._reactRootContainer=F_(r,n),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var u=uc(a);l.call(u)}}cv(function(){Tl(t,a,e,i)})}return uc(a)}sm=function(e){if(e.tag===13){var t=Zt();Sn(e,4,t),ad(e,4)}};P0=function(e){if(e.tag===13){var t=Zt();Sn(e,67108864,t),ad(e,67108864)}};lm=function(e){if(e.tag===13){var t=Zt(),r=_n(e);Sn(e,r,t),ad(e,r)}};um=function(e,t){return t()};Qc=function(e,t,r){switch(t){case"input":if(Wc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=tu(n);if(!i)throw Error(se(90));K1(n),Wc(n,i)}}}break;case"textarea":q1(e,r);break;case"select":t=r.value,t!=null&&ji(e,!!r.multiple,t,!1)}};O0=uv;nm=function(e,t,r,n,i){var o=Ae;Ae|=4;try{return ti(98,e.bind(null,t,r,n,i))}finally{Ae=o,Ae===0&&(wo(),Nr())}};F0=function(){!(Ae&49)&&(g_(),Ln())};im=function(e,t){var r=Ae;Ae|=2;try{return e(t)}finally{Ae=r,Ae===0&&(wo(),Nr())}};function vv(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ka(t))throw Error(se(200));return R_(e,t,null,r)}var D_={Events:[Ga,Bi,tu,tm,rm,Ln,{current:!1}]},Vo={findFiberByHostInstance:Yn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},P_={bundleType:Vo.bundleType,version:Vo.version,rendererPackageName:Vo.rendererPackageName,rendererConfig:Vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ui.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=am(e),e===null?null:e.stateNode},findFiberByHostInstance:Vo.findFiberByHostInstance||O_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{H0=vs.inject(P_),Zn=vs}catch{}}hr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D_;hr.createPortal=vv;hr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(se(188)):Error(se(268,Object.keys(e)));return e=am(t),e=e===null?null:e.stateNode,e};hr.flushSync=function(e,t){var r=Ae;if(r&48)return e(t);Ae|=1;try{if(e)return ti(99,e.bind(null,t))}finally{Ae=r,Nr()}};hr.hydrate=function(e,t,r){if(!Ka(t))throw Error(se(200));return au(null,e,t,!0,r)};hr.render=function(e,t,r){if(!Ka(t))throw Error(se(200));return au(null,e,t,!1,r)};hr.unmountComponentAtNode=function(e){if(!Ka(e))throw Error(se(40));return e._reactRootContainer?(cv(function(){au(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0):!1};hr.unstable_batchedUpdates=uv;hr.unstable_createPortal=function(e,t){return vv(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};hr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ka(r))throw Error(se(200));if(e==null||e._reactInternals===void 0)throw Error(se(38));return au(e,t,r,!1,n)};hr.version="17.0.2";function xv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xv)}catch(e){console.error(e)}}xv(),V1.exports=hr;var di=V1.exports;const wv=Ha(di);/**
* 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 pn(e,t){return typeof e=="function"?e(t):e}function dr(e,t){return r=>{t.setState(n=>({...n,[e]:pn(r,n[e])}))}}function Cl(e){return e instanceof Function}function I_(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function b_(e,t){const r=[],n=i=>{i.forEach(o=>{r.push(o);const a=t(o);a!=null&&a.length&&n(a)})};return n(e),r}function Re(e,t,r){let n=[],i;return()=>{let o;r.key&&r.debug&&(o=Date.now());const a=e();if(!(a.length!==n.length||a.some((u,c)=>n[c]!==u)))return i;n=a;let l;if(r.key&&r.debug&&(l=Date.now()),i=t(...a),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const u=Math.round((Date.now()-o)*100)/100,c=Math.round((Date.now()-l)*100)/100,f=c/16,d=(h,m)=>{for(h=String(h);h.length<m;)h=" "+h;return h};console.info(`%c⏱ ${d(c,5)} /${d(u,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,r==null?void 0:r.key)}return i}}function k_(e,t,r,n){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=d=>{let h=d;for(const p of l.split(".")){var m;h=(m=h)==null?void 0:m[p]}return h}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:Re(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:Re(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let m=f.columns.flatMap(p=>p.getLeafColumns());return d(m)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};return f=e._features.reduce((d,h)=>Object.assign(d,h.createColumn==null?void 0:h.createColumn(f,e)),f),f}function kp(e,t,r){var n;let o={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{Object.assign(o,a.createHeader==null?void 0:a.createHeader(o,e))}),o}const $_={createTable:e=>({getHeaderGroups:Re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var o,a;const s=(o=n==null?void 0:n.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?a:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return xs(t,[...s,...u,...l],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:Re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(o=>!(n!=null&&n.includes(o.id))&&!(i!=null&&i.includes(o.id))),xs(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:Re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const o=(i=n==null?void 0:n.map(a=>r.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return xs(t,o,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:Re(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const o=(i=n==null?void 0:n.map(a=>r.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return xs(t,o,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:Re(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:Re(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:Re(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:Re(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:Re(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:Re(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:Re(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:Re(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:Re(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:Re(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:Re(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:Re(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=r[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function xs(e,t,r,n){var i,o;let a=0;const s=function(d,h){h===void 0&&(h=1),a=Math.max(a,h),d.filter(m=>m.getIsVisible()).forEach(m=>{var p;(p=m.columns)!=null&&p.length&&s(m.columns,h+1)},0)};s(e);let l=[];const u=(d,h)=>{const m={depth:h,id:[n,`${h}`].filter(Boolean).join("_"),headers:[]},p=[];d.forEach(g=>{const x=[...p].reverse()[0],w=g.column.depth===m.depth;let y,_=!1;if(w&&g.column.parent?y=g.column.parent:(y=g.column,_=!0),x&&(x==null?void 0:x.column)===y)x.subHeaders.push(g);else{const N=kp(r,y,{id:[n,h,y.id,g==null?void 0:g.id].filter(Boolean).join("_"),isPlaceholder:_,placeholderId:_?`${p.filter(M=>M.column===y).length}`:void 0,depth:h,index:p.length});N.subHeaders.push(g),p.push(N)}m.headers.push(g),g.headerGroup=m}),l.push(m),h>0&&u(p,h-1)},c=t.map((d,h)=>kp(r,d,{depth:a,index:h}));u(c,a-1),l.reverse();const f=d=>d.filter(m=>m.column.getIsVisible()).map(m=>{let p=0,g=0,x=[0];m.subHeaders&&m.subHeaders.length?(x=[],f(m.subHeaders).forEach(y=>{let{colSpan:_,rowSpan:N}=y;p+=_,x.push(N)})):p=1;const w=Math.min(...x);return g=g+w,m.colSpan=p,m.rowSpan=g,{colSpan:p,rowSpan:g}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const ws={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},cc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),N_={getDefaultColumnDef:()=>ws,getInitialState:e=>({columnSizing:{},columnSizingInfo:cc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:dr("columnSizing",e),onColumnSizingInfoChange:dr("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:ws.minSize,(n=o??e.columnDef.size)!=null?n:ws.size),(i=e.columnDef.maxSize)!=null?i:ws.maxSize)},getStart:r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),i=n.findIndex(o=>o.id===e.id);if(i>0){const o=n[i-1];return o.getStart(r)+o.getSize()}return 0},resetSize:()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},getCanResize:()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var o;r+=(o=i.column.getSize())!=null?o:0}};return n(e),r},getStart:()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},getResizeHandler:()=>{const r=t.getColumn(e.column.id),n=r==null?void 0:r.getCanResize();return i=>{if(!r||!n||(i.persist==null||i.persist(),fc(i)&&i.touches&&i.touches.length>1))return;const o=e.getSize(),a=e?e.getLeafHeaders().map(p=>[p.column.id,p.column.getSize()]):[[r.id,r.getSize()]],s=fc(i)?Math.round(i.touches[0].clientX):i.clientX,l={},u=(p,g)=>{typeof g=="number"&&(t.setColumnSizingInfo(x=>{var w,y;const _=g-((w=x==null?void 0:x.startOffset)!=null?w:0),N=Math.max(_/((y=x==null?void 0:x.startSize)!=null?y:0),-.999999);return x.columnSizingStart.forEach(M=>{let[S,C]=M;l[S]=Math.round(Math.max(C+C*N,0)*100)/100}),{...x,deltaOffset:_,deltaPercentage:N}}),(t.options.columnResizeMode==="onChange"||p==="end")&&t.setColumnSizing(x=>({...x,...l})))},c=p=>u("move",p),f=p=>{u("end",p),t.setColumnSizingInfo(g=>({...g,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d={moveHandler:p=>c(p.clientX),upHandler:p=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),f(p.clientX)}},h={moveHandler:p=>(p.cancelable&&(p.preventDefault(),p.stopPropagation()),c(p.touches[0].clientX),!1),upHandler:p=>{var g;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),p.cancelable&&(p.preventDefault(),p.stopPropagation()),f((g=p.touches[0])==null?void 0:g.clientX)}},m=M_()?{passive:!1}:!1;fc(i)?(document.addEventListener("touchmove",h.moveHandler,m),document.addEventListener("touchend",h.upHandler,m)):(document.addEventListener("mousemove",d.moveHandler,m),document.addEventListener("mouseup",d.upHandler,m)),t.setColumnSizingInfo(p=>({...p,startOffset:s,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?cc():(r=e.initialState.columnSizingInfo)!=null?r:cc())},getTotalSize:()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}})};let ys=null;function M_(){if(typeof ys=="boolean")return ys;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return ys=e,ys}function fc(e){return e.type==="touchstart"}const L_={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:dr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var i,o;e.setExpanded(n?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},getCanSomeRowsExpand:()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),getToggleAllRowsExpandedHandler:()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");n=Math.max(n,a.length)}),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var i;const o=n===!0?!0:!!(n!=null&&n[e.id]);let a={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=n,r=(i=r)!=null?i:!o,!o&&r)return{...a,[e.id]:!0};if(o&&!r){const{[e.id]:s,...l}=a;return l}return n})},getIsExpanded:()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},getCanExpand:()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},getToggleExpandedHandler:()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}})},yv=(e,t,r)=>{var n,i,o;const a=r.toLowerCase();return!!(!((n=e.getValue(t))==null||(i=n.toString())==null||(o=i.toLowerCase())==null)&&o.includes(a))};yv.autoRemove=e=>Tr(e);const Ev=(e,t,r)=>{var n,i;return!!(!((n=e.getValue(t))==null||(i=n.toString())==null)&&i.includes(r))};Ev.autoRemove=e=>Tr(e);const _v=(e,t,r)=>{var n,i;return((n=e.getValue(t))==null||(i=n.toString())==null?void 0:i.toLowerCase())===(r==null?void 0:r.toLowerCase())};_v.autoRemove=e=>Tr(e);const Sv=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};Sv.autoRemove=e=>Tr(e)||!(e!=null&&e.length);const Tv=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});Tv.autoRemove=e=>Tr(e)||!(e!=null&&e.length);const Cv=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});Cv.autoRemove=e=>Tr(e)||!(e!=null&&e.length);const Av=(e,t,r)=>e.getValue(t)===r;Av.autoRemove=e=>Tr(e);const Rv=(e,t,r)=>e.getValue(t)==r;Rv.autoRemove=e=>Tr(e);const ld=(e,t,r)=>{let[n,i]=r;const o=e.getValue(t);return o>=n&&o<=i};ld.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,o=t===null||Number.isNaN(n)?-1/0:n,a=r===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};ld.autoRemove=e=>Tr(e)||Tr(e[0])&&Tr(e[1]);const Br={includesString:yv,includesStringSensitive:Ev,equalsString:_v,arrIncludes:Sv,arrIncludesAll:Tv,arrIncludesSome:Cv,equals:Av,weakEquals:Rv,inNumberRange:ld};function Tr(e){return e==null||e===""}const B_={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:dr("columnFilters",e),onGlobalFilterChange:dr("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;const i=(r=e.getCoreRowModel().flatRows[0])==null||(n=r._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Br.includesString:typeof n=="number"?Br.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Br.equals:Array.isArray(n)?Br.arrIncludes:Br.weakEquals},getFilterFn:()=>{var r,n;return Cl(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Br[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,i,o;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return(r=t.getState().columnFilters)==null||(n=r.find(i=>i.id===e.id))==null?void 0:n.value},getFilterIndex:()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},setFilterValue:r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),o=n==null?void 0:n.find(c=>c.id===e.id),a=pn(r,o?o.value:void 0);if($p(i,a,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=n==null?void 0:n.map(c=>c.id===e.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Br.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return Cl(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Br[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=i=>{var o;return(o=pn(t,i))==null?void 0:o.filter(a=>{const s=r.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if($p(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function $p(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const U_=(e,t,r)=>r.reduce((n,i)=>{const o=i.getValue(e);return n+(typeof o=="number"?o:0)},0),H_=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}),n},V_=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}),n},W_=(e,t,r)=>{let n,i;return r.forEach(o=>{const a=o.getValue(e);a!=null&&(n===void 0?a>=a&&(n=i=a):(n>a&&(n=a),i<a&&(i=a)))}),[n,i]},z_=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++r,n+=o)}),r)return n/r},G_=(e,t)=>{if(!t.length)return;const r=t.map(o=>o.getValue(e));if(!I_(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((o,a)=>o-a);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},j_=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),X_=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,K_=(e,t)=>t.length,dc={sum:U_,min:H_,max:V_,extent:W_,mean:z_,median:G_,unique:j_,uniqueCount:X_,count:K_},Y_={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:dr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},getCanGroup:()=>{var r,n,i,o;return(r=(n=(i=(o=e.columnDef.enableGrouping)!=null?o:!0)!=null?i:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},getIsGrouped:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return dc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return dc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return Cl(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:dc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:(e,t)=>({getIsGrouped:()=>!!e.groupingColumnId,getGroupingValue:r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}})};function q_(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(o=>!t.includes(o.id));return r==="remove"?n:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...n]}const Q_={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:dr("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},_getOrderColumnsFn:Re(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return q_(o,r,n)},{key:!1})})},Of=0,Ff=10,hc=()=>({pageIndex:Of,pageSize:Ff}),Z_={getInitialState:e=>({...e,pagination:{...hc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:dr("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:n=>{const i=o=>pn(n,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},resetPagination:n=>{var i;e.setPagination(n?hc():(i=e.initialState.pagination)!=null?i:hc())},setPageIndex:n=>{e.setPagination(i=>{let o=pn(n,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},resetPageIndex:n=>{var i,o,a;e.setPageIndex(n?Of:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageIndex)!=null?i:Of)},resetPageSize:n=>{var i,o,a;e.setPageSize(n?Ff:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageSize)!=null?i:Ff)},setPageSize:n=>{e.setPagination(i=>{const o=Math.max(1,pn(n,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},setPageCount:n=>e.setPagination(i=>{var o;let a=pn(n,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),getPageOptions:Re(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((o,a)=>a)),i},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},previousPage:()=>e.setPageIndex(n=>n-1),nextPage:()=>e.setPageIndex(n=>n+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},pc=()=>({left:[],right:[]}),J_={getInitialState:e=>({columnPinning:pc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:dr("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(r==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f)))}})},getCanPin:()=>e.getLeafColumns().some(n=>{var i,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((o=t.options.enablePinning)!=null?o:!0)}),getIsPinned:()=>{const r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,o=r.some(s=>n==null?void 0:n.includes(s)),a=r.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},getPinnedIndex:()=>{var r,n,i;const o=e.getIsPinned();return o?(r=(n=t.getState().columnPinning)==null||(i=n[o])==null?void 0:i.indexOf(e.id))!=null?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:Re(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const o=[...n??[],...i??[]];return r.filter(a=>!o.includes(a.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getLeftVisibleCells:Re(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(o=>r.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getRightVisibleCells:Re(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(o=>r.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?pc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:pc())},getIsSomeColumnsPinned:t=>{var r;const n=e.getState().columnPinning;if(!t){var i,o;return!!((i=n.left)!=null&&i.length||(o=n.right)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},getLeftLeafColumns:Re(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:Re(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:Re(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(o=>!i.includes(o.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},eS={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:dr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(n[o.id]=!0)}):i.forEach(o=>{delete n[o.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(o=>{Df(i,o.id,n,e)}),i}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Re(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?gc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:Re(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?gc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:Re(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?gc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{const n=e.getIsSelected();t.setRowSelection(i=>{if(r=typeof r<"u"?r:!n,n===r)return i;const o={...i};return Df(o,e.id,r,t),o})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return ud(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return Np(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return Np(e,r)==="all"},getCanSelect:()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},getCanSelectSubRows:()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},getCanMultiSelect:()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},getToggleSelectedHandler:()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}})},Df=(e,t,r,n)=>{var i;const o=n.getRow(t);r?(o.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),o.getCanSelect()&&(e[t]=!0)):delete e[t],(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(a=>Df(e,a.id,r,n))};function gc(e,t){const r=e.getState().rowSelection,n=[],i={},o=function(a,s){return a.map(l=>{var u;const c=ud(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:n,rowsById:i}}function ud(e,t){var r;return(r=t[e.id])!=null?r:!1}function Np(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,i=!1;return e.subRows.forEach(o=>{i&&!n||(ud(o,t)?i=!0:n=!1)}),n?"all":i?"some":!1}return!1}const Pf=/([0-9]+)/gm,tS=(e,t,r)=>Ov(In(e.getValue(r)).toLowerCase(),In(t.getValue(r)).toLowerCase()),rS=(e,t,r)=>Ov(In(e.getValue(r)),In(t.getValue(r))),nS=(e,t,r)=>cd(In(e.getValue(r)).toLowerCase(),In(t.getValue(r)).toLowerCase()),iS=(e,t,r)=>cd(In(e.getValue(r)),In(t.getValue(r))),oS=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},aS=(e,t,r)=>cd(e.getValue(r),t.getValue(r));function cd(e,t){return e===t?0:e>t?1:-1}function In(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Ov(e,t){const r=e.split(Pf).filter(Boolean),n=t.split(Pf).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),o=n.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return r.length-n.length}const Wo={alphanumeric:tS,alphanumericCaseSensitive:rS,text:nS,textCaseSensitive:iS,datetime:oS,basic:aS},sS={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:dr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Wo.datetime;if(typeof o=="string"&&(n=!0,o.split(Pf).length>1))return Wo.alphanumeric}return n?Wo.text:Wo.basic},getAutoSortDir:()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw new Error;return Cl(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Wo[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{const i=e.getNextSortingOrder(),o=typeof r<"u"&&r!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(h=>h.id===e.id),l=a==null?void 0:a.findIndex(h=>h.id===e.id);let u=[],c,f=o?r:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var d;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(h=>h.id===e.id?{...h,desc:f}:h):c==="remove"?u=a.filter(h=>h.id!==e.id):u=[{id:e.id,desc:f}];return u})},getFirstSortDir:()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:r=>{var n,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},getCanSort:()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},getIsSorted:()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},getSortIndex:()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},clearSorting:()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},getToggleSortingHandler:()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},lS={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:dr("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},getCanHide:()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},getToggleVisibilityHandler:()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:Re(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getVisibleCells:Re(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>{const t=(r,n)=>Re(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),{key:r,debug:()=>{var i;return(i=e.options.debugAll)!=null?i:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),resetColumnVisibility:r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},toggleAllColumnsVisible:r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:r||!(o.getCanHide!=null&&o.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}}},Mp=[$_,lS,Q_,J_,B_,sS,Y_,L_,Z_,eS,N_];function uS(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:Mp};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),i=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let a={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;a=(f=c.getInitialState==null?void 0:c.getInitialState(a))!=null?f:a});const s=[];let l=!1;const u={_features:Mp,options:{...n,...e},initialState:a,_queue:c=>{s.push(c),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=pn(c,r.options);r.options=i(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,d)=>{var h;return(h=r.options.getRowId==null?void 0:r.options.getRowId(c,f,d))!=null?h:`${d?[d.id,f].join("."):f}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:c=>{const f=r.getRowModel().rowsById[c];if(!f)throw new Error;return f},_getDefaultColumnDef:Re(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:d=>{const h=d.header.column.columnDef;return h.accessorKey?h.accessorKey:h.accessorFn?h.id:null},cell:d=>{var h,m;return(h=(m=d.renderValue())==null||m.toString==null?void 0:m.toString())!=null?h:null},...r._features.reduce((d,h)=>Object.assign(d,h.getDefaultColumnDef==null?void 0:h.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:Re(()=>[r._getColumnDefs()],c=>{const f=function(d,h,m){return m===void 0&&(m=0),d.map(p=>{const g=k_(r,p,m,h),x=p;return g.columns=x.columns?f(x.columns,g,m+1):[],g})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:Re(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:Re(()=>[r.getAllFlatColumns()],c=>c.reduce((f,d)=>(f[d.id]=d,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:Re(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let d=c.flatMap(h=>h.getLeafColumns());return f(d)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>r._getAllFlatColumnsById()[c]};return Object.assign(r,u),r._features.forEach(c=>Object.assign(r,c.createTable==null?void 0:c.createTable(r))),r}function cS(e,t,r,n){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:Re(()=>[e,r,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(a=>{Object.assign(o,a.createCell==null?void 0:a.createCell(o,r,t,e))},{}),o}const fd=(e,t,r,n,i,o,a)=>{let s={id:t,index:n,original:r,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:o??[],getLeafRows:()=>b_(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:Re(()=>[e.getAllLeafColumns()],l=>l.map(u=>cS(e,s,u,u.id)),{key:!1,debug:()=>{var l;return(l=e.options.debugAll)!=null?l:e.options.debugRows}}),_getAllCellsByColumnId:Re(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var l;return(l=e.options.debugAll)!=null?l:e.options.debugRows}})};for(let l=0;l<e._features.length;l++){const u=e._features[l];Object.assign(s,u==null||u.createRow==null?void 0:u.createRow(s,e))}return s};function fS(){return e=>Re(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=fd(e,e._getRowId(i[u],u,a),i[u],u,o,void 0,a==null?void 0:a.id);if(r.flatRows.push(c),r.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=n(c.originalSubRows,o+1,c))}}return s};return r.rows=n(t),r},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function dS(e,t,r){return r.options.filterFromLeafRows?hS(e,t,r):pS(e,t,r)}function hS(e,t,r){var n;const i=[],o={},a=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let d=0;d<l.length;d++){var f;let h=l[d];const m=fd(r,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(m.columnFilters=h.columnFilters,(f=h.subRows)!=null&&f.length&&u<a){if(m.subRows=s(h.subRows,u+1),h=m,t(h)&&!m.subRows.length){c.push(h),o[h.id]=h,o[d]=h;continue}if(t(h)||m.subRows.length){c.push(h),o[h.id]=h,o[d]=h;continue}}else h=m,t(h)&&(c.push(h),o[h.id]=h,o[d]=h)}return c};return{rows:s(e),flatRows:i,rowsById:o}}function pS(e,t,r){var n;const i=[],o={},a=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let d=0;d<l.length;d++){let h=l[d];if(t(h)){var f;if((f=h.subRows)!=null&&f.length&&u<a){const p=fd(r,h.id,h.original,h.index,h.depth,void 0,h.parentId);p.subRows=s(h.subRows,u+1),h=p}c.push(h),i.push(h),o[h.id]=h}}return c};return{rows:s(e),flatRows:i,rowsById:o}}function gS(){return e=>Re(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let d=0;d<t.flatRows.length;d++)t.flatRows[d].columnFilters={},t.flatRows[d].columnFiltersMeta={};return t}const i=[],o=[];(r??[]).forEach(d=>{var h;const m=e.getColumn(d.id);if(!m)return;const p=m.getFilterFn();p&&i.push({id:d.id,filterFn:p,resolvedValue:(h=p.resolveFilterValue==null?void 0:p.resolveFilterValue(d.value))!=null?h:d.value})});const a=r.map(d=>d.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&s&&l.length&&(a.push("__global__"),l.forEach(d=>{var h;o.push({id:d.id,filterFn:s,resolvedValue:(h=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?h:n})}));let u,c;for(let d=0;d<t.flatRows.length;d++){const h=t.flatRows[d];if(h.columnFilters={},i.length)for(let m=0;m<i.length;m++){u=i[m];const p=u.id;h.columnFilters[p]=u.filterFn(h,p,u.resolvedValue,g=>{h.columnFiltersMeta[p]=g})}if(o.length){for(let m=0;m<o.length;m++){c=o[m];const p=c.id;if(c.filterFn(h,p,c.resolvedValue,g=>{h.columnFiltersMeta[p]=g})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const f=d=>{for(let h=0;h<a.length;h++)if(d.columnFilters[a[h]]===!1)return!1;return!0};return dS(t.rows,f,e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function mS(){return e=>Re(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],o=n.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=[...l];return u.sort((c,f)=>{for(let h=0;h<o.length;h+=1){var d;const m=o[h],p=a[m.id],g=(d=m==null?void 0:m.desc)!=null?d:!1;if(p.sortUndefined){const w=c.getValue(m.id),y=f.getValue(m.id),_=typeof w>"u",N=typeof y>"u";if(_||N)return _&&N?0:_?p.sortUndefined:-p.sortUndefined}let x=p.sortingFn(c,f,m.id);if(x!==0)return g&&(x*=-1),p.invertSorting&&(x*=-1),x}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function vS(e){const t=[],r=n=>{var i;t.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function xS(e){return t=>Re(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:i,pageIndex:o}=r;let{rows:a,flatRows:s,rowsById:l}=n;const u=i*o,c=u+i;a=a.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:a,flatRows:s,rowsById:l}:f=vS({rows:a,flatRows:s,rowsById:l}),f.flatRows=[];const d=h=>{f.flatRows.push(h),h.subRows.length&&h.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}/**
* 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 If(e,t){return e?wS(e)?v.createElement(e,t):e:null}function wS(e){return yS(e)||typeof e=="function"||ES(e)}function yS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ES(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function _S(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=v.useState(()=>({current:uS(t)})),[n,i]=v.useState(()=>r.current.initialState);return r.current.setOptions(o=>({...o,...e,state:{...n,...e.state},onStateChange:a=>{i(a),e.onStateChange==null||e.onStateChange(a)}})),r.current}function Fv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Fv(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Nt(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Fv(e))&&(n&&(n+=" "),n+=t);return n}function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pe.apply(this,arguments)}function Lp(e,[t,r]){return Math.min(r,Math.max(t,e))}function _e(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function nn(e,t=[]){let r=[];function n(o,a){const s=v.createContext(a),l=r.length;r=[...r,a];function u(f){const{scope:d,children:h,...m}=f,p=(d==null?void 0:d[e][l])||s,g=v.useMemo(()=>m,Object.values(m));return v.createElement(p.Provider,{value:g},h)}function c(f,d){const h=(d==null?void 0:d[e][l])||s,m=v.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=r.map(a=>v.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,SS(i,...t)]}function SS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function TS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function dd(...e){return t=>e.forEach(r=>TS(r,t))}function Ve(...e){return v.useCallback(dd(...e),e)}const ni=v.forwardRef((e,t)=>{const{children:r,...n}=e,i=v.Children.toArray(r),o=i.find(AS);if(o){const a=o.props.children,s=i.map(l=>l===o?v.Children.count(a)>1?v.Children.only(null):v.isValidElement(a)?a.props.children:null:l);return v.createElement(bf,pe({},n,{ref:t}),v.isValidElement(a)?v.cloneElement(a,void 0,s):null)}return v.createElement(bf,pe({},n,{ref:t}),r)});ni.displayName="Slot";const bf=v.forwardRef((e,t)=>{const{children:r,...n}=e;return v.isValidElement(r)?v.cloneElement(r,{...RS(n,r.props),ref:dd(t,r.ref)}):v.Children.count(r)>1?v.Children.only(null):null});bf.displayName="SlotClone";const CS=({children:e})=>v.createElement(v.Fragment,null,e);function AS(e){return v.isValidElement(e)&&e.type===CS}function RS(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...s)=>{o(...s),i(...s)}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function su(e){const t=e+"CollectionProvider",[r,n]=nn(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:m,children:p}=h,g=ir.useRef(null),x=ir.useRef(new Map).current;return ir.createElement(i,{scope:m,itemMap:x,collectionRef:g},p)},s=e+"CollectionSlot",l=ir.forwardRef((h,m)=>{const{scope:p,children:g}=h,x=o(s,p),w=Ve(m,x.collectionRef);return ir.createElement(ni,{ref:w},g)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=ir.forwardRef((h,m)=>{const{scope:p,children:g,...x}=h,w=ir.useRef(null),y=Ve(m,w),_=o(u,p);return ir.useEffect(()=>(_.itemMap.set(w,{ref:w,...x}),()=>void _.itemMap.delete(w))),ir.createElement(ni,{[c]:"",ref:y},g)});function d(h){const m=o(e+"CollectionConsumer",h);return ir.useCallback(()=>{const g=m.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(m.itemMap.values()).sort((_,N)=>x.indexOf(_.ref.current)-x.indexOf(N.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},d,n]}const OS=v.createContext(void 0);function hd(e){const t=v.useContext(OS);return e||t||"ltr"}const FS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Pe=FS.reduce((e,t)=>{const r=v.forwardRef((n,i)=>{const{asChild:o,...a}=n,s=o?ni:t;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(s,pe({},a,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function pd(e,t){e&&di.flushSync(()=>e.dispatchEvent(t))}function It(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function DS(e,t=globalThis==null?void 0:globalThis.document){const r=It(e);v.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const kf="dismissableLayer.update",PS="dismissableLayer.pointerDownOutside",IS="dismissableLayer.focusOutside";let Bp;const Dv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lu=v.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=v.useContext(Dv),[f,d]=v.useState(null),h=(r=f==null?void 0:f.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=v.useState({}),p=Ve(t,C=>d(C)),g=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(x),y=f?g.indexOf(f):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,M=kS(C=>{const A=C.target,L=[...c.branches].some(H=>H.contains(A));!N||L||(o==null||o(C),s==null||s(C),C.defaultPrevented||l==null||l())},h),S=$S(C=>{const A=C.target;[...c.branches].some(H=>H.contains(A))||(a==null||a(C),s==null||s(C),C.defaultPrevented||l==null||l())},h);return DS(C=>{y===c.layers.size-1&&(i==null||i(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},h),v.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Bp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),Up(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Bp)}},[f,h,n,c]),v.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Up())},[f,c]),v.useEffect(()=>{const C=()=>m({});return document.addEventListener(kf,C),()=>document.removeEventListener(kf,C)},[]),v.createElement(Pe.div,pe({},u,{ref:p,style:{pointerEvents:_?N?"auto":"none":void 0,...e.style},onFocusCapture:_e(e.onFocusCapture,S.onFocusCapture),onBlurCapture:_e(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:_e(e.onPointerDownCapture,M.onPointerDownCapture)}))}),bS=v.forwardRef((e,t)=>{const r=v.useContext(Dv),n=v.useRef(null),i=Ve(t,n);return v.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),v.createElement(Pe.div,pe({},e,{ref:i}))});function kS(e,t=globalThis==null?void 0:globalThis.document){const r=It(e),n=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=s=>{if(s.target&&!n.current){let c=function(){Pv(PS,r,u,{discrete:!0})};var l=c;const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function $S(e,t=globalThis==null?void 0:globalThis.document){const r=It(e),n=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!n.current&&Pv(IS,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Up(){const e=new CustomEvent(kf);document.dispatchEvent(e)}function Pv(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?pd(i,o):i.dispatchEvent(o)}const NS=lu,MS=bS;let mc=0;function gd(){v.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Hp()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Hp()),mc++,()=>{mc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),mc--}},[])}function Hp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const vc="focusScope.autoFocusOnMount",xc="focusScope.autoFocusOnUnmount",Vp={bubbles:!1,cancelable:!0},md=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=v.useState(null),u=It(i),c=It(o),f=v.useRef(null),d=Ve(t,p=>l(p)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let x=function(y){if(h.paused||!s)return;const _=y.target;s.contains(_)?f.current=_:Wn(f.current,{select:!0})},w=function(y){h.paused||!s||s.contains(y.relatedTarget)||Wn(f.current,{select:!0})};var p=x,g=w;return document.addEventListener("focusin",x),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w)}}},[n,s,h.paused]),v.useEffect(()=>{if(s){zp.add(h);const p=document.activeElement;if(!s.contains(p)){const x=new CustomEvent(vc,Vp);s.addEventListener(vc,u),s.dispatchEvent(x),x.defaultPrevented||(LS(WS(Iv(s)),{select:!0}),document.activeElement===p&&Wn(s))}return()=>{s.removeEventListener(vc,u),setTimeout(()=>{const x=new CustomEvent(xc,Vp);s.addEventListener(xc,c),s.dispatchEvent(x),x.defaultPrevented||Wn(p??document.body,{select:!0}),s.removeEventListener(xc,c),zp.remove(h)},0)}}},[s,u,c,h]);const m=v.useCallback(p=>{if(!r&&!n||h.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(g&&x){const w=p.currentTarget,[y,_]=BS(w);y&&_?!p.shiftKey&&x===_?(p.preventDefault(),r&&Wn(y,{select:!0})):p.shiftKey&&x===y&&(p.preventDefault(),r&&Wn(_,{select:!0})):x===w&&p.preventDefault()}},[r,n,h.paused]);return v.createElement(Pe.div,pe({tabIndex:-1},a,{ref:d,onKeyDown:m}))});function LS(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Wn(n,{select:t}),document.activeElement!==r)return}function BS(e){const t=Iv(e),r=Wp(t,e),n=Wp(t.reverse(),e);return[r,n]}function Iv(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Wp(e,t){for(const r of e)if(!US(r,{upTo:t}))return r}function US(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function HS(e){return e instanceof HTMLInputElement&&"select"in e}function Wn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&HS(e)&&t&&e.select()}}const zp=VS();function VS(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Gp(e,t),e.unshift(t)},remove(t){var r;e=Gp(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Gp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function WS(e){return e.filter(t=>t.tagName!=="A")}const Et=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},zS=Iy["useId".toString()]||(()=>{});let GS=0;function Xr(e){const[t,r]=v.useState(zS());return Et(()=>{e||r(n=>n??String(GS++))},[e]),e||(t?`radix-${t}`:"")}function hi(e){return e.split("-")[0]}function Ya(e){return e.split("-")[1]}function yo(e){return["top","bottom"].includes(hi(e))?"x":"y"}function vd(e){return e==="y"?"height":"width"}function jp(e,t,r){let{reference:n,floating:i}=e;const o=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,s=yo(t),l=vd(s),u=n[l]/2-i[l]/2,c=s==="x";let f;switch(hi(t)){case"top":f={x:o,y:n.y-i.height};break;case"bottom":f={x:o,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:a};break;case"left":f={x:n.x-i.width,y:a};break;default:f={x:n.x,y:n.y}}switch(Ya(t)){case"start":f[s]-=u*(r&&c?-1:1);break;case"end":f[s]+=u*(r&&c?-1:1)}return f}const jS=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=jp(l,n,s),f=n,d={},h=0;for(let m=0;m<o.length;m++){const{name:p,fn:g}=o[m],{x,y:w,data:y,reset:_}=await g({x:u,y:c,initialPlacement:n,placement:f,strategy:i,middlewareData:d,rects:l,platform:a,elements:{reference:e,floating:t}});u=x??u,c=w??c,d={...d,[p]:{...d[p],...y}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:u,y:c}=jp(l,f,s)),m=-1)}return{x:u,y:c,placement:f,strategy:i,middlewareData:d}};function bv(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function Al(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ba(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=t,m=bv(h),p=s[d?f==="floating"?"reference":"floating":f],g=Al(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(p)))==null||r?p:p.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),x=Al(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...a.floating,x:n,y:i}:a.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[f]);return{top:g.top-x.top+m.top,bottom:x.bottom-g.bottom+m.bottom,left:g.left-x.left+m.left,right:x.right-g.right+m.right}}const XS=Math.min,zn=Math.max;function $f(e,t,r){return zn(e,XS(t,r))}const Xp=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e??{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(r==null)return{};const u=bv(n),c={x:i,y:o},f=yo(a),d=Ya(a),h=vd(f),m=await l.getDimensions(r),p=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=s.reference[h]+s.reference[f]-c[f]-s.floating[h],w=c[f]-s.reference[f],y=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let _=y?f==="y"?y.clientHeight||0:y.clientWidth||0:0;_===0&&(_=s.floating[h]);const N=x/2-w/2,M=u[p],S=_-m[h]-u[g],C=_/2-m[h]/2+N,A=$f(M,C,S),L=(d==="start"?u[p]:u[g])>0&&C!==A&&s.reference[h]<=s.floating[h];return{[f]:c[f]-(L?C<M?M-C:S-C:0),data:{[f]:A,centerOffset:C-A}}}}),KS={left:"right",right:"left",bottom:"top",top:"bottom"};function Rl(e){return e.replace(/left|right|bottom|top/g,t=>KS[t])}function YS(e,t,r){r===void 0&&(r=!1);const n=Ya(e),i=yo(e),o=vd(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Rl(a)),{main:a,cross:Rl(a)}}const qS={start:"end",end:"start"};function Kp(e){return e.replace(/start|end/g,t=>qS[t])}const kv=["top","right","bottom","left"];kv.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const QS=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:h=!0,...m}=e,p=hi(n),g=f||(p===a||!h?[Rl(a)]:function(C){const A=Rl(C);return[Kp(C),A,Kp(A)]}(a)),x=[a,...g],w=await ba(t,m),y=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&y.push(w[p]),c){const{main:C,cross:A}=YS(n,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));y.push(w[C],w[A])}if(_=[..._,{placement:n,overflows:y}],!y.every(C=>C<=0)){var N,M;const C=((N=(M=i.flip)==null?void 0:M.index)!=null?N:0)+1,A=x[C];if(A)return{data:{index:C,overflows:_},reset:{placement:A}};let L="bottom";switch(d){case"bestFit":{var S;const H=(S=_.map(B=>[B,B.overflows.filter(V=>V>0).reduce((V,Q)=>V+Q,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:S[0].placement;H&&(L=H);break}case"initialPlacement":L=a}if(n!==L)return{reset:{placement:L}}}return{}}}};function Yp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qp(e){return kv.some(t=>e[t]>=0)}const ZS=function(e){let{strategy:t="referenceHidden",...r}=e===void 0?{}:e;return{name:"hide",async fn(n){const{rects:i}=n;switch(t){case"referenceHidden":{const o=Yp(await ba(n,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:qp(o)}}}case"escaped":{const o=Yp(await ba(n,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:o,escaped:qp(o)}}}default:return{}}}}},JS=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,i=await async function(o,a){const{placement:s,platform:l,elements:u}=o,c=await(l.isRTL==null?void 0:l.isRTL(u.floating)),f=hi(s),d=Ya(s),h=yo(s)==="x",m=["left","top"].includes(f)?-1:1,p=c&&h?-1:1,g=typeof a=="function"?a(o):a;let{mainAxis:x,crossAxis:w,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return d&&typeof y=="number"&&(w=d==="end"?-1*y:y),h?{x:w*p,y:x*m}:{x:x*m,y:w*p}}(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function $v(e){return e==="x"?"y":"x"}const eT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x,y:w}=g;return{x,y:w}}},...l}=e,u={x:r,y:n},c=await ba(t,l),f=yo(hi(i)),d=$v(f);let h=u[f],m=u[d];if(o){const g=f==="y"?"bottom":"right";h=$f(h+c[f==="y"?"top":"left"],h,h-c[g])}if(a){const g=d==="y"?"bottom":"right";m=$f(m+c[d==="y"?"top":"left"],m,m-c[g])}const p=s.fn({...t,[f]:h,[d]:m});return{...p,data:{x:p.x-r,y:p.y-n}}}}},tT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:r,y:n},f=yo(i),d=$v(f);let h=c[f],m=c[d];const p=typeof s=="function"?s({...o,placement:i}):s,g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const N=f==="y"?"height":"width",M=o.reference[f]-o.floating[N]+g.mainAxis,S=o.reference[f]+o.reference[N]-g.mainAxis;h<M?h=M:h>S&&(h=S)}if(u){var x,w,y,_;const N=f==="y"?"width":"height",M=["top","left"].includes(hi(i)),S=o.reference[d]-o.floating[N]+(M&&(x=(w=a.offset)==null?void 0:w[d])!=null?x:0)+(M?0:g.crossAxis),C=o.reference[d]+o.reference[N]+(M?0:(y=(_=a.offset)==null?void 0:_[d])!=null?y:0)-(M?g.crossAxis:0);m<S?m=S:m>C&&(m=C)}return{[f]:h,[d]:m}}}},rT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:a,...s}=e,l=await ba(t,s),u=hi(r),c=Ya(r);let f,d;u==="top"||u==="bottom"?(f=u,d=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(d=u,f=c==="end"?"top":"bottom");const h=zn(l.left,0),m=zn(l.right,0),p=zn(l.top,0),g=zn(l.bottom,0),x={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(p!==0||g!==0?p+g:zn(l.top,l.bottom)):l[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(h!==0||m!==0?h+m:zn(l.left,l.right)):l[d])},w=await i.getDimensions(o.floating);a==null||a({...t,...x});const y=await i.getDimensions(o.floating);return w.width!==y.width||w.height!==y.height?{reset:{rects:!0}}:{}}}};function Nv(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function on(e){if(e==null)return window;if(!Nv(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function qa(e){return on(e).getComputedStyle(e)}function Kr(e){return Nv(e)?"":e?(e.nodeName||"").toLowerCase():""}function Mv(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function kr(e){return e instanceof on(e).HTMLElement}function bn(e){return e instanceof on(e).Element}function xd(e){return typeof ShadowRoot>"u"?!1:e instanceof on(e).ShadowRoot||e instanceof ShadowRoot}function uu(e){const{overflow:t,overflowX:r,overflowY:n}=qa(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function nT(e){return["table","td","th"].includes(Kr(e))}function Qp(e){const t=/firefox/i.test(Mv()),r=qa(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"}function Lv(){return!/^((?!chrome|android).)*safari/i.test(Mv())}const Zp=Math.min,fa=Math.max,Ol=Math.round;function Yr(e,t,r){var n,i,o,a;t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect();let l=1,u=1;t&&kr(e)&&(l=e.offsetWidth>0&&Ol(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Ol(s.height)/e.offsetHeight||1);const c=bn(e)?on(e):window,f=!Lv()&&r,d=(s.left+(f&&(n=(i=c.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0))/l,h=(s.top+(f&&(o=(a=c.visualViewport)==null?void 0:a.offsetTop)!=null?o:0))/u,m=s.width/l,p=s.height/u;return{width:m,height:p,top:h,right:d+m,bottom:h+p,left:d,x:d,y:h}}function Cn(e){return(t=e,(t instanceof on(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function cu(e){return bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Bv(e){return Yr(Cn(e)).left+cu(e).scrollLeft}function iT(e,t,r){const n=kr(t),i=Cn(t),o=Yr(e,n&&function(l){const u=Yr(l);return Ol(u.width)!==l.offsetWidth||Ol(u.height)!==l.offsetHeight}(t),r==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&r!=="fixed")if((Kr(t)!=="body"||uu(i))&&(a=cu(t)),kr(t)){const l=Yr(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=Bv(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Uv(e){return Kr(e)==="html"?e:e.assignedSlot||e.parentNode||(xd(e)?e.host:null)||Cn(e)}function Jp(e){return kr(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Nf(e){const t=on(e);let r=Jp(e);for(;r&&nT(r)&&getComputedStyle(r).position==="static";)r=Jp(r);return r&&(Kr(r)==="html"||Kr(r)==="body"&&getComputedStyle(r).position==="static"&&!Qp(r))?t:r||function(n){let i=Uv(n);for(xd(i)&&(i=i.host);kr(i)&&!["html","body"].includes(Kr(i));){if(Qp(i))return i;i=i.parentNode}return null}(e)||t}function eg(e){if(kr(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Yr(e);return{width:t.width,height:t.height}}function Hv(e){const t=Uv(e);return["html","body","#document"].includes(Kr(t))?e.ownerDocument.body:kr(t)&&uu(t)?t:Hv(t)}function Fl(e,t){var r;t===void 0&&(t=[]);const n=Hv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=on(n),a=i?[o].concat(o.visualViewport||[],uu(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Fl(a))}function tg(e,t,r){return t==="viewport"?Al(function(n,i){const o=on(n),a=Cn(n),s=o.visualViewport;let l=a.clientWidth,u=a.clientHeight,c=0,f=0;if(s){l=s.width,u=s.height;const d=Lv();(d||!d&&i==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:l,height:u,x:c,y:f}}(e,r)):bn(t)?function(n,i){const o=Yr(n,!1,i==="fixed"),a=o.top+n.clientTop,s=o.left+n.clientLeft;return{top:a,left:s,x:s,y:a,right:s+n.clientWidth,bottom:a+n.clientHeight,width:n.clientWidth,height:n.clientHeight}}(t,r):Al(function(n){var i;const o=Cn(n),a=cu(n),s=(i=n.ownerDocument)==null?void 0:i.body,l=fa(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=fa(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let c=-a.scrollLeft+Bv(n);const f=-a.scrollTop;return qa(s||o).direction==="rtl"&&(c+=fa(o.clientWidth,s?s.clientWidth:0)-l),{width:l,height:u,x:c,y:f}}(Cn(e)))}function oT(e){const t=Fl(e),r=["absolute","fixed"].includes(qa(e).position)&&kr(e)?Nf(e):e;return bn(r)?t.filter(n=>bn(n)&&function(i,o){const a=o.getRootNode==null?void 0:o.getRootNode();if(i.contains(o))return!0;if(a&&xd(a)){let s=o;do{if(s&&i===s)return!0;s=s.parentNode||s.host}while(s)}return!1}(n,r)&&Kr(n)!=="body"):[]}const aT={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?oT(t):[].concat(r),n],a=o[0],s=o.reduce((l,u)=>{const c=tg(t,u,i);return l.top=fa(c.top,l.top),l.right=Zp(c.right,l.right),l.bottom=Zp(c.bottom,l.bottom),l.left=fa(c.left,l.left),l},tg(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=kr(r),o=Cn(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&n!=="fixed")&&((Kr(r)!=="body"||uu(o))&&(a=cu(r)),kr(r))){const l=Yr(r,!0);s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:bn,getDimensions:eg,getOffsetParent:Nf,getDocumentElement:Cn,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:iT(t,Nf(r),n),floating:{...eg(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>qa(e).direction==="rtl"};function sT(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...bn(e)?Fl(e):[],...Fl(t)]:[];c.forEach(m=>{l&&m.addEventListener("scroll",r,{passive:!0}),u&&m.addEventListener("resize",r)});let f,d=null;if(a){let m=!0;d=new ResizeObserver(()=>{m||r(),m=!1}),bn(e)&&!s&&d.observe(e),d.observe(t)}let h=s?Yr(e):null;return s&&function m(){const p=Yr(e);!h||p.x===h.x&&p.y===h.y&&p.width===h.width&&p.height===h.height||r(),h=p,f=requestAnimationFrame(m)}(),r(),()=>{var m;c.forEach(p=>{l&&p.removeEventListener("scroll",r),u&&p.removeEventListener("resize",r)}),(m=d)==null||m.disconnect(),d=null,s&&cancelAnimationFrame(f)}}const lT=(e,t,r)=>jS(e,t,{platform:aT,...r});var Mf=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Lf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Lf(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!Lf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function uT(e){const t=v.useRef(e);return Mf(()=>{t.current=e}),t}function cT(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=e===void 0?{}:e;const o=v.useRef(null),a=v.useRef(null),s=uT(i),l=v.useRef(null),[u,c]=v.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,d]=v.useState(t);Lf(f==null?void 0:f.map(y=>{let{options:_}=y;return _}),t==null?void 0:t.map(y=>{let{options:_}=y;return _}))||d(t);const h=v.useCallback(()=>{!o.current||!a.current||lT(o.current,a.current,{middleware:f,placement:r,strategy:n}).then(y=>{m.current&&di.flushSync(()=>{c(y)})})},[f,r,n]);Mf(()=>{m.current&&h()},[h]);const m=v.useRef(!1);Mf(()=>(m.current=!0,()=>{m.current=!1}),[]);const p=v.useCallback(()=>{if(typeof l.current=="function"&&(l.current(),l.current=null),o.current&&a.current)if(s.current){const y=s.current(o.current,a.current,h);l.current=y}else h()},[h,s]),g=v.useCallback(y=>{o.current=y,p()},[p]),x=v.useCallback(y=>{a.current=y,p()},[p]),w=v.useMemo(()=>({reference:o,floating:a}),[]);return v.useMemo(()=>({...u,update:h,refs:w,reference:g,floating:x}),[u,h,w,g,x])}const fT=e=>{const{element:t,padding:r}=e;function n(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return n(t)?t.current!=null?Xp({element:t.current,padding:r}).fn(i):{}:t?Xp({element:t,padding:r}).fn(i):{}}}};function dT(e){const[t,r]=v.useState(void 0);return Et(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const Vv="Popper",[wd,fu]=nn(Vv),[hT,Wv]=wd(Vv),pT=e=>{const{__scopePopper:t,children:r}=e,[n,i]=v.useState(null);return v.createElement(hT,{scope:t,anchor:n,onAnchorChange:i},r)},gT="PopperAnchor",mT=v.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,o=Wv(gT,r),a=v.useRef(null),s=Ve(t,a);return v.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:v.createElement(Pe.div,pe({},i,{ref:s}))}),Dl="PopperContent",[vT,Xk]=wd(Dl),[xT,wT]=wd(Dl,{hasParent:!1,positionUpdateFns:new Set}),yT=v.forwardRef((e,t)=>{var r,n,i,o,a,s,l,u;const{__scopePopper:c,side:f="bottom",sideOffset:d=0,align:h="center",alignOffset:m=0,arrowPadding:p=0,collisionBoundary:g=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:y=!1,avoidCollisions:_=!0,onPlaced:N,...M}=e,S=Wv(Dl,c),[C,A]=v.useState(null),L=Ve(t,gr=>A(gr)),[H,B]=v.useState(null),V=dT(H),Q=(r=V==null?void 0:V.width)!==null&&r!==void 0?r:0,ne=(n=V==null?void 0:V.height)!==null&&n!==void 0?n:0,ye=f+(h!=="center"?"-"+h:""),ve=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},Ce=Array.isArray(g)?g:[g],ie=Ce.length>0,Ee={padding:ve,boundary:Ce.filter(_T),altBoundary:ie},{reference:ee,floating:O,strategy:k,x:b,y:D,placement:U,middlewareData:G,update:J}=cT({strategy:"fixed",placement:ye,whileElementsMounted:sT,middleware:[ST(),JS({mainAxis:d+ne,alignmentAxis:m}),_?eT({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?tT():void 0,...Ee}):void 0,H?fT({element:H,padding:p}):void 0,_?QS({...Ee}):void 0,rT({...Ee,apply:({elements:gr,availableWidth:Ro,availableHeight:tr})=>{gr.floating.style.setProperty("--radix-popper-available-width",`${Ro}px`),gr.floating.style.setProperty("--radix-popper-available-height",`${tr}px`)}}),TT({arrowWidth:Q,arrowHeight:ne}),y?ZS({strategy:"referenceHidden"}):void 0].filter(ET)});Et(()=>{ee(S.anchor)},[ee,S.anchor]);const W=b!==null&&D!==null,[q,le]=zv(U),he=It(N);Et(()=>{W&&(he==null||he())},[W,he]);const Te=(i=G.arrow)===null||i===void 0?void 0:i.x,fe=(o=G.arrow)===null||o===void 0?void 0:o.y,We=((a=G.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[be,ge]=v.useState();Et(()=>{C&&ge(window.getComputedStyle(C).zIndex)},[C]);const{hasParent:bt,positionUpdateFns:st}=wT(Dl,c),ke=!bt;v.useLayoutEffect(()=>{if(!ke)return st.add(J),()=>{st.delete(J)}},[ke,st,J]),Et(()=>{ke&&W&&Array.from(st).reverse().forEach(gr=>requestAnimationFrame(gr))},[ke,W,st]);const Ge={"data-side":q,"data-align":le,...M,ref:L,style:{...M.style,animation:W?void 0:"none",opacity:(s=G.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}};return v.createElement("div",{ref:O,"data-radix-popper-content-wrapper":"",style:{position:k,left:0,top:0,transform:W?`translate3d(${Math.round(b)}px, ${Math.round(D)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:be,["--radix-popper-transform-origin"]:[(l=G.transformOrigin)===null||l===void 0?void 0:l.x,(u=G.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},v.createElement(vT,{scope:c,placedSide:q,onArrowChange:B,arrowX:Te,arrowY:fe,shouldHideArrow:We},ke?v.createElement(xT,{scope:c,hasParent:!0,positionUpdateFns:st},v.createElement(Pe.div,Ge)):v.createElement(Pe.div,Ge)))});function ET(e){return e!==void 0}function _T(e){return e!==null}const ST=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:r}=e,{width:n,height:i}=t.reference;return r.floating.style.setProperty("--radix-popper-anchor-width",`${n}px`),r.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),TT=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;const{placement:s,rects:l,middlewareData:u}=t,f=((r=u.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,d=f?0:e.arrowWidth,h=f?0:e.arrowHeight,[m,p]=zv(s),g={start:"0%",center:"50%",end:"100%"}[p],x=((n=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,w=((o=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+h/2;let y="",_="";return m==="bottom"?(y=f?g:`${x}px`,_=`${-h}px`):m==="top"?(y=f?g:`${x}px`,_=`${l.floating.height+h}px`):m==="right"?(y=`${-h}px`,_=f?g:`${w}px`):m==="left"&&(y=`${l.floating.width+h}px`,_=f?g:`${w}px`),{data:{x:y,y:_}}}});function zv(e){const[t,r="center"]=e.split("-");return[t,r]}const Gv=pT,jv=mT,Xv=yT,du=v.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?wv.createPortal(v.createElement(Pe.div,pe({},i,{ref:t})),n):null});function uo({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=CT({defaultProp:t,onChange:r}),o=e!==void 0,a=o?e:n,s=It(r),l=v.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else i(u)},[o,e,i,s]);return[a,l]}function CT({defaultProp:e,onChange:t}){const r=v.useState(e),[n]=r,i=v.useRef(n),o=It(t);return v.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}function AT(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const yd=v.forwardRef((e,t)=>v.createElement(Pe.span,pe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var RT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ai=new WeakMap,Es=new WeakMap,_s={},wc=0,Kv=function(e){return e&&(e.host||Kv(e.parentNode))},OT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Kv(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},FT=function(e,t,r,n){var i=OT(t,Array.isArray(e)?e:[e]);_s[r]||(_s[r]=new WeakMap);var o=_s[r],a=[],s=new Set,l=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))c(d);else{var h=d.getAttribute(n),m=h!==null&&h!=="false",p=(Ai.get(d)||0)+1,g=(o.get(d)||0)+1;Ai.set(d,p),o.set(d,g),a.push(d),p===1&&m&&Es.set(d,!0),g===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}})};return c(t),s.clear(),wc++,function(){a.forEach(function(f){var d=Ai.get(f)-1,h=o.get(f)-1;Ai.set(f,d),o.set(f,h),d||(Es.has(f)||f.removeAttribute(n),Es.delete(f)),h||f.removeAttribute(r)}),wc--,wc||(Ai=new WeakMap,Ai=new WeakMap,Es=new WeakMap,_s={})}},Ed=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||RT(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),FT(n,i,r,"aria-hidden")):function(){return null}},Or=function(){return Or=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Or.apply(this,arguments)};function Yv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function DT(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Zs="right-scroll-bar-position",Js="width-before-scroll-bar",PT="with-scroll-bars-hidden",IT="--removed-body-scroll-bar-size";function bT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kT(e,t){var r=v.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}function $T(e,t){return kT(t||null,function(r){return e.forEach(function(n){return bT(n,r)})})}function NT(e){return e}function MT(e,t){t===void 0&&(t=NT);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var a=t(o,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(n=!0;r.length;){var a=r;r=[],a.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(o),a=r}var l=function(){var c=a;a=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(c){a.push(c),u()},filter:function(c){return a=a.filter(c),r}}}};return i}function LT(e){e===void 0&&(e={});var t=MT(null);return t.options=Or({async:!0,ssr:!1},e),t}var qv=function(e){var t=e.sideCar,r=Yv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return v.createElement(n,Or({},r))};qv.isSideCarExport=!0;function BT(e,t){return e.useMedium(t),qv}var Qv=LT(),yc=function(){},hu=v.forwardRef(function(e,t){var r=v.useRef(null),n=v.useState({onScrollCapture:yc,onWheelCapture:yc,onTouchMoveCapture:yc}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noIsolation,m=e.inert,p=e.allowPinchZoom,g=e.as,x=g===void 0?"div":g,w=Yv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=d,_=$T([r,t]),N=Or(Or({},w),i);return v.createElement(v.Fragment,null,c&&v.createElement(y,{sideCar:Qv,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:o,allowPinchZoom:!!p,lockRef:r}),a?v.cloneElement(v.Children.only(s),Or(Or({},N),{ref:_})):v.createElement(x,Or({},N,{className:l,ref:_}),s))});hu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hu.classNames={fullWidth:Js,zeroRight:Zs};var rg,UT=function(){if(rg)return rg;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function HT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=UT();return t&&e.setAttribute("nonce",t),e}function VT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=HT())&&(VT(t,r),WT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GT=function(){var e=zT();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Zv=function(){var e=GT(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},jT={left:0,top:0,right:0,gap:0},Ec=function(e){return parseInt(e||"",10)||0},XT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Ec(r),Ec(n),Ec(i)]},KT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jT;var t=XT(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},YT=Zv(),qT=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
.`.concat(PT,` {
overflow: hidden `).concat(n,`;
padding-right: `).concat(s,"px ").concat(n,`;
}
body {
overflow: hidden `).concat(n,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(n,`;
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
}
.`).concat(Zs,` {
right: `).concat(s,"px ").concat(n,`;
}
.`).concat(Js,` {
margin-right: `).concat(s,"px ").concat(n,`;
}
.`).concat(Zs," .").concat(Zs,` {
right: 0 `).concat(n,`;
}
.`).concat(Js," .").concat(Js,` {
margin-right: 0 `).concat(n,`;
}
body {
`).concat(IT,": ").concat(s,`px;
}
`)},QT=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=v.useMemo(function(){return KT(i)},[i]);return v.createElement(YT,{styles:qT(o,!t,i,r?"":"!important")})},Bf=!1;if(typeof window<"u")try{var Ss=Object.defineProperty({},"passive",{get:function(){return Bf=!0,!0}});window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{Bf=!1}var Ri=Bf?{passive:!1}:!1,ZT=function(e){return e.tagName==="TEXTAREA"},Jv=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ZT(e)&&r[t]==="visible")},JT=function(e){return Jv(e,"overflowY")},eC=function(e){return Jv(e,"overflowX")},ng=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=ex(e,r);if(n){var i=tx(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},tC=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rC=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ex=function(e,t){return e==="v"?JT(t):eC(t)},tx=function(e,t){return e==="v"?tC(t):rC(t)},nC=function(e,t){return e==="h"&&t==="rtl"?-1:1},iC=function(e,t,r,n,i){var o=nC(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,l=t.contains(s),u=!1,c=a>0,f=0,d=0;do{var h=tx(e,s),m=h[0],p=h[1],g=h[2],x=p-g-o*m;(m||x)&&ex(e,s)&&(f+=x,d+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&f===0||!i&&a>f)||!c&&(i&&d===0||!i&&-a>d))&&(u=!0),u},Ts=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ig=function(e){return[e.deltaX,e.deltaY]},og=function(e){return e&&"current"in e?e.current:e},oC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aC=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},sC=0,Oi=[];function lC(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),i=v.useState(sC++)[0],o=v.useState(function(){return Zv()})[0],a=v.useRef(e);v.useEffect(function(){a.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=DT([e.lockRef.current],(e.shards||[]).map(og),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback(function(p,g){if("touches"in p&&p.touches.length===2)return!a.current.allowPinchZoom;var x=Ts(p),w=r.current,y="deltaX"in p?p.deltaX:w[0]-x[0],_="deltaY"in p?p.deltaY:w[1]-x[1],N,M=p.target,S=Math.abs(y)>Math.abs(_)?"h":"v";if("touches"in p&&S==="h"&&M.type==="range")return!1;var C=ng(S,M);if(!C)return!0;if(C?N=S:(N=S==="v"?"h":"v",C=ng(S,M)),!C)return!1;if(!n.current&&"changedTouches"in p&&(y||_)&&(n.current=N),!N)return!0;var A=n.current||N;return iC(A,g,p,A==="h"?y:_,!0)},[]),l=v.useCallback(function(p){var g=p;if(!(!Oi.length||Oi[Oi.length-1]!==o)){var x="deltaY"in g?ig(g):Ts(g),w=t.current.filter(function(N){return N.name===g.type&&N.target===g.target&&oC(N.delta,x)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var y=(a.current.shards||[]).map(og).filter(Boolean).filter(function(N){return N.contains(g.target)}),_=y.length>0?s(g,y[0]):!a.current.noIsolation;_&&g.cancelable&&g.preventDefault()}}},[]),u=v.useCallback(function(p,g,x,w){var y={name:p,delta:g,target:x,should:w};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(_){return _!==y})},1)},[]),c=v.useCallback(function(p){r.current=Ts(p),n.current=void 0},[]),f=v.useCallback(function(p){u(p.type,ig(p),p.target,s(p,e.lockRef.current))},[]),d=v.useCallback(function(p){u(p.type,Ts(p),p.target,s(p,e.lockRef.current))},[]);v.useEffect(function(){return Oi.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Ri),document.addEventListener("touchmove",l,Ri),document.addEventListener("touchstart",c,Ri),function(){Oi=Oi.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,Ri),document.removeEventListener("touchmove",l,Ri),document.removeEventListener("touchstart",c,Ri)}},[]);var h=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(o,{styles:aC(i)}):null,h?v.createElement(QT,{gapMode:"margin"}):null)}const uC=BT(Qv,lC);var rx=v.forwardRef(function(e,t){return v.createElement(hu,Or({},e,{ref:t,sideCar:uC}))});rx.classNames=hu.classNames;const _d=rx,cC=[" ","Enter","ArrowUp","ArrowDown"],fC=[" ","Enter"],pu="Select",[gu,mu,dC]=su(pu),[Eo,Kk]=nn(pu,[dC,fu]),Sd=fu(),[hC,pi]=Eo(pu),[pC,gC]=Eo(pu),mC=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:f,disabled:d,required:h}=e,m=Sd(t),[p,g]=v.useState(null),[x,w]=v.useState(null),[y,_]=v.useState(!1),N=hd(u),[M=!1,S]=uo({prop:n,defaultProp:i,onChange:o}),[C,A]=uo({prop:a,defaultProp:s,onChange:l}),L=v.useRef(null),H=p?!!p.closest("form"):!0,[B,V]=v.useState(new Set),Q=Array.from(B).map(ne=>ne.props.value).join(";");return v.createElement(Gv,m,v.createElement(hC,{required:h,scope:t,trigger:p,onTriggerChange:g,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:y,onValueNodeHasChildrenChange:_,contentId:Xr(),value:C,onValueChange:A,open:M,onOpenChange:S,dir:N,triggerPointerDownPosRef:L,disabled:d},v.createElement(gu.Provider,{scope:t},v.createElement(pC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(ne=>{V(ye=>new Set(ye).add(ne))},[]),onNativeOptionRemove:v.useCallback(ne=>{V(ye=>{const ve=new Set(ye);return ve.delete(ne),ve})},[])},r)),H?v.createElement(ax,{key:Q,"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:f,value:C,onChange:ne=>A(ne.target.value),disabled:d},C===void 0?v.createElement("option",{value:""}):null,Array.from(B)):null))},vC="SelectTrigger",xC=v.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,o=Sd(r),a=pi(vC,r),s=a.disabled||n,l=Ve(t,a.onTriggerChange),u=mu(r),[c,f,d]=sx(m=>{const p=u().filter(w=>!w.disabled),g=p.find(w=>w.value===a.value),x=lx(p,m,g);x!==void 0&&a.onValueChange(x.value)}),h=()=>{s||(a.onOpenChange(!0),d())};return v.createElement(jv,pe({asChild:!0},o),v.createElement(Pe.button,pe({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":a.value===void 0?"":void 0},i,{ref:l,onClick:_e(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:_e(i.onPointerDown,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:_e(i.onKeyDown,m=>{const p=c.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(p&&m.key===" ")&&cC.includes(m.key)&&(h(),m.preventDefault())})})))}),wC="SelectValue",yC=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:o,placeholder:a,...s}=e,l=pi(wC,r),{onValueNodeHasChildrenChange:u}=l,c=o!==void 0,f=Ve(t,l.onValueNodeChange);return Et(()=>{u(c)},[u,c]),v.createElement(Pe.span,pe({},s,{ref:f,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:o)}),EC=v.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return v.createElement(Pe.span,pe({"aria-hidden":!0},i,{ref:t}),n||"▼")}),_C=e=>v.createElement(du,pe({asChild:!0},e)),co="SelectContent",SC=v.forwardRef((e,t)=>{const r=pi(co,e.__scopeSelect),[n,i]=v.useState();if(Et(()=>{i(new DocumentFragment)},[]),!r.open){const o=n;return o?di.createPortal(v.createElement(nx,{scope:e.__scopeSelect},v.createElement(gu.Slot,{scope:e.__scopeSelect},v.createElement("div",null,e.children))),o):null}return v.createElement(TC,pe({},e,{ref:t}))}),Ur=10,[nx,gi]=Eo(co),TC=v.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:g,...x}=e,w=pi(co,r),[y,_]=v.useState(null),[N,M]=v.useState(null),S=Ve(t,G=>_(G)),[C,A]=v.useState(null),[L,H]=v.useState(null),B=mu(r),[V,Q]=v.useState(!1),ne=v.useRef(!1);v.useEffect(()=>{if(y)return Ed(y)},[y]),gd();const ye=v.useCallback(G=>{const[J,...W]=B().map(he=>he.ref.current),[q]=W.slice(-1),le=document.activeElement;for(const he of G)if(he===le||(he==null||he.scrollIntoView({block:"nearest"}),he===J&&N&&(N.scrollTop=0),he===q&&N&&(N.scrollTop=N.scrollHeight),he==null||he.focus(),document.activeElement!==le))return},[B,N]),ve=v.useCallback(()=>ye([C,y]),[ye,C,y]);v.useEffect(()=>{V&&ve()},[V,ve]);const{onOpenChange:Ce,triggerPointerDownPosRef:ie}=w;v.useEffect(()=>{if(y){let G={x:0,y:0};const J=q=>{var le,he,Te,fe;G={x:Math.abs(Math.round(q.pageX)-((le=(he=ie.current)===null||he===void 0?void 0:he.x)!==null&&le!==void 0?le:0)),y:Math.abs(Math.round(q.pageY)-((Te=(fe=ie.current)===null||fe===void 0?void 0:fe.y)!==null&&Te!==void 0?Te:0))}},W=q=>{G.x<=10&&G.y<=10?q.preventDefault():y.contains(q.target)||Ce(!1),document.removeEventListener("pointermove",J),ie.current=null};return ie.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",W,{capture:!0})}}},[y,Ce,ie]),v.useEffect(()=>{const G=()=>Ce(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[Ce]);const[Ee,ee]=sx(G=>{const J=B().filter(le=>!le.disabled),W=J.find(le=>le.ref.current===document.activeElement),q=lx(J,G,W);q&&setTimeout(()=>q.ref.current.focus())}),O=v.useCallback((G,J,W)=>{const q=!ne.current&&!W;(w.value!==void 0&&w.value===J||q)&&(A(G),q&&(ne.current=!0))},[w.value]),k=v.useCallback(()=>y==null?void 0:y.focus(),[y]),b=v.useCallback((G,J,W)=>{const q=!ne.current&&!W;(w.value!==void 0&&w.value===J||q)&&H(G)},[w.value]),D=n==="popper"?ag:CC,U=D===ag?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:g}:{};return v.createElement(nx,{scope:r,content:y,viewport:N,onViewportChange:M,itemRefCallback:O,selectedItem:C,onItemLeave:k,itemTextRefCallback:b,focusSelectedItem:ve,selectedItemText:L,position:n,isPositioned:V,searchRef:Ee},v.createElement(_d,{as:ni,allowPinchZoom:!0},v.createElement(md,{asChild:!0,trapped:w.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:_e(i,G=>{var J;(J=w.trigger)===null||J===void 0||J.focus({preventScroll:!0}),G.preventDefault()})},v.createElement(lu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},v.createElement(D,pe({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:G=>G.preventDefault()},x,U,{onPlaced:()=>Q(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:_e(x.onKeyDown,G=>{const J=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!J&&G.key.length===1&&ee(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let q=B().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(G.key)&&(q=q.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const le=G.target,he=q.indexOf(le);q=q.slice(he+1)}setTimeout(()=>ye(q)),G.preventDefault()}})}))))))}),CC=v.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,o=pi(co,r),a=gi(co,r),[s,l]=v.useState(null),[u,c]=v.useState(null),f=Ve(t,S=>c(S)),d=mu(r),h=v.useRef(!1),m=v.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:x,focusSelectedItem:w}=a,y=v.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&p&&g&&x){const S=o.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),A=o.valueNode.getBoundingClientRect(),L=x.getBoundingClientRect();if(o.dir!=="rtl"){const le=L.left-C.left,he=A.left-le,Te=S.left-he,fe=S.width+Te,We=Math.max(fe,C.width),be=window.innerWidth-Ur,ge=Lp(he,[Ur,be-We]);s.style.minWidth=fe+"px",s.style.left=ge+"px"}else{const le=C.right-L.right,he=window.innerWidth-A.right-le,Te=window.innerWidth-S.right-he,fe=S.width+Te,We=Math.max(fe,C.width),be=window.innerWidth-Ur,ge=Lp(he,[Ur,be-We]);s.style.minWidth=fe+"px",s.style.right=ge+"px"}const H=d(),B=window.innerHeight-Ur*2,V=p.scrollHeight,Q=window.getComputedStyle(u),ne=parseInt(Q.borderTopWidth,10),ye=parseInt(Q.paddingTop,10),ve=parseInt(Q.borderBottomWidth,10),Ce=parseInt(Q.paddingBottom,10),ie=ne+ye+V+Ce+ve,Ee=Math.min(g.offsetHeight*5,ie),ee=window.getComputedStyle(p),O=parseInt(ee.paddingTop,10),k=parseInt(ee.paddingBottom,10),b=S.top+S.height/2-Ur,D=B-b,U=g.offsetHeight/2,G=g.offsetTop+U,J=ne+ye+G,W=ie-J;if(J<=b){const le=g===H[H.length-1].ref.current;s.style.bottom="0px";const he=u.clientHeight-p.offsetTop-p.offsetHeight,Te=Math.max(D,U+(le?k:0)+he+ve),fe=J+Te;s.style.height=fe+"px"}else{const le=g===H[0].ref.current;s.style.top="0px";const Te=Math.max(b,ne+p.offsetTop+(le?O:0)+U)+W;s.style.height=Te+"px",p.scrollTop=J-b+p.offsetTop}s.style.margin=`${Ur}px 0`,s.style.minHeight=Ee+"px",s.style.maxHeight=B+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,o.trigger,o.valueNode,s,u,p,g,x,o.dir,n]);Et(()=>y(),[y]);const[_,N]=v.useState();Et(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const M=v.useCallback(S=>{S&&m.current===!0&&(y(),w==null||w(),m.current=!1)},[y,w]);return v.createElement(AC,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:M},v.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},v.createElement(Pe.div,pe({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),ag=v.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Ur,...o}=e,a=Sd(r);return v.createElement(Xv,pe({},a,o,{ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[AC,Td]=Eo(co,{}),sg="SelectViewport",RC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=gi(sg,r),o=Td(sg,r),a=Ve(t,i.onViewportChange),s=v.useRef(0);return v.createElement(v.Fragment,null,v.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.createElement(gu.Slot,{scope:r},v.createElement(Pe.div,pe({"data-radix-select-viewport":"",role:"presentation"},n,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:_e(n.onScroll,l=>{const u=l.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&c){const d=Math.abs(s.current-u.scrollTop);if(d>0){const h=window.innerHeight-Ur*2,m=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(m,p);if(g<h){const x=g+d,w=Math.min(h,x),y=x-w;c.style.height=w+"px",c.style.bottom==="0px"&&(u.scrollTop=y>0?y:0,c.style.justifyContent="flex-end")}}}s.current=u.scrollTop})}))))}),OC="SelectGroup",[FC,DC]=Eo(OC),PC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Xr();return v.createElement(FC,{scope:r,id:i},v.createElement(Pe.div,pe({role:"group","aria-labelledby":i},n,{ref:t})))}),IC="SelectLabel",bC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=DC(IC,r);return v.createElement(Pe.div,pe({id:i.id},n,{ref:t}))}),Uf="SelectItem",[kC,ix]=Eo(Uf),$C=v.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...a}=e,s=pi(Uf,r),l=gi(Uf,r),u=s.value===n,[c,f]=v.useState(o??""),[d,h]=v.useState(!1),m=Ve(t,x=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,x,n,i)}),p=Xr(),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};return v.createElement(kC,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:v.useCallback(x=>{f(w=>{var y;return w||((y=x==null?void 0:x.textContent)!==null&&y!==void 0?y:"").trim()})},[])},v.createElement(gu.ItemSlot,{scope:r,value:n,disabled:i,textValue:c},v.createElement(Pe.div,pe({role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:m,onFocus:_e(a.onFocus,()=>h(!0)),onBlur:_e(a.onBlur,()=>h(!1)),onPointerUp:_e(a.onPointerUp,g),onPointerMove:_e(a.onPointerMove,x=>{if(i){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_e(a.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:_e(a.onKeyDown,x=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&x.key===" "||(fC.includes(x.key)&&g(),x.key===" "&&x.preventDefault())})}))))}),Cs="SelectItemText",NC=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...o}=e,a=pi(Cs,r),s=gi(Cs,r),l=ix(Cs,r),u=gC(Cs,r),[c,f]=v.useState(null),d=Ve(t,x=>f(x),l.onItemTextChange,x=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,x,l.value,l.disabled)}),h=c==null?void 0:c.textContent,m=v.useMemo(()=>v.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},h),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return Et(()=>(p(m),()=>g(m)),[p,g,m]),v.createElement(v.Fragment,null,v.createElement(Pe.span,pe({id:l.textId},o,{ref:d})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?di.createPortal(o.children,a.valueNode):null)}),MC="SelectItemIndicator",LC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ix(MC,r).isSelected?v.createElement(Pe.span,pe({"aria-hidden":!0},n,{ref:t})):null}),lg="SelectScrollUpButton",BC=v.forwardRef((e,t)=>{const r=gi(lg,e.__scopeSelect),n=Td(lg,e.__scopeSelect),[i,o]=v.useState(!1),a=Ve(t,n.onScrollButtonChange);return Et(()=>{if(r.viewport&&r.isPositioned){let u=function(){const c=l.scrollTop>0;o(c)};var s=u;const l=r.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?v.createElement(ox,pe({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),ug="SelectScrollDownButton",UC=v.forwardRef((e,t)=>{const r=gi(ug,e.__scopeSelect),n=Td(ug,e.__scopeSelect),[i,o]=v.useState(!1),a=Ve(t,n.onScrollButtonChange);return Et(()=>{if(r.viewport&&r.isPositioned){let u=function(){const c=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<c;o(f)};var s=u;const l=r.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?v.createElement(ox,pe({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),ox=v.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,o=gi("SelectScrollButton",r),a=v.useRef(null),s=mu(r),l=v.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return v.useEffect(()=>()=>l(),[l]),Et(()=>{var u;const c=s().find(f=>f.ref.current===document.activeElement);c==null||(u=c.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[s]),v.createElement(Pe.div,pe({"aria-hidden":!0},i,{ref:t,style:{flexShrink:0,...i.style},onPointerMove:_e(i.onPointerMove,()=>{var u;(u=o.onItemLeave)===null||u===void 0||u.call(o),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:_e(i.onPointerLeave,()=>{l()})}))}),ax=v.forwardRef((e,t)=>{const{value:r,...n}=e,i=v.useRef(null),o=Ve(t,i),a=AT(r);return v.useEffect(()=>{const s=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==r&&c){const f=new Event("change",{bubbles:!0});c.call(s,r),s.dispatchEvent(f)}},[a,r]),v.createElement(yd,{asChild:!0},v.createElement("select",pe({},n,{ref:o,defaultValue:r})))});ax.displayName="BubbleSelect";function sx(e){const t=It(e),r=v.useRef(""),n=v.useRef(0),i=v.useCallback(a=>{const s=r.current+a;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=v.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}function lx(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=HC(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function HC(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const VC=mC,WC=xC,zC=yC,GC=EC,jC=_C,XC=SC,KC=RC,_c=PC,cg=bC,YC=$C,qC=NC,QC=LC,ZC=BC,JC=UC;function Cd(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var e4=["color"],t4=v.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Cd(e,e4);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),r4=["color"],Hf=v.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Cd(e,r4);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),n4=["color"],i4=v.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Cd(e,n4);return v.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),v.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const Vi=({value:e,onChange:t,label:r="Select",placeholder:n="Select a fruit…",groups:i,labelType:o="col"})=>{const a=(i==null?void 0:i.length)===1;return Se(VC,{value:e,onValueChange:t,children:[Se(_c,{className:Nt("flex gap-1",{"flex-row items-center gap-2":o==="row","flex-col":o==="col"}),children:[K(cg,{className:"whitespace-nowrap",children:r}),Se(WC,{className:"justify-between bg-white text-black dark:text-white dark:bg-grey-900 whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":r,children:[K(zC,{placeholder:n}),K(GC,{children:K(Hf,{})})]})]}),K(jC,{children:Se(XC,{className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur overflow-hidden border-[1.5px] border-grey-700 rounded p-3 shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)]",children:[K(ZC,{className:"flex items-center justify-center h-[25px] cursor-default dark:text-white text-black",children:K(i4,{})}),K(KC,{className:"p-[5px]",children:a?K(_c,{children:i[0].items.map(s=>K(fg,{value:s.value,disabled:s.disabled,children:s.label}))}):i.map((s,l)=>Se(_c,{children:[K(cg,{className:"text-xs leading-[25px]",children:s.label}),s.items.map(u=>K(fg,{value:u.value,disabled:u.disabled,children:u.label},u.value))]},s.label))}),K(JC,{className:"flex items-center justify-center h-[25px] cursor-default dark:text-white text-black",children:K(Hf,{})})]})})]})},fg=v.forwardRef(({children:e,className:t,...r},n)=>Se(YC,{className:Nt("text-[13px] leading-none rounded-[3px] flex items-center h-[25px] pr-[35px] pl-[25px] relative select-none data-[disabled]:text-grey-400 data-[disabled]:pointer-events-none data-[highlighted]:outline-none data-[highlighted]:bg-grey-600 data-[highlighted]:text-white text-black dark:text-white",t),...r,ref:n,children:[K(qC,{children:e}),K(QC,{className:"absolute left-0 w-[25px] inline-flex items-center justify-center",children:K(t4,{})})]}));/**
* match-sorter-utils
*
* 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
*/const ux={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},o4=Object.keys(ux).join("|"),a4=new RegExp(o4,"g");function s4(e){return e.replace(a4,t=>ux[t])}/**
* @name match-sorter
* @license MIT license.
* @copyright (c) 2099 Kent C. Dodds
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
*/const Vt={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function l4(e,t,r){var n;if(r=r||{},r.threshold=(n=r.threshold)!=null?n:Vt.MATCHES,!r.accessors){const a=dg(e,t,r);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:r.threshold,passed:a>=r.threshold}}const i=d4(e,r.accessors),o={rankedValue:e,rank:Vt.NO_MATCH,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let a=0;a<i.length;a++){const s=i[a];let l=dg(s.itemValue,t,r);const{minRanking:u,maxRanking:c,threshold:f=r.threshold}=s.attributes;l<u&&l>=Vt.MATCHES?l=u:l>c&&(l=c),l=Math.min(l,c),l>=f&&l>o.rank&&(o.rank=l,o.passed=!0,o.accessorIndex=a,o.accessorThreshold=f,o.rankedValue=s.itemValue)}return o}function dg(e,t,r){return e=hg(e,r),t=hg(t,r),t.length>e.length?Vt.NO_MATCH:e===t?Vt.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Vt.EQUAL:e.startsWith(t)?Vt.STARTS_WITH:e.includes(` ${t}`)?Vt.WORD_STARTS_WITH:e.includes(t)?Vt.CONTAINS:t.length===1?Vt.NO_MATCH:u4(e).includes(t)?Vt.ACRONYM:c4(e,t))}function u4(e){let t="";return e.split(" ").forEach(n=>{n.split("-").forEach(o=>{t+=o.substr(0,1)})}),t}function c4(e,t){let r=0,n=0;function i(l,u,c){for(let f=c,d=u.length;f<d;f++)if(u[f]===l)return r+=1,f+1;return-1}function o(l){const u=1/l,c=r/t.length;return Vt.MATCHES+c*u}const a=i(t[0],e,0);if(a<0)return Vt.NO_MATCH;n=a;for(let l=1,u=t.length;l<u;l++){const c=t[l];if(n=i(c,e,n),!(n>-1))return Vt.NO_MATCH}const s=n-a;return o(s)}function hg(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=s4(e)),e}function f4(e,t){let r=t;typeof t=="object"&&(r=t.accessor);const n=r(e);return n==null?[]:Array.isArray(n)?n:[String(n)]}function d4(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const o=t[n],a=h4(o),s=f4(e,o);for(let l=0,u=s.length;l<u;l++)r.push({itemValue:s[l],attributes:a})}return r}const pg={maxRanking:1/0,minRanking:-1/0};function h4(e){return typeof e=="function"?pg:{...pg,...e}}var cx={exports:{}};(function(e){(function(t){var r=y(),n=_(),i=N(),o=M(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:c,toJpeg:f,toBlob:d,toPixelData:u,impl:{fontFaces:i,images:o,util:r,inliner:n,options:{}}};e.exports=s;function l(S,C){return C=C||{},h(C),Promise.resolve(S).then(function(L){return p(L,C.filter,!0)}).then(g).then(x).then(A).then(function(L){return w(L,C.width||r.width(S),C.height||r.height(S))});function A(L){return C.bgcolor&&(L.style.backgroundColor=C.bgcolor),C.width&&(L.style.width=C.width+"px"),C.height&&(L.style.height=C.height+"px"),C.style&&Object.keys(C.style).forEach(function(H){L.style[H]=C.style[H]}),L}}function u(S,C){return m(S,C||{}).then(function(A){return A.getContext("2d").getImageData(0,0,r.width(S),r.height(S)).data})}function c(S,C){return m(S,C||{}).then(function(A){return A.toDataURL()})}function f(S,C){return C=C||{},m(S,C).then(function(A){return A.toDataURL("image/jpeg",C.quality||1)})}function d(S,C){return m(S,C||{}).then(r.canvasToBlob)}function h(S){typeof S.imagePlaceholder>"u"?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=S.imagePlaceholder,typeof S.cacheBust>"u"?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=S.cacheBust}function m(S,C){return l(S,C).then(r.makeImage).then(r.delay(100)).then(function(L){var H=A(S);return H.getContext("2d").drawImage(L,0,0),H});function A(L){var H=document.createElement("canvas");if(H.width=C.width||r.width(L),H.height=C.height||r.height(L),C.bgcolor){var B=H.getContext("2d");B.fillStyle=C.bgcolor,B.fillRect(0,0,H.width,H.height)}return H}}function p(S,C,A){if(!A&&C&&!C(S))return Promise.resolve();return Promise.resolve(S).then(L).then(function(V){return H(S,V,C)}).then(function(V){return B(S,V)});function L(V){return V instanceof HTMLCanvasElement?r.makeImage(V.toDataURL()):V.cloneNode(!1)}function H(V,Q,ne){var ye=V.childNodes;if(ye.length===0)return Promise.resolve(Q);return ve(Q,r.asArray(ye),ne).then(function(){return Q});function ve(Ce,ie,Ee){var ee=Promise.resolve();return ie.forEach(function(O){ee=ee.then(function(){return p(O,Ee)}).then(function(k){k&&Ce.appendChild(k)})}),ee}}function B(V,Q){if(!(Q instanceof Element))return Q;return Promise.resolve().then(ne).then(ye).then(ve).then(Ce).then(function(){return Q});function ne(){ie(window.getComputedStyle(V),Q.style);function ie(Ee,ee){Ee.cssText?ee.cssText=Ee.cssText:O(Ee,ee);function O(k,b){r.asArray(k).forEach(function(D){b.setProperty(D,k.getPropertyValue(D),k.getPropertyPriority(D))})}}}function ye(){[":before",":after"].forEach(function(Ee){ie(Ee)});function ie(Ee){var ee=window.getComputedStyle(V,Ee),O=ee.getPropertyValue("content");if(O===""||O==="none")return;var k=r.uid();Q.className=Q.className+" "+k;var b=document.createElement("style");b.appendChild(D(k,Ee,ee)),Q.appendChild(b);function D(U,G,J){var W="."+U+":"+G,q=J.cssText?le(J):he(J);return document.createTextNode(W+"{"+q+"}");function le(Te){var fe=Te.getPropertyValue("content");return Te.cssText+" content: "+fe+";"}function he(Te){return r.asArray(Te).map(fe).join("; ")+";";function fe(We){return We+": "+Te.getPropertyValue(We)+(Te.getPropertyPriority(We)?" !important":"")}}}}}function ve(){V instanceof HTMLTextAreaElement&&(Q.innerHTML=V.value),V instanceof HTMLInputElement&&Q.setAttribute("value",V.value)}function Ce(){Q instanceof SVGElement&&(Q.setAttribute("xmlns","http://www.w3.org/2000/svg"),Q instanceof SVGRectElement&&["width","height"].forEach(function(ie){var Ee=Q.getAttribute(ie);Ee&&Q.style.setProperty(ie,Ee)}))}}}function g(S){return i.resolveAll().then(function(C){var A=document.createElement("style");return S.appendChild(A),A.appendChild(document.createTextNode(C)),S})}function x(S){return o.inlineAll(S).then(function(){return S})}function w(S,C,A){return Promise.resolve(S).then(function(L){return L.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(L)}).then(r.escapeXhtml).then(function(L){return'<foreignObject x="0" y="0" width="100%" height="100%">'+L+"</foreignObject>"}).then(function(L){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+C+'" height="'+A+'">'+L+"</svg>"}).then(function(L){return"data:image/svg+xml;charset=utf-8,"+L})}function y(){return{escape:Ce,parseExtension:C,mimeType:A,dataAsUrl:ve,isDataUrl:L,canvasToBlob:B,resolveUrl:V,getAndEncode:ye,uid:Q(),delay:ie,asArray:Ee,escapeXhtml:ee,makeImage:ne,width:O,height:k};function S(){var D="application/font-woff",U="image/jpeg";return{woff:D,woff2:D,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:U,jpeg:U,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function C(D){var U=/\.([^\.\/]*?)$/g.exec(D);return U?U[1]:""}function A(D){var U=C(D).toLowerCase();return S()[U]||""}function L(D){return D.search(/^(data:)/)!==-1}function H(D){return new Promise(function(U){for(var G=window.atob(D.toDataURL().split(",")[1]),J=G.length,W=new Uint8Array(J),q=0;q<J;q++)W[q]=G.charCodeAt(q);U(new Blob([W],{type:"image/png"}))})}function B(D){return D.toBlob?new Promise(function(U){D.toBlob(U)}):H(D)}function V(D,U){var G=document.implementation.createHTMLDocument(),J=G.createElement("base");G.head.appendChild(J);var W=G.createElement("a");return G.body.appendChild(W),J.href=U,W.href=D,W.href}function Q(){var D=0;return function(){return"u"+U()+D++;function U(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function ne(D){return new Promise(function(U,G){var J=new Image;J.onload=function(){U(J)},J.onerror=G,J.src=D})}function ye(D){var U=3e4;return s.impl.options.cacheBust&&(D+=(/\?/.test(D)?"&":"?")+new Date().getTime()),new Promise(function(G){var J=new XMLHttpRequest;J.onreadystatechange=le,J.ontimeout=he,J.responseType="blob",J.timeout=U,J.open("GET",D,!0),J.send();var W;if(s.impl.options.imagePlaceholder){var q=s.impl.options.imagePlaceholder.split(/,/);q&&q[1]&&(W=q[1])}function le(){if(J.readyState===4){if(J.status!==200){W?G(W):Te("cannot fetch resource: "+D+", status: "+J.status);return}var fe=new FileReader;fe.onloadend=function(){var We=fe.result.split(/,/)[1];G(We)},fe.readAsDataURL(J.response)}}function he(){W?G(W):Te("timeout of "+U+"ms occured while fetching resource: "+D)}function Te(fe){console.error(fe),G("")}})}function ve(D,U){return"data:"+U+";base64,"+D}function Ce(D){return D.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function ie(D){return function(U){return new Promise(function(G){setTimeout(function(){G(U)},D)})}}function Ee(D){for(var U=[],G=D.length,J=0;J<G;J++)U.push(D[J]);return U}function ee(D){return D.replace(/#/g,"%23").replace(/\n/g,"%0A")}function O(D){var U=b(D,"border-left-width"),G=b(D,"border-right-width");return D.scrollWidth+U+G}function k(D){var U=b(D,"border-top-width"),G=b(D,"border-bottom-width");return D.scrollHeight+U+G}function b(D,U){var G=window.getComputedStyle(D).getPropertyValue(U);return parseFloat(G.replace("px",""))}}function _(){var S=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:H,shouldProcess:C,impl:{readUrls:A,inline:L}};function C(B){return B.search(S)!==-1}function A(B){for(var V=[],Q;(Q=S.exec(B))!==null;)V.push(Q[1]);return V.filter(function(ne){return!r.isDataUrl(ne)})}function L(B,V,Q,ne){return Promise.resolve(V).then(function(ve){return Q?r.resolveUrl(ve,Q):ve}).then(ne||r.getAndEncode).then(function(ve){return r.dataAsUrl(ve,r.mimeType(V))}).then(function(ve){return B.replace(ye(V),"$1"+ve+"$3")});function ye(ve){return new RegExp(`(url\\(['"]?)(`+r.escape(ve)+`)(['"]?\\))`,"g")}}function H(B,V,Q){if(ne())return Promise.resolve(B);return Promise.resolve(B).then(A).then(function(ye){var ve=Promise.resolve(B);return ye.forEach(function(Ce){ve=ve.then(function(ie){return L(ie,Ce,V,Q)})}),ve});function ne(){return!C(B)}}}function N(){return{resolveAll:S,impl:{readAll:C}};function S(){return C().then(function(A){return Promise.all(A.map(function(L){return L.resolve()}))}).then(function(A){return A.join(`
`)})}function C(){return Promise.resolve(r.asArray(document.styleSheets)).then(L).then(A).then(function(B){return B.map(H)});function A(B){return B.filter(function(V){return V.type===CSSRule.FONT_FACE_RULE}).filter(function(V){return n.shouldProcess(V.style.getPropertyValue("src"))})}function L(B){var V=[];return B.forEach(function(Q){try{r.asArray(Q.cssRules||[]).forEach(V.push.bind(V))}catch(ne){console.log("Error while reading CSS rules from "+Q.href,ne.toString())}}),V}function H(B){return{resolve:function(){var Q=(B.parentStyleSheet||{}).href;return n.inlineAll(B.cssText,Q)},src:function(){return B.style.getPropertyValue("src")}}}}}function M(){return{inlineAll:C,impl:{newImage:S}};function S(A){return{inline:L};function L(H){return r.isDataUrl(A.src)?Promise.resolve():Promise.resolve(A.src).then(H||r.getAndEncode).then(function(B){return r.dataAsUrl(B,r.mimeType(A.src))}).then(function(B){return new Promise(function(V,Q){A.onload=V,A.onerror=Q,A.src=B})})}}function C(A){if(!(A instanceof Element))return Promise.resolve(A);return L(A).then(function(){return A instanceof HTMLImageElement?S(A).inline():Promise.all(r.asArray(A.childNodes).map(function(H){return C(H)}))});function L(H){var B=H.style.getPropertyValue("background");return B?n.inlineAll(B).then(function(V){H.style.setProperty("background",V,H.style.getPropertyPriority("background"))}).then(function(){return H}):Promise.resolve(H)}}}})()})(cx);var p4=cx.exports;const g4=Ha(p4);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Pl={};Pl.version="0.18.5";var fx=1252,m4=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],dx=function(e){m4.indexOf(e)!=-1&&(fx=e)};function v4(){dx(1252)}var ka=function(e){dx(e)};function x4(){ka(1200),v4()}function w4(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var As=function(t){return String.fromCharCode(t)},gg=function(t){return String.fromCharCode(t)},Gn,gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function $a(e){for(var t="",r=0,n=0,i=0,o=0,a=0,s=0,l=0,u=0;u<e.length;)r=e.charCodeAt(u++),o=r>>2,n=e.charCodeAt(u++),a=(r&3)<<4|n>>4,i=e.charCodeAt(u++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=gn.charAt(o)+gn.charAt(a)+gn.charAt(s)+gn.charAt(l);return t}function en(e){var t="",r=0,n=0,i=0,o=0,a=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)o=gn.indexOf(e.charAt(u++)),a=gn.indexOf(e.charAt(u++)),r=o<<2|a>>4,t+=String.fromCharCode(r),s=gn.indexOf(e.charAt(u++)),n=(a&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=gn.indexOf(e.charAt(u++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var Ne=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),an=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function ii(e){return Ne?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function mg(e){return Ne?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Er=function(t){return Ne?an(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function vu(e){if(typeof ArrayBuffer>"u")return Er(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Qa(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function y4(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var wt=Ne?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:an(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(o){return Array.isArray(o)?o:[].slice.call(o)}))};function E4(e){for(var t=[],r=0,n=e.length+250,i=ii(e.length+255),o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a<128)i[r++]=a;else if(a<2048)i[r++]=192|a>>6&31,i[r++]=128|a&63;else if(a>=55296&&a<57344){a=(a&1023)+64;var s=e.charCodeAt(++o)&1023;i[r++]=240|a>>8&7,i[r++]=128|a>>2&63,i[r++]=128|s>>6&15|(a&3)<<4,i[r++]=128|s&63}else i[r++]=224|a>>12&15,i[r++]=128|a>>6&63,i[r++]=128|a&63;r>n&&(t.push(i.slice(0,r)),r=0,i=ii(65535),n=65530)}return t.push(i.slice(0,r)),wt(t)}var da=/\u0000/g,Rs=/[\u0001-\u0006]/g;function to(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Sr(e,t){var r=""+e;return r.length>=t?r:Je("0",t-r.length)+r}function Ad(e,t){var r=""+e;return r.length>=t?r:Je(" ",t-r.length)+r}function Il(e,t){var r=""+e;return r.length>=t?r:r+Je(" ",t-r.length)}function _4(e,t){var r=""+Math.round(e);return r.length>=t?r:Je("0",t-r.length)+r}function S4(e,t){var r=""+e;return r.length>=t?r:Je("0",t-r.length)+r}var vg=Math.pow(2,32);function Fi(e,t){if(e>vg||e<-vg)return _4(e,t);var r=Math.round(e);return S4(r,t)}function bl(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var xg=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Sc=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function T4(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var rt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},wg={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},C4={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function kl(e,t,r){for(var n=e<0?-1:1,i=e*n,o=0,a=1,s=0,l=1,u=0,c=0,f=Math.floor(i);u<t&&(f=Math.floor(i),s=f*a+o,c=f*u+l,!(i-f<5e-8));)i=1/(i-f),o=a,a=s,l=u,u=c;if(c>t&&(u>t?(c=l,s=o):(c=u,s=a)),!r)return[0,n*s,c];var d=Math.floor(n*s/c);return[d,n*s-d*c,c]}function Os(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),o=0,a=[],s={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++i==86400&&(s.T=i=0,++n,++s.D)),n===60)a=r?[1317,10,29]:[1900,2,29],o=3;else if(n===0)a=r?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),n<60&&(o=(o+6)%7),r&&(o=I4(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var hx=new Date(1899,11,31,0,0,0),A4=hx.getTime(),R4=new Date(1900,2,1,0,0,0);function px(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=R4&&(r+=24*60*60*1e3),(r-(A4+(e.getTimezoneOffset()-hx.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Rd(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function O4(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function F4(e){var t=e<0?12:11,r=Rd(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function D4(e){var t=Rd(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function P4(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=F4(e):t===10?r=e.toFixed(10).substr(0,12):r=D4(e),Rd(O4(r.toUpperCase()))}function Vf(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):P4(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return kn(14,px(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function I4(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function b4(e,t,r,n){var i="",o=0,a=0,s=r.y,l,u=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,u=t.length;break;case 3:return Sc[r.m-1][1];case 5:return Sc[r.m-1][0];default:return Sc[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,u=t.length;break;case 3:return xg[r.q][0];default:return xg[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Sr(r.S,t.length):(n>=2?a=n===3?1e3:100:a=n===1?10:1,o=Math.round(a*(r.S+r.u)),o>=60*a&&(o=0),t==="s"?o===0?"0":""+o/a:(i=Sr(o,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}u=t.length===3?1:2;break;case 101:l=s,u=1;break}var c=u>0?Sr(l,u):"";return c}function mn(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var gx=/%/g;function k4(e,t,r){var n=t.replace(gx,""),i=t.length-n.length;return qr(e,n,r*Math.pow(10,2*i))+Je("%",i)}function $4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return qr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function mx(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+mx(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),r=(t/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),r.indexOf("e")===-1){var a=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+o):r+="E+"+(a-o);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+o)%i)+"."+c.substr(o)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var vx=/# (\?+)( ?)\/( ?)(\d+)/;function N4(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),o=Math.floor(i/n),a=i-o*n,s=n;return r+(o===0?"":""+o)+" "+(a===0?Je(" ",e[1].length+1+e[4].length):Ad(a,e[1].length)+e[2]+"/"+e[3]+Sr(s,e[4].length))}function M4(e,t,r){return r+(t===0?"":""+t)+Je(" ",e[1].length+2+e[4].length)}var xx=/^#*0*\.([0#]+)/,wx=/\).*[0#]/,yx=/\(###\) ###\\?-####/;function kt(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function yg(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Eg(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function L4(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function B4(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function nr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(wx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?nr("n",n,r):"("+nr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return $4(e,t,r);if(t.indexOf("%")!==-1)return k4(e,t,r);if(t.indexOf("E")!==-1)return mx(t,r);if(t.charCodeAt(0)===36)return"$"+nr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,o,a,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Fi(l,t.length);if(t.match(/^[#?]+$/))return i=Fi(r,0),i==="0"&&(i=""),i.length>t.length?i:kt(t.substr(0,t.length-i.length))+i;if(o=t.match(vx))return N4(o,l,u);if(t.match(/^#+0+$/))return u+Fi(l,t.length-t.indexOf("0"));if(o=t.match(xx))return i=yg(r,o[1].length).replace(/^([^\.]+)$/,"$1."+kt(o[1])).replace(/\.$/,"."+kt(o[1])).replace(/\.(\d*)$/,function(m,p){return"."+p+Je("0",kt(o[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return u+yg(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return u+mn(Fi(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+nr(e,t,-r):mn(""+(Math.floor(r)+L4(r,o[1].length)))+"."+Sr(Eg(r,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return nr(e,t.replace(/^#,#*,/,""),r);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=to(nr(e,t.replace(/[\\-]/g,""),r)),a=0,to(to(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(yx))return i=nr(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=kl(l,Math.pow(10,a)-1,!1),i=""+u,c=qr("n",o[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=Il(s[2],a),c.length<o[4].length&&(c=kt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=kl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Ad(s[1],a)+o[2]+"/"+o[3]+Il(s[2],a):Je(" ",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=Fi(r,0),t.length<=i.length?i:kt(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=t.indexOf(".")-a,d=t.length-i.length-f;return kt(t.substr(0,f)+i+t.substr(t.length-d))}if(o=t.match(/^00,000\.([#0]*0)$/))return a=Eg(r,o[1].length),r<0?"-"+nr(e,t,-r):mn(B4(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Sr(0,3-m.length):"")+m})+"."+Sr(a,o[1].length);switch(t){case"###,##0.00":return nr(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var h=mn(Fi(l,0));return h!=="0"?u+h:"";case"###,###.00":return nr(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return nr(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function U4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return qr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function H4(e,t,r){var n=t.replace(gx,""),i=t.length-n.length;return qr(e,n,r*Math.pow(10,2*i))+Je("%",i)}function Ex(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Ex(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),r=(t/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),!r.match(/[Ee]/)){var a=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+o):r+="E+"+(a-o),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+o)%i)+"."+c.substr(o)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Ar(e,t,r){if(e.charCodeAt(0)===40&&!t.match(wx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ar("n",n,r):"("+Ar("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return U4(e,t,r);if(t.indexOf("%")!==-1)return H4(e,t,r);if(t.indexOf("E")!==-1)return Ex(t,r);if(t.charCodeAt(0)===36)return"$"+Ar(e,t.substr(t.charAt(1)==" "?2:1),r);var i,o,a,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Sr(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:kt(t.substr(0,t.length-i.length))+i;if(o=t.match(vx))return M4(o,l,u);if(t.match(/^#+0+$/))return u+Sr(l,t.length-t.indexOf("0"));if(o=t.match(xx))return i=(""+r).replace(/^([^\.]+)$/,"$1."+kt(o[1])).replace(/\.$/,"."+kt(o[1])),i=i.replace(/\.(\d*)$/,function(m,p){return"."+p+Je("0",kt(o[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return u+mn(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ar(e,t,-r):mn(""+r)+"."+Je("0",o[1].length);if(o=t.match(/^#,#*,#0/))return Ar(e,t.replace(/^#,#*,/,""),r);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=to(Ar(e,t.replace(/[\\-]/g,""),r)),a=0,to(to(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(yx))return i=Ar(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=kl(l,Math.pow(10,a)-1,!1),i=""+u,c=qr("n",o[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=Il(s[2],a),c.length<o[4].length&&(c=kt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=kl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Ad(s[1],a)+o[2]+"/"+o[3]+Il(s[2],a):Je(" ",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:kt(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=t.indexOf(".")-a,d=t.length-i.length-f;return kt(t.substr(0,f)+i+t.substr(t.length-d))}if(o=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Ar(e,t,-r):mn(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Sr(0,3-m.length):"")+m})+"."+Sr(0,o[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=mn(""+l);return h!=="0"?u+h:"";default:if(t.match(/\.[0#?]*$/))return Ar(e,t.slice(0,t.lastIndexOf(".")),r)+kt(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function qr(e,t,r){return(r|0)===r?Ar(e,t,r):nr(e,t,r)}function V4(e){for(var t=[],r=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var _x=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Sx(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":bl(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(_x))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function W4(e,t,r,n){for(var i=[],o="",a=0,s="",l="t",u,c,f,d="H";a<e.length;)switch(s=e.charAt(a)){case"G":if(!bl(e,a))throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"G",v:"General"},a+=7;break;case'"':for(o="";(f=e.charCodeAt(++a))!==34&&a<e.length;)o+=String.fromCharCode(f);i[i.length]={t:"t",v:o},++a;break;case"\\":var h=e.charAt(++a),m=h==="("||h===")"?h:"t";i[i.length]={t:m,v:h},++a;break;case"_":i[i.length]={t:"t",v:" "},a+=2;break;case"@":i[i.length]={t:"T",v:t},++a;break;case"B":case"b":if(e.charAt(a+1)==="1"||e.charAt(a+1)==="2"){if(u==null&&(u=Os(t,r,e.charAt(a+1)==="2"),u==null))return"";i[i.length]={t:"X",v:e.substr(a,2)},l=s,a+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||u==null&&(u=Os(t,r),u==null))return"";for(o=s;++a<e.length&&e.charAt(a).toLowerCase()===s;)o+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),i[i.length]={t:s,v:o},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(u==null&&(u=Os(t,r)),e.substr(a,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",d="h",a+=3):e.substr(a,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",a+=5,d="h"):e.substr(a,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",a+=5,d="h"):(p.t="t",++a),u==null&&p.t==="T")return"";i[i.length]=p,l=s;break;case"[":for(o=s;e.charAt(a++)!=="]"&&a<e.length;)o+=e.charAt(a);if(o.slice(-1)!=="]")throw'unterminated "[" block: |'+o+"|";if(o.match(_x)){if(u==null&&(u=Os(t,r),u==null))return"";i[i.length]={t:"Z",v:o.toLowerCase()},l=o.charAt(1)}else o.indexOf("$")>-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",Sx(e)||(i[i.length]={t:"t",v:o}));break;case".":if(u!=null){for(o=s;++a<e.length&&(s=e.charAt(a))==="0";)o+=s;i[i.length]={t:"s",v:o};break}case"0":case"#":for(o=s;++a<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(a))>-1;)o+=s;i[i.length]={t:"n",v:o};break;case"?":for(o=s;e.charAt(++a)===s;)o+=s;i[i.length]={t:s,v:o},l=s;break;case"*":++a,(e.charAt(a)==" "||e.charAt(a)=="*")&&++a;break;case"(":case")":i[i.length]={t:n===1?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=s;a<e.length&&"0123456789".indexOf(e.charAt(++a))>-1;)o+=e.charAt(a);i[i.length]={t:"D",v:o};break;case" ":i[i.length]={t:s,v:s},++a;break;case"$":i[i.length]={t:"t",v:"$"},++a;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"t",v:s},++a;break}var g=0,x=0,w;for(a=i.length-1,l="t";a>=0;--a)switch(i[a].t){case"h":case"H":i[a].t=d,l="h",g<1&&(g=1);break;case"s":(w=i[a].v.match(/\.0+$/))&&(x=Math.max(x,w[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=i[a].t;break;case"m":l==="s"&&(i[a].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&i[a].v.match(/[Hh]/)&&(g=1),g<2&&i[a].v.match(/[Mm]/)&&(g=2),g<3&&i[a].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var y="",_;for(a=0;a<i.length;++a)switch(i[a].t){case"t":case"T":case" ":case"D":break;case"X":i[a].v="",i[a].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[a].v=b4(i[a].t.charCodeAt(0),i[a].v,u,x),i[a].t="t";break;case"n":case"?":for(_=a+1;i[_]!=null&&((s=i[_].t)==="?"||s==="D"||(s===" "||s==="t")&&i[_+1]!=null&&(i[_+1].t==="?"||i[_+1].t==="t"&&i[_+1].v==="/")||i[a].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[_].v==="/"||i[_].v===" "&&i[_+1]!=null&&i[_+1].t=="?"));)i[a].v+=i[_].v,i[_]={v:"",t:";"},++_;y+=i[a].v,a=_-1;break;case"G":i[a].t="t",i[a].v=Vf(t,r);break}var N="",M,S;if(y.length>0){y.charCodeAt(0)==40?(M=t<0&&y.charCodeAt(0)===45?-t:t,S=qr("n",y,M)):(M=t<0&&n>1?-t:t,S=qr("n",y,M),M<0&&i[0]&&i[0].t=="t"&&(S=S.substr(1),i[0].v="-"+i[0].v)),_=S.length-1;var C=i.length;for(a=0;a<i.length;++a)if(i[a]!=null&&i[a].t!="t"&&i[a].v.indexOf(".")>-1){C=a;break}var A=i.length;if(C===i.length&&S.indexOf("E")===-1){for(a=i.length-1;a>=0;--a)i[a]==null||"n?".indexOf(i[a].t)===-1||(_>=i[a].v.length-1?(_-=i[a].v.length,i[a].v=S.substr(_+1,i[a].v.length)):_<0?i[a].v="":(i[a].v=S.substr(0,_+1),_=-1),i[a].t="t",A=a);_>=0&&A<i.length&&(i[A].v=S.substr(0,_+1)+i[A].v)}else if(C!==i.length&&S.indexOf("E")===-1){for(_=S.indexOf(".")-1,a=C;a>=0;--a)if(!(i[a]==null||"n?".indexOf(i[a].t)===-1)){for(c=i[a].v.indexOf(".")>-1&&a===C?i[a].v.indexOf(".")-1:i[a].v.length-1,N=i[a].v.substr(c+1);c>=0;--c)_>=0&&(i[a].v.charAt(c)==="0"||i[a].v.charAt(c)==="#")&&(N=S.charAt(_--)+N);i[a].v=N,i[a].t="t",A=a}for(_>=0&&A<i.length&&(i[A].v=S.substr(0,_+1)+i[A].v),_=S.indexOf(".")+1,a=C;a<i.length;++a)if(!(i[a]==null||"n?(".indexOf(i[a].t)===-1&&a!==C)){for(c=i[a].v.indexOf(".")>-1&&a===C?i[a].v.indexOf(".")+1:0,N=i[a].v.substr(0,c);c<i[a].v.length;++c)_<S.length&&(N+=S.charAt(_++));i[a].v=N,i[a].t="t",A=a}}}for(a=0;a<i.length;++a)i[a]!=null&&"n?".indexOf(i[a].t)>-1&&(M=n>1&&t<0&&a>0&&i[a-1].v==="-"?-t:t,i[a].v=qr(i[a].t,i[a].v,M),i[a].t="t");var L="";for(a=0;a!==i.length;++a)i[a]!=null&&(L+=i[a].v);return L}var _g=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Sg(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function z4(e,t){var r=V4(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var o=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,o];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var a=r[0].match(_g),s=r[1].match(_g);return Sg(t,a)?[n,r[0]]:Sg(t,s)?[n,r[1]]:[n,r[a!=null&&s!=null?2:1]]}return[n,o]}function kn(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:rt)[e],n==null&&(n=r.table&&r.table[wg[e]]||rt[wg[e]]),n==null&&(n=C4[e]||"General");break}if(bl(n,0))return Vf(t,r);t instanceof Date&&(t=px(t,r.date1904));var i=z4(n,t);if(bl(i[1]))return Vf(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return W4(i[1],t,r,i[0])}function Tx(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(rt[r]==null){t<0&&(t=r);continue}if(rt[r]==e){t=r;break}}t<0&&(t=391)}return rt[t]=e,t}function xu(e){for(var t=0;t!=392;++t)e[t]!==void 0&&Tx(e[t],t)}function wu(){rt=T4()}var Cx=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function G4(e){var t=typeof e=="number"?rt[e]:e;return t=t.replace(Cx,"(\\d+)"),new RegExp("^"+t+"$")}function j4(e,t,r){var n=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(Cx)||[]).forEach(function(f,d){var h=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":o=h;break;case"h":a=h;break;case"s":l=h;break;case"m":a>=0?s=h:i=h;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var u=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var c=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return a==-1&&s==-1&&l==-1?u:n==-1&&i==-1&&o==-1?c:u+"T"+c}var X4=function(){var e={};e.version="1.2.0";function t(){for(var S=0,C=new Array(256),A=0;A!=256;++A)S=A,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,C[A]=S;return typeof Int32Array<"u"?new Int32Array(C):C}var r=t();function n(S){var C=0,A=0,L=0,H=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(L=0;L!=256;++L)H[L]=S[L];for(L=0;L!=256;++L)for(A=S[L],C=256+L;C<4096;C+=256)A=H[C]=A>>>8^S[A&255];var B=[];for(L=1;L!=16;++L)B[L-1]=typeof Int32Array<"u"?H.subarray(L*256,L*256+256):H.slice(L*256,L*256+256);return B}var i=n(r),o=i[0],a=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],d=i[7],h=i[8],m=i[9],p=i[10],g=i[11],x=i[12],w=i[13],y=i[14];function _(S,C){for(var A=C^-1,L=0,H=S.length;L<H;)A=A>>>8^r[(A^S.charCodeAt(L++))&255];return~A}function N(S,C){for(var A=C^-1,L=S.length-15,H=0;H<L;)A=y[S[H++]^A&255]^w[S[H++]^A>>8&255]^x[S[H++]^A>>16&255]^g[S[H++]^A>>>24]^p[S[H++]]^m[S[H++]]^h[S[H++]]^d[S[H++]]^f[S[H++]]^c[S[H++]]^u[S[H++]]^l[S[H++]]^s[S[H++]]^a[S[H++]]^o[S[H++]]^r[S[H++]];for(L+=15;H<L;)A=A>>>8^r[(A^S[H++])&255];return~A}function M(S,C){for(var A=C^-1,L=0,H=S.length,B=0,V=0;L<H;)B=S.charCodeAt(L++),B<128?A=A>>>8^r[(A^B)&255]:B<2048?(A=A>>>8^r[(A^(192|B>>6&31))&255],A=A>>>8^r[(A^(128|B&63))&255]):B>=55296&&B<57344?(B=(B&1023)+64,V=S.charCodeAt(L++)&1023,A=A>>>8^r[(A^(240|B>>8&7))&255],A=A>>>8^r[(A^(128|B>>2&63))&255],A=A>>>8^r[(A^(128|V>>6&15|(B&3)<<4))&255],A=A>>>8^r[(A^(128|V&63))&255]):(A=A>>>8^r[(A^(224|B>>12&15))&255],A=A>>>8^r[(A^(128|B>>6&63))&255],A=A>>>8^r[(A^(128|B&63))&255]);return~A}return e.table=r,e.bstr=_,e.buf=N,e.str=M,e}(),He=function(){var t={};t.version="1.2.1";function r(E,F){for(var T=E.split("/"),R=F.split("/"),P=0,I=0,j=Math.min(T.length,R.length);P<j;++P){if(I=T[P].length-R[P].length)return I;if(T[P]!=R[P])return T[P]<R[P]?-1:1}return T.length-R.length}function n(E){if(E.charAt(E.length-1)=="/")return E.slice(0,-1).indexOf("/")===-1?E:n(E.slice(0,-1));var F=E.lastIndexOf("/");return F===-1?E:E.slice(0,F+1)}function i(E){if(E.charAt(E.length-1)=="/")return i(E.slice(0,-1));var F=E.lastIndexOf("/");return F===-1?E:E.slice(F+1)}function o(E,F){typeof F=="string"&&(F=new Date(F));var T=F.getHours();T=T<<6|F.getMinutes(),T=T<<5|F.getSeconds()>>>1,E.write_shift(2,T);var R=F.getFullYear()-1980;R=R<<4|F.getMonth()+1,R=R<<5|F.getDate(),E.write_shift(2,R)}function a(E){var F=E.read_shift(2)&65535,T=E.read_shift(2)&65535,R=new Date,P=T&31;T>>>=5;var I=T&15;T>>>=4,R.setMilliseconds(0),R.setFullYear(T+1980),R.setMonth(I-1),R.setDate(P);var j=F&31;F>>>=5;var te=F&63;return F>>>=6,R.setHours(F),R.setMinutes(te),R.setSeconds(j<<1),R}function s(E){Yt(E,0);for(var F={},T=0;E.l<=E.length-4;){var R=E.read_shift(2),P=E.read_shift(2),I=E.l+P,j={};switch(R){case 21589:T=E.read_shift(1),T&1&&(j.mtime=E.read_shift(4)),P>5&&(T&2&&(j.atime=E.read_shift(4)),T&4&&(j.ctime=E.read_shift(4))),j.mtime&&(j.mt=new Date(j.mtime*1e3));break}E.l=I,F[R]=j}return F}var l;function u(){return l||(l={})}function c(E,F){if(E[0]==80&&E[1]==75)return gh(E,F);if((E[0]|32)==109&&(E[1]|32)==105)return my(E,F);if(E.length<512)throw new Error("CFB file size "+E.length+" < 512");var T=3,R=512,P=0,I=0,j=0,te=0,z=0,X=[],Y=E.slice(0,512);Yt(Y,0);var oe=f(Y);switch(T=oe[0],T){case 3:R=512;break;case 4:R=4096;break;case 0:if(oe[1]==0)return gh(E,F);default:throw new Error("Major Version: Expected 3 or 4 saw "+T)}R!==512&&(Y=E.slice(0,R),Yt(Y,28));var de=E.slice(0,R);d(Y,T);var xe=Y.read_shift(4,"i");if(T===3&&xe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+xe);Y.l+=4,j=Y.read_shift(4,"i"),Y.l+=4,Y.chk("00100000","Mini Stream Cutoff Size: "),te=Y.read_shift(4,"i"),P=Y.read_shift(4,"i"),z=Y.read_shift(4,"i"),I=Y.read_shift(4,"i");for(var ae=-1,me=0;me<109&&(ae=Y.read_shift(4,"i"),!(ae<0));++me)X[me]=ae;var Oe=h(E,R);g(z,I,Oe,R,X);var qe=w(Oe,j,X,R);qe[j].name="!Directory",P>0&&te!==V&&(qe[te].name="!MiniFAT"),qe[X[0]].name="!FAT",qe.fat_addrs=X,qe.ssz=R;var Qe={},Ct=[],Oo=[],Fo=[];y(j,qe,Oe,Ct,P,Qe,Oo,te),m(Oo,Fo,Ct),Ct.shift();var Do={FileIndex:Oo,FullPaths:Fo};return F&&F.raw&&(Do.raw={header:de,sectors:Oe}),Do}function f(E){if(E[E.l]==80&&E[E.l+1]==75)return[0,0];E.chk(Q,"Header Signature: "),E.l+=16;var F=E.read_shift(2,"u");return[E.read_shift(2,"u"),F]}function d(E,F){var T=9;switch(E.l+=2,T=E.read_shift(2)){case 9:if(F!=3)throw new Error("Sector Shift: Expected 9 saw "+T);break;case 12:if(F!=4)throw new Error("Sector Shift: Expected 12 saw "+T);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+T)}E.chk("0600","Mini Sector Shift: "),E.chk("000000000000","Reserved: ")}function h(E,F){for(var T=Math.ceil(E.length/F)-1,R=[],P=1;P<T;++P)R[P-1]=E.slice(P*F,(P+1)*F);return R[T-1]=E.slice(T*F),R}function m(E,F,T){for(var R=0,P=0,I=0,j=0,te=0,z=T.length,X=[],Y=[];R<z;++R)X[R]=Y[R]=R,F[R]=T[R];for(;te<Y.length;++te)R=Y[te],P=E[R].L,I=E[R].R,j=E[R].C,X[R]===R&&(P!==-1&&X[P]!==P&&(X[R]=X[P]),I!==-1&&X[I]!==I&&(X[R]=X[I])),j!==-1&&(X[j]=R),P!==-1&&R!=X[R]&&(X[P]=X[R],Y.lastIndexOf(P)<te&&Y.push(P)),I!==-1&&R!=X[R]&&(X[I]=X[R],Y.lastIndexOf(I)<te&&Y.push(I));for(R=1;R<z;++R)X[R]===R&&(I!==-1&&X[I]!==I?X[R]=X[I]:P!==-1&&X[P]!==P&&(X[R]=X[P]));for(R=1;R<z;++R)if(E[R].type!==0){if(te=R,te!=X[te])do te=X[te],F[R]=F[te]+"/"+F[R];while(te!==0&&X[te]!==-1&&te!=X[te]);X[R]=-1}for(F[0]+="/",R=1;R<z;++R)E[R].type!==2&&(F[R]+="/")}function p(E,F,T){for(var R=E.start,P=E.size,I=[],j=R;T&&P>0&&j>=0;)I.push(F.slice(j*B,j*B+B)),P-=B,j=jn(T,j*4);return I.length===0?Z(0):wt(I).slice(0,E.size)}function g(E,F,T,R,P){var I=V;if(E===V){if(F!==0)throw new Error("DIFAT chain shorter than expected")}else if(E!==-1){var j=T[E],te=(R>>>2)-1;if(!j)return;for(var z=0;z<te&&(I=jn(j,z*4))!==V;++z)P.push(I);g(jn(j,R-4),F-1,T,R,P)}}function x(E,F,T,R,P){var I=[],j=[];P||(P=[]);var te=R-1,z=0,X=0;for(z=F;z>=0;){P[z]=!0,I[I.length]=z,j.push(E[z]);var Y=T[Math.floor(z*4/R)];if(X=z*4&te,R<4+X)throw new Error("FAT boundary crossed: "+z+" 4 "+R);if(!E[Y])break;z=jn(E[Y],X)}return{nodes:I,data:Pg([j])}}function w(E,F,T,R){var P=E.length,I=[],j=[],te=[],z=[],X=R-1,Y=0,oe=0,de=0,xe=0;for(Y=0;Y<P;++Y)if(te=[],de=Y+F,de>=P&&(de-=P),!j[de]){z=[];var ae=[];for(oe=de;oe>=0;){ae[oe]=!0,j[oe]=!0,te[te.length]=oe,z.push(E[oe]);var me=T[Math.floor(oe*4/R)];if(xe=oe*4&X,R<4+xe)throw new Error("FAT boundary crossed: "+oe+" 4 "+R);if(!E[me]||(oe=jn(E[me],xe),ae[oe]))break}I[de]={nodes:te,data:Pg([z])}}return I}function y(E,F,T,R,P,I,j,te){for(var z=0,X=R.length?2:0,Y=F[E].data,oe=0,de=0,xe;oe<Y.length;oe+=128){var ae=Y.slice(oe,oe+128);Yt(ae,64),de=ae.read_shift(2),xe=Id(ae,0,de-X),R.push(xe);var me={name:xe,type:ae.read_shift(1),color:ae.read_shift(1),L:ae.read_shift(4,"i"),R:ae.read_shift(4,"i"),C:ae.read_shift(4,"i"),clsid:ae.read_shift(16),state:ae.read_shift(4,"i"),start:0,size:0},Oe=ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2);Oe!==0&&(me.ct=_(ae,ae.l-8));var qe=ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2);qe!==0&&(me.mt=_(ae,ae.l-8)),me.start=ae.read_shift(4,"i"),me.size=ae.read_shift(4,"i"),me.size<0&&me.start<0&&(me.size=me.type=0,me.start=V,me.name=""),me.type===5?(z=me.start,P>0&&z!==V&&(F[z].name="!StreamData")):me.size>=4096?(me.storage="fat",F[me.start]===void 0&&(F[me.start]=x(T,me.start,F.fat_addrs,F.ssz)),F[me.start].name=me.name,me.content=F[me.start].data.slice(0,me.size)):(me.storage="minifat",me.size<0?me.size=0:z!==V&&me.start!==V&&F[z]&&(me.content=p(me,F[z].data,(F[te]||{}).data))),me.content&&Yt(me.content,0),I[xe]=me,j.push(me)}}function _(E,F){return new Date((Qt(E,F+4)/1e7*Math.pow(2,32)+Qt(E,F)/1e7-11644473600)*1e3)}function N(E,F){return u(),c(l.readFileSync(E),F)}function M(E,F){var T=F&&F.type;switch(T||Ne&&Buffer.isBuffer(E)&&(T="buffer"),T||"base64"){case"file":return N(E,F);case"base64":return c(Er(en(E)),F);case"binary":return c(Er(E),F)}return c(E,F)}function S(E,F){var T=F||{},R=T.root||"Root Entry";if(E.FullPaths||(E.FullPaths=[]),E.FileIndex||(E.FileIndex=[]),E.FullPaths.length!==E.FileIndex.length)throw new Error("inconsistent CFB structure");E.FullPaths.length===0&&(E.FullPaths[0]=R+"/",E.FileIndex[0]={name:R,type:5}),T.CLSID&&(E.FileIndex[0].clsid=T.CLSID),C(E)}function C(E){var F="Sh33tJ5";if(!He.find(E,"/"+F)){var T=Z(4);T[0]=55,T[1]=T[3]=50,T[2]=54,E.FileIndex.push({name:F,type:2,content:T,size:4,L:69,R:69,C:69}),E.FullPaths.push(E.FullPaths[0]+F),A(E)}}function A(E,F){S(E);for(var T=!1,R=!1,P=E.FullPaths.length-1;P>=0;--P){var I=E.FileIndex[P];switch(I.type){case 0:R?T=!0:(E.FileIndex.pop(),E.FullPaths.pop());break;case 1:case 2:case 5:R=!0,isNaN(I.R*I.L*I.C)&&(T=!0),I.R>-1&&I.L>-1&&I.R==I.L&&(T=!0);break;default:T=!0;break}}if(!(!T&&!F)){var j=new Date(1987,1,19),te=0,z=Object.create?Object.create(null):{},X=[];for(P=0;P<E.FullPaths.length;++P)z[E.FullPaths[P]]=!0,E.FileIndex[P].type!==0&&X.push([E.FullPaths[P],E.FileIndex[P]]);for(P=0;P<X.length;++P){var Y=n(X[P][0]);R=z[Y],R||(X.push([Y,{name:i(Y).replace("/",""),type:1,clsid:ye,ct:j,mt:j,content:null}]),z[Y]=!0)}for(X.sort(function(xe,ae){return r(xe[0],ae[0])}),E.FullPaths=[],E.FileIndex=[],P=0;P<X.length;++P)E.FullPaths[P]=X[P][0],E.FileIndex[P]=X[P][1];for(P=0;P<X.length;++P){var oe=E.FileIndex[P],de=E.FullPaths[P];if(oe.name=i(de).replace("/",""),oe.L=oe.R=oe.C=-(oe.color=1),oe.size=oe.content?oe.content.length:0,oe.start=0,oe.clsid=oe.clsid||ye,P===0)oe.C=X.length>1?1:-1,oe.size=0,oe.type=5;else if(de.slice(-1)=="/"){for(te=P+1;te<X.length&&n(E.FullPaths[te])!=de;++te);for(oe.C=te>=X.length?-1:te,te=P+1;te<X.length&&n(E.FullPaths[te])!=n(de);++te);oe.R=te>=X.length?-1:te,oe.type=1}else n(E.FullPaths[P+1]||"")==n(de)&&(oe.R=P+1),oe.type=2}}}function L(E,F){var T=F||{};if(T.fileType=="mad")return vy(E,T);switch(A(E),T.fileType){case"zip":return cy(E,T)}var R=function(xe){for(var ae=0,me=0,Oe=0;Oe<xe.FileIndex.length;++Oe){var qe=xe.FileIndex[Oe];if(qe.content){var Qe=qe.content.length;Qe>0&&(Qe<4096?ae+=Qe+63>>6:me+=Qe+511>>9)}}for(var Ct=xe.FullPaths.length+3>>2,Oo=ae+7>>3,Fo=ae+127>>7,Do=Oo+me+Ct+Fo,Hn=Do+127>>7,Bu=Hn<=109?0:Math.ceil((Hn-109)/127);Do+Hn+Bu+127>>7>Hn;)Bu=++Hn<=109?0:Math.ceil((Hn-109)/127);var Lr=[1,Bu,Hn,Fo,Ct,me,ae,0];return xe.FileIndex[0].size=ae<<6,Lr[7]=(xe.FileIndex[0].start=Lr[0]+Lr[1]+Lr[2]+Lr[3]+Lr[4]+Lr[5])+(Lr[6]+7>>3),Lr}(E),P=Z(R[7]<<9),I=0,j=0;{for(I=0;I<8;++I)P.write_shift(1,ne[I]);for(I=0;I<8;++I)P.write_shift(2,0);for(P.write_shift(2,62),P.write_shift(2,3),P.write_shift(2,65534),P.write_shift(2,9),P.write_shift(2,6),I=0;I<3;++I)P.write_shift(2,0);for(P.write_shift(4,0),P.write_shift(4,R[2]),P.write_shift(4,R[0]+R[1]+R[2]+R[3]-1),P.write_shift(4,0),P.write_shift(4,1<<12),P.write_shift(4,R[3]?R[0]+R[1]+R[2]-1:V),P.write_shift(4,R[3]),P.write_shift(-4,R[1]?R[0]-1:V),P.write_shift(4,R[1]),I=0;I<109;++I)P.write_shift(-4,I<R[2]?R[1]+I:-1)}if(R[1])for(j=0;j<R[1];++j){for(;I<236+j*127;++I)P.write_shift(-4,I<R[2]?R[1]+I:-1);P.write_shift(-4,j===R[1]-1?V:j+1)}var te=function(xe){for(j+=xe;I<j-1;++I)P.write_shift(-4,I+1);xe&&(++I,P.write_shift(-4,V))};for(j=I=0,j+=R[1];I<j;++I)P.write_shift(-4,ve.DIFSECT);for(j+=R[2];I<j;++I)P.write_shift(-4,ve.FATSECT);te(R[3]),te(R[4]);for(var z=0,X=0,Y=E.FileIndex[0];z<E.FileIndex.length;++z)Y=E.FileIndex[z],Y.content&&(X=Y.content.length,!(X<4096)&&(Y.start=j,te(X+511>>9)));for(te(R[6]+7>>3);P.l&511;)P.write_shift(-4,ve.ENDOFCHAIN);for(j=I=0,z=0;z<E.FileIndex.length;++z)Y=E.FileIndex[z],Y.content&&(X=Y.content.length,!(!X||X>=4096)&&(Y.start=j,te(X+63>>6)));for(;P.l&511;)P.write_shift(-4,ve.ENDOFCHAIN);for(I=0;I<R[4]<<2;++I){var oe=E.FullPaths[I];if(!oe||oe.length===0){for(z=0;z<17;++z)P.write_shift(4,0);for(z=0;z<3;++z)P.write_shift(4,-1);for(z=0;z<12;++z)P.write_shift(4,0);continue}Y=E.FileIndex[I],I===0&&(Y.start=Y.size?Y.start-1:V);var de=I===0&&T.root||Y.name;if(X=2*(de.length+1),P.write_shift(64,de,"utf16le"),P.write_shift(2,X),P.write_shift(1,Y.type),P.write_shift(1,Y.color),P.write_shift(-4,Y.L),P.write_shift(-4,Y.R),P.write_shift(-4,Y.C),Y.clsid)P.write_shift(16,Y.clsid,"hex");else for(z=0;z<4;++z)P.write_shift(4,0);P.write_shift(4,Y.state||0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,Y.start),P.write_shift(4,Y.size),P.write_shift(4,0)}for(I=1;I<E.FileIndex.length;++I)if(Y=E.FileIndex[I],Y.size>=4096)if(P.l=Y.start+1<<9,Ne&&Buffer.isBuffer(Y.content))Y.content.copy(P,P.l,0,Y.size),P.l+=Y.size+511&-512;else{for(z=0;z<Y.size;++z)P.write_shift(1,Y.content[z]);for(;z&511;++z)P.write_shift(1,0)}for(I=1;I<E.FileIndex.length;++I)if(Y=E.FileIndex[I],Y.size>0&&Y.size<4096)if(Ne&&Buffer.isBuffer(Y.content))Y.content.copy(P,P.l,0,Y.size),P.l+=Y.size+63&-64;else{for(z=0;z<Y.size;++z)P.write_shift(1,Y.content[z]);for(;z&63;++z)P.write_shift(1,0)}if(Ne)P.l=P.length;else for(;P.l<P.length;)P.write_shift(1,0);return P}function H(E,F){var T=E.FullPaths.map(function(z){return z.toUpperCase()}),R=T.map(function(z){var X=z.split("/");return X[X.length-(z.slice(-1)=="/"?2:1)]}),P=!1;F.charCodeAt(0)===47?(P=!0,F=T[0].slice(0,-1)+F):P=F.indexOf("/")!==-1;var I=F.toUpperCase(),j=P===!0?T.indexOf(I):R.indexOf(I);if(j!==-1)return E.FileIndex[j];var te=!I.match(Rs);for(I=I.replace(da,""),te&&(I=I.replace(Rs,"!")),j=0;j<T.length;++j)if((te?T[j].replace(Rs,"!"):T[j]).replace(da,"")==I||(te?R[j].replace(Rs,"!"):R[j]).replace(da,"")==I)return E.FileIndex[j];return null}var B=64,V=-2,Q="d0cf11e0a1b11ae1",ne=[208,207,17,224,161,177,26,225],ye="00000000000000000000000000000000",ve={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:V,FREESECT:-1,HEADER_SIGNATURE:Q,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:ye,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Ce(E,F,T){u();var R=L(E,T);l.writeFileSync(F,R)}function ie(E){for(var F=new Array(E.length),T=0;T<E.length;++T)F[T]=String.fromCharCode(E[T]);return F.join("")}function Ee(E,F){var T=L(E,F);switch(F&&F.type||"buffer"){case"file":return u(),l.writeFileSync(F.filename,T),T;case"binary":return typeof T=="string"?T:ie(T);case"base64":return $a(typeof T=="string"?T:ie(T));case"buffer":if(Ne)return Buffer.isBuffer(T)?T:an(T);case"array":return typeof T=="string"?Er(T):T}return T}var ee;function O(E){try{var F=E.InflateRaw,T=new F;if(T._processChunk(new Uint8Array([3,0]),T._finishFlushFlag),T.bytesRead)ee=E;else throw new Error("zlib does not expose bytesRead")}catch(R){console.error("cannot use native zlib: "+(R.message||R))}}function k(E,F){if(!ee)return hh(E,F);var T=ee.InflateRaw,R=new T,P=R._processChunk(E.slice(E.l),R._finishFlushFlag);return E.l+=R.bytesRead,P}function b(E){return ee?ee.deflateRawSync(E):sh(E)}var D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],U=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],G=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function J(E){var F=(E<<1|E<<11)&139536|(E<<5|E<<15)&558144;return(F>>16|F>>8|F)&255}for(var W=typeof Uint8Array<"u",q=W?new Uint8Array(1<<8):[],le=0;le<1<<8;++le)q[le]=J(le);function he(E,F){var T=q[E&255];return F<=8?T>>>8-F:(T=T<<8|q[E>>8&255],F<=16?T>>>16-F:(T=T<<8|q[E>>16&255],T>>>24-F))}function Te(E,F){var T=F&7,R=F>>>3;return(E[R]|(T<=6?0:E[R+1]<<8))>>>T&3}function fe(E,F){var T=F&7,R=F>>>3;return(E[R]|(T<=5?0:E[R+1]<<8))>>>T&7}function We(E,F){var T=F&7,R=F>>>3;return(E[R]|(T<=4?0:E[R+1]<<8))>>>T&15}function be(E,F){var T=F&7,R=F>>>3;return(E[R]|(T<=3?0:E[R+1]<<8))>>>T&31}function ge(E,F){var T=F&7,R=F>>>3;return(E[R]|(T<=1?0:E[R+1]<<8))>>>T&127}function bt(E,F,T){var R=F&7,P=F>>>3,I=(1<<T)-1,j=E[P]>>>R;return T<8-R||(j|=E[P+1]<<8-R,T<16-R)||(j|=E[P+2]<<16-R,T<24-R)||(j|=E[P+3]<<24-R),j&I}function st(E,F,T){var R=F&7,P=F>>>3;return R<=5?E[P]|=(T&7)<<R:(E[P]|=T<<R&255,E[P+1]=(T&7)>>8-R),F+3}function ke(E,F,T){var R=F&7,P=F>>>3;return T=(T&1)<<R,E[P]|=T,F+1}function Ge(E,F,T){var R=F&7,P=F>>>3;return T<<=R,E[P]|=T&255,T>>>=8,E[P+1]=T,F+8}function gr(E,F,T){var R=F&7,P=F>>>3;return T<<=R,E[P]|=T&255,T>>>=8,E[P+1]=T&255,E[P+2]=T>>>8,F+16}function Ro(E,F){var T=E.length,R=2*T>F?2*T:F+5,P=0;if(T>=F)return E;if(Ne){var I=mg(R);if(E.copy)E.copy(I);else for(;P<E.length;++P)I[P]=E[P];return I}else if(W){var j=new Uint8Array(R);if(j.set)j.set(E);else for(;P<T;++P)j[P]=E[P];return j}return E.length=R,E}function tr(E){for(var F=new Array(E),T=0;T<E;++T)F[T]=0;return F}function is(E,F,T){var R=1,P=0,I=0,j=0,te=0,z=E.length,X=W?new Uint16Array(32):tr(32);for(I=0;I<32;++I)X[I]=0;for(I=z;I<T;++I)E[I]=0;z=E.length;var Y=W?new Uint16Array(z):tr(z);for(I=0;I<z;++I)X[P=E[I]]++,R<P&&(R=P),Y[I]=0;for(X[0]=0,I=1;I<=R;++I)X[I+16]=te=te+X[I-1]<<1;for(I=0;I<z;++I)te=E[I],te!=0&&(Y[I]=X[te+16]++);var oe=0;for(I=0;I<z;++I)if(oe=E[I],oe!=0)for(te=he(Y[I],R)>>R-oe,j=(1<<R+4-oe)-1;j>=0;--j)F[te|j<<oe]=oe&15|I<<4;return R}var Nu=W?new Uint16Array(512):tr(512),Mu=W?new Uint16Array(32):tr(32);if(!W){for(var Un=0;Un<512;++Un)Nu[Un]=0;for(Un=0;Un<32;++Un)Mu[Un]=0}(function(){for(var E=[],F=0;F<32;F++)E.push(5);is(E,Mu,32);var T=[];for(F=0;F<=143;F++)T.push(8);for(;F<=255;F++)T.push(9);for(;F<=279;F++)T.push(7);for(;F<=287;F++)T.push(8);is(T,Nu,288)})();var ay=function(){for(var F=W?new Uint8Array(32768):[],T=0,R=0;T<G.length-1;++T)for(;R<G[T+1];++R)F[R]=T;for(;R<32768;++R)F[R]=29;var P=W?new Uint8Array(259):[];for(T=0,R=0;T<U.length-1;++T)for(;R<U[T+1];++R)P[R]=T;function I(te,z){for(var X=0;X<te.length;){var Y=Math.min(65535,te.length-X),oe=X+Y==te.length;for(z.write_shift(1,+oe),z.write_shift(2,Y),z.write_shift(2,~Y&65535);Y-- >0;)z[z.l++]=te[X++]}return z.l}function j(te,z){for(var X=0,Y=0,oe=W?new Uint16Array(32768):[];Y<te.length;){var de=Math.min(65535,te.length-Y);if(de<10){for(X=st(z,X,+(Y+de==te.length)),X&7&&(X+=8-(X&7)),z.l=X/8|0,z.write_shift(2,de),z.write_shift(2,~de&65535);de-- >0;)z[z.l++]=te[Y++];X=z.l*8;continue}X=st(z,X,+(Y+de==te.length)+2);for(var xe=0;de-- >0;){var ae=te[Y];xe=(xe<<5^ae)&32767;var me=-1,Oe=0;if((me=oe[xe])&&(me|=Y&-32768,me>Y&&(me-=32768),me<Y))for(;te[me+Oe]==te[Y+Oe]&&Oe<250;)++Oe;if(Oe>2){ae=P[Oe],ae<=22?X=Ge(z,X,q[ae+1]>>1)-1:(Ge(z,X,3),X+=5,Ge(z,X,q[ae-23]>>5),X+=3);var qe=ae<8?0:ae-4>>2;qe>0&&(gr(z,X,Oe-U[ae]),X+=qe),ae=F[Y-me],X=Ge(z,X,q[ae]>>3),X-=3;var Qe=ae<4?0:ae-2>>1;Qe>0&&(gr(z,X,Y-me-G[ae]),X+=Qe);for(var Ct=0;Ct<Oe;++Ct)oe[xe]=Y&32767,xe=(xe<<5^te[Y])&32767,++Y;de-=Oe-1}else ae<=143?ae=ae+48:X=ke(z,X,1),X=Ge(z,X,q[ae]),oe[xe]=Y&32767,++Y}X=Ge(z,X,0)-1}return z.l=(X+7)/8|0,z.l}return function(z,X){return z.length<8?I(z,X):j(z,X)}}();function sh(E){var F=Z(50+Math.floor(E.length*1.1)),T=ay(E,F);return F.slice(0,T)}var lh=W?new Uint16Array(32768):tr(32768),uh=W?new Uint16Array(32768):tr(32768),ch=W?new Uint16Array(128):tr(128),fh=1,dh=1;function sy(E,F){var T=be(E,F)+257;F+=5;var R=be(E,F)+1;F+=5;var P=We(E,F)+4;F+=4;for(var I=0,j=W?new Uint8Array(19):tr(19),te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],z=1,X=W?new Uint8Array(8):tr(8),Y=W?new Uint8Array(8):tr(8),oe=j.length,de=0;de<P;++de)j[D[de]]=I=fe(E,F),z<I&&(z=I),X[I]++,F+=3;var xe=0;for(X[0]=0,de=1;de<=z;++de)Y[de]=xe=xe+X[de-1]<<1;for(de=0;de<oe;++de)(xe=j[de])!=0&&(te[de]=Y[xe]++);var ae=0;for(de=0;de<oe;++de)if(ae=j[de],ae!=0){xe=q[te[de]]>>8-ae;for(var me=(1<<7-ae)-1;me>=0;--me)ch[xe|me<<ae]=ae&7|de<<3}var Oe=[];for(z=1;Oe.length<T+R;)switch(xe=ch[ge(E,F)],F+=xe&7,xe>>>=3){case 16:for(I=3+Te(E,F),F+=2,xe=Oe[Oe.length-1];I-- >0;)Oe.push(xe);break;case 17:for(I=3+fe(E,F),F+=3;I-- >0;)Oe.push(0);break;case 18:for(I=11+ge(E,F),F+=7;I-- >0;)Oe.push(0);break;default:Oe.push(xe),z<xe&&(z=xe);break}var qe=Oe.slice(0,T),Qe=Oe.slice(T);for(de=T;de<286;++de)qe[de]=0;for(de=R;de<30;++de)Qe[de]=0;return fh=is(qe,lh,286),dh=is(Qe,uh,30),F}function ly(E,F){if(E[0]==3&&!(E[1]&3))return[ii(F),2];for(var T=0,R=0,P=mg(F||1<<18),I=0,j=P.length>>>0,te=0,z=0;!(R&1);){if(R=fe(E,T),T+=3,R>>>1)R>>1==1?(te=9,z=5):(T=sy(E,T),te=fh,z=dh);else{T&7&&(T+=8-(T&7));var X=E[T>>>3]|E[(T>>>3)+1]<<8;if(T+=32,X>0)for(!F&&j<I+X&&(P=Ro(P,I+X),j=P.length);X-- >0;)P[I++]=E[T>>>3],T+=8;continue}for(;;){!F&&j<I+32767&&(P=Ro(P,I+32767),j=P.length);var Y=bt(E,T,te),oe=R>>>1==1?Nu[Y]:lh[Y];if(T+=oe&15,oe>>>=4,!(oe>>>8&255))P[I++]=oe;else{if(oe==256)break;oe-=257;var de=oe<8?0:oe-4>>2;de>5&&(de=0);var xe=I+U[oe];de>0&&(xe+=bt(E,T,de),T+=de),Y=bt(E,T,z),oe=R>>>1==1?Mu[Y]:uh[Y],T+=oe&15,oe>>>=4;var ae=oe<4?0:oe-2>>1,me=G[oe];for(ae>0&&(me+=bt(E,T,ae),T+=ae),!F&&j<xe&&(P=Ro(P,xe+100),j=P.length);I<xe;)P[I]=P[I-me],++I}}}return F?[P,T+7>>>3]:[P.slice(0,I),T+7>>>3]}function hh(E,F){var T=E.slice(E.l||0),R=ly(T,F);return E.l+=R[1],R[0]}function ph(E,F){if(E)typeof console<"u"&&console.error(F);else throw new Error(F)}function gh(E,F){var T=E;Yt(T,0);var R=[],P=[],I={FileIndex:R,FullPaths:P};S(I,{root:F.root});for(var j=T.length-4;(T[j]!=80||T[j+1]!=75||T[j+2]!=5||T[j+3]!=6)&&j>=0;)--j;T.l=j+4,T.l+=4;var te=T.read_shift(2);T.l+=6;var z=T.read_shift(4);for(T.l=z,j=0;j<te;++j){T.l+=20;var X=T.read_shift(4),Y=T.read_shift(4),oe=T.read_shift(2),de=T.read_shift(2),xe=T.read_shift(2);T.l+=8;var ae=T.read_shift(4),me=s(T.slice(T.l+oe,T.l+oe+de));T.l+=oe+de+xe;var Oe=T.l;T.l=ae+4,uy(T,X,Y,I,me),T.l=Oe}return I}function uy(E,F,T,R,P){E.l+=2;var I=E.read_shift(2),j=E.read_shift(2),te=a(E);if(I&8257)throw new Error("Unsupported ZIP encryption");for(var z=E.read_shift(4),X=E.read_shift(4),Y=E.read_shift(4),oe=E.read_shift(2),de=E.read_shift(2),xe="",ae=0;ae<oe;++ae)xe+=String.fromCharCode(E[E.l++]);if(de){var me=s(E.slice(E.l,E.l+de));(me[21589]||{}).mt&&(te=me[21589].mt),((P||{})[21589]||{}).mt&&(te=P[21589].mt)}E.l+=de;var Oe=E.slice(E.l,E.l+X);switch(j){case 8:Oe=k(E,Y);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+j)}var qe=!1;I&8&&(z=E.read_shift(4),z==134695760&&(z=E.read_shift(4),qe=!0),X=E.read_shift(4),Y=E.read_shift(4)),X!=F&&ph(qe,"Bad compressed size: "+F+" != "+X),Y!=T&&ph(qe,"Bad uncompressed size: "+T+" != "+Y),Lu(R,xe,Oe,{unsafe:!0,mt:te})}function cy(E,F){var T=F||{},R=[],P=[],I=Z(1),j=T.compression?8:0,te=0,z=0,X=0,Y=0,oe=0,de=E.FullPaths[0],xe=de,ae=E.FileIndex[0],me=[],Oe=0;for(z=1;z<E.FullPaths.length;++z)if(xe=E.FullPaths[z].slice(de.length),ae=E.FileIndex[z],!(!ae.size||!ae.content||xe=="Sh33tJ5")){var qe=Y,Qe=Z(xe.length);for(X=0;X<xe.length;++X)Qe.write_shift(1,xe.charCodeAt(X)&127);Qe=Qe.slice(0,Qe.l),me[oe]=X4.buf(ae.content,0);var Ct=ae.content;j==8&&(Ct=b(Ct)),I=Z(30),I.write_shift(4,67324752),I.write_shift(2,20),I.write_shift(2,te),I.write_shift(2,j),ae.mt?o(I,ae.mt):I.write_shift(4,0),I.write_shift(-4,me[oe]),I.write_shift(4,Ct.length),I.write_shift(4,ae.content.length),I.write_shift(2,Qe.length),I.write_shift(2,0),Y+=I.length,R.push(I),Y+=Qe.length,R.push(Qe),Y+=Ct.length,R.push(Ct),I=Z(46),I.write_shift(4,33639248),I.write_shift(2,0),I.write_shift(2,20),I.write_shift(2,te),I.write_shift(2,j),I.write_shift(4,0),I.write_shift(-4,me[oe]),I.write_shift(4,Ct.length),I.write_shift(4,ae.content.length),I.write_shift(2,Qe.length),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(4,0),I.write_shift(4,qe),Oe+=I.l,P.push(I),Oe+=Qe.length,P.push(Qe),++oe}return I=Z(22),I.write_shift(4,101010256),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,oe),I.write_shift(2,oe),I.write_shift(4,Oe),I.write_shift(4,Y),I.write_shift(2,0),wt([wt(R),wt(P),I])}var os={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function fy(E,F){if(E.ctype)return E.ctype;var T=E.name||"",R=T.match(/\.([^\.]+)$/);return R&&os[R[1]]||F&&(R=(T=F).match(/[\.\\]([^\.\\])+$/),R&&os[R[1]])?os[R[1]]:"application/octet-stream"}function dy(E){for(var F=$a(E),T=[],R=0;R<F.length;R+=76)T.push(F.slice(R,R+76));return T.join(`\r
`)+`\r
`}function hy(E){var F=E.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(X){var Y=X.charCodeAt(0).toString(16).toUpperCase();return"="+(Y.length==1?"0"+Y:Y)});F=F.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),F.charAt(0)==`
`&&(F="=0D"+F.slice(1)),F=F.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var T=[],R=F.split(`\r
`),P=0;P<R.length;++P){var I=R[P];if(I.length==0){T.push("");continue}for(var j=0;j<I.length;){var te=76,z=I.slice(j,j+te);z.charAt(te-1)=="="?te--:z.charAt(te-2)=="="?te-=2:z.charAt(te-3)=="="&&(te-=3),z=I.slice(j,j+te),j+=te,j<I.length&&(z+="="),T.push(z)}}return T.join(`\r
`)}function py(E){for(var F=[],T=0;T<E.length;++T){for(var R=E[T];T<=E.length&&R.charAt(R.length-1)=="=";)R=R.slice(0,R.length-1)+E[++T];F.push(R)}for(var P=0;P<F.length;++P)F[P]=F[P].replace(/[=][0-9A-Fa-f]{2}/g,function(I){return String.fromCharCode(parseInt(I.slice(1),16))});return Er(F.join(`\r
`))}function gy(E,F,T){for(var R="",P="",I="",j,te=0;te<10;++te){var z=F[te];if(!z||z.match(/^\s*$/))break;var X=z.match(/^(.*?):\s*([^\s].*)$/);if(X)switch(X[1].toLowerCase()){case"content-location":R=X[2].trim();break;case"content-type":I=X[2].trim();break;case"content-transfer-encoding":P=X[2].trim();break}}switch(++te,P.toLowerCase()){case"base64":j=Er(en(F.slice(te).join("")));break;case"quoted-printable":j=py(F.slice(te));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+P)}var Y=Lu(E,R.slice(T.length),j,{unsafe:!0});I&&(Y.ctype=I)}function my(E,F){if(ie(E.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var T=F&&F.root||"",R=(Ne&&Buffer.isBuffer(E)?E.toString("binary"):ie(E)).split(`\r
`),P=0,I="";for(P=0;P<R.length;++P)if(I=R[P],!!/^Content-Location:/i.test(I)&&(I=I.slice(I.indexOf("file")),T||(T=I.slice(0,I.lastIndexOf("/")+1)),I.slice(0,T.length)!=T))for(;T.length>0&&(T=T.slice(0,T.length-1),T=T.slice(0,T.lastIndexOf("/")+1),I.slice(0,T.length)!=T););var j=(R[1]||"").match(/boundary="(.*?)"/);if(!j)throw new Error("MAD cannot find boundary");var te="--"+(j[1]||""),z=[],X=[],Y={FileIndex:z,FullPaths:X};S(Y);var oe,de=0;for(P=0;P<R.length;++P){var xe=R[P];xe!==te&&xe!==te+"--"||(de++&&gy(Y,R.slice(oe,P),T),oe=P)}return Y}function vy(E,F){var T=F||{},R=T.boundary||"SheetJS";R="------="+R;for(var P=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+R.slice(2)+'"',"","",""],I=E.FullPaths[0],j=I,te=E.FileIndex[0],z=1;z<E.FullPaths.length;++z)if(j=E.FullPaths[z].slice(I.length),te=E.FileIndex[z],!(!te.size||!te.content||j=="Sh33tJ5")){j=j.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Oe){return"_x"+Oe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Oe){return"_u"+Oe.charCodeAt(0).toString(16)+"_"});for(var X=te.content,Y=Ne&&Buffer.isBuffer(X)?X.toString("binary"):ie(X),oe=0,de=Math.min(1024,Y.length),xe=0,ae=0;ae<=de;++ae)(xe=Y.charCodeAt(ae))>=32&&xe<128&&++oe;var me=oe>=de*4/5;P.push(R),P.push("Content-Location: "+(T.root||"file:///C:/SheetJS/")+j),P.push("Content-Transfer-Encoding: "+(me?"quoted-printable":"base64")),P.push("Content-Type: "+fy(te,j)),P.push(""),P.push(me?hy(Y):dy(Y))}return P.push(R+`--\r
`),P.join(`\r
`)}function xy(E){var F={};return S(F,E),F}function Lu(E,F,T,R){var P=R&&R.unsafe;P||S(E);var I=!P&&He.find(E,F);if(!I){var j=E.FullPaths[0];F.slice(0,j.length)==j?j=F:(j.slice(-1)!="/"&&(j+="/"),j=(j+F).replace("//","/")),I={name:i(F),type:2},E.FileIndex.push(I),E.FullPaths.push(j),P||He.utils.cfb_gc(E)}return I.content=T,I.size=T?T.length:0,R&&(R.CLSID&&(I.clsid=R.CLSID),R.mt&&(I.mt=R.mt),R.ct&&(I.ct=R.ct)),I}function wy(E,F){S(E);var T=He.find(E,F);if(T){for(var R=0;R<E.FileIndex.length;++R)if(E.FileIndex[R]==T)return E.FileIndex.splice(R,1),E.FullPaths.splice(R,1),!0}return!1}function yy(E,F,T){S(E);var R=He.find(E,F);if(R){for(var P=0;P<E.FileIndex.length;++P)if(E.FileIndex[P]==R)return E.FileIndex[P].name=i(T),E.FullPaths[P]=T,!0}return!1}function Ey(E){A(E,!0)}return t.find=H,t.read=M,t.parse=c,t.write=Ee,t.writeFile=Ce,t.utils={cfb_new:xy,cfb_add:Lu,cfb_del:wy,cfb_mov:yy,cfb_gc:Ey,ReadShift:pa,CheckField:Wx,prep_blob:Yt,bconcat:wt,use_zlib:O,_deflateRaw:sh,_inflateRaw:hh,consts:ve},t}();function K4(e){return typeof e=="string"?vu(e):Array.isArray(e)?y4(e):e}function Za(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=vu(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Gr(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([K4(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:e,saveAs:!0});var a=document.createElement("a");if(a.download!=null)return a.download=e,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=Qa(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Tt(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function Tg(e,t){for(var r=[],n=Tt(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function Od(e){for(var t=[],r=Tt(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function yu(e){for(var t=[],r=Tt(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Y4(e){for(var t=[],r=Tt(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var $l=new Date(1899,11,30,0,0,0);function jt(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var n=$l.getTime()+(e.getTimezoneOffset()-$l.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var Ax=new Date,q4=$l.getTime()+(Ax.getTimezoneOffset()-$l.getTimezoneOffset())*6e4,Cg=Ax.getTimezoneOffset();function Rx(e){var t=new Date;return t.setTime(e*24*60*60*1e3+q4),t.getTimezoneOffset()!==Cg&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Cg)*6e4),t}var Ag=new Date("2017-02-19T19:06:09.000Z"),Ox=isNaN(Ag.getFullYear())?new Date("2/19/17"):Ag,Q4=Ox.getFullYear()==2017;function Lt(e,t){var r=new Date(e);if(Q4)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(Ox.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-o.getTimezoneOffset()*60*1e3)),o}function Eu(e,t){if(Ne&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Gr(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Gr(w4(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Gr(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Gr(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(o){return r[o]||o})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function Xt(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Xt(e[r]));return t}function Je(e,t){for(var r="";r.length<t;)r+=e;return r}function Qr(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,o){return r=-r,o}),!isNaN(t=Number(n)))?t/r:t}var Z4=["january","february","march","april","may","june","july","august","september","october","november","december"];function Na(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),o=t.getDate();if(isNaN(o))return r;var a=e.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(a=a.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),a.length>3&&Z4.indexOf(a)==-1)return r}else if(a.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||o>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function De(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return Ne?n=an(r):n=E4(r),He.utils.cfb_add(e,t,n)}He.utils.cfb_add(e,t,r)}else e.file(t,r)}function Fd(){return He.utils.cfb_new()}var at=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,J4={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Dd=Od(J4),Pd=/[&<>'"]/g,e3=/[\u0000-\u0008\u000b-\u001f]/g;function Be(e){var t=e+"";return t.replace(Pd,function(r){return Dd[r]}).replace(e3,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Rg(e){return Be(e).replace(/ /g,"_x0020_")}var Fx=/[\u0000-\u001f]/g;function t3(e){var t=e+"";return t.replace(Pd,function(r){return Dd[r]}).replace(/\n/g,"<br/>").replace(Fx,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function r3(e){var t=e+"";return t.replace(Pd,function(r){return Dd[r]}).replace(Fx,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function n3(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function i3(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Tc(e){for(var t="",r=0,n=0,i=0,o=0,a=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(i=e.charCodeAt(r++),n>191&&n<224){a=(n&31)<<6,a|=i&63,t+=String.fromCharCode(a);continue}if(o=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|o&63);continue}a=e.charCodeAt(r++),s=((n&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function Og(e){var t=ii(2*e.length),r,n,i=1,o=0,a=0,s;for(n=0;n<e.length;n+=i)i=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),i=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,r=(s&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,a=55296+(r>>>10&1023),r=56320+(r&1023)),a!==0&&(t[o++]=a&255,t[o++]=a>>>8,a=0),t[o++]=r%256,t[o++]=r>>>8;return t.slice(0,o).toString("ucs2")}function Fg(e){return an(e,"binary").toString("utf8")}var Fs="foo bar baz☃🍣",ha=Ne&&(Fg(Fs)==Tc(Fs)&&Fg||Og(Fs)==Tc(Fs)&&Og)||Tc,Gr=Ne?function(e){return an(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},o3=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),Dx=/(^\s|\s$|\n)/;function yt(e,t){return"<"+e+(t.match(Dx)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Ma(e){return Tt(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function ue(e,t,r){return"<"+e+(r!=null?Ma(r):"")+(t!=null?(t.match(Dx)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Wf(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function a3(e,t){switch(typeof e){case"string":var r=ue("vt:lpwstr",Be(e));return t&&(r=r.replace(/&quot;/g,"_x0022_")),r;case"number":return ue((e|0)==e?"vt:i4":"vt:r8",Be(String(e)));case"boolean":return ue("vt:bool",e?"true":"false")}if(e instanceof Date)return ue("vt:filetime",Wf(e));throw new Error("Unable to serialize "+e)}var ft={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},_o=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],qt={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function s3(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,o=5;o>=0;--o)i=i*256+e[t+o];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function l3(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=n?-t:t;isFinite(a)?a==0?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?i=-1022:(o-=Math.pow(2,52),i+=1023)):(i=2047,o=isNaN(t)?26985:0);for(var s=0;s<=5;++s,o/=256)e[r+s]=o&255;e[r+6]=(i&15)<<4|o&15,e[r+7]=i>>4|n}var Dg=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,o=e[0][n].length;i<o;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},Pg=Ne?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:an(t)})):Dg(e)}:Dg,Ig=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Zo(e,i)));return n.join("").replace(da,"")},Id=Ne?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(da,""):Ig(e,t,r)}:Ig,bg=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},Px=Ne?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):bg(e,t,r)}:bg,kg=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode($i(e,i)));return n.join("")},Ja=Ne?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):kg(t,r,n)}:kg,Ix=function(e,t){var r=Qt(e,t);return r>0?Ja(e,t+4,t+4+r-1):""},bx=Ix,kx=function(e,t){var r=Qt(e,t);return r>0?Ja(e,t+4,t+4+r-1):""},$x=kx,Nx=function(e,t){var r=2*Qt(e,t);return r>0?Ja(e,t+4,t+4+r-1):""},Mx=Nx,Lx=function(t,r){var n=Qt(t,r);return n>0?Id(t,r+4,r+4+n):""},Bx=Lx,Ux=function(e,t){var r=Qt(e,t);return r>0?Ja(e,t+4,t+4+r):""},Hx=Ux,Vx=function(e,t){return s3(e,t)},Nl=Vx,bd=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Ne&&(bx=function(t,r){if(!Buffer.isBuffer(t))return Ix(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},$x=function(t,r){if(!Buffer.isBuffer(t))return kx(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Mx=function(t,r){if(!Buffer.isBuffer(t))return Nx(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Bx=function(t,r){if(!Buffer.isBuffer(t))return Lx(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Hx=function(t,r){if(!Buffer.isBuffer(t))return Ux(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Nl=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Vx(t,r)},bd=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var $i=function(e,t){return e[t]},Zo=function(e,t){return e[t+1]*(1<<8)+e[t]},u3=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Qt=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},jn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},c3=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function pa(e,t){var r="",n,i,o=[],a,s,l,u;switch(t){case"dbcs":if(u=this.l,Ne&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Zo(this,u)),u+=2;e*=2;break;case"utf8":r=Ja(this,this.l,this.l+e);break;case"utf16le":e*=2,r=Id(this,this.l,this.l+e);break;case"wstr":return pa.call(this,e,"dbcs");case"lpstr-ansi":r=bx(this,this.l),e=4+Qt(this,this.l);break;case"lpstr-cp":r=$x(this,this.l),e=4+Qt(this,this.l);break;case"lpwstr":r=Mx(this,this.l),e=4+2*Qt(this,this.l);break;case"lpp4":e=4+Qt(this,this.l),r=Bx(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Qt(this,this.l),r=Hx(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(a=$i(this,this.l+e++))!==0;)o.push(As(a));r=o.join("");break;case"_wstr":for(e=0,r="";(a=Zo(this,this.l+e))!==0;)o.push(As(a)),e+=2;e+=2,r=o.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return a=$i(this,u),this.l=u+1,s=pa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(As(Zo(this,u))),u+=2}r=o.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return a=$i(this,u),this.l=u+1,s=pa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(As($i(this,u))),u+=1}r=o.join("");break;default:switch(e){case 1:return n=$i(this,this.l),this.l++,n;case 2:return n=(t==="i"?u3:Zo)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?jn:c3)(this,this.l),this.l+=4,n):(i=Qt(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=Nl(this,this.l):i=Nl([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=Px(this,this.l,e);break}}return this.l+=e,r}var f3=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},d3=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},h3=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function p3(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)h3(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var o=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var a=t.charCodeAt(i);this[this.l++]=a&255,this[this.l++]=a>>8}for(;this.l<o;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,f3(this,t,this.l);break;case 8:if(n=8,r==="f"){l3(this,t,this.l);break}case 16:break;case-4:n=4,d3(this,t,this.l);break}return this.l+=n,this}function Wx(e,t){var r=Px(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Yt(e,t){e.l=t,e.read_shift=pa,e.chk=Wx,e.write_shift=p3}function $r(e,t){e.l+=t}function Z(e){var t=ii(e);return Yt(t,0),t}function Gt(){var e=[],t=Ne?256:2048,r=function(u){var c=Z(u);return Yt(c,0),c},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},o=function(u){return n&&u<n.length-n.l?n:(i(),n=r(Math.max(u+1,t)))},a=function(){return i(),wt(e)},s=function(u){i(),n=u,n.l==null&&(n.l=n.length),o(t)};return{next:o,push:s,end:a,_bufs:e}}function re(e,t,r,n){var i=+t,o;if(!isNaN(i)){n||(n=sD[i].p||(r||[]).length||0),o=1+(i>=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=e.next(o);i<=127?a.write_shift(1,i):(a.write_shift(1,(i&127)+128),a.write_shift(1,i>>7));for(var s=0;s!=4;++s)if(n>=128)a.write_shift(1,(n&127)+128),n>>=7;else{a.write_shift(1,n);break}n>0&&bd(r)&&e.push(r)}}function ga(e,t,r){var n=Xt(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function $g(e,t,r){var n=Xt(e);return n.s=ga(n.s,t.s,r),n.e=ga(n.e,t.s,r),n}function ma(e,t){if(e.cRel&&e.c<0)for(e=Xt(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Xt(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Ue(e);return!e.cRel&&e.cRel!=null&&(r=v3(r)),!e.rRel&&e.rRel!=null&&(r=g3(r)),r}function Cc(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Ft(e.s.c)+":"+(e.e.cRel?"":"$")+Ft(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+_t(e.s.r)+":"+(e.e.rRel?"":"$")+_t(e.e.r):ma(e.s,t.biff)+":"+ma(e.e,t.biff)}function kd(e){return parseInt(m3(e),10)-1}function _t(e){return""+(e+1)}function g3(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function m3(e){return e.replace(/\$(\d+)$/,"$1")}function $d(e){for(var t=x3(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Ft(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function v3(e){return e.replace(/^([A-Z])/,"$$$1")}function x3(e){return e.replace(/^\$([A-Z])/,"$1")}function w3(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function dt(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function Ue(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Jt(e){var t=e.indexOf(":");return t==-1?{s:dt(e),e:dt(e)}:{s:dt(e.slice(0,t)),e:dt(e.slice(t+1))}}function ot(e,t){return typeof t>"u"||typeof t=="number"?ot(e.s,e.e):(typeof e!="string"&&(e=Ue(e)),typeof t!="string"&&(t=Ue(t)),e==t?e:e+":"+t)}function Ke(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,o=e.length;for(r=0;n<o&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<o&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===o||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=o&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=o&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function Ng(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=kn(e.z,r?jt(t):t)}catch{}try{return e.w=kn((e.XF||{}).numFmtId||(r?14:0),r?jt(t):t)}catch{return""+t}}function tn(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?es[e.v]||e.v:t==null?Ng(e,e.v):Ng(e,t))}function mi(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function zx(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,o=e||(i?[]:{}),a=0,s=0;if(o&&n.origin!=null){if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?dt(n.origin):n.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var c=Ke(o["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),a==-1&&(u.e.r=a=c.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[f].length;++d)if(!(typeof t[f][d]>"u")){var h={v:t[f][d]},m=a+f,p=s+d;if(u.s.r>m&&(u.s.r=m),u.s.c>p&&(u.s.c=p),u.e.r<m&&(u.e.r=m),u.e.c<p&&(u.e.c=p),t[f][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))h=t[f][d];else if(Array.isArray(h.v)&&(h.f=t[f][d][1],h.v=h.v[0]),h.v===null)if(h.f)h.t="n";else if(n.nullError)h.t="e",h.v=0;else if(n.sheetStubs)h.t="z";else continue;else typeof h.v=="number"?h.t="n":typeof h.v=="boolean"?h.t="b":h.v instanceof Date?(h.z=n.dateNF||rt[14],n.cellDates?(h.t="d",h.w=kn(h.z,jt(h.v))):(h.t="n",h.v=jt(h.v),h.w=kn(h.z,h.v))):h.t="s";if(i)o[m]||(o[m]=[]),o[m][p]&&o[m][p].z&&(h.z=o[m][p].z),o[m][p]=h;else{var g=Ue({c:p,r:m});o[g]&&o[g].z&&(h.z=o[g].z),o[g]=h}}}return u.s.c<1e7&&(o["!ref"]=ot(u)),o}function So(e,t){return zx(null,e,t)}function y3(e){return e.read_shift(4,"i")}function Cr(e,t){return t||(t=Z(4)),t.write_shift(4,e),t}function Dt(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function ht(e,t){var r=!1;return t==null&&(r=!0,t=Z(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function E3(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function _3(e,t){return t||(t=Z(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function Nd(e,t){var r=e.l,n=e.read_shift(1),i=Dt(e),o=[],a={t:i,h:i};if(n&1){for(var s=e.read_shift(4),l=0;l!=s;++l)o.push(E3(e));a.r=o}else a.r=[{ich:0,ifnt:0}];return e.l=r+t,a}function S3(e,t){var r=!1;return t==null&&(r=!0,t=Z(15+4*e.t.length)),t.write_shift(1,0),ht(e.t,t),r?t.slice(0,t.l):t}var T3=Nd;function C3(e,t){var r=!1;return t==null&&(r=!0,t=Z(23+4*e.t.length)),t.write_shift(1,1),ht(e.t,t),t.write_shift(4,1),_3({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function pr(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function vi(e,t){return t==null&&(t=Z(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function xi(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function wi(e,t){return t==null&&(t=Z(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var A3=Dt,Gx=ht;function Md(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Ml(e,t){var r=!1;return t==null&&(r=!0,t=Z(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var R3=Dt,zf=Md,Ld=Ml;function jx(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?Nl([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):jn(t,0)>>2;return r?i/100:i}function Xx(e,t){t==null&&(t=Z(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Kx(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function O3(e,t){return t||(t=Z(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var yi=Kx,To=O3;function Co(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function oi(e,t){return(t||Z(8)).write_shift(8,e,"f")}function F3(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var u=L3[i];u&&(t.rgb=Xg(u));break;case 2:t.rgb=Xg([a,s,l]);break;case 3:t.theme=i;break}return o!=0&&(t.tint=o>0?o/32767:o/32768),t}function Ll(e,t){if(t||(t=Z(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function D3(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function P3(e,t){t||(t=Z(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Yx=2,Kt=3,Ds=11,Bl=19,Ps=64,I3=65,b3=71,k3=4108,$3=4126,mt=80,Mg={1:{n:"CodePage",t:Yx},2:{n:"Category",t:mt},3:{n:"PresentationFormat",t:mt},4:{n:"ByteCount",t:Kt},5:{n:"LineCount",t:Kt},6:{n:"ParagraphCount",t:Kt},7:{n:"SlideCount",t:Kt},8:{n:"NoteCount",t:Kt},9:{n:"HiddenCount",t:Kt},10:{n:"MultimediaClipCount",t:Kt},11:{n:"ScaleCrop",t:Ds},12:{n:"HeadingPairs",t:k3},13:{n:"TitlesOfParts",t:$3},14:{n:"Manager",t:mt},15:{n:"Company",t:mt},16:{n:"LinksUpToDate",t:Ds},17:{n:"CharacterCount",t:Kt},19:{n:"SharedDoc",t:Ds},22:{n:"HyperlinksChanged",t:Ds},23:{n:"AppVersion",t:Kt,p:"version"},24:{n:"DigSig",t:I3},26:{n:"ContentType",t:mt},27:{n:"ContentStatus",t:mt},28:{n:"Language",t:mt},29:{n:"Version",t:mt},255:{},2147483648:{n:"Locale",t:Bl},2147483651:{n:"Behavior",t:Bl},1919054434:{}},Lg={1:{n:"CodePage",t:Yx},2:{n:"Title",t:mt},3:{n:"Subject",t:mt},4:{n:"Author",t:mt},5:{n:"Keywords",t:mt},6:{n:"Comments",t:mt},7:{n:"Template",t:mt},8:{n:"LastAuthor",t:mt},9:{n:"RevNumber",t:mt},10:{n:"EditTime",t:Ps},11:{n:"LastPrinted",t:Ps},12:{n:"CreatedDate",t:Ps},13:{n:"ModifiedDate",t:Ps},14:{n:"PageCount",t:Kt},15:{n:"WordCount",t:Kt},16:{n:"CharCount",t:Kt},17:{n:"Thumbnail",t:b3},18:{n:"Application",t:mt},19:{n:"DocSecurity",t:Kt},255:{},2147483648:{n:"Locale",t:Bl},2147483651:{n:"Behavior",t:Bl},1919054434:{}};function N3(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var M3=N3([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),L3=Xt(M3),es={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},B3={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Is={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function qx(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Qx(e,t){var r=Y4(B3),n=[],i;n[n.length]=at,n[n.length]=ue("Types",null,{xmlns:ft.CT,"xmlns:xsd":ft.xsd,"xmlns:xsi":ft.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return ue("Default",null,{Extension:l[0],ContentType:l[1]})}));var o=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=ue("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Is[l][t.bookType]||Is[l].xlsx}))},a=function(l){(e[l]||[]).forEach(function(u){n[n.length]=ue("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Is[l][t.bookType]||Is[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(u){n[n.length]=ue("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return o("workbooks"),a("sheets"),a("charts"),s("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),a("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var $e={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Zx(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function ro(e){var t=[at,ue("Relationships",null,{xmlns:ft.RELS})];return Tt(e["!id"]).forEach(function(r){t[t.length]=ue("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Le(e,t,r,n,i,o){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,o?i.TargetMode=o:[$e.HLINK,$e.XPATH,$e.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function U3(e){var t=[at];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
`),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
`);return t.push("</manifest:manifest>"),t.join("")}function Bg(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
`,` </rdf:Description>
`].join("")}function H3(e,t){return[' <rdf:Description rdf:about="'+e+`">
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
`,` </rdf:Description>
`].join("")}function V3(e){var t=[at];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var r=0;r!=e.length;++r)t.push(Bg(e[r][0],e[r][1])),t.push(H3("",e[r][0]));return t.push(Bg("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function Jx(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Pl.version+"</meta:generator></office:meta></office:document-meta>"}var Jn=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ac(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Be(t),n[n.length]=r?ue(e,t,r):yt(e,t))}function ew(e,t){var r=t||{},n=[at,ue("cp:coreProperties",null,{"xmlns:cp":ft.CORE_PROPS,"xmlns:dc":ft.dc,"xmlns:dcterms":ft.dcterms,"xmlns:dcmitype":ft.dcmitype,"xmlns:xsi":ft.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&Ac("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Wf(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Ac("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Wf(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var o=0;o!=Jn.length;++o){var a=Jn[o],s=r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:e?e[a[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&Ac(a[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var no=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],tw=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function rw(e){var t=[],r=ue;return e||(e={}),e.Application="SheetJS",t[t.length]=at,t[t.length]=ue("Properties",null,{xmlns:ft.EXT_PROPS,"xmlns:vt":ft.vt}),no.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Be(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Be(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function nw(e){var t=[at,ue("Properties",null,{xmlns:ft.CUST_PROPS,"xmlns:vt":ft.vt})];if(!e)return t.join("");var r=1;return Tt(e).forEach(function(i){++r,t[t.length]=ue("property",a3(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Be(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Ug={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function W3(e,t){var r=[];return Tt(Ug).map(function(n){for(var i=0;i<Jn.length;++i)if(Jn[i][1]==n)return Jn[i];for(i=0;i<no.length;++i)if(no[i][1]==n)return no[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(yt(Ug[n[1]]||n[1],i))}}),ue("DocumentProperties",r.join(""),{xmlns:qt.o})}function z3(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Tt(e).forEach(function(o){if(Object.prototype.hasOwnProperty.call(e,o)){for(var a=0;a<Jn.length;++a)if(o==Jn[a][1])return;for(a=0;a<no.length;++a)if(o==no[a][1])return;for(a=0;a<r.length;++a)if(o==r[a])return;var s=e[o],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),i.push(ue(Rg(o),s,{"dt:dt":l}))}}),t&&Tt(t).forEach(function(o){if(Object.prototype.hasOwnProperty.call(t,o)&&!(e&&Object.prototype.hasOwnProperty.call(e,o))){var a=t[o],s="string";typeof a=="number"?(s="float",a=String(a)):a===!0||a===!1?(s="boolean",a=a?"1":"0"):a instanceof Date?(s="dateTime.tz",a=a.toISOString()):a=String(a),i.push(ue(Rg(o),a,{"dt:dt":s}))}}),"<"+n+' xmlns="'+qt.o+'">'+i.join("")+"</"+n+">"}function G3(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var o=n/Math.pow(2,32)|0;o>0&&(n=n%Math.pow(2,32),i+=o);var a=Z(8);return a.write_shift(4,n),a.write_shift(4,i),a}function Hg(e,t){var r=Z(4),n=Z(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Z(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=G3(t);break;case 31:case 80:for(n=Z(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return wt([r,n])}var iw=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function j3(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Vg(e,t,r){var n=Z(8),i=[],o=[],a=8,s=0,l=Z(8),u=Z(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),o.push(l),i.push(u),a+=8+l.length,!t){u=Z(8),u.write_shift(4,0),i.unshift(u);var c=[Z(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=Z(4+4+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=wt(c),o.unshift(l),a+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(iw.indexOf(e[s][0])>-1||tw.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],h=0;if(t){h=+t[e[s][0]];var m=r[h];if(m.p=="version"&&typeof d=="string"){var p=d.split(".");d=(+p[0]<<16)+(+p[1]||0)}l=Hg(m.t,d)}else{var g=j3(d);g==-1&&(g=31,d=String(d)),l=Hg(g,d)}o.push(l),u=Z(8),u.write_shift(4,t?h:2+s),i.push(u),a+=8+l.length}var x=8*(o.length+1);for(s=0;s<o.length;++s)i[s].write_shift(4,x),x+=o[s].length;return n.write_shift(4,a),n.write_shift(4,o.length),wt([n].concat(i).concat(o))}function Wg(e,t,r,n,i,o){var a=Z(i?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,He.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,i?2:1),a.write_shift(16,t,"hex"),a.write_shift(4,i?68:48);var l=Vg(e,r,n);if(s.push(l),i){var u=Vg(i,null,null);a.write_shift(16,o,"hex"),a.write_shift(4,68+l.length),s.push(u)}return wt(s)}function X3(e,t){t||(t=Z(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function K3(e,t){return e.read_shift(t)===1}function $t(e,t){return t||(t=Z(2)),t.write_shift(2,+!!e),t}function ow(e){return e.read_shift(2,"u")}function or(e,t){return t||(t=Z(2)),t.write_shift(2,e),t}function aw(e,t,r){return r||(r=Z(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function sw(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var o=e.read_shift(1);o&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var a=n?e.read_shift(n,i):"";return a}function Y3(e){var t=e.t||"",r=Z(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=Z(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return wt(i)}function q3(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function Q3(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):q3(e,n,r)}function Z3(e,t,r){if(r.biff>5)return Q3(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function lw(e,t,r){return r||(r=Z(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function zg(e,t){t||(t=Z(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function J3(e){var t=Z(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),o=i>-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3;break}t.write_shift(4,2),t.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(r=0;r<a.length;++r)t.write_shift(4,a[r]);if(o==28)n=n.slice(1),zg(n,t);else if(o&2){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<a.length;++r)t.write_shift(1,parseInt(a[r],16));var s=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),o&8&&zg(i>-1?n.slice(i+1):"",t)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<a.length;++r)t.write_shift(1,parseInt(a[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function ai(e,t,r,n){return n||(n=Z(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function eA(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),o=e.read_shift(n,"i"),a=e.read_shift(n,"i");return[i,o,a]}function tA(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function uw(e,t){return t||(t=Z(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Bd(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var o=Z(i);return o.write_shift(2,n),o.write_shift(2,t),i>4&&o.write_shift(2,29282),i>6&&o.write_shift(2,1997),i>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function rA(e,t){var r=!t||t.biff==8,n=Z(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function nA(e,t){var r=!t||t.biff>=8?2:1,n=Z(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function iA(e,t){var r=Z(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=Y3(e[i]);var o=wt([r].concat(n));return o.parts=[r.length].concat(n.map(function(a){return a.length})),o}function oA(){var e=Z(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function aA(e){var t=Z(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function sA(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,o=Z(i);return o.write_shift(2,(e.sz||12)*20),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,r.length),n||o.write_shift(1,1),o.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),o}function lA(e,t,r,n){var i=Z(10);return ai(e,t,n,i),i.write_shift(4,r),i}function uA(e,t,r,n,i){var o=!i||i.biff==8,a=Z(6+2+ +o+(1+o)*r.length);return ai(e,t,n,a),a.write_shift(2,r.length),o&&a.write_shift(1,1),a.write_shift((1+o)*r.length,r,o?"utf16le":"sbcs"),a}function cA(e,t,r,n){var i=r&&r.biff==5;n||(n=Z(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return o.l==null&&(o.l=o.length),o}function fA(e,t){var r=t.biff==8||!t.biff?4:2,n=Z(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Gg(e,t,r,n){var i=r&&r.biff==5;n||(n=Z(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var o=0;return e.numFmtId>0&&i&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function dA(e){var t=Z(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function hA(e,t,r,n,i,o){var a=Z(8);return ai(e,t,n,a),aw(r,o,a),a}function pA(e,t,r,n){var i=Z(14);return ai(e,t,n,i),oi(r,i),i}function gA(e,t,r){if(r.biff<8)return mA(e,t,r);for(var n=[],i=e.l+t,o=e.read_shift(r.biff>8?4:2);o--!==0;)n.push(eA(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function mA(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=sw(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function vA(e){var t=Z(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)uw(e[r],t);return t}function xA(e){var t=Z(24),r=dt(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return wt([t,J3(e[1])])}function wA(e){var t=e[1].Tooltip,r=Z(10+2*(t.length+1));r.write_shift(2,2048);var n=dt(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function yA(e){return e||(e=Z(4)),e.write_shift(2,1),e.write_shift(2,1),e}function EA(e,t,r){if(!r.cellStyles)return $r(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),o=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var u={s:i,e:o,w:a,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function _A(e,t){var r=Z(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function SA(e){for(var t=Z(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function TA(e,t,r){var n=Z(15);return rs(n,e,t),n.write_shift(8,r,"f"),n}function CA(e,t,r){var n=Z(9);return rs(n,e,t),n.write_shift(2,r),n}var AA=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Od({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var u=[],c=ii(1);switch(l.type){case"base64":c=Er(en(s));break;case"binary":c=Er(s);break;case"buffer":case"array":c=s;break}Yt(c,0);var f=c.read_shift(1),d=!!(f&136),h=!1,m=!1;switch(f){case 2:break;case 3:break;case 48:h=!0,d=!0;break;case 49:h=!0,d=!0;break;case 131:break;case 139:break;case 140:m=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,g=521;f==2&&(p=c.read_shift(2)),c.l+=3,f!=2&&(p=c.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(g=c.read_shift(2));var x=c.read_shift(2),w=l.codepage||1252;f!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(w=e[c[c.l]]),c.l+=1,c.l+=2),m&&(c.l+=36);for(var y=[],_={},N=Math.min(c.length,f==2?521:g-10-(h?264:0)),M=m?32:11;c.l<N&&c[c.l]!=13;)switch(_={},_.name=Gn.utils.decode(w,c.slice(c.l,c.l+M)).replace(/[\u0000\r\n].*$/g,""),c.l+=M,_.type=String.fromCharCode(c.read_shift(1)),f!=2&&!m&&(_.offset=c.read_shift(4)),_.len=c.read_shift(1),f==2&&(_.offset=c.read_shift(2)),_.dec=c.read_shift(1),_.name.length&&y.push(_),f!=2&&(c.l+=m?13:14),_.type){case"B":(!h||_.len!=8)&&l.WTF&&console.log("Skipping "+_.name+":"+_.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+_.name+":"+_.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+_.type)}if(c[c.l]!==13&&(c.l=g-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=g;var S=0,C=0;for(u[0]=[],C=0;C!=y.length;++C)u[0][C]=y[C].name;for(;p-- >0;){if(c[c.l]===42){c.l+=x;continue}for(++c.l,u[++S]=[],C=0,C=0;C!=y.length;++C){var A=c.slice(c.l,c.l+y[C].len);c.l+=y[C].len,Yt(A,0);var L=Gn.utils.decode(w,A);switch(y[C].type){case"C":L.trim().length&&(u[S][C]=L.replace(/\s+$/,""));break;case"D":L.length===8?u[S][C]=new Date(+L.slice(0,4),+L.slice(4,6)-1,+L.slice(6,8)):u[S][C]=L;break;case"F":u[S][C]=parseFloat(L.trim());break;case"+":case"I":u[S][C]=m?A.read_shift(-4,"i")^2147483648:A.read_shift(4,"i");break;case"L":switch(L.trim().toUpperCase()){case"Y":case"T":u[S][C]=!0;break;case"N":case"F":u[S][C]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+L+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[S][C]="##MEMO##"+(m?parseInt(L.trim(),10):A.read_shift(4));break;case"N":L=L.replace(/\u0000/g,"").trim(),L&&L!="."&&(u[S][C]=+L||0);break;case"@":u[S][C]=new Date(A.read_shift(-8,"f")-621356832e5);break;case"T":u[S][C]=new Date((A.read_shift(4)-2440588)*864e5+A.read_shift(4));break;case"Y":u[S][C]=A.read_shift(4,"i")/1e4+A.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[S][C]=-A.read_shift(-8,"f");break;case"B":if(h&&y[C].len==8){u[S][C]=A.read_shift(8,"f");break}case"G":case"P":A.l+=y[C].len;break;case"0":if(y[C].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[C].type)}}}if(f!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=y,u}function n(s,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var c=So(r(s,u),u);return c["!cols"]=u.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete u.DBF,c}function i(s,l){try{return mi(n(s,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var o={B:8,C:250,L:1,D:8,"?":0,"":0};function a(s,l){var u=l||{};if(+u.codepage>=0&&ka(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=Gt(),f=zl(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),m=s["!cols"]||[],p=0,g=0,x=0,w=1;for(p=0;p<d.length;++p){if(((m[p]||{}).DBF||{}).name){d[p]=m[p].DBF.name,++x;continue}if(d[p]!=null){if(++x,typeof d[p]=="number"&&(d[p]=d[p].toString(10)),typeof d[p]!="string")throw new Error("DBF Invalid column name "+d[p]+" |"+typeof d[p]+"|");if(d.indexOf(d[p])!==p){for(g=0;g<1024;++g)if(d.indexOf(d[p]+"_"+g)==-1){d[p]+="_"+g;break}}}}var y=Ke(s["!ref"]),_=[],N=[],M=[];for(p=0;p<=y.e.c-y.s.c;++p){var S="",C="",A=0,L=[];for(g=0;g<h.length;++g)h[g][p]!=null&&L.push(h[g][p]);if(L.length==0||d[p]==null){_[p]="?";continue}for(g=0;g<L.length;++g){switch(typeof L[g]){case"number":C="B";break;case"string":C="C";break;case"boolean":C="L";break;case"object":C=L[g]instanceof Date?"D":"C";break;default:C="C"}A=Math.max(A,String(L[g]).length),S=S&&S!=C?"C":C}A>250&&(A=250),C=((m[p]||{}).DBF||{}).type,C=="C"&&m[p].DBF.len>A&&(A=m[p].DBF.len),S=="B"&&C=="N"&&(S="N",M[p]=m[p].DBF.dec,A=m[p].DBF.len),N[p]=S=="C"||C=="N"?A:o[S]||0,w+=N[p],_[p]=S}var H=c.next(32);for(H.write_shift(4,318902576),H.write_shift(4,h.length),H.write_shift(2,296+32*x),H.write_shift(2,w),p=0;p<4;++p)H.write_shift(4,0);for(H.write_shift(4,0|(+t[fx]||3)<<8),p=0,g=0;p<d.length;++p)if(d[p]!=null){var B=c.next(32),V=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);B.write_shift(1,V,"sbcs"),B.write_shift(1,_[p]=="?"?"C":_[p],"sbcs"),B.write_shift(4,g),B.write_shift(1,N[p]||o[_[p]]||0),B.write_shift(1,M[p]||0),B.write_shift(1,2),B.write_shift(4,0),B.write_shift(1,0),B.write_shift(4,0),B.write_shift(4,0),g+=N[p]||o[_[p]]||0}var Q=c.next(264);for(Q.write_shift(4,13),p=0;p<65;++p)Q.write_shift(4,0);for(p=0;p<h.length;++p){var ne=c.next(w);for(ne.write_shift(1,0),g=0;g<d.length;++g)if(d[g]!=null)switch(_[g]){case"L":ne.write_shift(1,h[p][g]==null?63:h[p][g]?84:70);break;case"B":ne.write_shift(8,h[p][g]||0,"f");break;case"N":var ye="0";for(typeof h[p][g]=="number"&&(ye=h[p][g].toFixed(M[g]||0)),x=0;x<N[g]-ye.length;++x)ne.write_shift(1,32);ne.write_shift(1,ye,"sbcs");break;case"D":h[p][g]?(ne.write_shift(4,("0000"+h[p][g].getFullYear()).slice(-4),"sbcs"),ne.write_shift(2,("00"+(h[p][g].getMonth()+1)).slice(-2),"sbcs"),ne.write_shift(2,("00"+h[p][g].getDate()).slice(-2),"sbcs")):ne.write_shift(8,"00000000","sbcs");break;case"C":var ve=String(h[p][g]!=null?h[p][g]:"").slice(0,N[g]);for(ne.write_shift(1,ve,"sbcs"),x=0;x<N[g]-ve.length;++x)ne.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:a}}(),RA=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Tt(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,h){var m=e[h];return typeof m=="number"?gg(m):m},n=function(d,h,m){var p=h.charCodeAt(0)-32<<4|m.charCodeAt(0)-48;return p==59?d:gg(p)};e["|"]=254;function i(d,h){switch(h.type){case"base64":return o(en(d),h);case"binary":return o(d,h);case"buffer":return o(Ne&&Buffer.isBuffer(d)?d.toString("binary"):Qa(d),h);case"array":return o(Eu(d),h)}throw new Error("Unrecognized type "+h.type)}function o(d,h){var m=d.split(/[\n\r]+/),p=-1,g=-1,x=0,w=0,y=[],_=[],N=null,M={},S=[],C=[],A=[],L=0,H;for(+h.codepage>=0&&ka(+h.codepage);x!==m.length;++x){L=0;var B=m[x].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),V=B.replace(/;;/g,"\0").split(";").map(function(D){return D.replace(/\u0000/g,";")}),Q=V[0],ne;if(B.length>0)switch(Q){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":V[1].charAt(0)=="P"&&_.push(B.slice(3).replace(/;;/g,";"));break;case"C":var ye=!1,ve=!1,Ce=!1,ie=!1,Ee=-1,ee=-1;for(w=1;w<V.length;++w)switch(V[w].charAt(0)){case"A":break;case"X":g=parseInt(V[w].slice(1))-1,ve=!0;break;case"Y":for(p=parseInt(V[w].slice(1))-1,ve||(g=0),H=y.length;H<=p;++H)y[H]=[];break;case"K":ne=V[w].slice(1),ne.charAt(0)==='"'?ne=ne.slice(1,ne.length-1):ne==="TRUE"?ne=!0:ne==="FALSE"?ne=!1:isNaN(Qr(ne))?isNaN(Na(ne).getDate())||(ne=Lt(ne)):(ne=Qr(ne),N!==null&&Sx(N)&&(ne=Rx(ne))),ye=!0;break;case"E":ie=!0;var O=CR(V[w].slice(1),{r:p,c:g});y[p][g]=[y[p][g],O];break;case"S":Ce=!0,y[p][g]=[y[p][g],"S5S"];break;case"G":break;case"R":Ee=parseInt(V[w].slice(1))-1;break;case"C":ee=parseInt(V[w].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+B)}if(ye&&(y[p][g]&&y[p][g].length==2?y[p][g][0]=ne:y[p][g]=ne,N=null),Ce){if(ie)throw new Error("SYLK shared formula cannot have own formula");var k=Ee>-1&&y[Ee][ee];if(!k||!k[1])throw new Error("SYLK shared formula cannot find base");y[p][g][1]=AR(k[1],{r:p-Ee,c:g-ee})}break;case"F":var b=0;for(w=1;w<V.length;++w)switch(V[w].charAt(0)){case"X":g=parseInt(V[w].slice(1))-1,++b;break;case"Y":for(p=parseInt(V[w].slice(1))-1,H=y.length;H<=p;++H)y[H]=[];break;case"M":L=parseInt(V[w].slice(1))/20;break;case"F":break;case"G":break;case"P":N=_[parseInt(V[w].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(A=V[w].slice(1).split(" "),H=parseInt(A[0],10);H<=parseInt(A[1],10);++H)L=parseInt(A[2],10),C[H-1]=L===0?{hidden:!0}:{wch:L},Ud(C[H-1]);break;case"C":g=parseInt(V[w].slice(1))-1,C[g]||(C[g]={});break;case"R":p=parseInt(V[w].slice(1))-1,S[p]||(S[p]={}),L>0?(S[p].hpt=L,S[p].hpx=pw(L)):L===0&&(S[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+B)}b<1&&(N=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+B)}}return S.length>0&&(M["!rows"]=S),C.length>0&&(M["!cols"]=C),h&&h.sheetRows&&(y=y.slice(0,h.sheetRows)),[y,M]}function a(d,h){var m=i(d,h),p=m[0],g=m[1],x=So(p,h);return Tt(g).forEach(function(w){x[w]=g[w]}),x}function s(d,h){return mi(a(d,h),h)}function l(d,h,m,p){var g="C;Y"+(m+1)+";X"+(p+1)+";K";switch(d.t){case"n":g+=d.v||0,d.f&&!d.F&&(g+=";E"+Vd(d.f,{r:m,c:p}));break;case"b":g+=d.v?"TRUE":"FALSE";break;case"e":g+=d.w||d.v;break;case"d":g+='"'+(d.w||d.v)+'"';break;case"s":g+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function u(d,h){h.forEach(function(m,p){var g="F;W"+(p+1)+" "+(p+1)+" ";m.hidden?g+="0":(typeof m.width=="number"&&!m.wpx&&(m.wpx=Ul(m.width)),typeof m.wpx=="number"&&!m.wch&&(m.wch=Hl(m.wpx)),typeof m.wch=="number"&&(g+=Math.round(m.wch))),g.charAt(g.length-1)!=" "&&d.push(g)})}function c(d,h){h.forEach(function(m,p){var g="F;";m.hidden?g+="M0;":m.hpt?g+="M"+20*m.hpt+";":m.hpx&&(g+="M"+20*Vl(m.hpx)+";"),g.length>2&&d.push(g+"R"+(p+1))})}function f(d,h){var m=["ID;PWXL;N;E"],p=[],g=Ke(d["!ref"]),x,w=Array.isArray(d),y=`\r
`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),d["!cols"]&&u(m,d["!cols"]),d["!rows"]&&c(m,d["!rows"]),m.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var _=g.s.r;_<=g.e.r;++_)for(var N=g.s.c;N<=g.e.c;++N){var M=Ue({r:_,c:N});x=w?(d[_]||[])[N]:d[M],!(!x||x.v==null&&(!x.f||x.F))&&p.push(l(x,d,_,N))}return m.join(y)+y+p.join(y)+y+"E"+y}return{to_workbook:s,to_sheet:a,from_sheet:f}}(),OA=function(){function e(o,a){switch(a.type){case"base64":return t(en(o),a);case"binary":return t(o,a);case"buffer":return t(Ne&&Buffer.isBuffer(o)?o.toString("binary"):Qa(o),a);case"array":return t(Eu(o),a)}throw new Error("Unrecognized type "+a.type)}function t(o,a){for(var s=o.split(`
`),l=-1,u=-1,c=0,f=[];c!==s.length;++c){if(s[c].trim()==="BOT"){f[++l]=[],u=0;continue}if(!(l<0)){var d=s[c].trim().split(","),h=d[0],m=d[1];++c;for(var p=s[c]||"";(p.match(/["]/g)||[]).length&1&&c<s.length-1;)p+=`
`+s[++c];switch(p=p.trim(),+h){case-1:if(p==="BOT"){f[++l]=[],u=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][u]=!0:p==="FALSE"?f[l][u]=!1:isNaN(Qr(m))?isNaN(Na(m).getDate())?f[l][u]=m:f[l][u]=Lt(m):f[l][u]=Qr(m),++u;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][u++]=p!==""?p:null;break}if(p==="EOD")break}}return a&&a.sheetRows&&(f=f.slice(0,a.sheetRows)),f}function r(o,a){return So(e(o,a),a)}function n(o,a){return mi(r(o,a),a)}var i=function(){var o=function(l,u,c,f,d){l.push(u),l.push(c+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},a=function(l,u,c,f){l.push(u+","+c),l.push(u==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var u=[],c=Ke(l["!ref"]),f,d=Array.isArray(l);o(u,"TABLE",0,1,"sheetjs"),o(u,"VECTORS",0,c.e.r-c.s.r+1,""),o(u,"TUPLES",0,c.e.c-c.s.c+1,""),o(u,"DATA",0,0,"");for(var h=c.s.r;h<=c.e.r;++h){a(u,-1,0,"BOT");for(var m=c.s.c;m<=c.e.c;++m){var p=Ue({r:h,c:m});if(f=d?(l[h]||[])[m]:l[p],!f){a(u,1,0,"");continue}switch(f.t){case"n":var g=f.w;!g&&f.v!=null&&(g=f.v),g==null?f.f&&!f.F?a(u,1,0,"="+f.f):a(u,1,0,""):a(u,0,g,"V");break;case"b":a(u,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":a(u,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=kn(f.z||rt[14],jt(Lt(f.v)))),a(u,0,f.w,"V");break;default:a(u,1,0,"")}}}a(u,-1,0,"EOD");var x=`\r
`,w=u.join(x);return w}}();return{to_workbook:n,to_sheet:r,from_sheet:i}}(),cw=function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var h=f.split(`
`),m=-1,p=-1,g=0,x=[];g!==h.length;++g){var w=h[g].trim().split(":");if(w[0]==="cell"){var y=dt(w[1]);if(x.length<=y.r)for(m=x.length;m<=y.r;++m)x[m]||(x[m]=[]);switch(m=y.r,p=y.c,w[2]){case"t":x[m][p]=e(w[3]);break;case"v":x[m][p]=+w[3];break;case"vtf":var _=w[w.length-1];case"vtc":switch(w[3]){case"nl":x[m][p]=!!+w[4];break;default:x[m][p]=+w[4];break}w[2]=="vtf"&&(x[m][p]=[x[m][p],_])}}}return d&&d.sheetRows&&(x=x.slice(0,d.sheetRows)),x}function n(f,d){return So(r(f,d),d)}function i(f,d){return mi(n(f,d),d)}var o=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),a=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),l="--SocialCalcSpreadsheetControlSave--";function u(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],m,p="",g=Jt(f["!ref"]),x=Array.isArray(f),w=g.s.r;w<=g.e.r;++w)for(var y=g.s.c;y<=g.e.c;++y)if(p=Ue({r:w,c:y}),m=x?(f[w]||[])[y]:f[p],!(!m||m.v==null||m.t==="z")){switch(h=["cell",p,"t"],m.t){case"s":case"str":h.push(t(m.v));break;case"n":m.f?(h[2]="vtf",h[3]="n",h[4]=m.v,h[5]=t(m.f)):(h[2]="v",h[3]=m.v);break;case"b":h[2]="vt"+(m.f?"f":"c"),h[3]="nl",h[4]=m.v?"1":"0",h[5]=t(m.f||(m.v?"TRUE":"FALSE"));break;case"d":var _=jt(Lt(m.v));h[2]="vtc",h[3]="nd",h[4]=""+_,h[5]=m.w||kn(m.z||rt[14],_);break;case"e":continue}d.push(h.join(":"))}return d.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
`)}function c(f){return[o,a,s,a,u(f),l].join(`
`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),FA=function(){function e(c,f,d,h,m){m.raw?f[d][h]=c:c===""||(c==="TRUE"?f[d][h]=!0:c==="FALSE"?f[d][h]=!1:isNaN(Qr(c))?isNaN(Na(c).getDate())?f[d][h]=c:f[d][h]=Lt(c):f[d][h]=Qr(c))}function t(c,f){var d=f||{},h=[];if(!c||c.length===0)return h;for(var m=c.split(/[\r\n]/),p=m.length-1;p>=0&&m[p].length===0;)--p;for(var g=10,x=0,w=0;w<=p;++w)x=m[w].indexOf(" "),x==-1?x=m[w].length:x++,g=Math.max(g,x);for(w=0;w<=p;++w){h[w]=[];var y=0;for(e(m[w].slice(0,g).trim(),h,w,y,d),y=1;y<=(m[w].length-g)/10+1;++y)e(m[w].slice(g+(y-1)*10,g+y*10).trim(),h,w,y,d)}return d.sheetRows&&(h=h.slice(0,d.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var f={},d=!1,h=0,m=0;h<c.length;++h)(m=c.charCodeAt(h))==34?d=!d:!d&&m in r&&(f[m]=(f[m]||0)+1);m=[];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&m.push([f[h],h]);if(!m.length){f=n;for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&m.push([f[h],h])}return m.sort(function(p,g){return p[0]-g[0]||n[p[1]]-n[g[1]]}),r[m.pop()[1]]||44}function o(c,f){var d=f||{},h="",m=d.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(h=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(h=c.charAt(4),c=c.slice(6)):h=i(c.slice(0,1024)):d&&d.FS?h=d.FS:h=i(c.slice(0,1024));var g=0,x=0,w=0,y=0,_=0,N=h.charCodeAt(0),M=!1,S=0,C=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
`);var A=d.dateNF!=null?G4(d.dateNF):null;function L(){var H=c.slice(y,_),B={};if(H.charAt(0)=='"'&&H.charAt(H.length-1)=='"'&&(H=H.slice(1,-1).replace(/""/g,'"')),H.length===0)B.t="z";else if(d.raw)B.t="s",B.v=H;else if(H.trim().length===0)B.t="s",B.v=H;else if(H.charCodeAt(0)==61)H.charCodeAt(1)==34&&H.charCodeAt(H.length-1)==34?(B.t="s",B.v=H.slice(2,-1).replace(/""/g,'"')):RR(H)?(B.t="n",B.f=H.slice(1)):(B.t="s",B.v=H);else if(H=="TRUE")B.t="b",B.v=!0;else if(H=="FALSE")B.t="b",B.v=!1;else if(!isNaN(w=Qr(H)))B.t="n",d.cellText!==!1&&(B.w=H),B.v=w;else if(!isNaN(Na(H).getDate())||A&&H.match(A)){B.z=d.dateNF||rt[14];var V=0;A&&H.match(A)&&(H=j4(H,d.dateNF,H.match(A)||[]),V=1),d.cellDates?(B.t="d",B.v=Lt(H,V)):(B.t="n",B.v=jt(Lt(H,V))),d.cellText!==!1&&(B.w=kn(B.z,B.v instanceof Date?jt(B.v):B.v)),d.cellNF||delete B.z}else B.t="s",B.v=H;if(B.t=="z"||(d.dense?(m[g]||(m[g]=[]),m[g][x]=B):m[Ue({c:x,r:g})]=B),y=_+1,C=c.charCodeAt(y),p.e.c<x&&(p.e.c=x),p.e.r<g&&(p.e.r=g),S==N)++x;else if(x=0,++g,d.sheetRows&&d.sheetRows<=g)return!0}e:for(;_<c.length;++_)switch(S=c.charCodeAt(_)){case 34:C===34&&(M=!M);break;case N:case 10:case 13:if(!M&&L())break e;break}return _-y>0&&L(),m["!ref"]=ot(p),m}function a(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?o(c,f):So(t(c,f),f)}function s(c,f){var d="",h=f.type=="string"?[0,0,0,0]:HD(c,f);switch(f.type){case"base64":d=en(c);break;case"binary":d=c;break;case"buffer":f.codepage==65001?d=c.toString("utf8"):f.codepage&&typeof Gn<"u"?d=Gn.utils.decode(f.codepage,c):d=Ne&&Buffer.isBuffer(c)?c.toString("binary"):Qa(c);break;case"array":d=Eu(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=ha(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=ha(d):f.type=="binary"&&typeof Gn<"u"&&f.codepage&&(d=Gn.utils.decode(f.codepage,Gn.utils.encode(28591,d))),d.slice(0,19)=="socialcalc:version:"?cw.to_sheet(f.type=="string"?d:ha(d),f):a(d,f)}function l(c,f){return mi(s(c,f),f)}function u(c){for(var f=[],d=Ke(c["!ref"]),h,m=Array.isArray(c),p=d.s.r;p<=d.e.r;++p){for(var g=[],x=d.s.c;x<=d.e.c;++x){var w=Ue({r:p,c:x});if(h=m?(c[p]||[])[x]:c[w],!h||h.v==null){g.push(" ");continue}for(var y=(h.w||(tn(h),h.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(x===0?" ":""))}f.push(g.join(""))}return f.join(`
`)}return{to_workbook:l,to_sheet:s,from_sheet:u}}(),jg=function(){function e(O,k,b){if(O){Yt(O,O.l||0);for(var D=b.Enum||Ee;O.l<O.length;){var U=O.read_shift(2),G=D[U]||D[65535],J=O.read_shift(2),W=O.l+J,q=G.f&&G.f(O,J,b);if(O.l=W,k(q,G,U))return}}}function t(O,k){switch(k.type){case"base64":return r(Er(en(O)),k);case"binary":return r(Er(O),k);case"buffer":case"array":return r(O,k)}throw"Unsupported type "+k.type}function r(O,k){if(!O)return O;var b=k||{},D=b.dense?[]:{},U="Sheet1",G="",J=0,W={},q=[],le=[],he={s:{r:0,c:0},e:{r:0,c:0}},Te=b.sheetRows||0;if(O[2]==0&&(O[3]==8||O[3]==9)&&O.length>=16&&O[14]==5&&O[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(O[2]==2)b.Enum=Ee,e(O,function(ge,bt,st){switch(st){case 0:b.vers=ge,ge>=4096&&(b.qpro=!0);break;case 6:he=ge;break;case 204:ge&&(G=ge);break;case 222:G=ge;break;case 15:case 51:b.qpro||(ge[1].v=ge[1].v.slice(1));case 13:case 14:case 16:st==14&&(ge[2]&112)==112&&(ge[2]&15)>1&&(ge[2]&15)<15&&(ge[1].z=b.dateNF||rt[14],b.cellDates&&(ge[1].t="d",ge[1].v=Rx(ge[1].v))),b.qpro&&ge[3]>J&&(D["!ref"]=ot(he),W[U]=D,q.push(U),D=b.dense?[]:{},he={s:{r:0,c:0},e:{r:0,c:0}},J=ge[3],U=G||"Sheet"+(J+1),G="");var ke=b.dense?(D[ge[0].r]||[])[ge[0].c]:D[Ue(ge[0])];if(ke){ke.t=ge[1].t,ke.v=ge[1].v,ge[1].z!=null&&(ke.z=ge[1].z),ge[1].f!=null&&(ke.f=ge[1].f);break}b.dense?(D[ge[0].r]||(D[ge[0].r]=[]),D[ge[0].r][ge[0].c]=ge[1]):D[Ue(ge[0])]=ge[1];break}},b);else if(O[2]==26||O[2]==14)b.Enum=ee,O[2]==14&&(b.qpro=!0,O.l=0),e(O,function(ge,bt,st){switch(st){case 204:U=ge;break;case 22:ge[1].v=ge[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ge[3]>J&&(D["!ref"]=ot(he),W[U]=D,q.push(U),D=b.dense?[]:{},he={s:{r:0,c:0},e:{r:0,c:0}},J=ge[3],U="Sheet"+(J+1)),Te>0&&ge[0].r>=Te)break;b.dense?(D[ge[0].r]||(D[ge[0].r]=[]),D[ge[0].r][ge[0].c]=ge[1]):D[Ue(ge[0])]=ge[1],he.e.c<ge[0].c&&(he.e.c=ge[0].c),he.e.r<ge[0].r&&(he.e.r=ge[0].r);break;case 27:ge[14e3]&&(le[ge[14e3][0]]=ge[14e3][1]);break;case 1537:le[ge[0]]=ge[1],ge[0]==J&&(U=ge[1]);break}},b);else throw new Error("Unrecognized LOTUS BOF "+O[2]);if(D["!ref"]=ot(he),W[G||U]=D,q.push(G||U),!le.length)return{SheetNames:q,Sheets:W};for(var fe={},We=[],be=0;be<le.length;++be)W[q[be]]?(We.push(le[be]||q[be]),fe[le[be]]=W[le[be]]||W[q[be]]):(We.push(le[be]),fe[le[be]]={"!ref":"A1"});return{SheetNames:We,Sheets:fe}}function n(O,k){var b=k||{};if(+b.codepage>=0&&ka(+b.codepage),b.type=="string")throw new Error("Cannot write WK1 to JS string");var D=Gt(),U=Ke(O["!ref"]),G=Array.isArray(O),J=[];ce(D,0,o(1030)),ce(D,6,l(U));for(var W=Math.min(U.e.r,8191),q=U.s.r;q<=W;++q)for(var le=_t(q),he=U.s.c;he<=U.e.c;++he){q===U.s.r&&(J[he]=Ft(he));var Te=J[he]+le,fe=G?(O[q]||[])[he]:O[Te];if(!(!fe||fe.t=="z"))if(fe.t=="n")(fe.v|0)==fe.v&&fe.v>=-32768&&fe.v<=32767?ce(D,13,h(q,he,fe.v)):ce(D,14,p(q,he,fe.v));else{var We=tn(fe);ce(D,15,f(q,he,We.slice(0,239)))}}return ce(D,1),D.end()}function i(O,k){var b=k||{};if(+b.codepage>=0&&ka(+b.codepage),b.type=="string")throw new Error("Cannot write WK3 to JS string");var D=Gt();ce(D,0,a(O));for(var U=0,G=0;U<O.SheetNames.length;++U)(O.Sheets[O.SheetNames[U]]||{})["!ref"]&&ce(D,27,ie(O.SheetNames[U],G++));var J=0;for(U=0;U<O.SheetNames.length;++U){var W=O.Sheets[O.SheetNames[U]];if(!(!W||!W["!ref"])){for(var q=Ke(W["!ref"]),le=Array.isArray(W),he=[],Te=Math.min(q.e.r,8191),fe=q.s.r;fe<=Te;++fe)for(var We=_t(fe),be=q.s.c;be<=q.e.c;++be){fe===q.s.r&&(he[be]=Ft(be));var ge=he[be]+We,bt=le?(W[fe]||[])[be]:W[ge];if(!(!bt||bt.t=="z"))if(bt.t=="n")ce(D,23,L(fe,be,J,bt.v));else{var st=tn(bt);ce(D,22,S(fe,be,J,st.slice(0,239)))}}++J}}return ce(D,1),D.end()}function o(O){var k=Z(2);return k.write_shift(2,O),k}function a(O){var k=Z(26);k.write_shift(2,4096),k.write_shift(2,4),k.write_shift(4,0);for(var b=0,D=0,U=0,G=0;G<O.SheetNames.length;++G){var J=O.SheetNames[G],W=O.Sheets[J];if(!(!W||!W["!ref"])){++U;var q=Jt(W["!ref"]);b<q.e.r&&(b=q.e.r),D<q.e.c&&(D=q.e.c)}}return b>8191&&(b=8191),k.write_shift(2,b),k.write_shift(1,U),k.write_shift(1,D),k.write_shift(2,0),k.write_shift(2,0),k.write_shift(1,1),k.write_shift(1,2),k.write_shift(4,0),k.write_shift(4,0),k}function s(O,k,b){var D={s:{c:0,r:0},e:{c:0,r:0}};return k==8&&b.qpro?(D.s.c=O.read_shift(1),O.l++,D.s.r=O.read_shift(2),D.e.c=O.read_shift(1),O.l++,D.e.r=O.read_shift(2),D):(D.s.c=O.read_shift(2),D.s.r=O.read_shift(2),k==12&&b.qpro&&(O.l+=2),D.e.c=O.read_shift(2),D.e.r=O.read_shift(2),k==12&&b.qpro&&(O.l+=2),D.s.c==65535&&(D.s.c=D.e.c=D.s.r=D.e.r=0),D)}function l(O){var k=Z(8);return k.write_shift(2,O.s.c),k.write_shift(2,O.s.r),k.write_shift(2,O.e.c),k.write_shift(2,O.e.r),k}function u(O,k,b){var D=[{c:0,r:0},{t:"n",v:0},0,0];return b.qpro&&b.vers!=20768?(D[0].c=O.read_shift(1),D[3]=O.read_shift(1),D[0].r=O.read_shift(2),O.l+=2):(D[2]=O.read_shift(1),D[0].c=O.read_shift(2),D[0].r=O.read_shift(2)),D}function c(O,k,b){var D=O.l+k,U=u(O,k,b);if(U[1].t="s",b.vers==20768){O.l++;var G=O.read_shift(1);return U[1].v=O.read_shift(G,"utf8"),U}return b.qpro&&O.l++,U[1].v=O.read_shift(D-O.l,"cstr"),U}function f(O,k,b){var D=Z(7+b.length);D.write_shift(1,255),D.write_shift(2,k),D.write_shift(2,O),D.write_shift(1,39);for(var U=0;U<D.length;++U){var G=b.charCodeAt(U);D.write_shift(1,G>=128?95:G)}return D.write_shift(1,0),D}function d(O,k,b){var D=u(O,k,b);return D[1].v=O.read_shift(2,"i"),D}function h(O,k,b){var D=Z(7);return D.write_shift(1,255),D.write_shift(2,k),D.write_shift(2,O),D.write_shift(2,b,"i"),D}function m(O,k,b){var D=u(O,k,b);return D[1].v=O.read_shift(8,"f"),D}function p(O,k,b){var D=Z(13);return D.write_shift(1,255),D.write_shift(2,k),D.write_shift(2,O),D.write_shift(8,b,"f"),D}function g(O,k,b){var D=O.l+k,U=u(O,k,b);if(U[1].v=O.read_shift(8,"f"),b.qpro)O.l=D;else{var G=O.read_shift(2);_(O.slice(O.l,O.l+G),U),O.l+=G}return U}function x(O,k,b){var D=k&32768;return k&=-32769,k=(D?O:0)+(k>=8192?k-16384:k),(D?"":"$")+(b?Ft(k):_t(k))}var w={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function _(O,k){Yt(O,0);for(var b=[],D=0,U="",G="",J="",W="";O.l<O.length;){var q=O[O.l++];switch(q){case 0:b.push(O.read_shift(8,"f"));break;case 1:G=x(k[0].c,O.read_shift(2),!0),U=x(k[0].r,O.read_shift(2),!1),b.push(G+U);break;case 2:{var le=x(k[0].c,O.read_shift(2),!0),he=x(k[0].r,O.read_shift(2),!1);G=x(k[0].c,O.read_shift(2),!0),U=x(k[0].r,O.read_shift(2),!1),b.push(le+he+":"+G+U)}break;case 3:if(O.l<O.length){console.error("WK1 premature formula end");return}break;case 4:b.push("("+b.pop()+")");break;case 5:b.push(O.read_shift(2));break;case 6:{for(var Te="";q=O[O.l++];)Te+=String.fromCharCode(q);b.push('"'+Te.replace(/"/g,'""')+'"')}break;case 8:b.push("-"+b.pop());break;case 23:b.push("+"+b.pop());break;case 22:b.push("NOT("+b.pop()+")");break;case 20:case 21:W=b.pop(),J=b.pop(),b.push(["AND","OR"][q-20]+"("+J+","+W+")");break;default:if(q<32&&y[q])W=b.pop(),J=b.pop(),b.push(J+y[q]+W);else if(w[q]){if(D=w[q][1],D==69&&(D=O[O.l++]),D>b.length){console.error("WK1 bad formula parse 0x"+q.toString(16)+":|"+b.join("|")+"|");return}var fe=b.slice(-D);b.length-=D,b.push(w[q][0]+"("+fe.join(",")+")")}else return q<=7?console.error("WK1 invalid opcode "+q.toString(16)):q<=24?console.error("WK1 unsupported op "+q.toString(16)):q<=30?console.error("WK1 invalid opcode "+q.toString(16)):q<=115?console.error("WK1 unsupported function opcode "+q.toString(16)):console.error("WK1 unrecognized opcode "+q.toString(16))}}b.length==1?k[1].f=""+b[0]:console.error("WK1 bad formula parse |"+b.join("|")+"|")}function N(O){var k=[{c:0,r:0},{t:"n",v:0},0];return k[0].r=O.read_shift(2),k[3]=O[O.l++],k[0].c=O[O.l++],k}function M(O,k){var b=N(O);return b[1].t="s",b[1].v=O.read_shift(k-4,"cstr"),b}function S(O,k,b,D){var U=Z(6+D.length);U.write_shift(2,O),U.write_shift(1,b),U.write_shift(1,k),U.write_shift(1,39);for(var G=0;G<D.length;++G){var J=D.charCodeAt(G);U.write_shift(1,J>=128?95:J)}return U.write_shift(1,0),U}function C(O,k){var b=N(O);b[1].v=O.read_shift(2);var D=b[1].v>>1;if(b[1].v&1)switch(D&7){case 0:D=(D>>3)*5e3;break;case 1:D=(D>>3)*500;break;case 2:D=(D>>3)/20;break;case 3:D=(D>>3)/200;break;case 4:D=(D>>3)/2e3;break;case 5:D=(D>>3)/2e4;break;case 6:D=(D>>3)/16;break;case 7:D=(D>>3)/64;break}return b[1].v=D,b}function A(O,k){var b=N(O),D=O.read_shift(4),U=O.read_shift(4),G=O.read_shift(2);if(G==65535)return D===0&&U===3221225472?(b[1].t="e",b[1].v=15):D===0&&U===3489660928?(b[1].t="e",b[1].v=42):b[1].v=0,b;var J=G&32768;return G=(G&32767)-16446,b[1].v=(1-J*2)*(U*Math.pow(2,G+32)+D*Math.pow(2,G)),b}function L(O,k,b,D){var U=Z(14);if(U.write_shift(2,O),U.write_shift(1,b),U.write_shift(1,k),D==0)return U.write_shift(4,0),U.write_shift(4,0),U.write_shift(2,65535),U;var G=0,J=0,W=0,q=0;return D<0&&(G=1,D=-D),J=Math.log2(D)|0,D/=Math.pow(2,J-31),q=D>>>0,q&2147483648||(D/=2,++J,q=D>>>0),D-=q,q|=2147483648,q>>>=0,D*=Math.pow(2,32),W=D>>>0,U.write_shift(4,W),U.write_shift(4,q),J+=16383+(G?32768:0),U.write_shift(2,J),U}function H(O,k){var b=A(O);return O.l+=k-14,b}function B(O,k){var b=N(O),D=O.read_shift(4);return b[1].v=D>>6,b}function V(O,k){var b=N(O),D=O.read_shift(8,"f");return b[1].v=D,b}function Q(O,k){var b=V(O);return O.l+=k-10,b}function ne(O,k){return O[O.l+k-1]==0?O.read_shift(k,"cstr"):""}function ye(O,k){var b=O[O.l++];b>k-1&&(b=k-1);for(var D="";D.length<b;)D+=String.fromCharCode(O[O.l++]);return D}function ve(O,k,b){if(!(!b.qpro||k<21)){var D=O.read_shift(1);O.l+=17,O.l+=1,O.l+=2;var U=O.read_shift(k-21,"cstr");return[D,U]}}function Ce(O,k){for(var b={},D=O.l+k;O.l<D;){var U=O.read_shift(2);if(U==14e3){for(b[U]=[0,""],b[U][0]=O.read_shift(2);O[O.l];)b[U][1]+=String.fromCharCode(O[O.l]),O.l++;O.l++}}return b}function ie(O,k){var b=Z(5+O.length);b.write_shift(2,14e3),b.write_shift(2,k);for(var D=0;D<O.length;++D){var U=O.charCodeAt(D);b[b.l++]=U>127?95:U}return b[b.l++]=0,b}var Ee={0:{n:"BOF",f:ow},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ne},222:{n:"SHEETNAMELP",f:ye},65535:{n:""}},ee={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:M},23:{n:"NUMBER17",f:A},24:{n:"NUMBER18",f:C},25:{n:"FORMULA19",f:H},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Ce},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:B},38:{n:"??"},39:{n:"NUMBER27",f:V},40:{n:"FORMULA28",f:Q},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ne},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:ve},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}}(),DA=/^\s|\s$|[\t\n\r]/;function fw(e,t){if(!t.bookSST)return"";var r=[at];r[r.length]=ue("sst",null,{xmlns:_o[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],o="<si>";i.r?o+=i.r:(o+="<t",i.t||(i.t=""),i.t.match(DA)&&(o+=' xml:space="preserve"'),o+=">"+Be(i.t)+"</t>"),o+="</si>",r[r.length]=o}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function PA(e){return[e.read_shift(4),e.read_shift(4)]}function IA(e,t){return t||(t=Z(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var bA=S3;function kA(e){var t=Gt();re(t,159,IA(e));for(var r=0;r<e.length;++r)re(t,19,bA(e[r]));return re(t,160),t.end()}function $A(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function dw(e){var t=0,r,n=$A(e),i=n.length+1,o,a,s,l,u;for(r=ii(i),r[0]=n.length,o=1;o!=i;++o)r[o]=n[o-1];for(o=i-1;o>=0;--o)a=r[o],s=t&16384?1:0,l=t<<1&32767,u=s|l,t=u^a;return t^52811}var NA=function(){function e(i,o){switch(o.type){case"base64":return t(en(i),o);case"binary":return t(i,o);case"buffer":return t(Ne&&Buffer.isBuffer(i)?i.toString("binary"):Qa(i),o);case"array":return t(Eu(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){var a=o||{},s=a.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(c,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,h=0,m,p=-1;m=d.exec(c);){switch(m[0]){case"\\cell":var g=c.slice(h,d.lastIndex-m[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var x={v:g,t:"s"};Array.isArray(s)?s[f][p]=x:s[Ue({r:f,c:p})]=x}break}h=d.lastIndex}p>u.e.c&&(u.e.c=p)}),s["!ref"]=ot(u),s}function r(i,o){return mi(e(i,o),o)}function n(i){for(var o=["{\\rtf1\\ansi"],a=Ke(i["!ref"]),s,l=Array.isArray(i),u=a.s.r;u<=a.e.r;++u){o.push("\\trowd\\trautofit1");for(var c=a.s.c;c<=a.e.c;++c)o.push("\\cellx"+(c+1));for(o.push("\\pard\\intbl"),c=a.s.c;c<=a.e.c;++c){var f=Ue({r:u,c});s=l?(i[u]||[])[c]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(o.push(" "+(s.w||(tn(s),s.w))),o.push("\\cell"))}o.push("\\pard\\intbl\\row")}return o.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Xg(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var MA=6,Zr=MA;function Ul(e){return Math.floor((e+Math.round(128/Zr)/256)*Zr)}function Hl(e){return Math.floor((e-5)/Zr*100+.5)/100}function Gf(e){return Math.round((e*Zr+5)/Zr*256)/256}function Ud(e){e.width?(e.wpx=Ul(e.width),e.wch=Hl(e.wpx),e.MDW=Zr):e.wpx?(e.wch=Hl(e.wpx),e.width=Gf(e.wch),e.MDW=Zr):typeof e.wch=="number"&&(e.width=Gf(e.wch),e.wpx=Ul(e.width),e.MDW=Zr),e.customWidth&&delete e.customWidth}var LA=96,hw=LA;function Vl(e){return e*96/hw}function pw(e){return e*hw/96}function BA(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=ue("numFmt",null,{numFmtId:n,formatCode:Be(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=ue("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function UA(e){var t=[];return t[t.length]=ue("cellXfs",null),e.forEach(function(r){t[t.length]=ue("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=ue("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function gw(e,t){var r=[at,ue("styleSheet",null,{xmlns:_o[0],"xmlns:vt":ft.vt})],n;return e.SSF&&(n=BA(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=UA(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function HA(e,t){var r=e.read_shift(2),n=Dt(e);return[r,n]}function VA(e,t,r){r||(r=Z(6+4*t.length)),r.write_shift(2,e),ht(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function WA(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=D3(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var o=e.read_shift(2);switch(o===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var a=e.read_shift(1);a!=0&&(n.underline=a);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=F3(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Dt(e),n}function zA(e,t){t||(t=Z(25+4*32)),t.write_shift(2,e.sz*20),P3(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Ll(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),ht(e.name,t),t.length>t.l?t.slice(0,t.l):t}var GA=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Rc,jA=$r;function Kg(e,t){t||(t=Z(4*3+8*7+16*1)),Rc||(Rc=Od(GA));var r=Rc[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Ll({auto:1},t),Ll({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function XA(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function mw(e,t,r){r||(r=Z(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function zo(e,t){return t||(t=Z(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var KA=$r;function YA(e,t){return t||(t=Z(51)),t.write_shift(1,0),zo(null,t),zo(null,t),zo(null,t),zo(null,t),zo(null,t),t.length>t.l?t.slice(0,t.l):t}function qA(e,t){return t||(t=Z(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),Ml(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function QA(e,t,r){var n=Z(2052);return n.write_shift(4,e),Ml(t,n),Ml(r,n),n.length>n.l?n.slice(0,n.l):n}function ZA(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(re(e,615,Cr(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&re(e,44,VA(i,t[i]))}),re(e,616))}}function JA(e){var t=1;re(e,611,Cr(t)),re(e,43,zA({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),re(e,612)}function eR(e){var t=2;re(e,603,Cr(t)),re(e,45,Kg({patternType:"none"})),re(e,45,Kg({patternType:"gray125"})),re(e,604)}function tR(e){var t=1;re(e,613,Cr(t)),re(e,46,YA()),re(e,614)}function rR(e){var t=1;re(e,626,Cr(t)),re(e,47,mw({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),re(e,627)}function nR(e,t){re(e,617,Cr(t.length)),t.forEach(function(r){re(e,47,mw(r,0))}),re(e,618)}function iR(e){var t=1;re(e,619,Cr(t)),re(e,48,qA({xfId:0,builtinId:0,name:"Normal"})),re(e,620)}function oR(e){var t=0;re(e,505,Cr(t)),re(e,506)}function aR(e){var t=0;re(e,508,QA(t,"TableStyleMedium9","PivotStyleMedium4")),re(e,509)}function sR(e,t){var r=Gt();return re(r,278),ZA(r,e.SSF),JA(r),eR(r),tR(r),rR(r),nR(r,t.cellXfs),iR(r),oR(r),aR(r),re(r,279),r.end()}function vw(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[at];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function lR(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Dt(e)}}function uR(e){var t=Z(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),ht(e.name,t),t.slice(0,t.l)}function cR(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function fR(e){var t=Z(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function dR(e,t){var r=Z(8+2*t.length);return r.write_shift(4,e),ht(t,r),r.slice(0,r.l)}function hR(e){return e.l+=4,e.read_shift(4)!=0}function pR(e,t){var r=Z(8);return r.write_shift(4,e),r.write_shift(4,t?1:0),r}function gR(){var e=Gt();return re(e,332),re(e,334,Cr(1)),re(e,335,uR({name:"XLDAPR",version:12e4,flags:3496657072})),re(e,336),re(e,339,dR(1,"XLDAPR")),re(e,52),re(e,35,Cr(514)),re(e,4096,Cr(0)),re(e,4097,or(1)),re(e,36),re(e,53),re(e,340),re(e,337,pR(1,!0)),re(e,51,fR([[1,0]])),re(e,338),re(e,333),e.end()}function xw(){var e=[at];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
<metadataTypes count="1">
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
</metadataTypes>
<futureMetadata name="XLDAPR" count="1">
<bk>
<extLst>
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
</ext>
</extLst>
</bk>
</futureMetadata>
<cellMetadata count="1">
<bk>
<rc t="1" v="0"/>
</bk>
</cellMetadata>
</metadata>`),e.join("")}function mR(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=Ue(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Wi=1024;function ww(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[ue("xml",null,{"xmlns:v":qt.v,"xmlns:o":qt.o,"xmlns:x":qt.x,"xmlns:mv":qt.mv}).replace(/\/>/,">"),ue("o:shapelayout",ue("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ue("v:shapetype",[ue("v:stroke",null,{joinstyle:"miter"}),ue("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Wi<e*1e3;)Wi+=1e3;return t.forEach(function(o){var a=dt(o[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?ue("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=ue("v:fill",l,s),c={on:"t",obscured:"t"};++Wi,i=i.concat(["<v:shape"+Ma({id:"_x0000_s"+Wi,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(o[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,ue("v:shadow",null,c),ue("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",yt("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),yt("x:AutoFill","False"),yt("x:Row",String(a.r)),yt("x:Column",String(a.c)),o[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function yw(e){var t=[at,ue("comments",null,{xmlns:_o[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var o=Be(i.a);r.indexOf(o)==-1&&(r.push(o),t.push("<author>"+o+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(Be(l.a))),o.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),o.length<=1)t.push(yt("t",Be(o[0]||"")));else{for(var a=`Comment:
`+o[0]+`
`,s=1;s<o.length;++s)a+=`Reply:
`+o[s]+`
`;t.push(yt("t",Be(a)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function vR(e,t,r){var n=[at,ue("ThreadedComments",null,{xmlns:ft.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var o="";(i[1]||[]).forEach(function(a,s){if(!a.T){delete a.ID;return}a.a&&t.indexOf(a.a)==-1&&t.push(a.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?o=l.id:l.parentId=o,a.ID=l.id,a.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),n.push(ue("threadedComment",yt("text",a.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function xR(e){var t=[at,ue("personList",null,{xmlns:ft.TCMNT,"xmlns:x":_o[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(ue("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function wR(e){var t={};t.iauthor=e.read_shift(4);var r=yi(e);return t.rfx=r.s,t.ref=Ue(r.s),e.l+=16,t}function yR(e,t){return t==null&&(t=Z(36)),t.write_shift(4,e[1].iauthor),To(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var ER=Dt;function _R(e){return ht(e.slice(0,54))}function SR(e){var t=Gt(),r=[];return re(t,628),re(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),re(t,632,_R(i.a)))})}),re(t,631),re(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var o={s:dt(n[0]),e:dt(n[0])};re(t,635,yR([o,i])),i.t&&i.t.length>0&&re(t,637,C3(i)),re(t,636),delete i.iauthor})}),re(t,634),re(t,629),t.end()}function TR(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&He.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var Ew=["xlsb","xlsm","xlam","biff8","xla"],CR=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,i,o,a){var s=!1,l=!1;o.length==0?l=!0:o.charAt(0)=="["&&(l=!0,o=o.slice(1,-1)),a.length==0?s=!0:a.charAt(0)=="["&&(s=!0,a=a.slice(1,-1));var u=o.length>0?parseInt(o,10)|0:0,c=a.length>0?parseInt(a,10)|0:0;return s?c+=t.c:--c,l?u+=t.r:--u,i+(s?"":"$")+Ft(c)+(l?"":"$")+_t(u)}return function(i,o){return t=o,i.replace(e,r)}}(),Hd=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Vd=function(){return function(t,r){return t.replace(Hd,function(n,i,o,a,s,l){var u=$d(a)-(o?0:r.c),c=kd(l)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",d=u==0?"":o?u+1:"["+u+"]";return i+"R"+f+"C"+d})}}();function AR(e,t){return e.replace(Hd,function(r,n,i,o,a,s){return n+(i=="$"?i+o:Ft($d(o)+t.c))+(a=="$"?a+s:_t(kd(s)+t.r))})}function RR(e){return e.length!=1}function it(e){e.l+=1}function $n(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function _w(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Sw(e);r.biff==12&&(n=4)}var i=e.read_shift(n),o=e.read_shift(n),a=$n(e,2),s=$n(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function Sw(e){var t=$n(e,2),r=$n(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function OR(e,t,r){if(r.biff<8)return Sw(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),o=$n(e,2),a=$n(e,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function Tw(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return FR(e);var n=e.read_shift(r&&r.biff==12?4:2),i=$n(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function FR(e){var t=$n(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function DR(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function PR(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return IR(e);var i=e.read_shift(n>=12?4:2),o=e.read_shift(2),a=(o&16384)>>14,s=(o&32768)>>15;if(o&=16383,s==1)for(;i>524287;)i-=1048576;if(a==1)for(;o>8191;)o=o-16384;return{r:i,c:o,cRel:a,rRel:s}}function IR(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function bR(e,t,r){var n=(e[e.l++]&96)>>5,i=_w(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function kR(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),o=8;if(r)switch(r.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=_w(e,o,r);return[n,i,a]}function $R(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function NR(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),o=8;if(r)switch(r.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[n,i]}function MR(e,t,r){var n=(e[e.l++]&96)>>5,i=OR(e,t-1,r);return[n,i]}function LR(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Yg(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function BR(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],o=0;o<=n;++o)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function UR(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function HR(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function VR(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function WR(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function Cw(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function zR(e){return e.read_shift(2),Cw(e)}function GR(e){return e.read_shift(2),Cw(e)}function jR(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=Tw(e,0,r);return[n,i]}function XR(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=PR(e,0,r);return[n,i]}function KR(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var o=Tw(e,0,r);return[n,i,o]}function YR(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[YO[i],Ow[i],n]}function qR(e,t,r){var n=e[e.l++],i=e.read_shift(1),o=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:QR(e);return[i,(o[0]===0?Ow:KO)[o[1]]]}function QR(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function ZR(e,t,r){e.l+=r&&r.biff==2?3:4}function JR(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function eO(e){return e.l++,es[e.read_shift(1)]}function tO(e){return e.l++,e.read_shift(2)}function rO(e){return e.l++,e.read_shift(1)!==0}function nO(e){return e.l++,Co(e)}function iO(e,t,r){return e.l++,sw(e,t-1,r)}function oO(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=K3(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=es[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Co(e);break;case 2:r[1]=Z3(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function aO(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],o=0;o!=n;++o)i.push((r.biff==12?yi:tA)(e));return i}function sO(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var o=0,a=[];o!=n&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=oO(e,r.biff);return a}function lO(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,o=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,o]}function uO(e,t,r){if(r.biff==5)return cO(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[n,i,o]}function cO(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function fO(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function dO(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function hO(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function pO(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),o=4;if(r)switch(r.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[n,i]}var gO=$r,mO=$r,vO=$r;function ts(e,t,r){return e.l+=2,[DR(e)]}function Wd(e){return e.l+=6,[]}var xO=ts,wO=Wd,yO=Wd,EO=ts;function Aw(e){return e.l+=2,[ow(e),e.read_shift(2)&1]}var _O=ts,SO=Aw,TO=Wd,CO=ts,AO=ts,RO=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function OO(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=RO[r>>2&31];return{ixti:t,coltype:r&3,rt:a,idx:n,c:i,C:o}}function FO(e){return e.l+=2,[e.read_shift(4)]}function DO(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function PO(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function IO(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function bO(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function kO(e){return e.l+=4,[0,0]}var qg={1:{n:"PtgExp",f:JR},2:{n:"PtgTbl",f:vO},3:{n:"PtgAdd",f:it},4:{n:"PtgSub",f:it},5:{n:"PtgMul",f:it},6:{n:"PtgDiv",f:it},7:{n:"PtgPower",f:it},8:{n:"PtgConcat",f:it},9:{n:"PtgLt",f:it},10:{n:"PtgLe",f:it},11:{n:"PtgEq",f:it},12:{n:"PtgGe",f:it},13:{n:"PtgGt",f:it},14:{n:"PtgNe",f:it},15:{n:"PtgIsect",f:it},16:{n:"PtgUnion",f:it},17:{n:"PtgRange",f:it},18:{n:"PtgUplus",f:it},19:{n:"PtgUminus",f:it},20:{n:"PtgPercent",f:it},21:{n:"PtgParen",f:it},22:{n:"PtgMissArg",f:it},23:{n:"PtgStr",f:iO},26:{n:"PtgSheet",f:DO},27:{n:"PtgEndSheet",f:PO},28:{n:"PtgErr",f:eO},29:{n:"PtgBool",f:rO},30:{n:"PtgInt",f:tO},31:{n:"PtgNum",f:nO},32:{n:"PtgArray",f:LR},33:{n:"PtgFunc",f:YR},34:{n:"PtgFuncVar",f:qR},35:{n:"PtgName",f:lO},36:{n:"PtgRef",f:jR},37:{n:"PtgArea",f:bR},38:{n:"PtgMemArea",f:fO},39:{n:"PtgMemErr",f:gO},40:{n:"PtgMemNoMem",f:mO},41:{n:"PtgMemFunc",f:dO},42:{n:"PtgRefErr",f:hO},43:{n:"PtgAreaErr",f:$R},44:{n:"PtgRefN",f:XR},45:{n:"PtgAreaN",f:MR},46:{n:"PtgMemAreaN",f:IO},47:{n:"PtgMemNoMemN",f:bO},57:{n:"PtgNameX",f:uO},58:{n:"PtgRef3d",f:KR},59:{n:"PtgArea3d",f:kR},60:{n:"PtgRefErr3d",f:pO},61:{n:"PtgAreaErr3d",f:NR},255:{}},$O={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},NO={1:{n:"PtgElfLel",f:Aw},2:{n:"PtgElfRw",f:CO},3:{n:"PtgElfCol",f:xO},6:{n:"PtgElfRwV",f:AO},7:{n:"PtgElfColV",f:EO},10:{n:"PtgElfRadical",f:_O},11:{n:"PtgElfRadicalS",f:TO},13:{n:"PtgElfColS",f:wO},15:{n:"PtgElfColSV",f:yO},16:{n:"PtgElfRadicalLel",f:SO},25:{n:"PtgList",f:OO},29:{n:"PtgSxName",f:FO},255:{}},MO={0:{n:"PtgAttrNoop",f:kO},1:{n:"PtgAttrSemi",f:WR},2:{n:"PtgAttrIf",f:HR},4:{n:"PtgAttrChoose",f:BR},8:{n:"PtgAttrGoto",f:UR},16:{n:"PtgAttrSum",f:ZR},32:{n:"PtgAttrBaxcel",f:Yg},33:{n:"PtgAttrBaxcel",f:Yg},64:{n:"PtgAttrSpace",f:zR},65:{n:"PtgAttrSpaceSemi",f:GR},128:{n:"PtgAttrIfError",f:VR},255:{}};function LO(e,t,r,n){if(n.biff<8)return $r(e,t);for(var i=e.l+t,o=[],a=0;a!==r.length;++a)switch(r[a][0]){case"PtgArray":r[a][1]=sO(e,0,n),o.push(r[a][1]);break;case"PtgMemArea":r[a][2]=aO(e,r[a][1],n),o.push(r[a][2]);break;case"PtgExp":n&&n.biff==12&&(r[a][1][1]=e.read_shift(4),o.push(r[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[a][0]}return t=i-e.l,t!==0&&o.push($r(e,t)),o}function BO(e,t,r){for(var n=e.l+t,i,o,a=[];n!=e.l;)t=n-e.l,o=e[e.l],i=qg[o]||qg[$O[o]],(o===24||o===25)&&(i=(o===24?NO:MO)[e[e.l+1]]),!i||!i.f?$r(e,t):a.push([i.n,i.f(e,t,r)]);return a}function UO(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],o=0;o<n.length;++o){var a=n[o];if(a)switch(a[0]){case 2:i.push('"'+a[1].replace(/"/g,'""')+'"');break;default:i.push(a[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var HO={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function VO(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Rw(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Qg(e,t,r){var n=Rw(e,t,r);return n=="#REF"?n:VO(n,r)}function fo(e,t,r,n,i){var o=i&&i.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,u,c,f=0,d=0,h,m="";if(!e[0]||!e[0][0])return"";for(var p=-1,g="",x=0,w=e[0].length;x<w;++x){var y=e[0][x];switch(y[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),u=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:g=Je(" ",e[0][p][1][1]);break;case 1:g=Je("\r",e[0][p][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}u=u+g,p=-1}s.push(u+HO[y[0]]+l);break;case"PtgIsect":l=s.pop(),u=s.pop(),s.push(u+" "+l);break;case"PtgUnion":l=s.pop(),u=s.pop(),s.push(u+","+l);break;case"PtgRange":l=s.pop(),u=s.pop(),s.push(u+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=ga(y[1][1],a,i),s.push(ma(c,o));break;case"PtgRefN":c=r?ga(y[1][1],r,i):y[1][1],s.push(ma(c,o));break;case"PtgRef3d":f=y[1][1],c=ga(y[1][2],a,i),m=Qg(n,f,i),s.push(m+"!"+ma(c,o));break;case"PtgFunc":case"PtgFuncVar":var _=y[1][0],N=y[1][1];_||(_=0),_&=127;var M=_==0?[]:s.slice(-_);s.length-=_,N==="User"&&(N=M.shift()),s.push(N+"("+M.join(",")+")");break;case"PtgBool":s.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(y[1]);break;case"PtgNum":s.push(String(y[1]));break;case"PtgStr":s.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(y[1]);break;case"PtgAreaN":h=$g(y[1][1],r?{s:r}:a,i),s.push(Cc(h,i));break;case"PtgArea":h=$g(y[1][1],a,i),s.push(Cc(h,i));break;case"PtgArea3d":f=y[1][1],h=y[1][2],m=Qg(n,f,i),s.push(m+"!"+Cc(h,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=y[1][2];var S=(n.names||[])[d-1]||(n[0]||[])[d],C=S?S.Name:"SH33TJSNAME"+String(d);C&&C.slice(0,6)=="_xlfn."&&!i.xlfn&&(C=C.slice(6)),s.push(C);break;case"PtgNameX":var A=y[1][1];d=y[1][2];var L;if(i.biff<=5)A<0&&(A=-A),n[A]&&(L=n[A][d]);else{var H="";if(((n[A]||[])[0]||[])[0]==14849||(((n[A]||[])[0]||[])[0]==1025?n[A][d]&&n[A][d].itab>0&&(H=n.SheetNames[n[A][d].itab-1]+"!"):H=n.SheetNames[d-1]+"!"),n[A]&&n[A][d])H+=n[A][d].Name;else if(n[0]&&n[0][d])H+=n[0][d].Name;else{var B=(Rw(n,A,i)||"").split(";;");B[d-1]?H=B[d-1]:H+="SH33TJSERRX"}s.push(H);break}L||(L={Name:"SH33TJSERRY"}),s.push(L.Name);break;case"PtgParen":var V="(",Q=")";if(p>=0){switch(g="",e[0][p][1][0]){case 2:V=Je(" ",e[0][p][1][1])+V;break;case 3:V=Je("\r",e[0][p][1][1])+V;break;case 4:Q=Je(" ",e[0][p][1][1])+Q;break;case 5:Q=Je("\r",e[0][p][1][1])+Q;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(V+s.pop()+Q);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:y[1][1],r:y[1][0]};var ne={c:r.c,r:r.r};if(n.sharedf[Ue(c)]){var ye=n.sharedf[Ue(c)];s.push(fo(ye,a,ne,n,i))}else{var ve=!1;for(l=0;l!=n.arrayf.length;++l)if(u=n.arrayf[l],!(c.c<u[0].s.c||c.c>u[0].e.c)&&!(c.r<u[0].s.r||c.r>u[0].e.r)){s.push(fo(u[1],a,ne,n,i)),ve=!0;break}ve||s.push(y[1])}break;case"PtgArray":s.push("{"+UO(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=x;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var Ce=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&Ce.indexOf(e[0][x][0])==-1){y=e[0][p];var ie=!0;switch(y[1][0]){case 4:ie=!1;case 0:g=Je(" ",y[1][1]);break;case 5:ie=!1;case 1:g=Je("\r",y[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}s.push((ie?g:"")+s.pop()+(ie?"":g)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function WO(e){if(e==null){var t=Z(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return oi(e);return oi(0)}function zO(e,t,r,n,i){var o=ai(t,r,i),a=WO(e.v),s=Z(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=Z(e.bf.length),c=0;c<e.bf.length;++c)u[c]=e.bf[c];var f=wt([o,a,s,u]);return f}function _u(e,t,r){var n=e.read_shift(4),i=BO(e,n,r),o=e.read_shift(4),a=o>0?LO(e,o,i,r):null;return[i,a]}var GO=_u,Su=_u,jO=_u,XO=_u,KO={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Ow={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},YO={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function qO(e){var t="of:="+e.replace(Hd,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function QO(e){return e.replace(/\./,"!")}var va=typeof Map<"u";function zd(e,t,r){var n=0,i=e.length;if(r){if(va?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var o=va?r.get(t):r[t];n<o.length;++n)if(e[o[n]].t===t)return e.Count++,o[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(va?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function Tu(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(Zr=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=Hl(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=Gf(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function Fw(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Bn(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,o=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){Tx(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=o;++i)if(e[i].numFmtId===n)return i;return e[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function ZO(e,t,r){if(e&&e["!ref"]){var n=Ke(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function JO(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+ot(e[r])+'"/>';return t+"</mergeCells>"}function eF(e,t,r,n,i){var o=!1,a={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}o=!0,a.codeName=Gr(Be(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),s=(s||"")+ue("outlinePr",null,u)}!o&&!s||(i[i.length]=ue("sheetPr",s,a))}var tF=["objects","scenarios","selectLockedCells","selectUnlockedCells"],rF=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function nF(e){var t={sheet:1};return tF.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),rF.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=dw(e.password).toString(16).toUpperCase()),ue("sheetProtection",null,t)}function iF(e){return Fw(e),ue("pageMargins",null,e)}function oF(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=ue("col",null,Tu(i,n)));return r[r.length]="</cols>",r.join("")}function aF(e,t,r,n){var i=typeof e.ref=="string"?e.ref:ot(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,a=Jt(i);a.s.r==a.e.r&&(a.e.r=Jt(t["!ref"]).e.r,i=ot(a));for(var s=0;s<o.length;++s){var l=o[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return s==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),ue("autoFilter",null,{ref:i})}function sF(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),ue("sheetViews",ue("sheetView",null,i),{})}function lF(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",o=e.t,a=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=es[e.v];break;case"d":n&&n.cellDates?i=Lt(e.v,-1).toISOString():(e=Xt(e),e.t="n",i=""+(e.v=jt(Lt(e.v)))),typeof e.z>"u"&&(e.z=rt[14]);break;default:i=e.v;break}var s=yt("v",Be(i)),l={r:t},u=Bn(n.cellXfs,e,n);switch(u!==0&&(l.s=u),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=yt("v",""+zd(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=o&&(e.t=o,e.v=a),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=ue("f",Be(e.f),c)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),ue("c",s,l)}function uF(e,t,r,n){var i=[],o=[],a=Ke(e["!ref"]),s="",l,u="",c=[],f=0,d=0,h=e["!rows"],m=Array.isArray(e),p={r:u},g,x=-1;for(d=a.s.c;d<=a.e.c;++d)c[d]=Ft(d);for(f=a.s.r;f<=a.e.r;++f){for(o=[],u=_t(f),d=a.s.c;d<=a.e.c;++d){l=c[d]+u;var w=m?(e[f]||[])[d]:e[l];w!==void 0&&(s=lF(w,l,e,t))!=null&&o.push(s)}(o.length>0||h&&h[f])&&(p={r:u},h&&h[f]&&(g=h[f],g.hidden&&(p.hidden=1),x=-1,g.hpx?x=Vl(g.hpx):g.hpt&&(x=g.hpt),x>-1&&(p.ht=x,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),i[i.length]=ue("row",o.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},g=h[f],g.hidden&&(p.hidden=1),x=-1,g.hpx?x=Vl(g.hpx):g.hpt&&(x=g.hpt),x>-1&&(p.ht=x,p.customHeight=1),g.level&&(p.outlineLevel=g.level),i[i.length]=ue("row","",p));return i.join("")}function Dw(e,t,r,n){var i=[at,ue("worksheet",null,{xmlns:_o[0],"xmlns:r":ft.r})],o=r.SheetNames[e],a=0,s="",l=r.Sheets[o];l==null&&(l={});var u=l["!ref"]||"A1",c=Ke(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=ot(c)}n||(n={}),l["!comments"]=[];var f=[];eF(l,r,e,t,i),i[i.length]=ue("dimension",null,{ref:u}),i[i.length]=sF(l,t,e,r),t.sheetFormat&&(i[i.length]=ue("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=oF(l,l["!cols"])),i[a=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=uF(l,t),s.length>0&&(i[i.length]=s)),i.length>a+1&&(i[i.length]="</sheetData>",i[a]=i[a].replace("/>",">")),l["!protect"]&&(i[i.length]=nF(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=aF(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=JO(l["!merges"]));var d=-1,h,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(m=Le(n,-1,Be(p[1].Target).replace(/#.*$/,""),$e.HLINK),h["r:id"]="rId"+m),(d=p[1].Target.indexOf("#"))>-1&&(h.location=Be(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=Be(p[1].Tooltip)),i[i.length]=ue("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=iF(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=yt("ignoredErrors",ue("ignoredError",null,{numberStoredAsText:1,sqref:u}))),f.length>0&&(m=Le(n,-1,"../drawings/drawing"+(e+1)+".xml",$e.DRAW),i[i.length]=ue("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=f),l["!comments"].length>0&&(m=Le(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",$e.VML),i[i.length]=ue("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function cF(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=n,o&7&&(r.level=o&7),o&16&&(r.hidden=!0),o&32&&(r.hpt=i/20),r}function fF(e,t,r){var n=Z(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var o=320;i.hpx?o=Vl(i.hpx)*20:i.hpt&&(o=i.hpt*20),n.write_shift(2,o),n.write_shift(1,0);var a=0;i.level&&(a|=i.level),i.hidden&&(a|=16),(i.hpx||i.hpt)&&(a|=32),n.write_shift(1,a),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var f=-1,d=-1,h=c<<10;h<c+1<<10;++h){u.c=h;var m=Array.isArray(r)?(r[u.r]||[])[u.c]:r[Ue(u)];m&&(f<0&&(f=h),d=h)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,d))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function dF(e,t,r,n){var i=fF(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&re(e,0,i)}var hF=yi,pF=To;function gF(){}function mF(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=A3(e),r}function vF(e,t,r){r==null&&(r=Z(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return Ll({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Gx(e,r),r.slice(0,r.l)}function xF(e){var t=pr(e);return[t]}function wF(e,t,r){return r==null&&(r=Z(8)),vi(t,r)}function yF(e){var t=xi(e);return[t]}function EF(e,t,r){return r==null&&(r=Z(4)),wi(t,r)}function _F(e){var t=pr(e),r=e.read_shift(1);return[t,r,"b"]}function SF(e,t,r){return r==null&&(r=Z(9)),vi(t,r),r.write_shift(1,e.v?1:0),r}function TF(e){var t=xi(e),r=e.read_shift(1);return[t,r,"b"]}function CF(e,t,r){return r==null&&(r=Z(5)),wi(t,r),r.write_shift(1,e.v?1:0),r}function AF(e){var t=pr(e),r=e.read_shift(1);return[t,r,"e"]}function RF(e,t,r){return r==null&&(r=Z(9)),vi(t,r),r.write_shift(1,e.v),r}function OF(e){var t=xi(e),r=e.read_shift(1);return[t,r,"e"]}function FF(e,t,r){return r==null&&(r=Z(8)),wi(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function DF(e){var t=pr(e),r=e.read_shift(4);return[t,r,"s"]}function PF(e,t,r){return r==null&&(r=Z(12)),vi(t,r),r.write_shift(4,t.v),r}function IF(e){var t=xi(e),r=e.read_shift(4);return[t,r,"s"]}function bF(e,t,r){return r==null&&(r=Z(8)),wi(t,r),r.write_shift(4,t.v),r}function kF(e){var t=pr(e),r=Co(e);return[t,r,"n"]}function $F(e,t,r){return r==null&&(r=Z(16)),vi(t,r),oi(e.v,r),r}function NF(e){var t=xi(e),r=Co(e);return[t,r,"n"]}function MF(e,t,r){return r==null&&(r=Z(12)),wi(t,r),oi(e.v,r),r}function LF(e){var t=pr(e),r=jx(e);return[t,r,"n"]}function BF(e,t,r){return r==null&&(r=Z(12)),vi(t,r),Xx(e.v,r),r}function UF(e){var t=xi(e),r=jx(e);return[t,r,"n"]}function HF(e,t,r){return r==null&&(r=Z(8)),wi(t,r),Xx(e.v,r),r}function VF(e){var t=pr(e),r=Nd(e);return[t,r,"is"]}function WF(e){var t=pr(e),r=Dt(e);return[t,r,"str"]}function zF(e,t,r){return r==null&&(r=Z(12+4*e.v.length)),vi(t,r),ht(e.v,r),r.length>r.l?r.slice(0,r.l):r}function GF(e){var t=xi(e),r=Dt(e);return[t,r,"str"]}function jF(e,t,r){return r==null&&(r=Z(8+4*e.v.length)),wi(t,r),ht(e.v,r),r.length>r.l?r.slice(0,r.l):r}function XF(e,t,r){var n=e.l+t,i=pr(e);i.r=r["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(r.cellFormula){e.l+=2;var s=Su(e,n-e.l,r);a[3]=fo(s,null,i,r.supbooks,r)}else e.l=n;return a}function KF(e,t,r){var n=e.l+t,i=pr(e);i.r=r["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(r.cellFormula){e.l+=2;var s=Su(e,n-e.l,r);a[3]=fo(s,null,i,r.supbooks,r)}else e.l=n;return a}function YF(e,t,r){var n=e.l+t,i=pr(e);i.r=r["!row"];var o=Co(e),a=[i,o,"n"];if(r.cellFormula){e.l+=2;var s=Su(e,n-e.l,r);a[3]=fo(s,null,i,r.supbooks,r)}else e.l=n;return a}function qF(e,t,r){var n=e.l+t,i=pr(e);i.r=r["!row"];var o=Dt(e),a=[i,o,"str"];if(r.cellFormula){e.l+=2;var s=Su(e,n-e.l,r);a[3]=fo(s,null,i,r.supbooks,r)}else e.l=n;return a}var QF=yi,ZF=To;function JF(e,t){return t==null&&(t=Z(4)),t.write_shift(4,e),t}function e6(e,t){var r=e.l+t,n=yi(e),i=Md(e),o=Dt(e),a=Dt(e),s=Dt(e);e.l=r;var l={rfx:n,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function t6(e,t){var r=Z(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));To({s:dt(e[0]),e:dt(e[0])},r),Ld("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return ht(i||"",r),ht(e[1].Tooltip||"",r),ht("",r),r.slice(0,r.l)}function r6(){}function n6(e,t,r){var n=e.l+t,i=Kx(e),o=e.read_shift(1),a=[i];if(a[2]=o,r.cellFormula){var s=GO(e,n-e.l,r);a[1]=s}else e.l=n;return a}function i6(e,t,r){var n=e.l+t,i=yi(e),o=[i];if(r.cellFormula){var a=XO(e,n-e.l,r);o[1]=a,e.l=n}else e.l=n;return o}function o6(e,t,r){r==null&&(r=Z(18));var n=Tu(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var Pw=["left","right","top","bottom","header","footer"];function a6(e){var t={};return Pw.forEach(function(r){t[r]=Co(e)}),t}function s6(e,t){return t==null&&(t=Z(6*8)),Fw(e),Pw.forEach(function(r){oi(e[r],t)}),t}function l6(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function u6(e,t,r){r==null&&(r=Z(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function c6(e){var t=Z(24);return t.write_shift(4,4),t.write_shift(4,1),To(e,t),t}function f6(e,t){return t==null&&(t=Z(16*4+2)),t.write_shift(2,e.password?dw(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function d6(){}function h6(){}function p6(e,t,r,n,i,o,a){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=Xt(t),t.z=t.z||rt[14],t.v=jt(Lt(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=Bn(i.cellXfs,t,i),t.l&&o["!links"].push([Ue(l),t.l]),t.c&&o["!comments"].push([Ue(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=zd(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,a?re(e,18,bF(t,l)):re(e,7,PF(t,l))):(l.t="str",a?re(e,17,jF(t,l)):re(e,6,zF(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?a?re(e,13,HF(t,l)):re(e,2,BF(t,l)):a?re(e,16,MF(t,l)):re(e,5,$F(t,l)),!0;case"b":return l.t="b",a?re(e,15,CF(t,l)):re(e,4,SF(t,l)),!0;case"e":return l.t="e",a?re(e,14,FF(t,l)):re(e,3,RF(t,l)),!0}return a?re(e,12,EF(t,l)):re(e,1,wF(t,l)),!0}function g6(e,t,r,n){var i=Ke(t["!ref"]||"A1"),o,a="",s=[];re(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){a=_t(c),dF(e,t,i,c);var f=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(s[d]=Ft(d)),o=s[d]+a;var h=l?(t[c]||[])[d]:t[o];if(!h){f=!1;continue}f=p6(e,h,c,d,n,t,f)}}re(e,146)}function m6(e,t){!t||!t["!merges"]||(re(e,177,JF(t["!merges"].length)),t["!merges"].forEach(function(r){re(e,176,ZF(r))}),re(e,178))}function v6(e,t){!t||!t["!cols"]||(re(e,390),t["!cols"].forEach(function(r,n){r&&re(e,60,o6(n,r))}),re(e,391))}function x6(e,t){!t||!t["!ref"]||(re(e,648),re(e,649,c6(Ke(t["!ref"]))),re(e,650))}function w6(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=Le(r,-1,n[1].Target.replace(/#.*$/,""),$e.HLINK);re(e,494,t6(n,i))}}),delete t["!links"]}function y6(e,t,r,n){if(t["!comments"].length>0){var i=Le(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",$e.VML);re(e,551,Ld("rId"+i)),t["!legacy"]=i}}function E6(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],o=typeof i.ref=="string"?i.ref:ot(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=Jt(o);s.s.r==s.e.r&&(s.e.r=Jt(t["!ref"]).e.r,o=ot(s));for(var l=0;l<a.length;++l){var u=a[l];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+o;break}}l==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+o}),re(e,161,To(Ke(o))),re(e,162)}}function _6(e,t,r){re(e,133),re(e,137,u6(t,r)),re(e,138),re(e,134)}function S6(e,t){t["!protect"]&&re(e,535,f6(t["!protect"]))}function T6(e,t,r,n){var i=Gt(),o=r.SheetNames[e],a=r.Sheets[o]||{},s=o;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=Ke(a["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],re(i,129),(r.vbaraw||a["!outline"])&&re(i,147,vF(s,a["!outline"])),re(i,148,pF(l)),_6(i,a,r.Workbook),v6(i,a),g6(i,a,e,t),S6(i,a),E6(i,a,r,e),m6(i,a),w6(i,a,n),a["!margins"]&&re(i,476,s6(a["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&x6(i,a),y6(i,a,e,n),re(i,130),i.end()}function C6(e,t){e.l+=10;var r=Dt(e);return{name:r}}var A6=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function R6(e){return!e.Workbook||!e.Workbook.WBProps?"false":i3(e.Workbook.WBProps.date1904)?"true":"false"}var O6="][*?/\\".split("");function Iw(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return O6.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function F6(e,t,r){e.forEach(function(n,i){Iw(n);for(var o=0;o<i;++o)if(n==e[o])throw new Error("Duplicate Sheet Name: "+n);if(r){var a=t&&t[i]&&t[i].CodeName||n;if(a.charCodeAt(0)==95&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}function D6(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];F6(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)ZO(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function bw(e){var t=[at];t[t.length]=ue("workbook",null,{xmlns:_o[0],"xmlns:r":ft.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(A6.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=ue("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],o=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",o=0;o!=e.SheetNames.length&&!(!i[o]||!i[o].Hidden);++o);o==e.SheetNames.length&&(o=0),t[t.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",o=0;o!=e.SheetNames.length;++o){var a={name:Be(e.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),i[o])switch(i[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}t[t.length]=ue("sheet",null,a)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=ue("definedName",Be(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function P6(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=zf(e),r.name=Dt(e),r}function I6(e,t){return t||(t=Z(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Ld(e.strRelID,t),ht(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function b6(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Dt(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function k6(e,t){t||(t=Z(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Gx(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function $6(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=R3(e),a=jO(e,0,r),s=Md(e);e.l=n;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function N6(e,t){re(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};re(e,156,I6(i))}re(e,144)}function M6(e,t){t||(t=Z(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return ht("SheetJS",t),ht(Pl.version,t),ht(Pl.version,t),ht("7262",t),t.length>t.l?t.slice(0,t.l):t}function L6(e,t){t||(t=Z(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function B6(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,o=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&o==-1&&(o=n);o>i||(re(e,135),re(e,158,L6(i)),re(e,136))}}function U6(e,t){var r=Gt();return re(r,131),re(r,128,M6()),re(r,153,k6(e.Workbook&&e.Workbook.WBProps||null)),B6(r,e),N6(r,e),re(r,132),r.end()}function H6(e,t,r){return(t.slice(-4)===".bin"?U6:bw)(e)}function V6(e,t,r,n,i){return(t.slice(-4)===".bin"?T6:Dw)(e,r,n,i)}function W6(e,t,r){return(t.slice(-4)===".bin"?sR:gw)(e,r)}function z6(e,t,r){return(t.slice(-4)===".bin"?kA:fw)(e,r)}function G6(e,t,r){return(t.slice(-4)===".bin"?SR:yw)(e)}function j6(e){return(e.slice(-4)===".bin"?gR:xw)()}function X6(e,t){var r=[];return e.Props&&r.push(W3(e.Props,t)),e.Custprops&&r.push(z3(e.Props,e.Custprops)),r.join("")}function K6(){return""}function Y6(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var o=[];o.push(ue("NumberFormat",null,{"ss:Format":Be(rt[n.numFmtId])}));var a={"ss:ID":"s"+(21+i)};r.push(ue("Style",o.join(""),a))}),ue("Styles",r.join(""))}function kw(e){return ue("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Vd(e.Ref,{r:0,c:0})})}function q6(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(kw(i)))}return ue("Names",r.join(""))}function Q6(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,o=[],a=0;a<i.length;++a){var s=i[a];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||o.push(kw(s)))}return o.join("")}function Z6(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(ue("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(ue("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(ue("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(ue("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o<r&&!(n.Workbook.Sheets[o]&&!n.Workbook.Sheets[o].Hidden);++o);o==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(yt("ProtectContents","True")),e["!protect"].objects&&i.push(yt("ProtectObjects","True")),e["!protect"].scenarios&&i.push(yt("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(yt("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(yt("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){e["!protect"][a[0]]&&i.push("<"+a[1]+"/>")})),i.length==0?"":ue("WorksheetOptions",i.join(""),{xmlns:qt.x})}function J6(e){return e.map(function(t){var r=n3(t.t||""),n=ue("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return ue("Comment",n,{"ss:Author":t.a})}).join("")}function eD(e,t,r,n,i,o,a){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Be(Vd(e.f,a))),e.F&&e.F.slice(0,t.length)==t){var l=dt(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==a.r?"":"["+(l.r-a.r)+"]")+"C"+(l.c==a.c?"":"["+(l.c-a.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=Be(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Be(e.l.Tooltip))),r["!merges"])for(var u=r["!merges"],c=0;c!=u.length;++c)u[c].s.c!=a.c||u[c].s.r!=a.r||(u[c].e.c>u[c].s.c&&(s["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(s["ss:MergeDown"]=u[c].e.r-u[c].s.r));var f="",d="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",d=String(e.v);break;case"b":f="Boolean",d=e.v?"1":"0";break;case"e":f="Error",d=es[e.v];break;case"d":f="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||rt[14]);break;case"s":f="String",d=r3(e.v||"");break}var h=Bn(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=a.c+1;var m=e.v!=null?d:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+m+"</Data>";return(e.c||[]).length>0&&(p+=J6(e.c)),ue("Cell",p,s)}function tD(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=pw(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function rD(e,t,r,n){if(!e["!ref"])return"";var i=Ke(e["!ref"]),o=e["!merges"]||[],a=0,s=[];e["!cols"]&&e["!cols"].forEach(function(g,x){Ud(g);var w=!!g.width,y=Tu(x,g),_={"ss:Index":x+1};w&&(_["ss:Width"]=Ul(y.width)),g.hidden&&(_["ss:Hidden"]="1"),s.push(ue("Column",null,_))});for(var l=Array.isArray(e),u=i.s.r;u<=i.e.r;++u){for(var c=[tD(u,(e["!rows"]||[])[u])],f=i.s.c;f<=i.e.c;++f){var d=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>f)&&!(o[a].s.r>u)&&!(o[a].e.c<f)&&!(o[a].e.r<u)){(o[a].s.c!=f||o[a].s.r!=u)&&(d=!0);break}if(!d){var h={r:u,c:f},m=Ue(h),p=l?(e[u]||[])[f]:e[m];c.push(eD(p,m,e,t,r,n,h))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function nD(e,t,r){var n=[],i=r.SheetNames[e],o=r.Sheets[i],a=o?Q6(o,t,e,r):"";return a.length>0&&n.push("<Names>"+a+"</Names>"),a=o?rD(o,t,e,r):"",a.length>0&&n.push("<Table>"+a+"</Table>"),n.push(Z6(o,t,e,r)),n.join("")}function iD(e,t){t||(t={}),e.SSF||(e.SSF=Xt(rt)),e.SSF&&(wu(),xu(e.SSF),t.revssf=yu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Bn(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(X6(e,t)),r.push(K6()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(ue("Worksheet",nD(n,t,e),{"ss:Name":Be(e.SheetNames[n])}));return r[2]=Y6(e,t),r[3]=q6(e),at+ue("Workbook",r.join(""),{xmlns:qt.ss,"xmlns:o":qt.o,"xmlns:x":qt.x,"xmlns:ss":qt.ss,"xmlns:dt":qt.dt,"xmlns:html":qt.html})}var Oc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function oD(e,t){var r=[],n=[],i=[],o=0,a,s=Tg(Mg,"n"),l=Tg(Lg,"n");if(e.Props)for(a=Tt(e.Props),o=0;o<a.length;++o)(Object.prototype.hasOwnProperty.call(s,a[o])?r:Object.prototype.hasOwnProperty.call(l,a[o])?n:i).push([a[o],e.Props[a[o]]]);if(e.Custprops)for(a=Tt(e.Custprops),o=0;o<a.length;++o)Object.prototype.hasOwnProperty.call(e.Props||{},a[o])||(Object.prototype.hasOwnProperty.call(s,a[o])?r:Object.prototype.hasOwnProperty.call(l,a[o])?n:i).push([a[o],e.Custprops[a[o]]]);var u=[];for(o=0;o<i.length;++o)iw.indexOf(i[o][0])>-1||tw.indexOf(i[o][0])>-1||i[o][1]!=null&&u.push(i[o]);n.length&&He.utils.cfb_add(t,"/SummaryInformation",Wg(n,Oc.SI,l,Lg)),(r.length||u.length)&&He.utils.cfb_add(t,"/DocumentSummaryInformation",Wg(r,Oc.DSI,s,Mg,u.length?u:null,Oc.UDI))}function aD(e,t){var r=t||{},n=He.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return He.utils.cfb_add(n,i,$w(e,r)),r.biff==8&&(e.Props||e.Custprops)&&oD(e,n),r.biff==8&&e.vbaraw&&TR(n,He.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var sD={0:{f:cF},1:{f:xF},2:{f:LF},3:{f:AF},4:{f:_F},5:{f:kF},6:{f:WF},7:{f:DF},8:{f:qF},9:{f:YF},10:{f:XF},11:{f:KF},12:{f:yF},13:{f:UF},14:{f:OF},15:{f:TF},16:{f:NF},17:{f:GF},18:{f:IF},19:{f:Nd},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:$6},40:{},42:{},43:{f:WA},44:{f:HA},45:{f:jA},46:{f:KA},47:{f:XA},48:{},49:{f:y3},50:{},51:{f:cR},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:EA},62:{f:VF},63:{f:mR},64:{f:d6},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:$r,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:l6},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:mF},148:{f:hF,p:16},151:{f:r6},152:{},153:{f:b6},154:{},155:{},156:{f:P6},157:{},158:{},159:{T:1,f:PA},160:{T:-1},161:{T:1,f:yi},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:QF},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:lR},336:{T:-1},337:{f:hR,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:zf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:gA},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:n6},427:{f:i6},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:a6},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:gF},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:e6},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:zf},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:ER},633:{T:1},634:{T:-1},635:{T:1,f:wR},636:{T:-1},637:{f:T3},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:C6},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:h6},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function ce(e,t,r,n){var i=t;if(!isNaN(i)){var o=n||(r||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&bd(r)&&e.push(r)}}function lD(e,t,r,n){var i=n||(r||[]).length||0;if(i<=8224)return ce(e,t,r,i);var o=t;if(!isNaN(o)){for(var a=r.parts||[],s=0,l=0,u=0;u+(a[s]||8224)<=8224;)u+=a[s]||8224,s++;var c=e.next(4);for(c.write_shift(2,o),c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u;l<i;){for(c=e.next(4),c.write_shift(2,60),u=0;u+(a[s]||8224)<=8224;)u+=a[s]||8224,s++;c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u}}}function rs(e,t,r){return e||(e=Z(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function uD(e,t,r,n){var i=Z(9);return rs(i,e,t),aw(r,n||"b",i),i}function cD(e,t,r){var n=Z(8+2*r.length);return rs(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function fD(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?jt(Lt(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?ce(e,2,CA(r,n,i)):ce(e,3,TA(r,n,i));return;case"b":case"e":ce(e,5,uD(r,n,t.v,t.t));return;case"s":case"str":ce(e,4,cD(r,n,(t.v||"").slice(0,255)));return}ce(e,1,rs(null,r,n))}function dD(e,t,r,n){var i=Array.isArray(t),o=Ke(t["!ref"]||"A1"),a,s="",l=[];if(o.e.c>255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),a=ot(o)}for(var u=o.s.r;u<=o.e.r;++u){s=_t(u);for(var c=o.s.c;c<=o.e.c;++c){u===o.s.r&&(l[c]=Ft(c)),a=l[c]+s;var f=i?(t[u]||[])[c]:t[a];f&&fD(e,f,u,c)}}}function hD(e,t){for(var r=t||{},n=Gt(),i=0,o=0;o<e.SheetNames.length;++o)e.SheetNames[o]==r.sheet&&(i=o);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return ce(n,r.biff==4?1033:r.biff==3?521:9,Bd(e,16,r)),dD(n,e.Sheets[e.SheetNames[i]],i,r),ce(n,10),n.end()}function pD(e,t,r){ce(e,49,sA({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function gD(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ce(e,1054,cA(i,t[i],r))})}function mD(e,t){var r=Z(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),ce(e,2151,r),r=Z(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),uw(Ke(t["!ref"]||"A1"),r),r.write_shift(4,4),ce(e,2152,r)}function vD(e,t){for(var r=0;r<16;++r)ce(e,224,Gg({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){ce(e,224,Gg(n,0,t))})}function xD(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];ce(e,440,xA(n)),n[1].Tooltip&&ce(e,2048,wA(n))}delete t["!links"]}function wD(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&ce(e,125,_A(Tu(i,n),i))})}}function yD(e,t,r,n,i){var o=16+Bn(i.cellXfs,t,i);if(t.v==null&&!t.bf){ce(e,513,ai(r,n,o));return}if(t.bf)ce(e,6,zO(t,r,n,i,o));else switch(t.t){case"d":case"n":var a=t.t=="d"?jt(Lt(t.v)):t.v;ce(e,515,pA(r,n,a,o));break;case"b":case"e":ce(e,517,hA(r,n,t.v,o,i,t.t));break;case"s":case"str":if(i.bookSST){var s=zd(i.Strings,t.v,i.revStrings);ce(e,253,lA(r,n,s,o))}else ce(e,516,uA(r,n,(t.v||"").slice(0,255),o,i));break;default:ce(e,513,ai(r,n,o))}}function ED(e,t,r){var n=Gt(),i=r.SheetNames[e],o=r.Sheets[i]||{},a=(r||{}).Workbook||{},s=(a.Sheets||[])[e]||{},l=Array.isArray(o),u=t.biff==8,c,f="",d=[],h=Ke(o["!ref"]||"A1"),m=u?65536:16384;if(h.e.c>255||h.e.r>=m){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,m-1)}ce(n,2057,Bd(r,16,t)),ce(n,13,or(1)),ce(n,12,or(100)),ce(n,15,$t(!0)),ce(n,17,$t(!1)),ce(n,16,oi(.001)),ce(n,95,$t(!0)),ce(n,42,$t(!1)),ce(n,43,$t(!1)),ce(n,130,or(1)),ce(n,128,dA([0,0])),ce(n,131,$t(!1)),ce(n,132,$t(!1)),u&&wD(n,o["!cols"]),ce(n,512,fA(h,t)),u&&(o["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=_t(p);for(var g=h.s.c;g<=h.e.c;++g){p===h.s.r&&(d[g]=Ft(g)),c=d[g]+f;var x=l?(o[p]||[])[g]:o[c];x&&(yD(n,x,p,g,t),u&&x.l&&o["!links"].push([c,x.l]))}}var w=s.CodeName||s.name||i;return u&&ce(n,574,aA((a.Views||[])[0])),u&&(o["!merges"]||[]).length&&ce(n,229,vA(o["!merges"])),u&&xD(n,o),ce(n,442,lw(w)),u&&mD(n,o),ce(n,10),n.end()}function _D(e,t,r){var n=Gt(),i=(e||{}).Workbook||{},o=i.Sheets||[],a=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(ce(n,2057,Bd(e,5,r)),r.bookType=="xla"&&ce(n,135),ce(n,225,s?or(1200):null),ce(n,193,X3(2)),l&&ce(n,191),l&&ce(n,192),ce(n,226),ce(n,92,rA("SheetJS",r)),ce(n,66,or(s?1200:1252)),s&&ce(n,353,or(0)),s&&ce(n,448),ce(n,317,SA(e.SheetNames.length)),s&&e.vbaraw&&ce(n,211),s&&e.vbaraw){var u=a.CodeName||"ThisWorkbook";ce(n,442,lw(u))}ce(n,156,or(17)),ce(n,25,$t(!1)),ce(n,18,$t(!1)),ce(n,19,or(0)),s&&ce(n,431,$t(!1)),s&&ce(n,444,or(0)),ce(n,61,oA()),ce(n,64,$t(!1)),ce(n,141,or(0)),ce(n,34,$t(R6(e)=="true")),ce(n,14,$t(!0)),s&&ce(n,439,$t(!1)),ce(n,218,or(0)),pD(n,e,r),gD(n,e.SSF,r),vD(n,r),s&&ce(n,352,$t(!1));var c=n.end(),f=Gt();s&&ce(f,140,yA()),s&&r.Strings&&lD(f,252,iA(r.Strings)),ce(f,10);var d=f.end(),h=Gt(),m=0,p=0;for(p=0;p<e.SheetNames.length;++p)m+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var g=c.length+m+d.length;for(p=0;p<e.SheetNames.length;++p){var x=o[p]||{};ce(h,133,nA({pos:g,hs:x.Hidden||0,dt:0,name:e.SheetNames[p]},r)),g+=t[p].length}var w=h.end();if(m!=w.length)throw new Error("BS8 "+m+" != "+w.length);var y=[];return c.length&&y.push(c),w.length&&y.push(w),d.length&&y.push(d),wt(y)}function SD(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Xt(rt)),e&&e.SSF&&(wu(),xu(e.SSF),r.revssf=yu(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Gd(r),r.cellXfs=[],Bn(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=ED(i,r,e);return n.unshift(_D(e,n,r)),wt(n)}function $w(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Jt(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var o=t||{};switch(o.biff||2){case 8:case 5:return SD(e,t);case 4:case 3:case 2:return hD(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function TD(e,t,r,n){for(var i=e["!merges"]||[],o=[],a=t.s.c;a<=t.e.c;++a){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>r||i[u].s.c>a)&&!(i[u].e.r<r||i[u].e.c<a)){if(i[u].s.r<r||i[u].s.c<a){s=-1;break}s=i[u].e.r-i[u].s.r+1,l=i[u].e.c-i[u].s.c+1;break}if(!(s<0)){var c=Ue({r,c:a}),f=n.dense?(e[r]||[])[a]:e[c],d=f&&f.v!=null&&(f.h||t3(f.w||(tn(f),f.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),h.id=(n.id||"sjs")+"-"+c,o.push(ue("td",d,h))}}var m="<tr>";return m+o.join("")+"</tr>"}var CD='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',AD="</body></html>";function RD(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function Nw(e,t){var r=t||{},n=r.header!=null?r.header:CD,i=r.footer!=null?r.footer:AD,o=[n],a=Jt(e["!ref"]);r.dense=Array.isArray(e),o.push(RD(e,a,r));for(var s=a.s.r;s<=a.e.r;++s)o.push(TD(e,a,s,r));return o.push("</table>"+i),o.join("")}function Mw(e,t,r){var n=r||{},i=0,o=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var a=typeof n.origin=="string"?dt(n.origin):n.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var c=Jt(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),i==-1&&(u.e.r=i=c.e.r+1)}var f=[],d=0,h=e["!rows"]||(e["!rows"]=[]),m=0,p=0,g=0,x=0,w=0,y=0;for(e["!cols"]||(e["!cols"]=[]);m<s.length&&p<l;++m){var _=s[m];if(Zg(_)){if(n.display)continue;h[p]={hidden:!0}}var N=_.children;for(g=x=0;g<N.length;++g){var M=N[g];if(!(n.display&&Zg(M))){var S=M.hasAttribute("data-v")?M.getAttribute("data-v"):M.hasAttribute("v")?M.getAttribute("v"):o3(M.innerHTML),C=M.getAttribute("data-z")||M.getAttribute("z");for(d=0;d<f.length;++d){var A=f[d];A.s.c==x+o&&A.s.r<p+i&&p+i<=A.e.r&&(x=A.e.c+1-o,d=-1)}y=+M.getAttribute("colspan")||1,((w=+M.getAttribute("rowspan")||1)>1||y>1)&&f.push({s:{r:p+i,c:x+o},e:{r:p+i+(w||1)-1,c:x+o+(y||1)-1}});var L={t:"s",v:S},H=M.getAttribute("data-t")||M.getAttribute("t")||"";S!=null&&(S.length==0?L.t=H||"z":n.raw||S.trim().length==0||H=="s"||(S==="TRUE"?L={t:"b",v:!0}:S==="FALSE"?L={t:"b",v:!1}:isNaN(Qr(S))?isNaN(Na(S).getDate())||(L={t:"d",v:Lt(S)},n.cellDates||(L={t:"n",v:jt(L.v)}),L.z=n.dateNF||rt[14]):L={t:"n",v:Qr(S)})),L.z===void 0&&C!=null&&(L.z=C);var B="",V=M.getElementsByTagName("A");if(V&&V.length)for(var Q=0;Q<V.length&&!(V[Q].hasAttribute("href")&&(B=V[Q].getAttribute("href"),B.charAt(0)!="#"));++Q);B&&B.charAt(0)!="#"&&(L.l={Target:B}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][x+o]=L):e[Ue({c:x+o,r:p+i})]=L,u.e.c<x+o&&(u.e.c=x+o),x+=y}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),u.e.r=Math.max(u.e.r,p-1+i),e["!ref"]=ot(u),p>=l&&(e["!fullref"]=ot((u.e.r=s.length-m+p-1+i,u))),e}function Lw(e,t){var r=t||{},n=r.dense?[]:{};return Mw(n,e,t)}function OD(e,t){return mi(Lw(e,t),t)}function Zg(e){var t="",r=FD(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function FD(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var DD=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ma({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return at+t}}(),Jg=function(){var e=function(o){return Be(o).replace(/ +/g,function(a){return'<text:s text:c="'+a.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell />
`,r=` <table:covered-table-cell/>
`,n=function(o,a,s){var l=[];l.push(' <table:table table:name="'+Be(a.SheetNames[s])+`" table:style-name="ta1">
`);var u=0,c=0,f=Jt(o["!ref"]||"A1"),d=o["!merges"]||[],h=0,m=Array.isArray(o);if(o["!cols"])for(c=0;c<=f.e.c;++c)l.push(" <table:table-column"+(o["!cols"][c]?' table:style-name="co'+o["!cols"][c].ods+'"':"")+`></table:table-column>
`);var p="",g=o["!rows"]||[];for(u=0;u<f.s.r;++u)p=g[u]?' table:style-name="ro'+g[u].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
`);for(;u<=f.e.r;++u){for(p=g[u]?' table:style-name="ro'+g[u].ods+'"':"",l.push(" <table:table-row"+p+`>
`),c=0;c<f.s.c;++c)l.push(t);for(;c<=f.e.c;++c){var x=!1,w={},y="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>c)&&!(d[h].s.r>u)&&!(d[h].e.c<c)&&!(d[h].e.r<u)){(d[h].s.c!=c||d[h].s.r!=u)&&(x=!0),w["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,w["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(x){l.push(r);continue}var _=Ue({r:u,c}),N=m?(o[u]||[])[c]:o[_];if(N&&N.f&&(w["table:formula"]=Be(qO(N.f)),N.F&&N.F.slice(0,_.length)==_)){var M=Jt(N.F);w["table:number-matrix-columns-spanned"]=M.e.c-M.s.c+1,w["table:number-matrix-rows-spanned"]=M.e.r-M.s.r+1}if(!N){l.push(t);continue}switch(N.t){case"b":y=N.v?"TRUE":"FALSE",w["office:value-type"]="boolean",w["office:boolean-value"]=N.v?"true":"false";break;case"n":y=N.w||String(N.v||0),w["office:value-type"]="float",w["office:value"]=N.v||0;break;case"s":case"str":y=N.v==null?"":N.v,w["office:value-type"]="string";break;case"d":y=N.w||Lt(N.v).toISOString(),w["office:value-type"]="date",w["office:date-value"]=Lt(N.v).toISOString(),w["table:style-name"]="ce1";break;default:l.push(t);continue}var S=e(y);if(N.l&&N.l.Target){var C=N.l.Target;C=C.charAt(0)=="#"?"#"+QO(C.slice(1)):C,C.charAt(0)!="#"&&!C.match(/^\w+:/)&&(C="../"+C),S=ue("text:a",S,{"xlink:href":C.replace(/&/g,"&amp;")})}l.push(" "+ue("table:table-cell",ue("text:p",S,{}),w)+`
`)}l.push(` </table:table-row>
`)}return l.push(` </table:table>
`),l.join("")},i=function(o,a){o.push(` <office:automatic-styles>
`),o.push(` <number:date-style style:name="N37" number:automatic-order="true">
`),o.push(` <number:month number:style="long"/>
`),o.push(` <number:text>/</number:text>
`),o.push(` <number:day number:style="long"/>
`),o.push(` <number:text>/</number:text>
`),o.push(` <number:year/>
`),o.push(` </number:date-style>
`);var s=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!cols"]){for(var c=0;c<u["!cols"].length;++c)if(u["!cols"][c]){var f=u["!cols"][c];if(f.width==null&&f.wpx==null&&f.wch==null)continue;Ud(f),f.ods=s;var d=u["!cols"][c].wpx+"px";o.push(' <style:style style:name="co'+s+`" style:family="table-column">
`),o.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/>
`),o.push(` </style:style>
`),++s}}});var l=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!rows"]){for(var c=0;c<u["!rows"].length;++c)if(u["!rows"][c]){u["!rows"][c].ods=l;var f=u["!rows"][c].hpx+"px";o.push(' <style:style style:name="ro'+l+`" style:family="table-row">
`),o.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/>
`),o.push(` </style:style>
`),++l}}}),o.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),o.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),o.push(` </style:style>
`),o.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),o.push(` </office:automatic-styles>
`)};return function(a,s){var l=[at],u=Ma({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=Ma({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+u+c+`>
`),l.push(Jx().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+u+`>
`),i(l,a),l.push(` <office:body>
`),l.push(` <office:spreadsheet>
`);for(var f=0;f!=a.SheetNames.length;++f)l.push(n(a.Sheets[a.SheetNames[f]],a,f));return l.push(` </office:spreadsheet>
`),l.push(` </office:body>
`),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function Bw(e,t){if(t.bookType=="fods")return Jg(e,t);var r=Fd(),n="",i=[],o=[];return n="mimetype",De(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",De(r,n,Jg(e,t)),i.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",De(r,n,DD(e,t)),i.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",De(r,n,at+Jx()),i.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",De(r,n,V3(o)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",De(r,n,U3(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Wl(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function PD(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Er(Gr(e))}function ID(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Nn(e){var t=e.reduce(function(i,o){return i+o.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function bD(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var o=0;i>=1;++o,i/=256)e[t+o]=i&255;e[t+15]|=r>=0?0:128}function La(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function Me(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function io(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function lt(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=La(e,r),o=i&7;i=Math.floor(i/8);var a=0,s;if(i==0)break;switch(o){case 0:{for(var l=r[0];e[r[0]++]>=128;);s=e.slice(l,r[0])}break;case 5:a=4,s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 1:a=8,s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 2:a=La(e,r),s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(n))}var u={data:s,type:o};t[i]==null?t[i]=[u]:t[i].push(u)}return t}function gt(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(Me(n*8+i.type)),i.type==2&&t.push(Me(i.data.length)),t.push(i.data))})}),Nn(t)}function vr(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=La(e,n),o=lt(e.slice(n[0],n[0]+i));n[0]+=i;var a={id:io(o[1][0].data),messages:[]};o[2].forEach(function(s){var l=lt(s.data),u=io(l[3][0].data);a.messages.push({meta:l,data:e.slice(n[0],n[0]+u)}),n[0]+=u}),(t=o[3])!=null&&t[0]&&(a.merge=io(o[3][0].data)>>>0>0),r.push(a)}return r}function Di(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Me(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Me(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(a){i.push(a.data),a.meta[3]=[{type:0,data:Me(a.data.length)}],n[2].push({data:gt(a.meta),type:2})});var o=gt(n);t.push(Me(o.length)),t.push(o),i.forEach(function(a){return t.push(a)})}),Nn(t)}function kD(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=La(t,r),i=[];r[0]<t.length;){var o=t[r[0]]&3;if(o==0){var a=t[r[0]++]>>2;if(a<60)++a;else{var s=a-59;a=t[r[0]],s>1&&(a|=t[r[0]+1]<<8),s>2&&(a|=t[r[0]+2]<<16),s>3&&(a|=t[r[0]+3]<<24),a>>>=0,a++,r[0]+=s}i.push(t.slice(r[0],r[0]+a)),r[0]+=a;continue}else{var l=0,u=0;if(o==1?(u=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(u=(t[r[0]++]>>2)+1,o==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[Nn(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(i.push(i[0].slice(-l)),u-=l;u>=i[i.length-1].length;)i.push(i[i.length-1]),u-=i[i.length-1].length;i.push(i[0].slice(-l,-l+u))}}var c=Nn(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function xr(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(kD(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Nn(t)}function Pi(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var o=Me(n),a=o.length;t.push(o),n<=60?(a++,t.push(new Uint8Array([n-1<<2]))):n<=256?(a+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(a+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(a+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),a+=n,i[0]=0,i[1]=a&255,i[2]=a>>8&255,i[3]=a>>16&255,r+=n}return Nn(t)}function Fc(e,t){var r=new Uint8Array(32),n=Wl(r),i=12,o=0;switch(r[0]=5,e.t){case"n":r[1]=2,bD(r,i,e.v),o|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),o|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),o|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,o,!0),r.slice(0,i)}function Dc(e,t){var r=new Uint8Array(32),n=Wl(r),i=12,o=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),o|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),o|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),o|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,o,!0),r.slice(0,i)}function sn(e){var t=lt(e);return La(t[1][0].data)}function $D(e,t,r){var n,i,o,a;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=((a=(o=e[8])==null?void 0:o[0])==null?void 0:a.data)&&io(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=Wl(e[7][0].data),c=0,f=[],d=Wl(e[4][0].data),h=0,m=[],p=0;p<t.length;++p){if(t[p]==null){u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}u.setUint16(p*2,c,!0),d.setUint16(p*2,h,!0);var g,x;switch(typeof t[p]){case"string":g=Fc({t:"s",v:t[p]},r),x=Dc({t:"s",v:t[p]},r);break;case"number":g=Fc({t:"n",v:t[p]},r),x=Dc({t:"n",v:t[p]},r);break;case"boolean":g=Fc({t:"b",v:t[p]},r),x=Dc({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(g),c+=g.length,m.push(x),h+=x.length,++l}for(e[2][0].data=Me(l);p<e[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=Nn(f),e[3][0].data=Nn(m),l}function ND(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Jt(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(ot(n)));var o=zl(r,{range:n,header:1}),a=["~Sh33tJ5~"];o.forEach(function(k){return k.forEach(function(b){typeof b=="string"&&a.push(b)})});var s={},l=[],u=He.read(t.numbers,{type:"base64"});u.FileIndex.map(function(k,b){return[k,u.FullPaths[b]]}).forEach(function(k){var b=k[0],D=k[1];if(b.type==2&&b.name.match(/\.iwa/)){var U=b.content,G=xr(U),J=vr(G);J.forEach(function(W){l.push(W.id),s[W.id]={deps:[],location:D,type:io(W.messages[0].meta[1][0].data)}})}}),l.sort(function(k,b){return k-b});var c=l.filter(function(k){return k>1}).map(function(k){return[k,Me(k)]});u.FileIndex.map(function(k,b){return[k,u.FullPaths[b]]}).forEach(function(k){var b=k[0];if(k[1],!!b.name.match(/\.iwa/)){var D=vr(xr(b.content));D.forEach(function(U){U.messages.forEach(function(G){c.forEach(function(J){U.messages.some(function(W){return io(W.meta[1][0].data)!=11006&&ID(W.data,J[1])})&&s[J[0]].deps.push(U.id)})})})}});for(var f=He.find(u,s[1].location),d=vr(xr(f.content)),h,m=0;m<d.length;++m){var p=d[m];p.id==1&&(h=p)}var g=sn(lt(h.messages[0].data)[1][0].data);for(f=He.find(u,s[g].location),d=vr(xr(f.content)),m=0;m<d.length;++m)p=d[m],p.id==g&&(h=p);for(g=sn(lt(h.messages[0].data)[2][0].data),f=He.find(u,s[g].location),d=vr(xr(f.content)),m=0;m<d.length;++m)p=d[m],p.id==g&&(h=p);for(g=sn(lt(h.messages[0].data)[2][0].data),f=He.find(u,s[g].location),d=vr(xr(f.content)),m=0;m<d.length;++m)p=d[m],p.id==g&&(h=p);var x=lt(h.messages[0].data);{x[6][0].data=Me(n.e.r+1),x[7][0].data=Me(n.e.c+1);var w=sn(x[46][0].data),y=He.find(u,s[w].location),_=vr(xr(y.content));{for(var N=0;N<_.length&&_[N].id!=w;++N);if(_[N].id!=w)throw"Bad ColumnRowUIDMapArchive";var M=lt(_[N].messages[0].data);M[1]=[],M[2]=[],M[3]=[];for(var S=0;S<=n.e.c;++S){var C=[];C[1]=C[2]=[{type:0,data:Me(S+420690)}],M[1].push({type:2,data:gt(C)}),M[2].push({type:0,data:Me(S)}),M[3].push({type:0,data:Me(S)})}M[4]=[],M[5]=[],M[6]=[];for(var A=0;A<=n.e.r;++A)C=[],C[1]=C[2]=[{type:0,data:Me(A+726270)}],M[4].push({type:2,data:gt(C)}),M[5].push({type:0,data:Me(A)}),M[6].push({type:0,data:Me(A)});_[N].messages[0].data=gt(M)}y.content=Pi(Di(_)),y.size=y.content.length,delete x[46];var L=lt(x[4][0].data);{L[7][0].data=Me(n.e.r+1);var H=lt(L[1][0].data),B=sn(H[2][0].data);y=He.find(u,s[B].location),_=vr(xr(y.content));{if(_[0].id!=B)throw"Bad HeaderStorageBucket";var V=lt(_[0].messages[0].data);for(A=0;A<o.length;++A){var Q=lt(V[2][0].data);Q[1][0].data=Me(A),Q[4][0].data=Me(o[A].length),V[2][A]={type:V[2][0].type,data:gt(Q)}}_[0].messages[0].data=gt(V)}y.content=Pi(Di(_)),y.size=y.content.length;var ne=sn(L[2][0].data);y=He.find(u,s[ne].location),_=vr(xr(y.content));{if(_[0].id!=ne)throw"Bad HeaderStorageBucket";for(V=lt(_[0].messages[0].data),S=0;S<=n.e.c;++S)Q=lt(V[2][0].data),Q[1][0].data=Me(S),Q[4][0].data=Me(n.e.r+1),V[2][S]={type:V[2][0].type,data:gt(Q)};_[0].messages[0].data=gt(V)}y.content=Pi(Di(_)),y.size=y.content.length;var ye=sn(L[4][0].data);(function(){for(var k=He.find(u,s[ye].location),b=vr(xr(k.content)),D,U=0;U<b.length;++U){var G=b[U];G.id==ye&&(D=G)}var J=lt(D.messages[0].data);{J[3]=[];var W=[];a.forEach(function(he,Te){W[1]=[{type:0,data:Me(Te)}],W[2]=[{type:0,data:Me(1)}],W[3]=[{type:2,data:PD(he)}],J[3].push({type:2,data:gt(W)})})}D.messages[0].data=gt(J);var q=Di(b),le=Pi(q);k.content=le,k.size=k.content.length})();var ve=lt(L[3][0].data);{var Ce=ve[1][0];delete ve[2];var ie=lt(Ce.data);{var Ee=sn(ie[2][0].data);(function(){for(var k=He.find(u,s[Ee].location),b=vr(xr(k.content)),D,U=0;U<b.length;++U){var G=b[U];G.id==Ee&&(D=G)}var J=lt(D.messages[0].data);{delete J[6],delete ve[7];var W=new Uint8Array(J[5][0].data);J[5]=[];for(var q=0,le=0;le<=n.e.r;++le){var he=lt(W);q+=$D(he,o[le],a),he[1][0].data=Me(le),J[5].push({data:gt(he),type:2})}J[1]=[{type:0,data:Me(n.e.c+1)}],J[2]=[{type:0,data:Me(n.e.r+1)}],J[3]=[{type:0,data:Me(q)}],J[4]=[{type:0,data:Me(n.e.r+1)}]}D.messages[0].data=gt(J);var Te=Di(b),fe=Pi(Te);k.content=fe,k.size=k.content.length})()}Ce.data=gt(ie)}L[3][0].data=gt(ve)}x[4][0].data=gt(L)}h.messages[0].data=gt(x);var ee=Di(d),O=Pi(ee);return f.content=O,f.size=f.content.length,u}function MD(e){return function(r){for(var n=0;n!=e.length;++n){var i=e[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function Gd(e){MD([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function LD(e,t){return t.bookType=="ods"?Bw(e,t):t.bookType=="numbers"?ND(e,t):t.bookType=="xlsb"?BD(e,t):UD(e,t)}function BD(e,t){Wi=1024,e&&!e.SSF&&(e.SSF=Xt(rt)),e&&e.SSF&&(wu(),xu(e.SSF),t.revssf=yu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,va?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=Ew.indexOf(t.bookType)>-1,i=qx();Gd(t=t||{});var o=Fd(),a="",s=0;if(t.cellXfs=[],Bn(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",De(o,a,ew(e.Props,t)),i.coreprops.push(a),Le(t.rels,2,a,$e.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,De(o,a,rw(e.Props)),i.extprops.push(a),Le(t.rels,3,a,$e.EXT_PROPS),e.Custprops!==e.Props&&Tt(e.Custprops||{}).length>0&&(a="docProps/custom.xml",De(o,a,nw(e.Custprops)),i.custprops.push(a),Le(t.rels,4,a,$e.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,De(o,a,V6(s-1,a,t,e,c)),i.sheets.push(a),Le(t.wbrels,-1,"worksheets/sheet"+s+"."+r,$e.WS[0])}if(f){var h=f["!comments"],m=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,De(o,p,G6(h,p)),i.comments.push(p),Le(c,-1,"../comments"+s+"."+r,$e.CMNT),m=!0),f["!legacy"]&&m&&De(o,"xl/drawings/vmlDrawing"+s+".vml",ww(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}c["!id"].rId1&&De(o,Zx(a),ro(c))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,De(o,a,z6(t.Strings,a,t)),i.strs.push(a),Le(t.wbrels,-1,"sharedStrings."+r,$e.SST)),a="xl/workbook."+r,De(o,a,H6(e,a)),i.workbooks.push(a),Le(t.rels,1,a,$e.WB),a="xl/theme/theme1.xml",De(o,a,vw(e.Themes,t)),i.themes.push(a),Le(t.wbrels,-1,"theme/theme1.xml",$e.THEME),a="xl/styles."+r,De(o,a,W6(e,a,t)),i.styles.push(a),Le(t.wbrels,-1,"styles."+r,$e.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",De(o,a,e.vbaraw),i.vba.push(a),Le(t.wbrels,-1,"vbaProject.bin",$e.VBA)),a="xl/metadata."+r,De(o,a,j6(a)),i.metadata.push(a),Le(t.wbrels,-1,"metadata."+r,$e.XLMETA),De(o,"[Content_Types].xml",Qx(i,t)),De(o,"_rels/.rels",ro(t.rels)),De(o,"xl/_rels/workbook."+r+".rels",ro(t.wbrels)),delete t.revssf,delete t.ssf,o}function UD(e,t){Wi=1024,e&&!e.SSF&&(e.SSF=Xt(rt)),e&&e.SSF&&(wu(),xu(e.SSF),t.revssf=yu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,va?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=Ew.indexOf(t.bookType)>-1,i=qx();Gd(t=t||{});var o=Fd(),a="",s=0;if(t.cellXfs=[],Bn(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",De(o,a,ew(e.Props,t)),i.coreprops.push(a),Le(t.rels,2,a,$e.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,De(o,a,rw(e.Props)),i.extprops.push(a),Le(t.rels,3,a,$e.EXT_PROPS),e.Custprops!==e.Props&&Tt(e.Custprops||{}).length>0&&(a="docProps/custom.xml",De(o,a,nw(e.Custprops)),i.custprops.push(a),Le(t.rels,4,a,$e.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,De(o,a,Dw(s-1,t,e,f)),i.sheets.push(a),Le(t.wbrels,-1,"worksheets/sheet"+s+"."+r,$e.WS[0])}if(d){var m=d["!comments"],p=!1,g="";if(m&&m.length>0){var x=!1;m.forEach(function(w){w[1].forEach(function(y){y.T==!0&&(x=!0)})}),x&&(g="xl/threadedComments/threadedComment"+s+"."+r,De(o,g,vR(m,c,t)),i.threadedcomments.push(g),Le(f,-1,"../threadedComments/threadedComment"+s+"."+r,$e.TCMNT)),g="xl/comments"+s+"."+r,De(o,g,yw(m)),i.comments.push(g),Le(f,-1,"../comments"+s+"."+r,$e.CMNT),p=!0}d["!legacy"]&&p&&De(o,"xl/drawings/vmlDrawing"+s+".vml",ww(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&De(o,Zx(a),ro(f))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,De(o,a,fw(t.Strings,t)),i.strs.push(a),Le(t.wbrels,-1,"sharedStrings."+r,$e.SST)),a="xl/workbook."+r,De(o,a,bw(e)),i.workbooks.push(a),Le(t.rels,1,a,$e.WB),a="xl/theme/theme1.xml",De(o,a,vw(e.Themes,t)),i.themes.push(a),Le(t.wbrels,-1,"theme/theme1.xml",$e.THEME),a="xl/styles."+r,De(o,a,gw(e,t)),i.styles.push(a),Le(t.wbrels,-1,"styles."+r,$e.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",De(o,a,e.vbaraw),i.vba.push(a),Le(t.wbrels,-1,"vbaProject.bin",$e.VBA)),a="xl/metadata."+r,De(o,a,xw()),i.metadata.push(a),Le(t.wbrels,-1,"metadata."+r,$e.XLMETA),c.length>1&&(a="xl/persons/person.xml",De(o,a,xR(c)),i.people.push(a),Le(t.wbrels,-1,"persons/person.xml",$e.PEOPLE)),De(o,"[Content_Types].xml",Qx(i,t)),De(o,"_rels/.rels",ro(t.rels)),De(o,"xl/_rels/workbook."+r+".rels",ro(t.wbrels)),delete t.revssf,delete t.ssf,o}function HD(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=en(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Uw(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Za(t.file,He.write(e,{type:Ne?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return He.write(e,t)}function VD(e,t){var r=Xt(t||{}),n=LD(e,r);return WD(n,r)}function WD(e,t){var r={},n=Ne?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?He.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(vu(i))}return t.password&&typeof encrypt_agile<"u"?Uw(encrypt_agile(i,t.password),t):t.type==="file"?Za(t.file,i):t.type=="string"?ha(i):i}function zD(e,t){var r=t||{},n=aD(e,r);return Uw(n,r)}function Rr(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return $a(Gr(n));case"binary":return Gr(n);case"string":return e;case"file":return Za(t.file,n,"utf8");case"buffer":return Ne?an(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Rr(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function GD(e,t){switch(t.type){case"base64":return $a(e);case"binary":return e;case"string":return e;case"file":return Za(t.file,e,"binary");case"buffer":return Ne?an(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function bs(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?$a(r):t.type=="string"?ha(r):r;case"file":return Za(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Hw(e,t){x4(),D6(e);var r=Xt(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Hw(e,r);return r.type="array",vu(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Rr(iD(e,r),r);case"slk":case"sylk":return Rr(RA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return Rr(Nw(e.Sheets[e.SheetNames[i]],r),r);case"txt":return GD(Vw(e.Sheets[e.SheetNames[i]],r),r);case"csv":return Rr(jd(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return Rr(OA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return bs(AA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return Rr(FA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return Rr(NA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return Rr(cw.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return Rr(Bw(e,r),r);case"wk1":return bs(jg.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return bs(jg.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),bs($w(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),zD(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return VD(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function jD(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function XD(e,t,r){var n=r||{};return n.type="file",n.file=t,jD(n),Hw(e,n)}function KD(e,t,r,n,i,o,a,s){var l=_t(r),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,d=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch{d.__rowNum__=r}else d.__rowNum__=r;if(!a||e[r])for(var h=t.s.c;h<=t.e.c;++h){var m=a?e[r][h]:e[n[h]+l];if(m===void 0||m.t===void 0){if(u===void 0)continue;o[h]!=null&&(d[o[h]]=u);continue}var p=m.v;switch(m.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(o[h]!=null){if(p==null)if(m.t=="e"&&p===null)d[o[h]]=null;else if(u!==void 0)d[o[h]]=u;else if(c&&p===null)d[o[h]]=null;else continue;else d[o[h]]=c&&(m.t!=="n"||m.t==="n"&&s.rawNumbers!==!1)?p:tn(m,p,s);p!=null&&(f=!1)}}return{row:d,isempty:f}}function zl(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=u.range!=null?u.range:e["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof c){case"string":l=Ke(c);break;case"number":l=Ke(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var f=_t(l.s.r),d=[],h=[],m=0,p=0,g=Array.isArray(e),x=l.s.r,w=0,y={};g&&!e[x]&&(e[x]=[]);var _=u.skipHidden&&e["!cols"]||[],N=u.skipHidden&&e["!rows"]||[];for(w=l.s.c;w<=l.e.c;++w)if(!(_[w]||{}).hidden)switch(d[w]=Ft(w),r=g?e[x][w]:e[d[w]+f],n){case 1:o[w]=w-l.s.c;break;case 2:o[w]=d[w];break;case 3:o[w]=u.header[w-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=a=tn(r,null,u),p=y[a]||0,!p)y[a]=1;else{do s=a+"_"+p++;while(y[s]);y[a]=p,y[s]=1}o[w]=s}for(x=l.s.r+i;x<=l.e.r;++x)if(!(N[x]||{}).hidden){var M=KD(e,l,x,d,n,o,g,u);(M.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(h[m++]=M.row)}return h.length=m,h}var e1=/"/g;function YD(e,t,r,n,i,o,a,s){for(var l=!0,u=[],c="",f=_t(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var h=s.dense?(e[r]||[])[d]:e[n[d]+f];if(h==null)c="";else if(h.v!=null){l=!1,c=""+(s.rawNumbers&&h.t=="n"?h.v:tn(h,null,s));for(var m=0,p=0;m!==c.length;++m)if((p=c.charCodeAt(m))===i||p===o||p===34||s.forceQuotes){c='"'+c.replace(e1,'""')+'"';break}c=="ID"&&(c='"ID"')}else h.f!=null&&!h.F?(l=!1,c="="+h.f,c.indexOf(",")>=0&&(c='"'+c.replace(e1,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(a)}function jd(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Ke(e["!ref"]),o=n.FS!==void 0?n.FS:",",a=o.charCodeAt(0),s=n.RS!==void 0?n.RS:`
`,l=s.charCodeAt(0),u=new RegExp((o=="|"?"\\|":o)+"+$"),c="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],m=i.s.c;m<=i.e.c;++m)(d[m]||{}).hidden||(f[m]=Ft(m));for(var p=0,g=i.s.r;g<=i.e.r;++g)(h[g]||{}).hidden||(c=YD(e,i,g,f,a,l,o,n),c!=null&&(n.strip&&(c=c.replace(u,"")),(c||n.blankrows!==!1)&&r.push((p++?s:"")+c)));return delete n.dense,r.join("")}function Vw(e,t){t||(t={}),t.FS=" ",t.RS=`
`;var r=jd(e,t);return r}function qD(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Ke(e["!ref"]),o="",a=[],s,l=[],u=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)a[s]=Ft(s);for(var c=i.s.r;c<=i.e.r;++c)for(o=_t(c),s=i.s.c;s<=i.e.c;++s)if(t=a[s]+o,r=u?(e[c]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function Ww(e,t,r){var n=r||{},i=+!n.skipHeader,o=e||{},a=0,s=0;if(o&&n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?dt(n.origin):n.origin;a=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:a+t.length-1+i}};if(o["!ref"]){var f=Ke(o["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),a==-1&&(a=f.e.r+1,c.e.r=a+t.length-1+i)}else a==-1&&(a=0,c.e.r=t.length-1+i);var d=n.header||[],h=0;t.forEach(function(p,g){Tt(p).forEach(function(x){(h=d.indexOf(x))==-1&&(d[h=d.length]=x);var w=p[x],y="z",_="",N=Ue({c:s+h,r:a+g+i});u=Ba(o,N),w&&typeof w=="object"&&!(w instanceof Date)?o[N]=w:(typeof w=="number"?y="n":typeof w=="boolean"?y="b":typeof w=="string"?y="s":w instanceof Date?(y="d",n.cellDates||(y="n",w=jt(w)),_=n.dateNF||rt[14]):w===null&&n.nullError&&(y="e",w=0),u?(u.t=y,u.v=w,delete u.w,delete u.R,_&&(u.z=_)):o[N]=u={t:y,v:w},_&&(u.z=_))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var m=_t(a);if(i)for(h=0;h<d.length;++h)o[Ft(h+s)+m]={t:"s",v:d[h]};return o["!ref"]=ot(c),o}function QD(e,t){return Ww(null,e,t)}function Ba(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=dt(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ba(e,Ue(t)):Ba(e,Ue({r:t,c:r||0}))}function ZD(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function JD(){return{SheetNames:[],Sheets:{}}}function eP(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var o=r.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=a+i)!=-1;++i);}if(Iw(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function tP(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=ZD(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function rP(e,t){return e.z=t,e}function zw(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function nP(e,t,r){return zw(e,"#"+t,r)}function iP(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function oP(e,t,r,n){for(var i=typeof t!="string"?t:Ke(t),o=typeof t=="string"?t:ot(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=Ba(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var Pc={encode_col:Ft,encode_row:_t,encode_cell:Ue,encode_range:ot,decode_col:$d,decode_row:kd,split_cell:w3,decode_cell:dt,decode_range:Jt,format_cell:tn,sheet_add_aoa:zx,sheet_add_json:Ww,sheet_add_dom:Mw,aoa_to_sheet:So,json_to_sheet:QD,table_to_sheet:Lw,table_to_book:OD,sheet_to_csv:jd,sheet_to_txt:Vw,sheet_to_json:zl,sheet_to_html:Nw,sheet_to_formulae:qD,sheet_to_row_object_array:zl,sheet_get_cell:Ba,book_new:JD,book_append_sheet:eP,book_set_sheet_visibility:tP,cell_set_number_format:rP,cell_set_hyperlink:zw,cell_set_internal_link:nP,cell_add_comment:iP,sheet_set_array_formula:oP,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function jf(e){if(typeof e=="string"){const t=e.replace(/[^a-zA-Z]/g,"").trim(),r=["","K","M","B","T"].indexOf(t.replace(/\s/g,""));e=Number(e.replace(/[^0-9.]/g,"").trim())*Math.pow(10,r*3)}return e}function aP(e,t){var r;if(typeof e=="string"&&(e=Number(jf(e))),e%1!==0){const n=Math.max(2,((r=e.toString().split(".")[1])==null?void 0:r.length)||0),i=Math.min(4,n);if(e<1e3)return e.toFixed(i)||0}if((e>1e5||e<-1e5)&&!Gw(t||"")){const n=Math.min(4,Math.floor(Math.log10(Math.abs(e))/3)),i=["","K","M","B","T"][n];return`${(e/10**(n*3)).toFixed(2)} ${i}`}return e>1e3||e<-1e3?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):e}function Xd(e){return["date","day","time","timestamp","year"].some(t=>e==null?void 0:e.toLowerCase().includes(t))}function Gw(e){return["price","open","close","high","low"].some(t=>e==null?void 0:e.toLowerCase().includes(t))}function zi(e,t){const r=window.document.getElementById("loading"),n=window.document.getElementById("loading_text");return new Promise(i=>{t?r.classList.remove("show"):(n.innerHTML=e,r.classList.add("show"));const o=setInterval(function(){(t?!r.classList.contains("show"):r.classList.contains("show"))&&(clearInterval(o),i(!0))},.01)})}function sP(e,t){if(e===t)return!0;if(e==null||t==null||(e==null?void 0:e.length)!==(t==null?void 0:t.length))return!1;for(let r=0;r<(e==null?void 0:e.length);++r)if(e[r]!==t[r])return!1;return!0}const lP=(e,t,r,n)=>{const i=l4(e.getValue(t),r);return n(i),i},uP=async({fileHandle:e,blob:t})=>{e&&await cP({fileHandle:e,blob:t})},cP=async({fileHandle:e,blob:t})=>{const r=await e.createWritable();await r.write(t),await r.close()},fP=[{description:"PNG Image",accept:{"image/png":[".png"]}},{description:"JPEG Image",accept:{"image/jpeg":[".jpeg"]}}],jw=({filename:e,is_image:t})=>{try{if("showSaveFilePicker"in window){const r={suggestedName:e,types:t?fP:[{description:"CSV File",accept:{"image/csv":[".csv"]}}],excludeAcceptAllOption:!0};return showSaveFilePicker(r)}}catch(r){console.error(r)}return new Promise(r=>{r(null)})},Xw=(e,t,r)=>{try{if(r===null)throw new Error("Cannot access filesystem");uP({fileHandle:r,blob:e})}catch(n){console.error("oops, something went wrong!",n);const i=URL.createObjectURL(e),o=document.createElement("a");o.setAttribute("href",i),o.setAttribute("download",t),o.style.visibility="hidden",document.body.appendChild(o),o.click(),document.body.removeChild(o)}return new Promise(n=>{n(!0)})};async function t1(e,t,r,n){const i=t,o=r.map(u=>i.map(c=>u[c])),a=[i,...o];if(e==="csv"){const u=a.map(d=>d.join(",")).join(`
`),c=new Blob([u],{type:"text/csv;charset=utf-8;"}),f=`${window.title}.csv`;try{const d=await jw({filename:f});let h="csv";d!==null&&(h=d.name.split(".").pop()),await zi(`Saving ${h.toUpperCase()}`),Xf(async function(){Xw(c,f,d).then(async function(){await new Promise(m=>setTimeout(m,1500)),await zi("",!0),d||n(!0)})},2)()}catch(d){console.error(d)}return}const s=Pc.book_new(),l=Pc.aoa_to_sheet(a);Pc.book_append_sheet(s,l,"Sheet1"),await zi("Saving XLSX"),Xf(async function(){await new Promise(u=>setTimeout(u,1500)),XD(s,`${window.title}.xlsx`),await zi("",!0),n==null||n(!0)},2)()}async function dP(e,t){const r=document.getElementById(e),n=`${window.title}.png`;try{const i=await jw({filename:n,is_image:!0});let o="png";i!==null&&(o=i.name.split(".").pop()),await zi(`Saving ${o.toUpperCase()}`),Xf(async function(){g4.toBlob(r).then(function(a){Xw(a,n,i).then(async function(){await new Promise(s=>setTimeout(s,1500)),await zi("",!0),i||t(!0)})})},2)()}catch(i){console.error(i)}}const Xf=(e,t)=>{let r;return function(){const n=this,i=arguments;clearTimeout(r),r=setTimeout(()=>e.apply(n,i),t)}},Kw=v.createContext({dragDropManager:void 0});function rr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var r1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ic=function(){return Math.random().toString(36).substring(7).split("").join(".")},n1={INIT:"@@redux/INIT"+Ic(),REPLACE:"@@redux/REPLACE"+Ic(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ic()}};function hP(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Yw(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(rr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(rr(1));return r(Yw)(e,t)}if(typeof e!="function")throw new Error(rr(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(rr(3));return o}function f(p){if(typeof p!="function")throw new Error(rr(4));if(l)throw new Error(rr(5));var g=!0;return u(),s.push(p),function(){if(g){if(l)throw new Error(rr(6));g=!1,u();var w=s.indexOf(p);s.splice(w,1),a=null}}}function d(p){if(!hP(p))throw new Error(rr(7));if(typeof p.type>"u")throw new Error(rr(8));if(l)throw new Error(rr(9));try{l=!0,o=i(o,p)}finally{l=!1}for(var g=a=s,x=0;x<g.length;x++){var w=g[x];w()}return p}function h(p){if(typeof p!="function")throw new Error(rr(10));i=p,d({type:n1.REPLACE})}function m(){var p,g=f;return p={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(rr(11));function y(){w.next&&w.next(c())}y();var _=g(y);return{unsubscribe:_}}},p[r1]=function(){return this},p}return d({type:n1.INIT}),n={dispatch:d,subscribe:f,getState:c,replaceReducer:h},n[r1]=m,n}function Fe(e,t,...r){if(pP()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function pP(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function gP(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function mP(e,t){return e.filter(r=>r!==t)}function qw(e){return typeof e=="object"}function vP(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function xP(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Kd="dnd-core/INIT_COORDS",Cu="dnd-core/BEGIN_DRAG",Yd="dnd-core/PUBLISH_DRAG_SOURCE",Au="dnd-core/HOVER",Ru="dnd-core/DROP",Ou="dnd-core/END_DRAG";function i1(e,t){return{type:Kd,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const wP={type:Kd,payload:{clientOffset:null,sourceClientOffset:null}};function yP(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),l=e.getRegistry();e.dispatch(i1(o)),EP(r,s,l);const u=TP(r,s);if(u==null){e.dispatch(wP);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");_P(a),c=a(u)}e.dispatch(i1(o,c));const d=l.getSource(u).beginDrag(s,u);if(d==null)return;SP(d),l.pinSource(u);const h=l.getSourceType(u);return{type:Cu,payload:{itemType:h,item:d,sourceId:u,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function EP(e,t,r){Fe(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){Fe(r.getSource(n),"Expected sourceIds to be registered.")})}function _P(e){Fe(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function SP(e){Fe(qw(e),"Item must be an object.")}function TP(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function CP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){CP(e,i,r[i])})}return e}function RP(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();OP(n),PP(n).forEach((a,s)=>{const l=FP(a,s,i,n),u={type:Ru,payload:{dropResult:AP({},r,l)}};e.dispatch(u)})}}function OP(e){Fe(e.isDragging(),"Cannot call drop while not dragging."),Fe(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function FP(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return DP(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function DP(e){Fe(typeof e>"u"||qw(e),"Drop result must either be an object or undefined.")}function PP(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function IP(e){return function(){const r=e.getMonitor(),n=e.getRegistry();bP(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Ou}}}function bP(e){Fe(e.isDragging(),"Cannot call endDrag while not dragging.")}function Kf(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function kP(e){return function(r,{clientOffset:n}={}){$P(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return MP(i,a,s),NP(i,o,a),LP(i,o,a),{type:Au,payload:{targetIds:i,clientOffset:n||null}}}}function $P(e){Fe(Array.isArray(e),"Expected targetIds to be an array.")}function NP(e,t,r){Fe(t.isDragging(),"Cannot call hover while not dragging."),Fe(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];Fe(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);Fe(o,"Expected targetIds to be registered.")}}function MP(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);Kf(o,r)||e.splice(n,1)}}function LP(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function BP(e){return function(){if(e.getMonitor().isDragging())return{type:Yd}}}function UP(e){return{beginDrag:yP(e),publishDragSource:BP(e),hover:kP(e),drop:RP(e),endDrag:IP(e)}}class HP{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=UP(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function VP(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Qw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function WP(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:Qw(VP(t,n),r)}function zP(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Qw(t,r)}const xa=[],qd=[];xa.__IS_NONE__=!0;qd.__IS_ALL__=!0;function GP(e,t){return e===xa?!1:e===qd||typeof t>"u"?!0:xP(t,e).length>0}class jP{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;Fe(typeof t=="function","listener must be a function."),Fe(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!GP(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Fe(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return Fe(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(Fe(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return Kf(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(Fe(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!Kf(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return WP(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return zP(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const o1=typeof global<"u"?global:self,Zw=o1.MutationObserver||o1.WebKitMutationObserver;function Jw(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function XP(e){let t=1;const r=new Zw(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const KP=typeof Zw=="function"?XP:Jw;class YP{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=KP(this.flush),this.requestErrorThrow=Jw(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class qP{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class QP{create(t){const r=this.freeTasks,n=r.length?r.pop():new qP(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const e2=new YP,ZP=new QP(e2.registerPendingError);function JP(e){e2.enqueueTask(ZP.create(e))}const Qd="dnd-core/ADD_SOURCE",Zd="dnd-core/ADD_TARGET",Jd="dnd-core/REMOVE_SOURCE",Fu="dnd-core/REMOVE_TARGET";function eI(e){return{type:Qd,payload:{sourceId:e}}}function tI(e){return{type:Zd,payload:{targetId:e}}}function rI(e){return{type:Jd,payload:{sourceId:e}}}function nI(e){return{type:Fu,payload:{targetId:e}}}function iI(e){Fe(typeof e.canDrag=="function","Expected canDrag to be a function."),Fe(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Fe(typeof e.endDrag=="function","Expected endDrag to be a function.")}function oI(e){Fe(typeof e.canDrop=="function","Expected canDrop to be a function."),Fe(typeof e.hover=="function","Expected hover to be a function."),Fe(typeof e.drop=="function","Expected beginDrag to be a function.")}function Yf(e,t){if(t&&Array.isArray(e)){e.forEach(r=>Yf(r,!1));return}Fe(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var ar;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(ar||(ar={}));let aI=0;function sI(){return aI++}function lI(e){const t=sI().toString();switch(e){case ar.SOURCE:return`S${t}`;case ar.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function a1(e){switch(e[0]){case"S":return ar.SOURCE;case"T":return ar.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function s1(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class uI{addSource(t,r){Yf(t),iI(r);const n=this.addHandler(ar.SOURCE,t,r);return this.store.dispatch(eI(n)),n}addTarget(t,r){Yf(t,!0),oI(r);const n=this.addHandler(ar.TARGET,t,r);return this.store.dispatch(tI(n)),n}containsHandler(t){return s1(this.dragSources,t)||s1(this.dropTargets,t)}getSource(t,r=!1){return Fe(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Fe(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Fe(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Fe(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return a1(t)===ar.SOURCE}isTargetId(t){return a1(t)===ar.TARGET}removeSource(t){Fe(this.getSource(t),"Expected an existing source."),this.store.dispatch(rI(t)),JP(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Fe(this.getTarget(t),"Expected an existing target."),this.store.dispatch(nI(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);Fe(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){Fe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=lI(t);return this.types.set(i,r),t===ar.SOURCE?this.dragSources.set(i,n):t===ar.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const cI=(e,t)=>e===t;function fI(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function dI(e,t,r=cI){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function hI(e=xa,t){switch(t.type){case Au:break;case Qd:case Zd:case Fu:case Jd:return xa;case Cu:case Yd:case Ou:case Ru:default:return qd}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=vP(r,n);if(!(i.length>0||!dI(r,n)))return xa;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function pI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){pI(e,i,r[i])})}return e}const l1={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function mI(e=l1,t){const{payload:r}=t;switch(t.type){case Kd:case Cu:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Au:return fI(e.clientOffset,r.clientOffset)?e:gI({},e,{clientOffset:r.clientOffset});case Ou:case Ru:return l1;default:return e}}function vI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){vI(e,i,r[i])})}return e}const xI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function wI(e=xI,t){const{payload:r}=t;switch(t.type){case Cu:return Ii({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Yd:return Ii({},e,{isSourcePublic:!0});case Au:return Ii({},e,{targetIds:r.targetIds});case Fu:return e.targetIds.indexOf(r.targetId)===-1?e:Ii({},e,{targetIds:mP(e.targetIds,r.targetId)});case Ru:return Ii({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Ou:return Ii({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function yI(e=0,t){switch(t.type){case Qd:case Zd:return e+1;case Jd:case Fu:return e-1;default:return e}}function EI(e=0){return e+1}function _I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_I(e,i,r[i])})}return e}function TI(e={},t){return{dirtyHandlerIds:hI(e.dirtyHandlerIds,{type:t.type,payload:SI({},t.payload,{prevTargetIds:gP(e,"dragOperation.targetIds",[])})}),dragOffset:mI(e.dragOffset,t),refCount:yI(e.refCount,t),dragOperation:wI(e.dragOperation,t),stateId:EI(e.stateId)}}function CI(e,t=void 0,r={},n=!1){const i=AI(n),o=new jP(i,new uI(i)),a=new HP(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function AI(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Yw(TI,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function RI(e,t){if(e==null)return{};var r=OI(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let u1=0;const el=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var FI=v.memo(function(t){var{children:r}=t,n=RI(t,["children"]);const[i,o]=DI(n);return v.useEffect(()=>{if(o){const a=t2();return++u1,()=>{--u1===0&&(a[el]=null)}}},[]),K(Kw.Provider,{value:i,children:r})});function DI(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=PI(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function PI(e,t=t2(),r,n){const i=t;return i[el]||(i[el]={dragDropManager:CI(e,t,r,n)}),i[el]}function t2(){return typeof global<"u"?global:window}var II=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const bI=Ha(II),si=typeof window<"u"?v.useLayoutEffect:v.useEffect;function kI(e,t,r){const[n,i]=v.useState(()=>t(e)),o=v.useCallback(()=>{const a=t(e);bI(n,a)||(i(a),r&&r())},[n,e,r]);return si(o),[n,o]}function $I(e,t,r){const[n,i]=kI(e,t,r);return si(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function r2(e,t,r){return $I(t,e||(()=>({})),()=>r.reconnect())}function n2(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),v.useMemo(()=>typeof e=="function"?e():e,r)}function NI(e){return v.useMemo(()=>e.hooks.dragSource(),[e])}function MI(e){return v.useMemo(()=>e.hooks.dragPreview(),[e])}let bc=!1,kc=!1;class LI{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Fe(!bc,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return bc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{bc=!1}}isDragging(){if(!this.sourceId)return!1;Fe(!kc,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return kc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{kc=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let $c=!1;class BI{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;Fe(!$c,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return $c=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$c=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function UI(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function HI(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function qf(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<o.length;l++){const u=o[l];if(!s(u))return!1;const c=e[u],f=t[u];if(i=r?r.call(n,c,f,u):void 0,i===!1||i===void 0&&c!==f)return!1}return!0}function Qf(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VI(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function WI(e){return(t=null,r=null)=>{if(!v.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return VI(n),zI(n,r?o=>e(o,r):e)}}function i2(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=WI(n);t[r]=()=>i}}),t}function c1(e,t){typeof e=="function"?e(t):e.current=t}function zI(e,t){const r=e.ref;return Fe(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?v.cloneElement(e,{ref:n=>{c1(r,n),c1(t,n)}}):v.cloneElement(e,{ref:t})}class GI{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!qf(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!qf(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=i2({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,Qf(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,Qf(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class jI{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!qf(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=i2({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,Qf(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function Ao(){const{dragDropManager:e}=v.useContext(Kw);return Fe(e!=null,"Expected drag drop context"),e}function XI(e,t){const r=Ao(),n=v.useMemo(()=>new GI(r.getBackend()),[r]);return si(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),si(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function KI(){const e=Ao();return v.useMemo(()=>new LI(e),[e])}class YI{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function qI(e,t,r){const n=v.useMemo(()=>new YI(e,t,r),[t,r]);return v.useEffect(()=>{n.spec=e},[e]),n}function QI(e){return v.useMemo(()=>{const t=e.type;return Fe(t!=null,"spec.type must be defined"),t},[e])}function ZI(e,t,r){const n=Ao(),i=qI(e,t,r),o=QI(e);si(function(){if(o!=null){const[s,l]=HI(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l}},[n,t,r,i,o])}function JI(e,t){const r=n2(e,t);Fe(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=KI(),i=XI(r.options,r.previewOptions);return ZI(r,n,i),[r2(r.collect,n,i),NI(i),MI(i)]}function e5(e){return v.useMemo(()=>e.hooks.dropTarget(),[e])}function t5(e){const t=Ao(),r=v.useMemo(()=>new jI(t.getBackend()),[t]);return si(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function r5(){const e=Ao();return v.useMemo(()=>new BI(e),[e])}function n5(e){const{accept:t}=e;return v.useMemo(()=>(Fe(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class i5{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function o5(e,t){const r=v.useMemo(()=>new i5(e,t),[t]);return v.useEffect(()=>{r.spec=e},[e]),r}function a5(e,t,r){const n=Ao(),i=o5(e,t),o=n5(e);si(function(){const[s,l]=UI(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function s5(e,t){const r=n2(e,t),n=r5(),i=t5(r.options);return a5(r,n,i),[r2(r.collect,n,i),e5(i)]}function l5(e,t){return v.useReducer((r,n)=>{const i=t[r][n];return i??r},e)}const Ei=e=>{const{present:t,children:r}=e,n=u5(t),i=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),o=Ve(n.ref,i.ref);return typeof r=="function"||n.isPresent?v.cloneElement(i,{ref:o}):null};Ei.displayName="Presence";function u5(e){const[t,r]=v.useState(),n=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,l]=l5(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=ks(n.current);o.current=s==="mounted"?u:"none"},[s]),Et(()=>{const u=n.current,c=i.current;if(c!==e){const d=o.current,h=ks(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Et(()=>{if(t){const u=f=>{const h=ks(n.current).includes(f.animationName);f.target===t&&h&&di.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(o.current=ks(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function ks(e){return(e==null?void 0:e.animationName)||"none"}const Nc="rovingFocusGroup.onEntryFocus",c5={bubbles:!1,cancelable:!0},eh="RovingFocusGroup",[Zf,o2,f5]=su(eh),[d5,a2]=nn(eh,[f5]),[h5,p5]=d5(eh),g5=v.forwardRef((e,t)=>v.createElement(Zf.Provider,{scope:e.__scopeRovingFocusGroup},v.createElement(Zf.Slot,{scope:e.__scopeRovingFocusGroup},v.createElement(m5,pe({},e,{ref:t}))))),m5=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,f=v.useRef(null),d=Ve(t,f),h=hd(o),[m=null,p]=uo({prop:a,defaultProp:s,onChange:l}),[g,x]=v.useState(!1),w=It(u),y=o2(r),_=v.useRef(!1),[N,M]=v.useState(0);return v.useEffect(()=>{const S=f.current;if(S)return S.addEventListener(Nc,w),()=>S.removeEventListener(Nc,w)},[w]),v.createElement(h5,{scope:r,orientation:n,dir:h,loop:i,currentTabStopId:m,onItemFocus:v.useCallback(S=>p(S),[p]),onItemShiftTab:v.useCallback(()=>x(!0),[]),onFocusableItemAdd:v.useCallback(()=>M(S=>S+1),[]),onFocusableItemRemove:v.useCallback(()=>M(S=>S-1),[])},v.createElement(Pe.div,pe({tabIndex:g||N===0?-1:0,"data-orientation":n},c,{ref:d,style:{outline:"none",...e.style},onMouseDown:_e(e.onMouseDown,()=>{_.current=!0}),onFocus:_e(e.onFocus,S=>{const C=!_.current;if(S.target===S.currentTarget&&C&&!g){const A=new CustomEvent(Nc,c5);if(S.currentTarget.dispatchEvent(A),!A.defaultPrevented){const L=y().filter(ne=>ne.focusable),H=L.find(ne=>ne.active),B=L.find(ne=>ne.id===m),Q=[H,B,...L].filter(Boolean).map(ne=>ne.ref.current);s2(Q)}}_.current=!1}),onBlur:_e(e.onBlur,()=>x(!1))})))}),v5="RovingFocusGroupItem",x5=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,...a}=e,s=Xr(),l=o||s,u=p5(v5,r),c=u.currentTabStopId===l,f=o2(r),{onFocusableItemAdd:d,onFocusableItemRemove:h}=u;return v.useEffect(()=>{if(n)return d(),()=>h()},[n,d,h]),v.createElement(Zf.ItemSlot,{scope:r,id:l,focusable:n,active:i},v.createElement(Pe.span,pe({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:_e(e.onMouseDown,m=>{n?u.onItemFocus(l):m.preventDefault()}),onFocus:_e(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:_e(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const p=E5(m,u.orientation,u.dir);if(p!==void 0){m.preventDefault();let x=f().filter(w=>w.focusable).map(w=>w.ref.current);if(p==="last")x.reverse();else if(p==="prev"||p==="next"){p==="prev"&&x.reverse();const w=x.indexOf(m.currentTarget);x=u.loop?_5(x,w+1):x.slice(w+1)}setTimeout(()=>s2(x))}})})))}),w5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function y5(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function E5(e,t,r){const n=y5(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return w5[n]}function s2(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function _5(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const S5=g5,T5=x5,C5=["Enter"," "],A5=["ArrowDown","PageUp","Home"],l2=["ArrowUp","PageDown","End"],R5=[...A5,...l2],Du="Menu",[Jf,O5,F5]=su(Du),[_i,Pu]=nn(Du,[F5,fu,a2]),th=fu(),u2=a2(),[D5,ns]=_i(Du),[P5,rh]=_i(Du),I5=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:a=!0}=e,s=th(t),[l,u]=v.useState(null),c=v.useRef(!1),f=It(o),d=hd(i);return v.useEffect(()=>{const h=()=>{c.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>c.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),v.createElement(Gv,s,v.createElement(D5,{scope:t,open:r,onOpenChange:f,content:l,onContentChange:u},v.createElement(P5,{scope:t,onClose:v.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:a},n)))},b5=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=th(r);return v.createElement(jv,pe({},i,n,{ref:t}))}),c2="MenuPortal",[k5,$5]=_i(c2,{forceMount:void 0}),N5=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=ns(c2,t);return v.createElement(k5,{scope:t,forceMount:r},v.createElement(Ei,{present:r||o.open},v.createElement(du,{asChild:!0,container:i},n)))},An="MenuContent",[M5,f2]=_i(An),L5=v.forwardRef((e,t)=>{const r=$5(An,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=ns(An,e.__scopeMenu),a=rh(An,e.__scopeMenu);return v.createElement(Jf.Provider,{scope:e.__scopeMenu},v.createElement(Ei,{present:n||o.open},v.createElement(Jf.Slot,{scope:e.__scopeMenu},a.modal?v.createElement(B5,pe({},i,{ref:t})):v.createElement(U5,pe({},i,{ref:t})))))}),B5=v.forwardRef((e,t)=>{const r=ns(An,e.__scopeMenu),n=v.useRef(null),i=Ve(t,n);return v.useEffect(()=>{const o=n.current;if(o)return Ed(o)},[]),v.createElement(d2,pe({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:_e(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),U5=v.forwardRef((e,t)=>{const r=ns(An,e.__scopeMenu);return v.createElement(d2,pe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),d2=v.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h,disableOutsideScroll:m,...p}=e,g=ns(An,r),x=rh(An,r),w=th(r),y=u2(r),_=O5(r),[N,M]=v.useState(null),S=v.useRef(null),C=Ve(t,S,g.onContentChange),A=v.useRef(0),L=v.useRef(""),H=v.useRef(0),B=v.useRef(null),V=v.useRef("right"),Q=v.useRef(0),ne=m?_d:v.Fragment,ye=m?{as:ni,allowPinchZoom:!0}:void 0,ve=ie=>{var Ee,ee;const O=L.current+ie,k=_().filter(W=>!W.disabled),b=document.activeElement,D=(Ee=k.find(W=>W.ref.current===b))===null||Ee===void 0?void 0:Ee.textValue,U=k.map(W=>W.textValue),G=Q5(U,O,D),J=(ee=k.find(W=>W.textValue===G))===null||ee===void 0?void 0:ee.ref.current;(function W(q){L.current=q,window.clearTimeout(A.current),q!==""&&(A.current=window.setTimeout(()=>W(""),1e3))})(O),J&&setTimeout(()=>J.focus())};v.useEffect(()=>()=>window.clearTimeout(A.current),[]),gd();const Ce=v.useCallback(ie=>{var Ee,ee;return V.current===((Ee=B.current)===null||Ee===void 0?void 0:Ee.side)&&J5(ie,(ee=B.current)===null||ee===void 0?void 0:ee.area)},[]);return v.createElement(M5,{scope:r,searchRef:L,onItemEnter:v.useCallback(ie=>{Ce(ie)&&ie.preventDefault()},[Ce]),onItemLeave:v.useCallback(ie=>{var Ee;Ce(ie)||((Ee=S.current)===null||Ee===void 0||Ee.focus(),M(null))},[Ce]),onTriggerLeave:v.useCallback(ie=>{Ce(ie)&&ie.preventDefault()},[Ce]),pointerGraceTimerRef:H,onPointerGraceIntentChange:v.useCallback(ie=>{B.current=ie},[])},v.createElement(ne,ye,v.createElement(md,{asChild:!0,trapped:i,onMountAutoFocus:_e(o,ie=>{var Ee;ie.preventDefault(),(Ee=S.current)===null||Ee===void 0||Ee.focus()}),onUnmountAutoFocus:a},v.createElement(lu,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h},v.createElement(S5,pe({asChild:!0},y,{dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:N,onCurrentTabStopIdChange:M,onEntryFocus:_e(l,ie=>{x.isUsingKeyboardRef.current||ie.preventDefault()})}),v.createElement(Xv,pe({role:"menu","aria-orientation":"vertical","data-state":K5(g.open),"data-radix-menu-content":"",dir:x.dir},w,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:_e(p.onKeyDown,ie=>{const ee=ie.target.closest("[data-radix-menu-content]")===ie.currentTarget,O=ie.ctrlKey||ie.altKey||ie.metaKey,k=ie.key.length===1;ee&&(ie.key==="Tab"&&ie.preventDefault(),!O&&k&&ve(ie.key));const b=S.current;if(ie.target!==b||!R5.includes(ie.key))return;ie.preventDefault();const U=_().filter(G=>!G.disabled).map(G=>G.ref.current);l2.includes(ie.key)&&U.reverse(),Y5(U)}),onBlur:_e(e.onBlur,ie=>{ie.currentTarget.contains(ie.target)||(window.clearTimeout(A.current),L.current="")}),onPointerMove:_e(e.onPointerMove,t0(ie=>{const Ee=ie.target,ee=Q.current!==ie.clientX;if(ie.currentTarget.contains(Ee)&&ee){const O=ie.clientX>Q.current?"right":"left";V.current=O,Q.current=ie.clientX}}))})))))))}),H5=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return v.createElement(Pe.div,pe({role:"group"},n,{ref:t}))}),V5=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return v.createElement(Pe.div,pe({},n,{ref:t}))}),e0="MenuItem",f1="menu.itemSelect",W5=v.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,o=v.useRef(null),a=rh(e0,e.__scopeMenu),s=f2(e0,e.__scopeMenu),l=Ve(t,o),u=v.useRef(!1),c=()=>{const f=o.current;if(!r&&f){const d=new CustomEvent(f1,{bubbles:!0,cancelable:!0});f.addEventListener(f1,h=>n==null?void 0:n(h),{once:!0}),pd(f,d),d.defaultPrevented?u.current=!1:a.onClose()}};return v.createElement(z5,pe({},i,{ref:l,disabled:r,onClick:_e(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)===null||d===void 0||d.call(e,f),u.current=!0},onPointerUp:_e(e.onPointerUp,f=>{var d;u.current||(d=f.currentTarget)===null||d===void 0||d.click()}),onKeyDown:_e(e.onKeyDown,f=>{const d=s.searchRef.current!=="";r||d&&f.key===" "||C5.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),z5=v.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,a=f2(e0,r),s=u2(r),l=v.useRef(null),u=Ve(t,l),[c,f]=v.useState(!1),[d,h]=v.useState("");return v.useEffect(()=>{const m=l.current;if(m){var p;h(((p=m.textContent)!==null&&p!==void 0?p:"").trim())}},[o.children]),v.createElement(Jf.ItemSlot,{scope:r,disabled:n,textValue:i??d},v.createElement(T5,pe({asChild:!0},s,{focusable:!n}),v.createElement(Pe.div,pe({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:u,onPointerMove:_e(e.onPointerMove,t0(m=>{n?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:_e(e.onPointerLeave,t0(m=>a.onItemLeave(m))),onFocus:_e(e.onFocus,()=>f(!0)),onBlur:_e(e.onBlur,()=>f(!1))}))))}),G5="MenuRadioGroup";_i(G5,{value:void 0,onValueChange:()=>{}});const j5="MenuItemIndicator";_i(j5,{checked:!1});const X5="MenuSub";_i(X5);function K5(e){return e?"open":"closed"}function Y5(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function q5(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Q5(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=q5(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function Z5(e,t){const{x:r,y:n}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o].x,l=t[o].y,u=t[a].x,c=t[a].y;l>n!=c>n&&r<(u-s)*(n-l)/(c-l)+s&&(i=!i)}return i}function J5(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Z5(r,t)}function t0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const h2=I5,p2=b5,g2=N5,m2=L5,e8=H5,t8=V5,r8=W5,v2="ContextMenu",[n8,Yk]=nn(v2,[Pu]),Iu=Pu(),[i8,x2]=n8(v2),o8=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:i,modal:o=!0}=e,[a,s]=v.useState(!1),l=Iu(t),u=It(n),c=v.useCallback(f=>{s(f),u(f)},[u]);return v.createElement(i8,{scope:t,open:a,onOpenChange:c,modal:o},v.createElement(h2,pe({},l,{dir:i,open:a,onOpenChange:c,modal:o}),r))},a8="ContextMenuTrigger",s8=v.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...i}=e,o=x2(a8,r),a=Iu(r),s=v.useRef({x:0,y:0}),l=v.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),u=v.useRef(0),c=v.useCallback(()=>window.clearTimeout(u.current),[]),f=d=>{s.current={x:d.clientX,y:d.clientY},o.onOpenChange(!0)};return v.useEffect(()=>c,[c]),v.useEffect(()=>void(n&&c()),[n,c]),v.createElement(v.Fragment,null,v.createElement(p2,pe({},a,{virtualRef:l})),v.createElement(Pe.span,pe({"data-state":o.open?"open":"closed","data-disabled":n?"":void 0},i,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:_e(e.onContextMenu,d=>{c(),f(d),d.preventDefault()}),onPointerDown:n?e.onPointerDown:_e(e.onPointerDown,$s(d=>{c(),u.current=window.setTimeout(()=>f(d),700)})),onPointerMove:n?e.onPointerMove:_e(e.onPointerMove,$s(c)),onPointerCancel:n?e.onPointerCancel:_e(e.onPointerCancel,$s(c)),onPointerUp:n?e.onPointerUp:_e(e.onPointerUp,$s(c))})))}),l8=e=>{const{__scopeContextMenu:t,...r}=e,n=Iu(t);return v.createElement(g2,pe({},n,r))},u8="ContextMenuContent",c8=v.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,i=x2(u8,r),o=Iu(r),a=v.useRef(!1);return v.createElement(m2,pe({},o,n,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var l;(l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented&&a.current&&s.preventDefault(),a.current=!1},onInteractOutside:s=>{var l;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),!s.defaultPrevented&&!i.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});function $s(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const f8=o8,d8=s8,h8=l8,p8=c8,w2=new RegExp("^([0-9]+)(\\s)([kKmMbBtT])$");function g8({column:e,table:t,numberOfColumns:r}){function n(c){if(!c)return null;const f=new Date(c),d=f.getFullYear(),h=f.getMonth()+1>9?f.getMonth()+1:`0${f.getMonth()+1}`,m=f.getDate()>9?f.getDate():`0${f.getDate()}`;return`${d}-${h}-${m}`}const i=t.getPreFilteredRowModel().flatRows.map(c=>c.getValue(e.id)),o=i.every(c=>typeof c=="string"||c===null),a=i.every(c=>typeof c=="number"||w2.test(c)||c===null||c===""),s=i.some(c=>typeof c=="string"&&c.includes(" ")),l=e.getFilterValue();return i.every(c=>{const f=c==null?void 0:c.toString().replace(/[^0-9]/g,"").trim();return(f==null?void 0:f.length)>=4&&(Xd(e.id)||e.id.toLowerCase()==="index"&&!s)})?Se("div",{className:"flex gap-2 h-10",children:[K("input",{type:"datetime-local",value:n(l==null?void 0:l[0])??"",onChange:c=>{const f=new Date(c.target.value).getTime();e.setFilterValue(d=>[f,d==null?void 0:d[1]])},placeholder:"Start date",className:"_input"}),K("input",{type:"datetime-local",value:n(l==null?void 0:l[1])??"",onChange:c=>{const f=new Date(c.target.value).getTime();e.setFilterValue(d=>[d==null?void 0:d[0],f])},placeholder:"End date",className:"_input"})]}):a?Se("div",{className:"flex gap-0.5 h-10",children:[K("input",{type:"number",value:(l==null?void 0:l[0])??"",onChange:c=>e.setFilterValue(f=>[c.target.value,f==null?void 0:f[1]]),placeholder:"Min",className:"_input p-0.5"}),K("input",{type:"number",value:(l==null?void 0:l[1])??"",onChange:c=>e.setFilterValue(f=>[f==null?void 0:f[0],c.target.value]),placeholder:"Max",className:"_input p-0.5"})]}):o?K("div",{className:"h-10",children:K("input",{type:"text",value:l??"",onChange:c=>e.setFilterValue(c.target.value),placeholder:"Search...",className:"_input"})}):K("div",{className:"h-10"})}const m8=(e,t,r)=>(r.splice(r.indexOf(t),0,r.splice(r.indexOf(e),1)[0]),[...r]),v8=({header:e,table:t,advanced:r,idx:n,lockFirstColumn:i,setLockFirstColumn:o})=>{const{getState:a,setColumnOrder:s}=t,{columnOrder:l}=a(),{column:u}=e,[,c]=s5({accept:"column",drop:p=>{const g=m8(p.id,u.id,l);s(g)}}),[{isDragging:f},d,h]=JI({collect:p=>({isDragging:p.isDragging()}),item:()=>u,type:"column"}),m=()=>K("div",{ref:h,className:"flex gap-1 flex-col",children:e.isPlaceholder?null:Se(H1,{children:[Se("div",{className:"font-bold uppercase text-grey-700 dark:text-white tracking-widest flex gap-2 whitespace-nowrap justify-between",children:[Se("div",{onClick:u.getToggleSortingHandler(),className:Nt("flex gap-1",{"cursor-pointer select-none":u.getCanSort()}),children:[If(u.columnDef.header,e.getContext()),u.getCanSort()&&Se("div",{className:"flex flex-col gap-0.5 items-center justify-center",children:[K("button",{className:Nt({"text-[#669DCB]":u.getIsSorted()==="asc","text-grey-600":u.getIsSorted()!=="asc"}),children:K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",fill:"none",viewBox:"0 0 11 5",children:K("path",{fill:"currentColor",d:"M10.333 5l-5-5-5 5"})})}),K("button",{className:Nt({"text-[#669DCB]":e.column.getIsSorted()==="desc","text-grey-600":e.column.getIsSorted()!=="desc"}),children:K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",fill:"none",viewBox:"0 0 11 5",children:K("path",{fill:"currentColor",d:"M.333 0l5 5 5-5"})})})]})]}),r&&u.id!=="select"&&K("button",{ref:d,className:"text-grey-600 hover:text-grey-800 dark:hover:text-white",children:K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none",viewBox:"0 0 17 16",children:K("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3.667 6l-2 2 2 2M6.333 3.333l2-2 2 2M10.333 12.667l-2 2-2-2M13 6l2 2-2 2M1.667 8H15M8.333 1.333v13.334"})})})]}),r&&u.getCanFilter()?K("div",{children:K(g8,{column:u,table:t,numberOfColumns:(l==null?void 0:l.length)??0})}):null]})});return Se("th",{className:Nt("h-[70px] p-4 sticky",{"left-0 z-50 bg-white dark:bg-grey-900":n===0&&i}),colSpan:e.colSpan,style:{width:e.getSize(),opacity:f?.5:1},ref:c,children:[n===0?Se(f8,{children:[K(d8,{asChild:!0,children:m()}),K(h8,{children:K(p8,{className:"bg-white text-black dark:text-white dark:bg-grey-900 border border-grey-200 dark:border-grey-800 rounded-md shadow-lg p-2 z-50 text-xs",children:K("div",{className:"flex flex-col gap-2",children:Se("button",{onClick:()=>{o(!i)},className:"hover:bg-grey-300 dark:hover:bg-grey-800 rounded-md p-2",children:[i?"Unlock":"Lock"," first column"]})})})})]}):m(),K("button",{className:"resizer bg-grey-300/20 dark:hover:bg-white absolute top-0 right-0 w-0.5 h-full",onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler()})]})};function y2(e){return typeof e!="number"?typeof e=="string"&&e.includes("All")?e:l0:e<1?l0:e}function x8({table:e,currentPage:t,setCurrentPage:r}){const n=e.getFilteredRowModel().rows.length||0;return Se("div",{className:"hidden md:flex items-center gap-8",children:[K(Vi,{value:t,onChange:i=>{const o=y2(i);r(o),o.toString().includes("All")?e.setPageSize(n):e.setPageSize(o)},labelType:"row",label:"Rows per page",placeholder:"Select rows per page",groups:[{label:"Rows per page",items:[10,20,30,40,50,`All (${n})`].map(i=>({label:`${i}`,value:i}))}]}),Se("span",{className:"flex items-center gap-1",children:[K("strong",{children:e.getState().pagination.pageIndex+1}),"of",K("strong",{children:e.getPageCount()})]}),Se("div",{className:"hidden lg:block",children:[K("button",{className:Nt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:"<<"}),K("button",{className:Nt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:"<"}),K("button",{className:Nt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:">"}),K("button",{className:Nt("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:">>"})]})]})}function w8({columns:e,data:t,type:r,setType:n,downloadFinished:i}){const o=()=>{switch(r){case"csv":t1("csv",e,t,i);break;case"xlsx":t1("xlsx",e,t,i);break;case"png":dP("table",i);break}};return Se("div",{className:"flex gap-6 items-center",children:[K(Vi,{labelType:"row",value:r,onChange:a=>{n(a)},label:"Type",placeholder:"Select type",groups:[{label:"Type",items:u0.map(a=>({label:a,value:a}))}]}),K("button",{onClick:o,className:"_btn",children:"Export"})]})}const E2="DropdownMenu",[y8,qk]=nn(E2,[Pu]),Si=Pu(),[E8,_2]=y8(E2),_8=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=Si(t),u=v.useRef(null),[c=!1,f]=uo({prop:i,defaultProp:o,onChange:a});return v.createElement(E8,{scope:t,triggerId:Xr(),triggerRef:u,contentId:Xr(),open:c,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(d=>!d),[f]),modal:s},v.createElement(h2,pe({},l,{open:c,onOpenChange:f,dir:n,modal:s}),r))},S8="DropdownMenuTrigger",T8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=_2(S8,r),a=Si(r);return v.createElement(p2,pe({asChild:!0},a),v.createElement(Pe.button,pe({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},i,{ref:dd(t,o.triggerRef),onPointerDown:_e(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(o.onOpenToggle(),o.open||s.preventDefault())}),onKeyDown:_e(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&o.onOpenToggle(),s.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),C8=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Si(t);return v.createElement(g2,pe({},n,r))},A8="DropdownMenuContent",R8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=_2(A8,r),o=Si(r),a=v.useRef(!1);return v.createElement(m2,pe({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:_e(e.onCloseAutoFocus,s=>{var l;a.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:_e(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!i.modal||c)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),O8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Si(r);return v.createElement(e8,pe({},i,n,{ref:t}))}),F8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Si(r);return v.createElement(t8,pe({},i,n,{ref:t}))}),D8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Si(r);return v.createElement(r8,pe({},i,n,{ref:t}))}),P8=_8,d1=T8,I8=C8,b8=R8,k8=O8,$8=F8,Mc=D8;function N8(e,t){v.useEffect(()=>{const r=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}function h1({label:e,table:t,onlyIconTrigger:r=!1}){const[n,i]=v.useState(!1),o=v.useRef(null);N8(o,()=>i(!1)),v.useEffect(()=>{const s=l=>{l.key==="Escape"&&i(!1)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[]);function a(){t.resetColumnFilters(),i(!1)}return Se(P8,{open:n,children:[r?K(d1,{title:"Filter columns",onClick:()=>i(!n),children:K("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-7 h-7",children:K("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"})})}):Se(k8,{className:"flex flex-row items-center gap-2",children:[K($8,{className:"whitespace-nowrap",children:e}),Se(d1,{onClick:()=>i(!n),className:"bg-white text-black dark:bg-grey-900 dark:text-white whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center justify-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":e,children:[K("span",{children:"Filter columns"}),K(Hf,{className:Nt({"transform rotate-180 duration-200 transition":n})})]})]}),K(I8,{children:Se(b8,{sideOffset:10,ref:o,className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur flex flex-col gap-4 overflow-auto border-[1.5px] border-grey-700 rounded p-3 max-h-[500px] text-black dark:text-white",children:[K(Mc,{children:K("button",{className:"_btn w-full",onClick:a,children:"Clear Filters"})}),K(Mc,{children:Se("label",{className:"flex items-center gap-2",children:[K("input",{type:"checkbox",checked:t.getIsAllColumnsVisible(),onChange:t.getToggleAllColumnsVisibilityHandler()}),"Toggle All"]})}),t.getAllLeafColumns().filter(s=>s.id!=="select").map(s=>K(Mc,{children:Se("label",{className:"flex items-center gap-2",children:[K("input",{type:"checkbox",checked:s.getIsVisible(),onChange:s.getToggleVisibilityHandler()}),s.id]})},s.id))]})})]})}var r0={exports:{}},Ze={},n0={exports:{}},Ti={};function S2(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function M8(e,t,r){}function L8(e,t,r){}var B8=/javascript\s*\:/img;function U8(e,t){return B8.test(t)?"":t}Ti.whiteList=S2();Ti.getDefaultWhiteList=S2;Ti.onAttr=M8;Ti.onIgnoreAttr=L8;Ti.safeAttrValue=U8;var H8={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Go=H8;function V8(e,t){e=Go.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,a="";function s(){if(!n){var c=Go.trim(e.slice(i,o)),f=c.indexOf(":");if(f!==-1){var d=Go.trim(c.slice(0,f)),h=Go.trim(c.slice(f+1));if(d){var m=t(i,a.length,d,h,c);m&&(a+=m+"; ")}}}i=o+1}for(;o<r;o++){var l=e[o];if(l==="/"&&e[o+1]==="*"){var u=e.indexOf("*/",o+2);if(u===-1)break;o=u+1,i=o+1,n=!1}else l==="("?n=!0:l===")"?n=!1:l===";"?n||s():l===`
`&&s()}return Go.trim(a)}var W8=V8,Ns=Ti,z8=W8;function p1(e){return e==null}function G8(e){var t={};for(var r in e)t[r]=e[r];return t}function T2(e){e=G8(e||{}),e.whiteList=e.whiteList||Ns.whiteList,e.onAttr=e.onAttr||Ns.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Ns.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Ns.safeAttrValue,this.options=e}T2.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,a=r.safeAttrValue,s=z8(e,function(l,u,c,f,d){var h=n[c],m=!1;if(h===!0?m=h:typeof h=="function"?m=h(f):h instanceof RegExp&&(m=h.test(f)),m!==!0&&(m=!1),f=a(c,f),!!f){var p={position:u,sourcePosition:l,source:d,isWhite:m};if(m){var g=i(c,f,p);return p1(g)?c+":"+f:g}else{var g=o(c,f,p);if(!p1(g))return g}}});return s};var j8=T2;(function(e,t){var r=Ti,n=j8;function i(a,s){var l=new n(s);return l.process(a)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o];typeof window<"u"&&(window.filterCSS=e.exports)})(n0,n0.exports);var nh=n0.exports,ih={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},X8=nh.FilterCSS,K8=nh.getDefaultWhiteList,Gl=ih;function C2(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var A2=new X8;function Y8(e,t,r){}function q8(e,t,r){}function Q8(e,t,r){}function Z8(e,t,r){}function R2(e){return e.replace(eb,"&lt;").replace(tb,"&gt;")}function J8(e,t,r,n){if(r=b2(r),t==="href"||t==="src"){if(r=Gl.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(Ms.lastIndex=0,Ms.test(r))return""}else if(t==="style"){if(g1.lastIndex=0,g1.test(r)||(m1.lastIndex=0,m1.test(r)&&(Ms.lastIndex=0,Ms.test(r))))return"";n!==!1&&(n=n||A2,r=n.process(r))}return r=k2(r),r}var eb=/</g,tb=/>/g,rb=/"/g,nb=/&quot;/g,ib=/&#([a-zA-Z0-9]*);?/gim,ob=/&colon;?/gim,ab=/&newline;?/gim,Ms=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,g1=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,m1=/u\s*r\s*l\s*\(.*/gi;function O2(e){return e.replace(rb,"&quot;")}function F2(e){return e.replace(nb,'"')}function D2(e){return e.replace(ib,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function P2(e){return e.replace(ob,":").replace(ab," ")}function I2(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Gl.trim(t)}function b2(e){return e=F2(e),e=D2(e),e=P2(e),e=I2(e),e}function k2(e){return e=O2(e),e=R2(e),e}function sb(){return""}function lb(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(a){return r?!0:Gl.indexOf(e,a)!==-1}var i=[],o=!1;return{onIgnoreTag:function(a,s,l){if(n(a))if(l.isClosing){var u="[/removed]",c=l.position+u.length;return i.push([o!==!1?o:l.position,c]),o=!1,u}else return o||(o=l.position),"[removed]";else return t(a,s,l)},remove:function(a){var s="",l=0;return Gl.forEach(i,function(u){s+=a.slice(l,u[0]),l=u[1]}),s+=a.slice(l),s}}}function ub(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function cb(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}Ze.whiteList=C2();Ze.getDefaultWhiteList=C2;Ze.onTag=Y8;Ze.onIgnoreTag=q8;Ze.onTagAttr=Q8;Ze.onIgnoreTagAttr=Z8;Ze.safeAttrValue=J8;Ze.escapeHtml=R2;Ze.escapeQuote=O2;Ze.unescapeQuote=F2;Ze.escapeHtmlEntities=D2;Ze.escapeDangerHtml5Entities=P2;Ze.clearNonPrintableCharacter=I2;Ze.friendlyAttrValue=b2;Ze.escapeAttrValue=k2;Ze.onIgnoreTagStripAll=sb;Ze.StripTagBody=lb;Ze.stripCommentTag=ub;Ze.stripBlankChar=cb;Ze.cssFilter=A2;Ze.getDefaultCSSWhiteList=K8;var bu={},un=ih;function fb(e){var t=un.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=un.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function db(e){return e.slice(0,2)==="</"}function hb(e,t,r){var n="",i=0,o=!1,a=!1,s=0,l=e.length,u="",c="";e:for(s=0;s<l;s++){var f=e.charAt(s);if(o===!1){if(f==="<"){o=s;continue}}else if(a===!1){if(f==="<"){n+=r(e.slice(i,s)),o=s,i=s;continue}if(f===">"||s===l-1){n+=r(e.slice(i,o)),c=e.slice(o,s+1),u=fb(c),n+=t(o,n.length,u,c,db(c)),i=s+1,o=!1;continue}if(f==='"'||f==="'")for(var d=1,h=e.charAt(s-d);h.trim()===""||h==="=";){if(h==="="){a=f;continue e}h=e.charAt(s-++d)}}else if(f===a){a=!1;continue}}return i<l&&(n+=r(e.substr(i))),n}var pb=/[^a-zA-Z0-9\\_:.-]/gim;function gb(e,t){var r=0,n=0,i=[],o=!1,a=e.length;function s(d,h){if(d=un.trim(d),d=d.replace(pb,"").toLowerCase(),!(d.length<1)){var m=t(d,h||"");m&&i.push(m)}}for(var l=0;l<a;l++){var u=e.charAt(l),c,f;if(o===!1&&u==="="){o=e.slice(r,l),r=l+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:vb(e,l+1);continue}if(o!==!1&&l===n){if(f=e.indexOf(u,l+1),f===-1)break;c=un.trim(e.slice(n+1,f)),s(o,c),o=!1,l=f,r=l+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(f=mb(e,l),f===-1){c=un.trim(e.slice(r,l)),s(c),o=!1,r=l+1;continue}else{l=f-1;continue}else if(f=xb(e,l-1),f===-1){c=un.trim(e.slice(r,l)),c=v1(c),s(o,c),o=!1,r=l+1;continue}else continue}return r<e.length&&(o===!1?s(e.slice(r)):s(o,v1(un.trim(e.slice(r))))),un.trim(i.join(" "))}function mb(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function vb(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function xb(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function wb(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function v1(e){return wb(e)?e.substr(1,e.length-2):e}bu.parseTag=hb;bu.parseAttr=gb;var yb=nh.FilterCSS,yr=Ze,$2=bu,Eb=$2.parseTag,_b=$2.parseAttr,tl=ih;function Ls(e){return e==null}function Sb(e){var t=tl.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=tl.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=tl.trim(e.slice(0,-1))),{html:e,closing:r}}function Tb(e){var t={};for(var r in e)t[r]=e[r];return t}function Cb(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function N2(e){e=Tb(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=yr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Cb(e.whiteList||e.allowList):e.whiteList=yr.whiteList,e.onTag=e.onTag||yr.onTag,e.onTagAttr=e.onTagAttr||yr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||yr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||yr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||yr.safeAttrValue,e.escapeHtml=e.escapeHtml||yr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new yb(e.css))}N2.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,a=r.onTagAttr,s=r.onIgnoreTagAttr,l=r.safeAttrValue,u=r.escapeHtml,c=t.cssFilter;r.stripBlankChar&&(e=yr.stripBlankChar(e)),r.allowCommentTag||(e=yr.stripCommentTag(e));var f=!1;r.stripIgnoreTagBody&&(f=yr.StripTagBody(r.stripIgnoreTagBody,o),o=f.onIgnoreTag);var d=Eb(e,function(h,m,p,g,x){var w={sourcePosition:h,position:m,isClosing:x,isWhite:Object.prototype.hasOwnProperty.call(n,p)},y=i(p,g,w);if(!Ls(y))return y;if(w.isWhite){if(w.isClosing)return"</"+p+">";var _=Sb(g),N=n[p],M=_b(_.html,function(S,C){var A=tl.indexOf(N,S)!==-1,L=a(p,S,C,A);return Ls(L)?A?(C=l(p,S,C,c),C?S+'="'+C+'"':S):(L=s(p,S,C,A),Ls(L)?void 0:L):L});return g="<"+p,M&&(g+=" "+M),_.closing&&(g+=" /"),g+=">",g}else return y=o(p,g,w),Ls(y)?u(g):y},u);return f&&(d=f.remove(d)),d};var Ab=N2;(function(e,t){var r=Ze,n=bu,i=Ab;function o(s,l){var u=new i(l);return u.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var s in r)t[s]=r[s];for(var l in n)t[l]=n[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)})(r0,r0.exports);var Rb=r0.exports;const Ob=Ha(Rb);function jo(e,t,r){const[n,i]=v.useState(()=>{if(typeof window>"u")return t;try{const a=window.localStorage.getItem(e);return a?r?r(JSON.parse(a)):JSON.parse(a):t}catch(a){return console.log(a),t}});return[n,a=>{try{const s=a instanceof Function?a(n):a;i(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch(s){console.log(s)}}]}const M2="ToastProvider",[oh,Fb,Db]=su("Toast"),[L2,Qk]=nn("Toast",[Db]),[Pb,ku]=L2(M2),B2=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=v.useState(null),[u,c]=v.useState(0),f=v.useRef(!1),d=v.useRef(!1);return v.createElement(oh.Provider,{scope:t},v.createElement(Pb,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:v.useCallback(()=>c(h=>h+1),[]),onToastRemove:v.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d},a))};B2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${M2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const Ib="ToastViewport",bb=["F8"],i0="toast.viewportPause",o0="toast.viewportResume",kb=v.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=bb,label:i="Notifications ({hotkey})",...o}=e,a=ku(Ib,r),s=Fb(r),l=v.useRef(null),u=v.useRef(null),c=v.useRef(null),f=v.useRef(null),d=Ve(t,f,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=a.toastCount>0;v.useEffect(()=>{const g=x=>{var w;n.every(_=>x[_]||x.code===_)&&((w=f.current)===null||w===void 0||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),v.useEffect(()=>{const g=l.current,x=f.current;if(m&&g&&x){const w=()=>{if(!a.isClosePausedRef.current){const M=new CustomEvent(i0);x.dispatchEvent(M),a.isClosePausedRef.current=!0}},y=()=>{if(a.isClosePausedRef.current){const M=new CustomEvent(o0);x.dispatchEvent(M),a.isClosePausedRef.current=!1}},_=M=>{!g.contains(M.relatedTarget)&&y()},N=()=>{g.contains(document.activeElement)||y()};return g.addEventListener("focusin",w),g.addEventListener("focusout",_),g.addEventListener("pointermove",w),g.addEventListener("pointerleave",N),window.addEventListener("blur",w),window.addEventListener("focus",y),()=>{g.removeEventListener("focusin",w),g.removeEventListener("focusout",_),g.removeEventListener("pointermove",w),g.removeEventListener("pointerleave",N),window.removeEventListener("blur",w),window.removeEventListener("focus",y)}}},[m,a.isClosePausedRef]);const p=v.useCallback(({tabbingDirection:g})=>{const w=s().map(y=>{const _=y.ref.current,N=[_,...Qb(_)];return g==="forwards"?N:N.reverse()});return(g==="forwards"?w.reverse():w).flat()},[s]);return v.useEffect(()=>{const g=f.current;if(g){const x=w=>{const y=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!y){const C=document.activeElement,A=w.shiftKey;if(w.target===g&&A){var N;(N=u.current)===null||N===void 0||N.focus();return}const B=p({tabbingDirection:A?"backwards":"forwards"}),V=B.findIndex(Q=>Q===C);if(Lc(B.slice(V+1)))w.preventDefault();else{var M,S;A?(M=u.current)===null||M===void 0||M.focus():(S=c.current)===null||S===void 0||S.focus()}}};return g.addEventListener("keydown",x),()=>g.removeEventListener("keydown",x)}},[s,p]),v.createElement(MS,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:m?void 0:"none"}},m&&v.createElement(x1,{ref:u,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"forwards"});Lc(g)}}),v.createElement(oh.Slot,{scope:r},v.createElement(Pe.ol,pe({tabIndex:-1},o,{ref:d}))),m&&v.createElement(x1,{ref:c,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"backwards"});Lc(g)}}))}),$b="ToastFocusProxy",x1=v.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,o=ku($b,r);return v.createElement(yd,pe({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var s;const l=a.relatedTarget;!((s=o.viewport)!==null&&s!==void 0&&s.contains(l))&&n()}}))}),$u="Toast",Nb="toast.swipeStart",Mb="toast.swipeMove",Lb="toast.swipeCancel",Bb="toast.swipeEnd",Ub=v.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:o,...a}=e,[s=!0,l]=uo({prop:n,defaultProp:i,onChange:o});return v.createElement(Ei,{present:r||s},v.createElement(U2,pe({open:s},a,{ref:t,onClose:()=>l(!1),onPause:It(e.onPause),onResume:It(e.onResume),onSwipeStart:_e(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:_e(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:_e(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:_e(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})))}),[Hb,Vb]=L2($u,{onClose(){}}),U2=v.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...m}=e,p=ku($u,r),[g,x]=v.useState(null),w=Ve(t,Q=>x(Q)),y=v.useRef(null),_=v.useRef(null),N=i||p.duration,M=v.useRef(0),S=v.useRef(N),C=v.useRef(0),{onToastAdd:A,onToastRemove:L}=p,H=It(()=>{var Q;(g==null?void 0:g.contains(document.activeElement))&&((Q=p.viewport)===null||Q===void 0||Q.focus()),a()}),B=v.useCallback(Q=>{!Q||Q===1/0||(window.clearTimeout(C.current),M.current=new Date().getTime(),C.current=window.setTimeout(H,Q))},[H]);v.useEffect(()=>{const Q=p.viewport;if(Q){const ne=()=>{B(S.current),u==null||u()},ye=()=>{const ve=new Date().getTime()-M.current;S.current=S.current-ve,window.clearTimeout(C.current),l==null||l()};return Q.addEventListener(i0,ye),Q.addEventListener(o0,ne),()=>{Q.removeEventListener(i0,ye),Q.removeEventListener(o0,ne)}}},[p.viewport,N,l,u,B]),v.useEffect(()=>{o&&!p.isClosePausedRef.current&&B(N)},[o,N,p.isClosePausedRef,B]),v.useEffect(()=>(A(),()=>L()),[A,L]);const V=v.useMemo(()=>g?W2(g):null,[g]);return p.viewport?v.createElement(v.Fragment,null,V&&v.createElement(Wb,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},V),v.createElement(Hb,{scope:r,onClose:H},di.createPortal(v.createElement(oh.ItemSlot,{scope:r},v.createElement(NS,{asChild:!0,onEscapeKeyDown:_e(s,()=>{p.isFocusedToastEscapeKeyDownRef.current||H(),p.isFocusedToastEscapeKeyDownRef.current=!1})},v.createElement(Pe.li,pe({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":p.swipeDirection},m,{ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:_e(e.onKeyDown,Q=>{Q.key==="Escape"&&(s==null||s(Q.nativeEvent),Q.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:_e(e.onPointerDown,Q=>{Q.button===0&&(y.current={x:Q.clientX,y:Q.clientY})}),onPointerMove:_e(e.onPointerMove,Q=>{if(!y.current)return;const ne=Q.clientX-y.current.x,ye=Q.clientY-y.current.y,ve=!!_.current,Ce=["left","right"].includes(p.swipeDirection),ie=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,Ee=Ce?ie(0,ne):0,ee=Ce?0:ie(0,ye),O=Q.pointerType==="touch"?10:2,k={x:Ee,y:ee},b={originalEvent:Q,delta:k};ve?(_.current=k,Bs(Mb,f,b,{discrete:!1})):w1(k,p.swipeDirection,O)?(_.current=k,Bs(Nb,c,b,{discrete:!1}),Q.target.setPointerCapture(Q.pointerId)):(Math.abs(ne)>O||Math.abs(ye)>O)&&(y.current=null)}),onPointerUp:_e(e.onPointerUp,Q=>{const ne=_.current,ye=Q.target;if(ye.hasPointerCapture(Q.pointerId)&&ye.releasePointerCapture(Q.pointerId),_.current=null,y.current=null,ne){const ve=Q.currentTarget,Ce={originalEvent:Q,delta:ne};w1(ne,p.swipeDirection,p.swipeThreshold)?Bs(Bb,h,Ce,{discrete:!0}):Bs(Lb,d,Ce,{discrete:!0}),ve.addEventListener("click",ie=>ie.preventDefault(),{once:!0})}})})))),p.viewport))):null});U2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${$u}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const Wb=e=>{const{__scopeToast:t,children:r,...n}=e,i=ku($u,t),[o,a]=v.useState(!1),[s,l]=v.useState(!1);return Yb(()=>a(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:v.createElement(du,{asChild:!0},v.createElement(yd,n,o&&v.createElement(v.Fragment,null,i.label," ",r)))},zb=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return v.createElement(Pe.div,pe({},n,{ref:t}))}),Gb=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return v.createElement(Pe.div,pe({},n,{ref:t}))}),jb="ToastAction",Xb=v.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?v.createElement(V2,{altText:r,asChild:!0},v.createElement(H2,pe({},n,{ref:t}))):null});Xb.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${jb}\``)}};const Kb="ToastClose",H2=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=Vb(Kb,r);return v.createElement(V2,{asChild:!0},v.createElement(Pe.button,pe({type:"button"},n,{ref:t,onClick:_e(e.onClick,i.onClose)})))}),V2=v.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return v.createElement(Pe.div,pe({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function W2(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),qb(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...W2(n))}}),t}function Bs(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?pd(i,o):i.dispatchEvent(o)}const w1=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function Yb(e=()=>{}){const t=It(e);Et(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function qb(e){return e.nodeType===e.ELEMENT_NODE}function Qb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Lc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const Zb=B2,Jb=kb,ek=Ub,tk=zb,rk=Gb,nk=H2,jl=({title:e,titleId:t,...r})=>K("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,...r,children:K("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),ik=({title:e,titleId:t,...r})=>Se("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?K("title",{id:t,children:e}):null,K("path",{d:"M9 16.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15ZM11.25 6.75l-4.5 4.5M6.75 6.75l4.5 4.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),ok=({title:e,titleId:t,...r})=>Se("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?K("title",{id:t,children:e}):null,K("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM12 16v-4M12 8h.01",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),ak=({title:e,titleId:t,...r})=>Se("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?K("title",{id:t,children:e}):null,K("path",{d:"M16.5 8.31V9a7.5 7.5 0 1 1-4.447-6.855",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),K("path",{d:"M16.5 3 9 10.508l-2.25-2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),sk=({title:e,titleId:t,...r})=>Se("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?K("title",{id:t,children:e}):null,K("path",{d:"M7.718 2.895 1.366 13.5a1.5 1.5 0 0 0 1.282 2.25h12.705a1.5 1.5 0 0 0 1.283-2.25L10.283 2.895a1.5 1.5 0 0 0-2.565 0v0ZM9 6.75v3M9 12.75h.008",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),lk=({toast:e,open:t,setOpen:r})=>Se(Zb,{children:[Se(ek,{open:t,onOpenChange:n=>{e.preventClose||r(n)},className:Nt("z-50 fixed bottom-4 md:left-1/2 md:-translate-x-[50%] inset-x-4 w-auto shadow-lg md:max-w-[658px] duration-300","radix-state-open:animate-fade-in","radix-state-closed:animate-toast-hide","radix-swipe-end:animate-toast-swipe-out","translate-x-radix-toast-swipe-move-x","radix-swipe-cancel:translate-x-0 radix-swipe-cancel:duration-200 radix-swipe-cancel:ease-[ease]","px-[40px] md:px-[58px] py-6 flex flex-col border rounded-[4px]",{"bg-green-100 text-green-600 border-green-600":e.status==="success","bg-red-200 text-red-600 border-red-600":e.status==="error","bg-blue-100 text-blue-700 border-blue-600":e.status==="info","bg-orange-200 text-orange-600 border-orange-600":e.status==="warning"},{"h-[72px]":!e.description}),children:[e.status==="success"?K(ak,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="warning"?K(sk,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="error"?K(ik,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):K(ok,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}),K(tk,{className:"text-grey-900 font-bold text-sm",children:e.title}),e.description&&K(rk,{className:"mt-2 text-[10px] md:text-xs text-grey-800",children:e.description}),K(nk,{className:"absolute top-7 right-5 md:right-7",children:K(jl,{className:"w-4 h-4 text-grey-900"})})]}),K(Jb,{})]});function uk(e){const[t,r]=v.useState(e),n=t==="dark"?"light":"dark";return v.useEffect(()=>{const i=window.document.documentElement;i.classList.remove(n),i.classList.add(t)},[t,n]),[n,r]}const z2="Dialog",[G2,Zk]=nn(z2),[ck,Mr]=G2(z2),fk=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=v.useRef(null),l=v.useRef(null),[u=!1,c]=uo({prop:n,defaultProp:i,onChange:o});return v.createElement(ck,{scope:t,triggerRef:s,contentRef:l,contentId:Xr(),titleId:Xr(),descriptionId:Xr(),open:u,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(f=>!f),[c]),modal:a},r)},dk="DialogTrigger",hk=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Mr(dk,r),o=Ve(t,i.triggerRef);return v.createElement(Pe.button,pe({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ah(i.open)},n,{ref:o,onClick:_e(e.onClick,i.onOpenToggle)}))}),j2="DialogPortal",[pk,X2]=G2(j2,{forceMount:void 0}),gk=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=Mr(j2,t);return v.createElement(pk,{scope:t,forceMount:r},v.Children.map(n,a=>v.createElement(Ei,{present:r||o.open},v.createElement(du,{asChild:!0,container:i},a))))},a0="DialogOverlay",mk=v.forwardRef((e,t)=>{const r=X2(a0,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Mr(a0,e.__scopeDialog);return o.modal?v.createElement(Ei,{present:n||o.open},v.createElement(vk,pe({},i,{ref:t}))):null}),vk=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Mr(a0,r);return v.createElement(_d,{as:ni,allowPinchZoom:!0,shards:[i.contentRef]},v.createElement(Pe.div,pe({"data-state":ah(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),Ua="DialogContent",xk=v.forwardRef((e,t)=>{const r=X2(Ua,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=Mr(Ua,e.__scopeDialog);return v.createElement(Ei,{present:n||o.open},o.modal?v.createElement(wk,pe({},i,{ref:t})):v.createElement(yk,pe({},i,{ref:t})))}),wk=v.forwardRef((e,t)=>{const r=Mr(Ua,e.__scopeDialog),n=v.useRef(null),i=Ve(t,r.contentRef,n);return v.useEffect(()=>{const o=n.current;if(o)return Ed(o)},[]),v.createElement(K2,pe({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_e(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:_e(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&o.preventDefault()}),onFocusOutside:_e(e.onFocusOutside,o=>o.preventDefault())}))}),yk=v.forwardRef((e,t)=>{const r=Mr(Ua,e.__scopeDialog),n=v.useRef(!1);return v.createElement(K2,pe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var o,a;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(n.current=!0);const s=i.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&i.preventDefault()}}))}),K2=v.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=Mr(Ua,r),l=v.useRef(null),u=Ve(t,l);return gd(),v.createElement(v.Fragment,null,v.createElement(md,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},v.createElement(lu,pe({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ah(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Ek="DialogTitle",_k=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Mr(Ek,r);return v.createElement(Pe.h2,pe({id:i.titleId},n,{ref:t}))}),Sk="DialogClose",Tk=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=Mr(Sk,r);return v.createElement(Pe.button,pe({type:"button"},n,{ref:t,onClick:_e(e.onClick,()=>i.onOpenChange(!1))}))});function ah(e){return e?"open":"closed"}const Y2=fk,Ck=hk,Ak=gk,q2=mk,Q2=xk,Z2=_k,s0=Tk;function Rk({open:e,close:t}){const r=window.download_path||"~/OpenBBUserData/exports";return Se(Y2,{open:e,onOpenChange:t,children:[Se("div",{id:"loading",className:"saving",children:[K("div",{id:"loading_text",className:"loading_text"}),K("div",{id:"loader",className:"loader"})]}),K(q2,{onClick:t,className:"_modal-overlay"}),Se(Q2,{className:"_modal",children:[K(s0,{children:K(jl,{})}),K(s0,{className:"_modal-close",onClick:t,style:{float:"right",marginTop:20},children:K(jl,{className:"w-6 h-6"})}),K(Z2,{className:"_modal-title",children:"Success"}),Se("div",{id:"popup_title",className:"popup_content",style:{padding:"0px 2px 2px 5px",marginTop:5},children:[K("div",{style:{display:"flex",flexDirection:"column",gap:0,fontSize:14},children:K("div",{children:Se("label",{htmlFor:"title_text",children:[K("b",{children:window.title})," has been downloaded to",K("br",{}),K("br",{}),K("a",{style:{color:"#FFDD00",marginTop:15},href:`${r}`,onClick:n=>{n.preventDefault(),window.pywry.open_file(r)},children:r})]})})}),K("div",{style:{float:"right",marginTop:20},children:K("button",{className:"_btn",style:{padding:"8px 16px",width:"100%"},onClick:t,children:"Close"})})]})]})]})}const Ok=new Date,Fk=50,l0=30;function Dk(e,t){try{const r=e.hasOwnProperty("index")?"index":e.hasOwnProperty("Index")?"Index":null,n=r?e[r]:null,i=e[t],o=typeof i,a=i==null?void 0:i.toString().replace(/[^0-9]/g,""),s=(a==null?void 0:a.length)>=4&&(Xd(t)||t.toLowerCase()==="index"||n&&typeof n=="string"&&(n.toLowerCase().includes("date")||n.toLowerCase().includes("day")||n.toLowerCase().includes("time")||n.toLowerCase().includes("timestamp")||n.toLowerCase().includes("year")||n.toLowerCase().includes("month")||n.toLowerCase().includes("week")||n.toLowerCase().includes("hour")||n.toLowerCase().includes("minute")));if(o==="string"&&i.startsWith("http"))return(i==null?void 0:i.toString().length)??0;if(s){if(typeof i=="string")return(i==null?void 0:i.toString().length)??0;try{const u=new Date(i);let c="";return u.getUTCHours()===0&&u.getUTCMinutes()===0&&u.getUTCSeconds()===0&&u.getMilliseconds()===0?c=u.toISOString().split("T")[0]:(c=u.toISOString(),c=`${c.split("T")[0]} ${c.split("T")[1].split(".")[0]}`),(c==null?void 0:c.toString().length)??0}catch{return(i==null?void 0:i.toString().length)??0}}return(i==null?void 0:i.toString().length)??0}catch{return 0}}const u0=["csv","xlsx","png"];function Pk({data:e,columns:t,title:r,initialTheme:n,cmd:i=""}){const[o,a]=jo("exportType",u0[0]),[s,l]=v.useState(!1),[u,c]=uk(n),[f,d]=v.useState(u==="dark"),h=W=>{c(u),d(W)},[m,p]=jo("rowsPerPage",l0,y2),[g,x]=jo("advanced",!1),[w,y]=jo("colors",!1),[_,N]=v.useState([]),[M,S]=v.useState(""),[C,A]=jo("fontSize","1"),[L,H]=v.useState(!1),B=t.reduce((W,q,le)=>(W[q]=le<Fk,W),{}),[V,Q]=v.useState(B),ne=(W,q,le)=>{const fe=Math.max(...W.map(We=>Dk(We,q)),le!=null&&le.length?(le==null?void 0:le.length)+8:0);return Math.min(200,fe*12)},ye=v.useMemo(()=>[...t.map((W,q)=>({accessorKey:W,id:W,header:W,size:ne(e,W,W),footer:W,cell:({row:le})=>{var st;const he=le.original.hasOwnProperty("index")?"index":le.original.hasOwnProperty("Index")?"Index":t[0],Te=he?le.original[he]:null,fe=le.original[W],We=typeof fe,be=(fe==null?void 0:fe.toString().replace(/[^0-9]/g,""))??"",ge=(be==null?void 0:be.length)>=4&&(Xd(W)||W.toLowerCase()==="index"||Te&&typeof Te=="string"&&(Te.toLowerCase().includes("date")||Te.toLowerCase().includes("time")||Te.toLowerCase().includes("timestamp")||Te.toLowerCase().includes("year")));if(We==="string"&&fe.startsWith("http"))return K("a",{className:"_hyper-link",href:fe,target:"_blank",rel:"noreferrer",children:(fe==null?void 0:fe.length)>25?fe.substring(0,25)+"...":fe});if(ge){if(typeof fe=="number")return K("p",{children:fe});if(typeof fe=="string"){const ke=fe.split("T")[0],Ge=(st=fe.split("T")[1])==null?void 0:st.split(".")[0];return Ge==="00:00:00"?K("p",{children:ke}):Se("p",{children:[ke," ",Ge]})}try{const ke=new Date(fe);let Ge="";return ke.getUTCHours()===0&&ke.getUTCMinutes()===0&&ke.getUTCSeconds()===0&&ke.getMilliseconds()===0?Ge=ke.toISOString().split("T")[0]:(Ge=ke.toISOString(),Ge=`${Ge.split("T")[0]} ${Ge.split("T")[1].split(".")[0]}`),K("p",{children:Ge})}catch{return K("p",{children:fe})}}if(We==="number"||w2.test(fe==null?void 0:fe.toString())){let ke=aP(fe,W);const Ge=Number(jf(fe));if(typeof Te=="string"&&Gw(Te)){ke=Number(jf(fe));const gr=ke<2?4:2;ke=ke.toLocaleString("en-US",{maximumFractionDigits:gr,minimumFractionDigits:2})}return K("p",{className:Nt("whitespace-nowrap",{"text-black dark:text-white":!w,"text-[#16A34A]":Ge>0&&w,"text-[#F87171]":Ge<0&&w,"text-[#404040]":Ge===0&&w}),children:Ge!==0?Ge>0?`${ke}`:`${ke}`:ke})}else if(We==="string")return K("div",{dangerouslySetInnerHTML:{__html:Ob(fe)}});return K("p",{children:fe})}}))],[g,w]),[ve,Ce]=v.useState(!1),[ie,Ee]=v.useState(ye.map(W=>W.id)),ee=()=>Ee(t.map(W=>W.id)),O=v.useMemo(()=>{const W=ie.map(le=>le),q=ye.map(le=>le.id);return!sP(W,q)},[ie,ye]),k=_S({data:e,columns:ye,getCoreRowModel:fS(),getSortedRowModel:mS(),getFilteredRowModel:gS(),getPaginationRowModel:xS(),columnResizeMode:"onChange",onColumnVisibilityChange:Q,onColumnOrderChange:Ee,onSortingChange:N,onGlobalFilterChange:S,globalFilterFn:lP,state:{sorting:_,globalFilter:M,columnOrder:ie,columnVisibility:V},initialState:{pagination:{pageIndex:0,pageSize:typeof m=="string"?m.includes("All")?e==null?void 0:e.length:parseInt(m):m}}}),b=v.useRef(null),{rows:D}=k.getRowModel(),U=k.getVisibleFlatColumns(),[G,J]=v.useState(!1);return v.useEffect(()=>{s&&(l(!1),J(!0))},[s]),Se(H1,{children:[K(lk,{toast:{id:"max-columns",title:"Max 12 columns are visible by default",description:"You can change this by clicking on advanced and then top right 'Filter' button",status:"info"},open:L,setOpen:H}),K(Rk,{open:G,close:()=>J(!1)}),Se("div",{ref:b,className:Nt("overflow-x-hidden h-screen"),children:[Se("div",{className:"relative p-4",id:"table",children:[K("div",{className:"absolute -inset-0.5 bg-gradient-to-r rounded-md blur-md from-[#072e49]/30 via-[#0d345f]/30 to-[#0d3362]/30"}),Se("div",{className:"border border-grey-500/60 dark:border-grey-200/60 bg-white dark:bg-grey-900 rounded overflow-hidden relative z-20",children:[Se("div",{className:"_header relative gap-4 py-2 text-center text-xs flex items-center justify-between px-4 text-white",style:{fontSize:`${Number(C)*100}%`},children:[K("div",{className:"w-1/3",children:K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"40",fill:"none",viewBox:"0 0 64 40",children:K("path",{fill:"#fff",d:"M61.283 3.965H33.608v27.757h25.699V19.826H37.561v-3.965H63.26V3.965h-1.977zM39.538 23.792h15.815v3.965H37.561v-3.965h1.977zM59.306 9.913v1.983H37.561V7.931h21.745v1.982zM33.606 0h-3.954v3.965H33.606V0zM25.7 3.966H0V15.86h25.7v3.965H3.953v11.896h25.7V3.966h-3.955zm0 21.808v1.983H7.907v-3.965h17.791v1.982zm0-15.86v1.982H3.953V7.931h21.745v1.982zM37.039 35.693v2.952l-.246-.246-.245-.245-.245-.247-.245-.246-.246-.246-.245-.245-.245-.247-.247-.246-.245-.246-.245-.246-.245-.246-.246-.246h-.49v3.936h.49v-3.198l.246.246.245.246.245.246.245.246.246.246.246.246.245.247.246.245.245.246.245.247.245.246.246.245.245.246h.245v-3.936h-.49zM44.938 37.17h-.491v-1.477h-2.944v3.937h3.93v-2.46h-.495zm-2.944-.246v-.739h1.962v.984h-1.962v-.245zm2.944.984v1.23h-2.944V37.66h2.944v.247zM52.835 37.17h-.49v-1.477h-2.946v3.937h3.925v-2.46h-.489zm-2.944-.246v-.739h1.963v.984h-1.965l.002-.245zm2.944.984v1.23H49.89V37.66h2.946v.247zM29.174 35.693H25.739v3.936H29.663v-.491H26.229v-.984h2.943v-.493H26.229v-1.476h3.434v-.492h-.489zM13.37 35.693H9.934v3.937h3.925v-3.937h-.49zm0 .738v2.709h-2.945v-2.955h2.943l.001.246zM21.276 35.693h-3.435v3.937h.491v-1.476h3.434v-2.461h-.49zm0 .738v1.23h-2.944v-1.476h2.944v.246z"})})}),K("p",{className:"font-bold w-1/3 flex flex-col gap-0.5 items-center",children:r}),Se("p",{className:"w-1/3 text-right text-xs",children:[new Intl.DateTimeFormat("en-GB",{dateStyle:"full",timeStyle:"long"}).format(Ok).replace(/:\d\d /," "),K("br",{}),K("span",{className:"text-grey-400",children:i})]})]}),K("div",{className:"overflow-auto max-h-[calc(100vh-160px)] smh:max-h-[calc(100vh-95px)]",children:Se("table",{className:"text-sm relative",style:{fontSize:`${Number(C)*100}%`},children:[K("thead",{className:"sticky top-0 bg-white dark:bg-grey-900",children:k.getHeaderGroups().map((W,q)=>K("tr",{children:W.headers.map((le,he)=>K(v8,{setLockFirstColumn:Ce,lockFirstColumn:ve,idx:he,advanced:g,header:le,table:k},le.id))},W.id))}),K("tbody",{children:k.getRowModel().rows.map((W,q)=>K("tr",{className:"!h-[64px] border-b border-grey-400",children:W.getVisibleCells().map((le,he)=>K("td",{className:Nt("whitespace-normal p-4 text-black dark:text-white",{"bg-white dark:bg-grey-850":q%2===0,"bg-grey-100 dark:bg-[#202020]":q%2===1,"sticky left-0 z-10":he===0&&ve}),style:{width:le.column.getSize()},children:If(le.column.columnDef.cell,le.getContext())},le.id))},W.id))}),(D==null?void 0:D.length)>30&&(U==null?void 0:U.length)>4&&K("tfoot",{children:k.getFooterGroups().map(W=>K("tr",{children:W.headers.map(q=>K("th",{colSpan:q.colSpan,className:"text-grey-500 bg-grey-100 dark:bg-grey-850 font-normal text-left text-sm h-10 p-4",style:{width:q.getSize()},children:q.isPlaceholder?null:If(q.column.columnDef.footer,q.getContext())},q.id))},W.id))})]})})]})]}),Se("div",{className:"smh:hidden flex max-h-[68px] overflow-x-auto bg-white/70 dark:bg-grey-900/70 backdrop-filter backdrop-blur z-20 bottom-0 left-0 w-full gap-10 justify-between py-4 px-4 text-sm",children:[Se("div",{className:"flex items-center gap-10",children:[Se(Y2,{children:[K(Ck,{className:"_btn",children:"Settings"}),Se(Ak,{children:[K(q2,{className:"_modal-overlay"}),Se(Q2,{className:"_modal",children:[K(s0,{className:"absolute top-[40px] right-[46px] text-grey-200 hover:text-white rounded-[4px] focus:outline focus:outline-2 focus:outline-grey-500",children:K(jl,{className:"w-6 h-6"})}),K(Z2,{className:"uppercase font-bold tracking-widest",children:"Settings"}),Se("div",{className:"grid grid-cols-2 gap-4 mt-10 text-sm",children:[O&&K("button",{onClick:()=>ee(),className:"_btn h-9",children:"Reset Order"}),K(Vi,{labelType:"row",value:f?"light":"dark",onChange:W=>{h(W!=="dark")},label:"Theme",placeholder:"Select theme",groups:[{label:"Theme",items:[{label:"Dark",value:"dark"},{label:"Light",value:"light"}]}]}),K(Vi,{labelType:"row",value:o,onChange:W=>{a(W)},label:"Export type",placeholder:"Select export type",groups:[{label:"Export type",items:u0.map(W=>({label:W,value:W}))}]}),K(Vi,{labelType:"row",value:C,onChange:A,label:"Font size",placeholder:"Select font size",groups:[{label:"Font size",items:[{label:"50%",value:"0.5"},{label:"75%",value:"0.75"},{label:"100%",value:"1"},{label:"125%",value:"1.25"},{label:"150%",value:"1.5"},{label:"175%",value:"1.75"},{label:"200%",value:"2"}]}]}),K(h1,{table:k,label:"Filter"}),K("div",{className:"flex gap-2 items-center",children:K(Vi,{labelType:"row",value:g?"advanced":"simple",onChange:W=>{x(W==="advanced")},label:"Type",placeholder:"Select type",groups:[{label:"Type",items:[{label:"Simple",value:"simple"},{label:"Advanced",value:"advanced"}]}]})}),Se("div",{className:"flex gap-2 items-center",children:[K("label",{htmlFor:"colors",children:"Colors"}),K("input",{id:"colors",type:"checkbox",checked:w,onChange:()=>y(!w)})]})]})]})]})]}),K(h1,{onlyIconTrigger:!0,table:k,label:""})]}),K(x8,{currentPage:m,setCurrentPage:p,table:k}),K(w8,{setType:a,type:o,columns:t,data:e,downloadFinished:l})]})]})]})}function J2(e){let t=null;return()=>(t==null&&(t=e()),t)}function Ik(e,t){return e.filter(r=>r!==t)}function bk(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class kk{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=bk(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=Ik(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class $k{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const ey="__NATIVE_FILE__",ty="__NATIVE_URL__",ry="__NATIVE_TEXT__",ny="__NATIVE_HTML__",y1=Object.freeze(Object.defineProperty({__proto__:null,FILE:ey,HTML:ny,TEXT:ry,URL:ty},Symbol.toStringTag,{value:"Module"}));function Bc(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const c0={[ey]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[ny]:{exposeProperties:{html:(e,t)=>Bc(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[ty]:{exposeProperties:{urls:(e,t)=>Bc(e,t,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ry]:{exposeProperties:{text:(e,t)=>Bc(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Nk(e,t){const r=c0[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new $k(r);return n.loadDataTransfer(t),n}function Uc(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(c0).filter(r=>{const n=c0[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const Mk=J2(()=>/firefox/i.test(navigator.userAgent)),iy=J2(()=>!!window.safari);class E1{interpolate(t){const{xs:r,ys:n,c1s:i,c2s:o,c3s:a}=this;let s=r.length-1;if(t===r[s])return n[s];let l=0,u=a.length-1,c;for(;l<=u;){c=Math.floor(.5*(l+u));const h=r[c];if(h<t)l=c+1;else if(h>t)u=c-1;else return n[c]}s=Math.max(0,u);const f=t-r[s],d=f*f;return n[s]+i[s]*f+o[s]*d+a[s]*f*d}constructor(t,r){const{length:n}=t,i=[];for(let h=0;h<n;h++)i.push(h);i.sort((h,m)=>t[h]<t[m]?-1:1);const o=[],a=[];let s,l;for(let h=0;h<n-1;h++)s=t[h+1]-t[h],l=r[h+1]-r[h],o.push(s),a.push(l/s);const u=[a[0]];for(let h=0;h<o.length-1;h++){const m=a[h],p=a[h+1];if(m*p<=0)u.push(0);else{s=o[h];const g=o[h+1],x=s+g;u.push(3*x/((x+g)/m+(x+s)/p))}}u.push(a[a.length-1]);const c=[],f=[];let d;for(let h=0;h<u.length-1;h++){d=a[h];const m=u[h],p=1/o[h],g=m+u[h+1]-d-d;c.push((d-m-g)*p),f.push(g*p*p)}this.xs=t,this.ys=r,this.c1s=u,this.c2s=c,this.c3s=f}}const Lk=1;function oy(e){const t=e.nodeType===Lk?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Us(e){return{x:e.clientX,y:e.clientY}}function Bk(e){var t;return e.nodeName==="IMG"&&(Mk()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function Uk(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return iy()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function Hk(e,t,r,n,i){const o=Bk(t),s=oy(o?e:t),l={x:r.x-s.x,y:r.y-s.y},{offsetWidth:u,offsetHeight:c}=e,{anchorX:f,anchorY:d}=n,{dragPreviewWidth:h,dragPreviewHeight:m}=Uk(o,t,u,c),p=()=>{let M=new E1([0,.5,1],[l.y,l.y/c*m,l.y+m-c]).interpolate(d);return iy()&&o&&(M+=(window.devicePixelRatio-1)*m),M},g=()=>new E1([0,.5,1],[l.x,l.x/u*h,l.x+h-u]).interpolate(f),{offsetX:x,offsetY:w}=i,y=x===0||x,_=w===0||w;return{x:y?x:g(),y:_?w:p()}}class Vk{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}}function Wk(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Wk(e,i,r[i])})}return e}class zk{profile(){var t,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,n){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,n);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",i),r.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",i),r.removeEventListener("selectstart",o),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const n=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return r.addEventListener("dragenter",n),r.addEventListener("dragover",i),r.addEventListener("drop",o),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",i),r.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(t);return _1({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return _1({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(y1).some(r=>y1[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Nk(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&oy(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=Us(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,l=Uc(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const c=this.monitor.getSourceId(),f=this.sourceNodes.get(c),d=this.sourcePreviewNodes.get(c)||f;if(d){const{anchorX:h,anchorY:m,offsetX:p,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),y=Hk(f,d,a,{anchorX:h,anchorY:m},{offsetX:p,offsetY:g});s.setDragImage(d,y.x,y.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,l=Uc(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:Us(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=Us(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Uc(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:Us(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new Vk(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new kk(this.isNodeInDocument)}}const Gk=function(t,r,n){return new zk(t,r,n)};function jk(){const[e,t]=v.useState(null),[r,n]=v.useState("Interactive Table");v.useEffect(()=>{const a=setInterval(()=>{if(window.json_data){const s=JSON.parse(window.json_data);console.log(s),t(s),s.title&&typeof s.title=="string"&&n(s.title),clearInterval(a)}},100);return()=>clearInterval(a)},[]);const o=(a=>{var h;if(!a)return null;const s=(h=a.title)==null?void 0:h.replace(/<b>|<\/b>/g,"").replace(/ /g,"_"),l=new Date().toISOString().slice(0,10).replace(/-/g,""),u=new Date().toISOString().slice(11,19).replace(/:/g,"");window.title=`openbb_${s}_${l}_${u}`;const c=a.columns;a.index;const d=a.data.map((m,p)=>{const g={};return m.forEach((x,w)=>{g[c[w]]=x||(x===0?0:"")}),g});return{columns:c,data:d}})(e);return K("div",{className:"relative h-full bg-white dark:bg-black text-black dark:text-white",children:K(FI,{backend:Gk,children:o&&K(Pk,{title:r,data:o.data,columns:o.columns,initialTheme:e.theme&&typeof e.theme=="string"&&e.theme==="dark"?"dark":"light",cmd:(e==null?void 0:e.command_location)??""})})})}wv.render(K(ir.StrictMode,{children:K(jk,{})}),document.getElementById("root"));
</script>
<style>
@import"https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-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}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}*,: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: }._input{height:36px;width:100%;border-radius:.25rem;border-width:1.5px;border-color:#c8c8c8;background-color:#f6f6f6;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._input:focus{border-color:gray}._input:active{border-color:gray}._input:disabled{border-color:#5a5a5a}:is(.dark ._input){border-color:#474747;background-color:#070707;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-width:1px}:is(.dark ._input:hover){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}:is(.dark ._input:focus){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark ._input:active){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._btn{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn{width:-moz-fit-content;width:fit-content}}._btn{background-color:#2a2a2a;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn:hover{background-color:#5a5a5a}._btn:focus{outline-style:solid;outline-width:2px;outline-color:gray}._btn:disabled{background-color:#c8c8c8;color:gray}._btn:disabled:active{background-color:#c8c8c8;color:gray}:is(.dark ._btn){background-color:#eaeaea;color:#2a2a2a}:is(.dark ._btn:hover){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}:is(.dark ._btn:active){background-color:#dcdcdc}:is(.dark ._btn:active:hover){color:#070707}._btn-tertiary{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn-tertiary{width:-moz-fit-content;width:fit-content}}._btn-tertiary{background-color:#070707;color:#f6f6f6}._btn-tertiary:hover{background-color:#2a2a2a;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn-tertiary:focus{background-color:#070707;outline-style:solid;outline-width:2px;outline-color:gray}._btn-tertiary:active{background-color:#474747;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn-tertiary:disabled{background-color:gray;color:#474747}._hyper-link{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity));text-decoration-line:underline}._hyper-link:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}._hyper-link:active{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}._hyper-link:disabled{color:#5a5a5a}._modal{border-radius:.25rem;border-width:1px;border-color:#5a5a5a;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:fixed;top:50%;left:50%;z-index:50;max-height:608px;width:90%;max-width:568px;--tw-translate-x: -50%;--tw-translate-y: -50%;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));overflow:auto;background-color:#070707;padding:.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));transition-duration:.3s}._modal:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 768px){._modal{padding:2.5rem}}._modal-overlay{position:fixed;inset:0px;z-index:40;background-color:#070707;opacity:.6}._modal-title{font-size:1.125rem;line-height:1.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-0{inset:-0px}.-inset-0\.5{inset:-.125rem}.inset-x-4{left:1rem;right:1rem}.inset-y-0{top:0px;bottom:0px}.bottom-0{bottom:0px}.bottom-4{bottom:1rem}.left-0{left:0px}.left-\[8px\]{left:8px}.right-0{right:0px}.right-4{right:1rem}.right-5{right:1.25rem}.right-\[46px\]{right:46px}.top-0{top:0px}.top-7{top:1.75rem}.top-\[25px\]{top:25px}.top-\[40px\]{top:40px}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mr-1{margin-right:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.\!h-\[64px\]{height:64px!important}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[25px\]{height:25px}.h-\[36px\]{height:36px}.h-\[70px\]{height:70px}.h-\[72px\]{height:72px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.max-h-\[68px\]{max-height:68px}.max-h-\[calc\(100vh-160px\)\]{max-height:calc(100vh - 160px)}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1\/3{width:33.333333%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-\[25px\]{width:25px}.w-auto{width:auto}.w-full{width:100%}.max-w-\[216px\]{max-width:216px}.rotate-180{--tw-rotate: 180deg;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-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[5px\]{gap:5px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity))}.border-grey-200{border-color:#dcdcdc}.border-grey-400{border-color:#a2a2a2}.border-grey-500\/60{border-color:#80808099}.border-grey-700{border-color:#474747}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-grey-100{background-color:#eaeaea}.bg-grey-200{background-color:#dcdcdc}.bg-grey-300\/20{background-color:#c8c8c833}.bg-grey-850{background-color:#131313}.bg-grey-900{background-color:#070707}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/70{background-color:#ffffffb3}.bg-white\/80{background-color:#fffc}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#072e49\]\/30{--tw-gradient-from: rgb(7 46 73 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(7 46 73 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-\[\#0d345f\]\/30{--tw-gradient-to: rgb(13 52 95 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(13 52 95 / .3) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\[\#0d3362\]\/30{--tw-gradient-to: rgb(13 51 98 / .3) var(--tw-gradient-to-position)}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[5px\]{padding:5px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-\[40px\]{padding-left:40px;padding-right:40px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-\[25px\]{padding-left:25px}.pr-\[35px\]{padding-right:35px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-\[8px\]{font-size:8px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.leading-\[25px\]{line-height:25px}.leading-none{line-height:1}.tracking-widest{letter-spacing:.1em}.text-\[\#16A34A\]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-\[\#404040\]{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-\[\#669DCB\]{--tw-text-opacity: 1;color:rgb(102 157 203 / var(--tw-text-opacity))}.text-\[\#F87171\]{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-grey-200{color:#dcdcdc}.text-grey-400{color:#a2a2a2}.text-grey-500{color:gray}.text-grey-600{color:#5a5a5a}.text-grey-700{color:#474747}.text-grey-800{color:#2a2a2a}.text-grey-900{color:#070707}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_10px\]{--tw-shadow: 0 2px 10px;--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0px_10px_38px_-10px_rgba\(22\,_23\,_24\,_0\.35\)\,0px_10px_20px_-15px_rgba\(22\,_23\,_24\,_0\.2\)\]{--tw-shadow: 0px 10px 38px -10px rgba(22, 23, 24, .35),0px 10px 20px -15px rgba(22, 23, 24, .2);--tw-shadow-colored: 0px 10px 38px -10px var(--tw-shadow-color), 0px 10px 20px -15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-black\/10{--tw-shadow-color: rgb(0 0 0 / .1);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);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)}.blur-md{--tw-blur: blur(12px);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)}.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)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}._header{background:#062d48;background:linear-gradient(90deg,#062d48,#0b3054 15%,#0e386c 45%,#0b203d 64%,#06101a 82%,#060709)}body{font-family:Fira Code,monospace}table thead,table tfoot,table tbody tr{display:table;width:100%;table-layout:fixed}.resizer{cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none}tr{width:-moz-fit-content;width:fit-content}.resizer.isResizing{background:white;opacity:1}@media (hover: hover){.resizer{opacity:0}*:hover>.resizer{opacity:1}}::-webkit-scrollbar{width:20px}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{background-color:#d6dee1;border-radius:20px;border:6px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background-color:#a8bbbf}::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}table thead th{position:sticky;top:0}.saving{position:absolute;z-index:9999999;top:50%;left:50%;transform:translate(-50%,-50%);height:100px;width:200px;display:none;justify-content:center;align-items:center;background-color:#000000b3;color:#fff;box-shadow:0 0 10px #00000080;border:1px solid rgba(250,250,250,.5);font-size:.9em;border-radius:20px;animation:popup .3s ease-in-out}.saving.show{display:flex}.loader{position:relative;bottom:0px;right:-5px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #00acff;width:20px;height:20px;animation:spin 1.5s linear infinite;opacity:1}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.hover\:bg-grey-300:hover{background-color:#c8c8c8}.hover\:text-grey-800:hover{color:#2a2a2a}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:shadow-\[0_0_0_2px\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-black:focus{--tw-shadow-color: #000;--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-grey-500:focus{outline-color:gray}.focus-visible\:ring:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 85 247 / var(--tw-ring-opacity))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[highlighted\]\:bg-grey-600[data-highlighted]{background-color:#5a5a5a}.data-\[disabled\]\:text-grey-400[data-disabled]{color:#a2a2a2}.data-\[highlighted\]\:text-white[data-highlighted],.data-\[placeholder\]\:text-white[data-placeholder]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.data-\[highlighted\]\:outline-none[data-highlighted]{outline:2px solid transparent;outline-offset:2px}:is(.dark .dark\:border-grey-200\/60){border-color:#dcdcdc99}:is(.dark .dark\:border-grey-800){border-color:#2a2a2a}:is(.dark .dark\:bg-\[\#202020\]){--tw-bg-opacity: 1;background-color:rgb(32 32 32 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-black){--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-grey-800){background-color:#2a2a2a}:is(.dark .dark\:bg-grey-850){background-color:#131313}:is(.dark .dark\:bg-grey-900){background-color:#070707}:is(.dark .dark\:bg-grey-900\/70){background-color:#070707b3}:is(.dark .dark\:bg-grey-900\/80){background-color:#070707cc}:is(.dark .dark\:text-grey-700){color:#474747}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:bg-grey-800:hover){background-color:#2a2a2a}:is(.dark .dark\:hover\:bg-white:hover){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:left-\[25px\]{left:25px}.md\:right-7{right:1.75rem}.md\:flex{display:flex}.md\:max-w-\[658px\]{max-width:658px}.md\:-translate-x-\[50\%\]{--tw-translate-x: -50%;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))}.md\:px-\[58px\]{padding-left:58px;padding-right:58px}.md\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:flex{display:flex}}@media (max-height: 450px){.smh\:hidden{display:none}.smh\:max-h-\[calc\(100vh-95px\)\]{max-height:calc(100vh - 95px)}}
</style>
</head>
<body>
<div id="root"></div>
</body>
</html>